/*
 * Accounting2Tax - Premium Financial Tools Isolated Style Sheet
 * Scoped strictly under .a2t-finplan-wrap to prevent style bleed-in in WordPress.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

.a2t-finplan-wrap {
  --a2t-navy:         #1B2B5E;
  --a2t-navy-light:   #2A4287;
  --a2t-navy-dark:    #0F1836;
  --a2t-accent:       #EF9F27;
  --a2t-accent-light: #FEF6EA;
  --a2t-teal:         #1D9E75;
  --a2t-teal-light:   #EAFDF7;
  --a2t-red:          #E24B4A;
  --a2t-red-light:    #FFF3F3;
  --a2t-blue:         #378ADD;
  --a2t-blue-light:   #F0F6FF;
  --a2t-purple:       #7F77DD;
  --a2t-purple-light: #F4F3FF;
  --a2t-orange:       #E57E25;
  --a2t-orange-light: #FFF8F1;
  --a2t-bg:           #FAFBFF;
  --a2t-surface:      #FFFFFF;
  --a2t-surface-alt:  #F7F9FC;
  --a2t-border:       #E6ECF8;
  --a2t-text:         #1C2640;
  --a2t-text-muted:   #5D6B8F;
  --a2t-text-light:   #9CA9C6;
  --a2t-radius:       16px;
  --a2t-radius-lg:    24px;
  --a2t-shadow:       0 8px 30px rgba(27, 43, 94, 0.04);
  --a2t-shadow-hover: 0 12px 36px rgba(27, 43, 94, 0.09);
  --a2t-transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: var(--a2t-text) !important;
  line-height: 1.5 !important;
  background: var(--a2t-bg) !important;
  display: block !important;
}

/* ── Scope resets to avoid breaking Yoast/Astra theme layouts ── */
.a2t-finplan-wrap *, 
.a2t-finplan-wrap *::before, 
.a2t-finplan-wrap *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

/* ── Container Layout ── */
.a2t-finplan-wrap .a2t-container {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* ── Modern Navigation Header ── */
.a2t-finplan-wrap .a2t-header {
  background: var(--a2t-surface) !important;
  border-bottom: 1.5px solid var(--a2t-border) !important;
  height: 95px !important; /* Optimized height for screen budget */
  display: flex !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 4px 20px rgba(27, 43, 94, 0.02) !important;
}

.a2t-finplan-wrap .a2t-header .a2t-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.a2t-finplan-wrap .a2t-header-quick-links {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  max-width: 65% !important;
  flex-shrink: 0 !important;
  padding: 8px 4px !important;
}

.a2t-finplan-wrap .a2t-header-quick-links::-webkit-scrollbar {
  display: none !important;
}

.a2t-finplan-wrap .a2t-quick-links-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--a2t-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-right: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.a2t-finplan-wrap .a2t-header-quick-links .a2t-shortcut-tag {
  margin: 0 !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 20px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.a2t-finplan-wrap .a2t-logo-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.a2t-finplan-wrap .a2t-logo-img {
  height: 75px !important; /* Optimized logo height */
  width: auto !important;
  object-fit: contain !important;
}

.a2t-finplan-wrap .a2t-nav-menu {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  gap: 28px !important;
}

.a2t-finplan-wrap .a2t-nav-link {
  color: var(--a2t-text-muted) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  transition: var(--a2t-transition) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.a2t-finplan-wrap .a2t-nav-link:hover {
  color: var(--a2t-navy) !important;
}

.a2t-finplan-wrap .a2t-nav-link.active {
  color: var(--a2t-navy) !important;
  font-weight: 600 !important;
}

.a2t-finplan-wrap .a2t-header-cta {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* ── Mobile Hamburger Menu ── */
.a2t-finplan-wrap .a2t-mobile-menu-toggle {
  display: none !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 24px !important;
  height: 18px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 200 !important;
}

.a2t-finplan-wrap .a2t-mobile-menu-toggle span {
  width: 100% !important;
  height: 2px !important;
  background-color: var(--a2t-navy) !important;
  border-radius: 2px !important;
  transition: var(--a2t-transition) !important;
}

/* ── Buttons ── */
.a2t-finplan-wrap .a2t-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 1.5px solid transparent !important;
  transition: var(--a2t-transition) !important;
  font-family: inherit !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.a2t-finplan-wrap .a2t-btn-primary {
  background: var(--a2t-navy) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(27, 43, 94, 0.15) !important;
}

.a2t-finplan-wrap .a2t-btn-primary:hover {
  background: var(--a2t-navy-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(27, 43, 94, 0.2) !important;
}

.a2t-finplan-wrap .a2t-btn-secondary {
  background: var(--a2t-surface-alt) !important;
  color: var(--a2t-navy) !important;
  border-color: var(--a2t-border) !important;
}

.a2t-finplan-wrap .a2t-btn-secondary:hover {
  background: var(--a2t-blue-light) !important;
  border-color: rgba(27, 43, 94, 0.2) !important;
}

.a2t-finplan-wrap .a2t-btn-outline-blue {
  background: transparent !important;
  color: var(--a2t-blue) !important;
  border-color: var(--a2t-blue) !important;
}

.a2t-finplan-wrap .a2t-btn-outline-blue:hover {
  background: var(--a2t-blue-light) !important;
  transform: translateY(-1px) !important;
}

.a2t-finplan-wrap .a2t-btn-green {
  background: var(--a2t-teal-light) !important;
  color: var(--a2t-teal) !important;
}

.a2t-finplan-wrap .a2t-btn-green:hover {
  background: var(--a2t-teal) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.a2t-finplan-wrap .a2t-btn-purple {
  background: var(--a2t-purple-light) !important;
  color: var(--a2t-purple) !important;
}

.a2t-finplan-wrap .a2t-btn-purple:hover {
  background: var(--a2t-purple) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.a2t-finplan-wrap .a2t-btn-orange {
  background: var(--a2t-orange-light) !important;
  color: var(--a2t-orange) !important;
}

.a2t-finplan-wrap .a2t-btn-orange:hover {
  background: var(--a2t-orange) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.a2t-finplan-wrap .a2t-btn-full {
  width: 100% !important;
}

/* ── Hero Section ── */
.a2t-finplan-wrap .a2t-hero-section {
  background: linear-gradient(135deg, #F3F6FF 0%, #FFFFFF 100%) !important;
  padding: 30px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--a2t-border) !important;
}

.a2t-finplan-wrap .a2t-hero-content {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 40px !important;
  align-items: center !important;
}

.a2t-finplan-wrap .a2t-hero-tag {
  display: inline-block !important;
  background: var(--a2t-blue-light) !important;
  color: var(--a2t-blue) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  letter-spacing: 1px !important;
  margin-bottom: 10px !important; /* Reduced margin */
  text-transform: uppercase !important;
}

.a2t-finplan-wrap .a2t-hero-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.5px !important;
}

.a2t-finplan-wrap .a2t-hero-desc {
  font-size: 14.5px !important; /* Optimized font size */
  color: var(--a2t-text-muted) !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important; /* Reduced margin */
  max-width: 580px !important;
}

/* Search Box Hero styling */
.a2t-finplan-wrap .a2t-search-wrapper {
  background: var(--a2t-surface) !important;
  border: 1.5px solid var(--a2t-border) !important;
  box-shadow: 0 10px 30px rgba(27, 43, 94, 0.04) !important;
  border-radius: 14px !important;
  padding: 6px !important;
  display: flex !important;
  align-items: center !important;
  max-width: 540px !important;
  margin-bottom: 24px !important;
  transition: var(--a2t-transition) !important;
}

.a2t-finplan-wrap .a2t-search-wrapper:focus-within {
  border-color: var(--a2t-navy) !important;
  box-shadow: 0 12px 40px rgba(27, 43, 94, 0.08) !important;
}

.a2t-finplan-wrap .a2t-search-icon {
  font-size: 18px !important;
  color: var(--a2t-text-light) !important;
  margin: 0 12px !important;
}

.a2t-finplan-wrap .a2t-search-input {
  border: none !important;
  outline: none !important;
  font-size: 15px !important;
  color: var(--a2t-text) !important;
  flex: 1 !important;
  font-family: inherit !important;
  background: transparent !important;
}

.a2t-finplan-wrap .a2t-search-btn {
  padding: 10px 24px !important;
}

/* Shortcuts */
.a2t-finplan-wrap .a2t-popular-shortcuts {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -ms-overflow-style: none !important;  /* IE/Edge */
  scrollbar-width: none !important;     /* Firefox */
  padding-bottom: 2px !important;
  padding-top: 6px !important;
  border-top: 1px solid var(--a2t-border) !important;
  margin-top: -8px !important; /* Closer to search bar */
}

.a2t-finplan-wrap .a2t-popular-shortcuts::-webkit-scrollbar {
  display: none !important;             /* Chrome/Safari */
}

.a2t-finplan-wrap .a2t-popular-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--a2t-text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.a2t-finplan-wrap .a2t-shortcut-tag {
  background: var(--a2t-surface) !important;
  border: 1px solid var(--a2t-border) !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--a2t-text) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: var(--a2t-transition) !important;
}

.a2t-finplan-wrap .a2t-shortcut-tag:hover {
  border-color: var(--a2t-navy) !important;
  background: var(--a2t-surface-alt) !important;
  transform: translateY(-1px) !important;
}

.a2t-finplan-wrap .a2t-popular-shortcuts .a2t-shortcut-tag {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.a2t-finplan-wrap .a2t-popular-shortcuts .a2t-popular-label {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.a2t-finplan-wrap .a2t-hero-visual {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.a2t-finplan-wrap .a2t-hero-illustration-wrapper {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 24px !important;
  padding: 16px !important;
  box-shadow: 0 30px 60px rgba(15, 24, 54, 0.06) !important;
  animation: a2tFloat 6s ease-in-out infinite !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 360px !important; /* Made smaller to save screen height */
  width: 100% !important;
}

.a2t-finplan-wrap .a2t-hero-illustration {
  width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  object-fit: contain !important;
}

@keyframes a2tFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.a2t-finplan-wrap .a2t-graphic-bar {
  height: 8px !important;
  background: var(--a2t-border) !important;
  border-radius: 4px !important;
  margin-bottom: 12px !important;
}

.a2t-finplan-wrap .a2t-graphic-chart {
  display: flex !important;
  align-items: flex-end !important;
  height: 140px !important;
  gap: 10px !important;
  margin: 20px 0 !important;
  border-bottom: 2px solid var(--a2t-border) !important;
  padding-bottom: 4px !important;
}

.a2t-finplan-wrap .a2t-chart-bar {
  flex: 1 !important;
  background: linear-gradient(to top, var(--a2t-navy), var(--a2t-blue)) !important;
  border-radius: 4px 4px 0 0 !important;
  min-height: 20px !important;
}

/* ── Explore Grid Section ── */
.a2t-finplan-wrap .a2t-explore-section {
  padding: 20px 0 40px !important; /* Reduced padding to pull filters up */
}

.a2t-finplan-wrap .a2t-section-header {
  text-align: center !important;
  margin-bottom: 16px !important; /* Reduced margin */
}

.a2t-finplan-wrap .a2t-section-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 24px !important; /* Optimized font size */
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 12px !important; /* Reduced margin */
}

/* Filters */
.a2t-finplan-wrap .a2t-filter-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 16px !important; /* Reduced margin */
}

.a2t-finplan-wrap .a2t-filter-btn {
  background: var(--a2t-surface) !important;
  border: 1px solid var(--a2t-border) !important;
  color: var(--a2t-text-muted) !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--a2t-transition) !important;
  font-family: inherit !important;
}

.a2t-finplan-wrap .a2t-filter-btn:hover {
  border-color: var(--a2t-navy) !important;
  color: var(--a2t-navy) !important;
}

.a2t-finplan-wrap .a2t-filter-btn.active {
  background: var(--a2t-blue) !important;
  color: #fff !important;
  border-color: var(--a2t-blue) !important;
  box-shadow: 0 4px 12px rgba(55, 138, 221, 0.16) !important;
}

/* CSS Grid layout for Cards - centered as in Tool Home page.png */
.a2t-finplan-wrap .a2t-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 40px !important;
}

/* Card Consistency */
.a2t-finplan-wrap .a2t-tool-card {
  background: var(--a2t-surface) !important;
  border: 1px solid #EAEAEA !important;
  border-radius: 16px !important;
  padding: 32px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  transition: var(--a2t-transition) !important;
  position: relative !important;
}

.a2t-finplan-wrap .a2t-tool-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 30px rgba(27, 43, 94, 0.08) !important;
  border-color: rgba(27, 43, 94, 0.15) !important;
}

.a2t-finplan-wrap .a2t-card-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  flex-grow: 1 !important;
}

.a2t-finplan-wrap .a2t-card-text-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-grow: 1 !important;
  width: 100% !important;
}

.a2t-finplan-wrap .a2t-tool-card:hover .a2t-card-icon-wrap {
  transform: scale(1.12) rotate(6deg) !important;
}

.a2t-finplan-wrap .a2t-card-icon-wrap {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  font-size: 26px !important;
  margin-bottom: 18px !important;
  transition: var(--a2t-transition) !important;
}

/* Custom Soft Backgrounds matching the shared UI exactly! */
.a2t-finplan-wrap .a2t-icon-green {
  background: #EBF8F2 !important;
  color: #1AA86B !important;
}
.a2t-finplan-wrap .a2t-icon-blue {
  background: #EEF4FF !important;
  color: #3B82F6 !important;
}
.a2t-finplan-wrap .a2t-icon-purple {
  background: #F3E8FF !important;
  color: #8B5CF6 !important;
}
.a2t-finplan-wrap .a2t-icon-orange {
  background: #FFF7ED !important;
  color: #F97316 !important;
}

.a2t-finplan-wrap .a2t-card-headline {
  font-family: 'Outfit', sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 10px !important;
}

.a2t-finplan-wrap .a2t-card-desc {
  font-size: 13.5px !important;
  color: var(--a2t-text-muted) !important;
  line-height: 1.5 !important;
  height: 3em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  max-width: 240px !important;
}

/* ── Premium Calculator Modal Popup Overlays ── */
.a2t-finplan-wrap .a2t-view-modal {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  z-index: 1 !important;
  display: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.a2t-finplan-wrap .a2t-view-modal.active {
  display: block !important;
}

.a2t-finplan-wrap .a2t-view-modal-backdrop {
  display: none !important;
}

.a2t-finplan-wrap .a2t-view-modal-container {
  position: relative !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow-y: visible !important;
  z-index: 1 !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
}

/* Dashboard Callout Cards System */
.a2t-callout-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
  margin-bottom: 6px !important;
}

.a2t-callout-card {
  background: var(--a2t-surface2) !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.a2t-callout-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--a2t-shadow-sm) !important;
}

.a2t-callout-full {
  grid-column: span 2 !important;
}

.a2t-callout-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--a2t-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 2px !important;
}

.a2t-callout-value {
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--a2t-navy) !important;
}

/* Callout Accent Borders */
.a2t-callout-blue {
  border-left: 4px solid var(--a2t-blue) !important;
}
.a2t-callout-green {
  border-left: 4px solid var(--a2t-green) !important;
}
.a2t-callout-purple {
  border-left: 4px solid var(--a2t-purple) !important;
}
.a2t-callout-orange {
  border-left: 4px solid var(--a2t-orange) !important;
}
.a2t-callout-red {
  border-left: 4px solid var(--a2t-red) !important;
}

.a2t-finplan-wrap .a2t-view-modal.active .a2t-view-modal-container {
  transform: translateY(0) !important;
}

.a2t-finplan-wrap .a2t-view-modal-close {
  position: absolute !important;
  top: 20px !important;
  right: 24px !important;
  background: var(--a2t-surface-alt) !important;
  border: 1px solid var(--a2t-border) !important;
  color: var(--a2t-text-muted) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: var(--a2t-transition) !important;
  z-index: 10 !important;
}

.a2t-finplan-wrap .a2t-view-modal-close:hover {
  background: var(--a2t-red-light) !important;
  color: var(--a2t-red) !important;
  border-color: rgba(226, 75, 74, 0.2) !important;
}

.a2t-finplan-wrap .a2t-view-modal-body {
  padding: 32px !important;
}

/* Ensure chart containers behave responsively inside modals */
.a2t-finplan-wrap .a2t-view-modal-body .a2t-calc-body {
  padding: 0 !important;
}

/* ── Features Bar ── */
.a2t-finplan-wrap .a2t-features-bar {
  background: var(--a2t-surface) !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: var(--a2t-radius) !important;
  padding: 24px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-bottom: 40px !important;
}

.a2t-finplan-wrap .a2t-feature-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.a2t-finplan-wrap .a2t-feature-icon {
  font-size: 20px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--a2t-blue-light) !important;
  color: var(--a2t-blue) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.a2t-finplan-wrap .a2t-feature-text {
  font-size: 12px !important;
  color: var(--a2t-text-light) !important;
}

.a2t-finplan-wrap .a2t-feature-text strong {
  color: var(--a2t-navy) !important;
  font-size: 13px !important;
  display: block !important;
}

/* ── Disclaimer Box ── */
.a2t-finplan-wrap .a2t-disclaimer-box {
  background: var(--a2t-surface-alt) !important;
  border: 1px solid var(--a2t-border) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  font-size: 12.5px !important;
  color: var(--a2t-text-muted) !important;
  line-height: 1.6 !important;
  text-align: left !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.a2t-finplan-wrap .a2t-disclaimer-icon {
  font-size: 18px !important;
  color: var(--a2t-text-light) !important;
  line-height: 1 !important;
}

/* ── Footer ── */
.a2t-finplan-wrap .a2t-footer {
  background: var(--a2t-navy-dark) !important;
  color: #fff !important;
  padding: 24px 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  border-top: 2px solid var(--a2t-accent) !important;
}

.a2t-finplan-wrap .a2t-footer p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ── Individual Calculator Page Layout ── */
.a2t-finplan-wrap .a2t-calc-body {
  padding: 30px 0 50px !important;
}

.a2t-finplan-wrap .a2t-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: var(--a2t-text-light) !important;
  margin-bottom: 20px !important;
}

.a2t-finplan-wrap .a2t-breadcrumb a {
  color: var(--a2t-text-light) !important;
  text-decoration: none !important;
  transition: var(--a2t-transition) !important;
}

.a2t-finplan-wrap .a2t-breadcrumb a:hover {
  color: var(--a2t-blue) !important;
}

.a2t-finplan-wrap .a2t-calc-header-block {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 28px !important;
}

.a2t-finplan-wrap .a2t-calc-title-area {
  max-width: 760px !important;
}

.a2t-finplan-wrap .a2t-calc-main-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 12px !important;
}

.a2t-finplan-wrap .a2t-calc-main-subtitle {
  font-size: 15px !important;
  color: var(--a2t-text-muted) !important;
  line-height: 1.6 !important;
}

/* FY Dropdown */
.a2t-finplan-wrap .a2t-fy-selector-wrapper {
  background: var(--a2t-surface) !important;
  border: 1.5px solid var(--a2t-border) !important;
  padding: 8px 16px;
  border-radius: 10px;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.a2t-finplan-wrap .a2t-fy-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--a2t-text-light);
  text-transform: uppercase;
}

.a2t-finplan-wrap .a2t-fy-select {
  border: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  outline: none !important;
  background: transparent !important;
  cursor: pointer !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
}

/* Sidebar and Main Columns */
.a2t-finplan-wrap .a2t-calc-columns {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 28px !important;
  align-items: flex-start !important;
}

.a2t-finplan-wrap .a2t-sidebar-card {
  background: var(--a2t-surface) !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: var(--a2t-radius) !important;
  box-shadow: var(--a2t-shadow) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

.a2t-finplan-wrap .a2t-sidebar-card:last-child {
  margin-bottom: 0 !important;
}

.a2t-finplan-wrap .a2t-sidebar-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 1px solid var(--a2t-border) !important;
  padding-bottom: 12px !important;
}

.a2t-finplan-wrap .a2t-form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.a2t-finplan-wrap .a2t-form-group {
  margin-bottom: 16px !important;
}

.a2t-finplan-wrap .a2t-form-group:last-child {
  margin-bottom: 0 !important;
}

.a2t-finplan-wrap .a2t-input-label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--a2t-text-muted) !important;
  margin-bottom: 8px !important;
}

.a2t-finplan-wrap .a2t-input-field {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: var(--a2t-text) !important;
  background: var(--a2t-surface-alt) !important;
  font-family: inherit !important;
  outline: none !important;
  transition: var(--a2t-transition) !important;
  margin-bottom: 0 !important;
}

.a2t-finplan-wrap .a2t-input-field:focus {
  border-color: var(--a2t-navy) !important;
  background-color: var(--a2t-surface) !important;
}

/* Regime Switcher */
.a2t-finplan-wrap .a2t-regime-switcher {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.a2t-finplan-wrap .a2t-regime-btn {
  background: var(--a2t-surface) !important;
  border: 2px solid var(--a2t-border) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  cursor: pointer !important;
  transition: var(--a2t-transition) !important;
  text-align: center !important;
}

.a2t-finplan-wrap .a2t-regime-btn:hover {
  border-color: var(--a2t-navy-light) !important;
}

.a2t-finplan-wrap .a2t-regime-btn.active {
  border-color: var(--a2t-blue) !important;
  background: var(--a2t-blue-light) !important;
  box-shadow: 0 4px 14px rgba(55, 138, 221, 0.12) !important;
}

.a2t-finplan-wrap .a2t-regime-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.a2t-finplan-wrap .a2t-regime-desc {
  font-size: 11px !important;
  color: var(--a2t-text-muted) !important;
}

/* Action Buttons */
.a2t-finplan-wrap .a2t-action-row {
  display: flex !important;
  gap: 12px !important;
}

.a2t-finplan-wrap .a2t-action-row .a2t-btn {
  flex: 1 !important;
}

/* Summary Box */
.a2t-finplan-wrap .a2t-summary-box {
  background: var(--a2t-teal-light) !important;
  border: 1.5px solid rgba(29, 158, 117, 0.2) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.a2t-finplan-wrap .a2t-summary-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--a2t-teal) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 4px !important;
}

.a2t-finplan-wrap .a2t-summary-value {
  font-family: 'Outfit', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--a2t-teal) !important;
}

.a2t-finplan-wrap .a2t-summary-subtext {
  font-size: 11px !important;
  color: var(--a2t-text-muted) !important;
  margin-top: 4px !important;
}

.a2t-finplan-wrap .a2t-summary-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.a2t-finplan-wrap .a2t-summary-table tr {
  border-bottom: 1px solid var(--a2t-border) !important;
}

.a2t-finplan-wrap .a2t-summary-table tr:last-child {
  border-bottom: none !important;
}

.a2t-finplan-wrap .a2t-summary-table td {
  padding: 12px 0 !important;
  font-size: 14px !important;
  background: transparent !important;
}

.a2t-finplan-wrap .a2t-summary-table td:first-child {
  color: var(--a2t-text-muted) !important;
}

.a2t-finplan-wrap .a2t-summary-table td:last-child {
  text-align: right !important;
  font-weight: 600 !important;
  color: var(--a2t-navy) !important;
}

.a2t-finplan-wrap .a2t-summary-table tr.a2t-table-highlight td {
  font-weight: 700 !important;
  font-size: 15px !important;
}

.a2t-finplan-wrap .a2t-summary-table tr.a2t-table-highlight td:last-child {
  color: var(--a2t-teal) !important;
}

/* Pie Chart Block */
.a2t-finplan-wrap .a2t-chart-container {
  height: 170px !important;
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.a2t-finplan-wrap .a2t-chart-container.a2t-chart-circular {
  height: 240px !important;
  width: 100% !important;
  max-width: 280px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Expert Teaser */
.a2t-finplan-wrap .a2t-expert-teaser {
  background: linear-gradient(135deg, var(--a2t-navy), var(--a2t-navy-dark)) !important;
  border-radius: var(--a2t-radius) !important;
  padding: 24px !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-shadow: var(--a2t-shadow-lg) !important;
  margin-top: 24px !important;
}

.a2t-finplan-wrap .a2t-expert-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.a2t-finplan-wrap .a2t-expert-icon {
  font-size: 36px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.a2t-finplan-wrap .a2t-expert-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.a2t-finplan-wrap .a2t-expert-desc {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.45 !important;
}

/* ── Admin Dashboard Panel ── */
.a2t-finplan-wrap .a2t-admin-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  align-items: flex-start !important;
  margin-bottom: 40px !important;
}

.a2t-finplan-wrap .a2t-admin-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.a2t-finplan-wrap .a2t-slab-editor-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 16px !important;
}

.a2t-finplan-wrap .a2t-slab-editor-table th, 
.a2t-finplan-wrap .a2t-slab-editor-table td {
  padding: 8px 12px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--a2t-border) !important;
  background: transparent !important;
}

.a2t-finplan-wrap .a2t-slab-editor-table th {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--a2t-text-light) !important;
  text-transform: uppercase !important;
}

.a2t-finplan-wrap .a2t-slab-input {
  width: 100% !important;
  padding: 8px !important;
  border: 1px solid var(--a2t-border) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

.a2t-finplan-wrap .a2t-delete-slab-btn {
  color: var(--a2t-red) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 16px !important;
  padding: 4px !important;
}

.a2t-finplan-wrap .a2t-add-slab-row {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--a2t-blue) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

/* ── Toast Panel ── */
.a2t-finplan-wrap .a2t-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(100px) !important;
  background: var(--a2t-navy) !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: var(--a2t-shadow-lg) !important;
  opacity: 0 !important;
  z-index: 10000 !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  pointer-events: none !important;
}

.a2t-finplan-wrap .a2t-toast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ── SPA Views display controls ── */
.a2t-finplan-wrap .a2t-view {
  display: none !important;
}
.a2t-finplan-wrap .a2t-view.active {
  display: block !important;
  animation: a2tFadeIn 0.3s ease-out !important;
}
@keyframes a2tFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────────────────
   ── Responsive Media Queries ──
   ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .a2t-finplan-wrap .a2t-hero-title {
    font-size: 36px !important;
  }
}

@media (max-width: 992px) {
  .a2t-finplan-wrap .a2t-hero-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .a2t-finplan-wrap .a2t-hero-desc {
    margin: 0 auto 28px !important;
  }
  .a2t-finplan-wrap .a2t-search-wrapper {
    margin: 0 auto 24px !important;
  }
  .a2t-finplan-wrap .a2t-popular-shortcuts {
    justify-content: flex-start !important;
  }
  .a2t-finplan-wrap .a2t-hero-visual {
    display: none !important;
  }
  .a2t-finplan-wrap .a2t-calc-columns, 
  .a2t-finplan-wrap .a2t-admin-grid {
    grid-template-columns: 1fr !important;
  }
  .a2t-finplan-wrap .a2t-features-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .a2t-finplan-wrap .a2t-header {
    height: 70px !important;
  }
  .a2t-finplan-wrap .a2t-logo-img {
    height: 50px !important;
  }
  .a2t-finplan-wrap .a2t-header-quick-links {
    display: none !important;
  }
  .a2t-finplan-wrap .a2t-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
  }
  
  .a2t-finplan-wrap .a2t-tool-card {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    padding: 24px !important;
  }
  
  .a2t-finplan-wrap .a2t-card-header {
    display: grid !important;
    grid-template-columns: 56px 1fr !important;
    gap: 16px !important;
    align-items: center !important;
    text-align: left !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }
  
  .a2t-finplan-wrap .a2t-card-icon-wrap {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 0 !important;
  }
  
  .a2t-finplan-wrap .a2t-card-headline {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }
  
  .a2t-finplan-wrap .a2t-card-desc {
    font-size: 13px !important;
    max-width: 100% !important;
  }

  .a2t-finplan-wrap .a2t-card-text-block {
    align-items: flex-start !important;
    text-align: left !important;
  }
  
  .a2t-finplan-wrap .a2t-nav-menu {
    display: none !important;
  }
  
  .a2t-finplan-wrap .a2t-mobile-menu-toggle {
    display: flex !important;
  }

  .a2t-finplan-wrap .a2t-header-cta {
    display: none !important;
  }

  .a2t-finplan-wrap .a2t-hero-section {
    padding: 30px 0 !important;
  }

  .a2t-finplan-wrap .a2t-hero-title {
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
  }

  .a2t-finplan-wrap .a2t-btn {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  .a2t-finplan-wrap .a2t-shortcut-tag {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .a2t-finplan-wrap .a2t-features-bar {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .a2t-finplan-wrap .a2t-section-title {
    font-size: 24px !important;
  }

  .a2t-finplan-wrap .a2t-form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  
  .a2t-finplan-wrap .a2t-calc-header-block {
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .a2t-finplan-wrap .a2t-fy-selector-wrapper {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .a2t-finplan-wrap .a2t-action-row {
    flex-direction: column !important;
  }

  .a2t-finplan-wrap .a2t-expert-teaser {
    flex-direction: column !important;
    text-align: center !important;
  }

  .a2t-finplan-wrap .a2t-expert-left {
    flex-direction: column !important;
  }

  .a2t-finplan-wrap .a2t-view-modal-body {
    padding: 16px !important;
  }
  .a2t-finplan-wrap .a2t-view-modal-close {
    top: 12px !important;
    right: 16px !important;
  }
  .a2t-finplan-wrap .a2t-view-modal-container {
    max-height: 96vh !important;
  }
}

/* ──────────────────────────────────────────
   RANGE SLIDER (SLICER) CUSTOM PREMIUM STYLES
   ────────────────────────────────────────── */
.a2t-finplan-wrap .a2t-range-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 9px !important;
  border-radius: 6px !important;
  background: var(--a2t-border);
  outline: none !important;
  margin: 12px 0 6px 0 !important;
  padding: 0 !important;
  transition: opacity 0.2s !important;
  cursor: pointer !important;
}

.a2t-finplan-wrap .a2t-range-slider::-webkit-slider-runnable-track {
  width: 100% !important;
  height: 9px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
}

.a2t-finplan-wrap .a2t-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--a2t-navy) !important;
  cursor: pointer !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(27, 43, 94, 0.15) !important;
  margin-top: -4.5px !important; /* Centering for 9px track */
  transition: transform 0.15s ease, background-color 0.2s !important;
}

.a2t-finplan-wrap .a2t-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2) !important;
  background: var(--a2t-blue) !important;
}

.a2t-finplan-wrap .a2t-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.3) !important;
  background: var(--a2t-accent) !important;
}

.a2t-finplan-wrap .a2t-range-slider::-moz-range-track {
  width: 100% !important;
  height: 9px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
}

.a2t-finplan-wrap .a2t-range-slider::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: var(--a2t-navy) !important;
  cursor: pointer !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(27, 43, 94, 0.15) !important;
  transition: transform 0.15s ease, background-color 0.2s !important;
}

.a2t-finplan-wrap .a2t-range-slider::-moz-range-thumb:hover {
  transform: scale(1.2) !important;
  background: var(--a2t-blue) !important;
}

.a2t-finplan-wrap .a2t-range-slider::-moz-range-thumb:active {
  transform: scale(1.3) !important;
  background: var(--a2t-accent) !important;
}

/* ==========================================================================
   AUTO-HIDE REDUNDANT WORDPRESS THEME PAGE TITLES
   Hides the theme's giant 'Financial Tools' header if our toolkit is on page.
   Defensively excludes the active Elementor editor workspace from being hidden.
   ========================================================================== */
body:not(.elementor-editor-active):has(.a2t-finplan-wrap) .entry-header,
body:not(.elementor-editor-active):has(.a2t-finplan-wrap) .ast-archive-description {
  display: none !important;
}

/* Injected Subpage Header Styling */
.a2t-finplan-wrap .a2t-subpage-nav-header {
  margin-bottom: 24px !important;
  width: 100% !important;
}
.a2t-finplan-wrap .a2t-subpage-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
}
.a2t-finplan-wrap .a2t-popular-bar-header {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--a2t-text-muted) !important;
}
.a2t-finplan-wrap .a2t-nav-shortcut-link {
  color: var(--a2t-blue) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  margin: 0 4px !important;
}
.a2t-finplan-wrap .a2t-nav-shortcut-link:hover {
  text-decoration: underline !important;
}
.a2t-finplan-wrap .a2t-group-navigation-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 10px 16px !important;
  background: var(--a2t-surface-alt) !important;
  border: 1px solid var(--a2t-border) !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
}
.a2t-finplan-wrap .a2t-group-navigation-bar span {
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
}
.a2t-finplan-wrap .a2t-group-link {
  color: var(--a2t-text-muted) !important;
  text-decoration: none !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: var(--a2t-transition) !important;
}
.a2t-finplan-wrap .a2t-group-link:hover {
  color: var(--a2t-navy) !important;
  background: rgba(27, 43, 94, 0.05) !important;
}
.a2t-finplan-wrap .a2t-group-link.active {
  color: #fff !important;
  background: var(--a2t-navy) !important;
  font-weight: 600 !important;
}
.a2t-finplan-wrap .a2t-back-btn {
  padding: 10px 22px !important;
  font-size: 13px !important;
  border-radius: 50px !important;
  background: linear-gradient(135deg, #378ADD, #1B2B5E) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(27, 43, 94, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
}
.a2t-finplan-wrap .a2t-back-btn:hover {
  background: linear-gradient(135deg, #1B2B5E, #131E43) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(55, 138, 221, 0.3) !important;
  color: #ffffff !important;
}

/* Scrollable Amortization/Investment Tables styling (shows exactly 15 rows) */
.a2t-finplan-wrap .a2t-table-scroll-container {
  max-height: 610px !important; /* Header (40px) + 15 rows (38px * 15 = 570px) = 610px */
  overflow-y: auto !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: 12px !important;
  background: var(--a2t-surface) !important;
  box-shadow: 0 4px 12px rgba(27, 43, 94, 0.02) !important;
}
.a2t-finplan-wrap .a2t-table-scroll-container table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}
.a2t-finplan-wrap .a2t-table-scroll-container th {
  position: sticky !important;
  top: 0 !important;
  background: var(--a2t-surface-alt) !important;
  height: 40px !important;
  z-index: 2 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: var(--a2t-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid var(--a2t-border) !important;
  padding: 8px 12px !important;
  text-align: left !important;
}
.a2t-finplan-wrap .a2t-table-scroll-container td {
  height: 38px !important;
  padding: 6px 12px !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid var(--a2t-border) !important;
  color: var(--a2t-text) !important;
  white-space: nowrap !important;
}
.a2t-finplan-wrap .a2t-table-scroll-container tr:last-child td {
  border-bottom: none !important;
}
.a2t-finplan-wrap .a2t-table-scroll-container tr:hover td {
  background: var(--a2t-surface-alt) !important;
}

/* Feedback Form Modal Overlay Styling */
.a2t-feedback-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 24, 54, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  display: none; /* Managed by JS inline display flex/none */
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}
.a2t-feedback-modal-content {
  background: var(--a2t-surface) !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: var(--a2t-radius) !important;
  width: 90% !important;
  max-width: 480px !important;
  padding: 28px !important;
  box-shadow: 0 24px 64px rgba(15, 24, 54, 0.18) !important;
  position: relative !important;
  animation: a2tFeedbackOpen 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15) !important;
}
@keyframes a2tFeedbackOpen {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.a2t-feedback-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  background: var(--a2t-surface-alt) !important;
  border: 1px solid var(--a2t-border) !important;
  color: var(--a2t-text-muted) !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  cursor: pointer !important;
}
.a2t-feedback-modal-close:hover {
  background: var(--a2t-red-light) !important;
  color: var(--a2t-red) !important;
}
.a2t-star-rating {
  display: flex !important;
  gap: 8px !important;
  font-size: 24px !important;
  color: var(--a2t-text-light) !important;
  margin: 10px 0 20px 0 !important;
  justify-content: center !important;
}
.a2t-star-rating span {
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}
.a2t-star-rating span.active,
.a2t-star-rating span:hover {
  color: var(--a2t-accent) !important;
}
.a2t-captcha-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
}
.a2t-captcha-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--a2t-navy) !important;
}
.a2t-captcha-input {
  width: 100px !important;
}

/* ── PRINT MEDIA RULES (@media print) FOR PDF EXPORT ── */
@media print {
  /* Hide interactive, styling, and navigation structures */
  .a2t-finplan-wrap .a2t-header,
  .a2t-finplan-wrap .a2t-hero-section,
  .a2t-finplan-wrap .a2t-explore-section,
  .a2t-finplan-wrap .a2t-features-bar,
  .a2t-finplan-wrap .a2t-gov-portals-section,
  .a2t-finplan-wrap .a2t-footer,
  .a2t-finplan-wrap .a2t-subpage-nav-header,
  .a2t-finplan-wrap .a2t-left-inputs,
  .a2t-finplan-wrap .a2t-action-row,
  .a2t-finplan-wrap .a2t-view-modal-close,
  .a2t-finplan-wrap .a2t-view-modal-backdrop,
  .a2t-finplan-wrap .a2t-expert-teaser,
  .a2t-finplan-wrap .a2t-btn,
  .a2t-finplan-wrap .a2t-disclaimer-box,
  #a2t-feedback-modal {
    display: none !important;
  }
  
  /* Reset body and container backgrounds for maximum clarity */
  body, .a2t-finplan-wrap {
    background: #fff !important;
    font-size: 12pt !important;
  }

  .a2t-finplan-wrap .a2t-view.active {
    display: block !important;
  }

  .a2t-finplan-wrap .a2t-calc-body {
    padding: 0 !important;
  }

  /* Force grid outputs full width */
  .a2t-finplan-wrap .a2t-calc-columns {
    display: block !important;
  }

  .a2t-finplan-wrap .a2t-right-outputs {
    width: 100% !important;
  }

  /* Make tables show all rows without scrolling */
  .a2t-finplan-wrap .a2t-table-scroll-container {
    max-height: none !important;
    overflow-y: visible !important;
    border: none !important;
    box-shadow: none !important;
  }

  .a2t-finplan-wrap .a2t-table-scroll-container th {
    position: relative !important;
    background: #f0f0f0 !important;
    color: #000 !important;
  }
}

/* ── Permanent Right Sidebar Banner ── */
.a2t-finplan-wrap .a2t-explore-layout {
  display: flex !important;
  gap: 24px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.a2t-finplan-wrap .a2t-explore-main {
  flex: 1 !important;
  min-width: 0 !important;
}

.a2t-finplan-wrap .a2t-right-sidebar {
  width: 300px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

@media (max-width: 992px) {
  .a2t-finplan-wrap .a2t-explore-layout {
    flex-direction: column !important;
  }
  .a2t-finplan-wrap .a2t-right-sidebar {
    width: 100% !important;
  }
}

/* ── Currency Select Dropdown ── */
.a2t-finplan-wrap .a2t-currency-dropdown-container {
  position: relative !important;
  display: inline-block !important;
}
.a2t-finplan-wrap .a2t-currency-select {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy) !important;
  background: var(--a2t-surface2) !important;
  border: 1.5px solid var(--a2t-border) !important;
  padding: 6px 28px 6px 12px !important;
  border-radius: 8px !important;
  outline: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: all 0.2s !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2B5E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px !important;
}
.a2t-finplan-wrap .a2t-currency-select:hover, 
.a2t-finplan-wrap .a2t-currency-select:focus {
  border-color: var(--a2t-navy) !important;
  background-color: var(--a2t-blue-light) !important;
}

/* Custom Segmented Selection Control */
.a2t-finplan-wrap .a2t-segmented-control {
  display: flex !important;
  background: var(--a2t-surface-alt, #f8fafc) !important;
  border: 1.5px solid var(--a2t-border, #e2e8f0) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  height: 42px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.a2t-finplan-wrap .a2t-segment-btn {
  flex: 1 !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  color: var(--a2t-text-muted, #64748b) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border-radius: 7px !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  outline: none !important;
}

.a2t-finplan-wrap .a2t-segment-btn:hover {
  color: var(--a2t-navy) !important;
}

.a2t-finplan-wrap .a2t-segment-btn.active {
  background: var(--a2t-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(55, 138, 221, 0.2) !important;
}

/* ── Premium Modal Backdrops ── */
.a2t-modal-backdrop {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  background: rgba(15, 26, 60, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}
.a2t-modal {
  background: var(--a2t-surface);
  border-radius: 20px;
  border: 1.5px solid var(--a2t-border);
  box-shadow: var(--a2t-shadow-lg);
  padding: 32px 28px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: a2tModalZoom 0.25s ease-out;
}
.a2t-modal-premium {
  background: linear-gradient(145deg, var(--a2t-navy-dark), var(--a2t-navy)) !important;
  color: #fff !important;
  border: 2px solid var(--a2t-accent) !important;
  box-shadow: 0 15px 45px rgba(239, 159, 39, 0.25) !important;
}
.a2t-modal-premium .a2t-modal-title {
  color: var(--a2t-accent) !important;
}
.a2t-modal-premium .a2t-modal-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}
@keyframes a2tModalZoom { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.a2t-modal-icon { font-size: 42px; margin-bottom: 16px; }
.a2t-modal-title { font-size: 18px; font-weight: 800; color: var(--a2t-navy); margin-bottom: 12px; font-family: 'Outfit', sans-serif; }
.a2t-modal-desc { font-size: 13px; color: var(--a2t-text2); line-height: 1.7; margin-bottom: 24px; }

/* ── Active Period Toggle Button ── */
.a2t-finplan-wrap .a2t-btn-secondary.active {
  background: var(--a2t-blue) !important;
  color: #ffffff !important;
  border-color: var(--a2t-blue) !important;
}

/* ── Floating Action Button for Standard Calculator ── */
.a2t-calc-fab {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: var(--a2t-navy) !important;
  color: #fff !important;
  border: 2px solid var(--a2t-accent) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  transition: transform 0.2s, background-color 0.2s !important;
}
.a2t-calc-fab:hover {
  transform: scale(1.08) !important;
  background: var(--a2t-navy-dark) !important;
}

/* Appended Tab Styles */
.a2t-finplan-wrap .a2t-tab-bar {
  display: flex !important;
  gap: 4px !important;
  background: var(--a2t-surface2) !important;
  border: 1.5px solid var(--a2t-border) !important;
  border-radius: 12px !important;
  padding: 4px !important;
  margin-bottom: 24px !important;
  width: fit-content !important;
}
.a2t-finplan-wrap .a2t-tab-btn {
  padding: 8px 18px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--a2t-text3) !important;
  background: none !important;
  font-family: inherit !important;
  transition: all 0.2s !important;
}
.a2t-finplan-wrap .a2t-tab-btn.active {
  background: var(--a2t-blue-light) !important;
  color: var(--a2t-blue) !important;
  border: 1.5px solid var(--a2t-blue) !important;
  box-shadow: 0 2px 6px rgba(55, 138, 221, 0.08) !important;
}

/* Modal standard calculator tab styles */
.a2t-feedback-modal-content .a2t-tab-bar {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}
.a2t-feedback-modal-content .a2t-tab-btn {
  color: rgba(255, 255, 255, 0.7) !important;
}
.a2t-feedback-modal-content .a2t-tab-btn.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ── Back Button: hidden on home, shown in calculator views ── */
.a2t-finplan-wrap #a2t-header-back-btn {
  display: none !important;
}
.a2t-finplan-wrap #a2t-header-back-btn.a2t-show-back {
  display: inline-flex !important;
}

/* ── Standard Calculator Keys: Square & Larger ── */
.a2t-calc-btn {
  width: 100% !important;
  height: 58px !important;
  min-width: 0 !important;
  aspect-ratio: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  font-family: 'Outfit', 'SF Pro Rounded', sans-serif !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  color: #ffffff !important;
  background: #3A3A4A !important;
  transition: background 0.12s ease, transform 0.08s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.a2t-calc-btn:hover {
  background: #4A4A5A !important;
}

.a2t-calc-btn:active {
  transform: scale(0.93) !important;
  background: #555566 !important;
}

/* Action keys (AC, ±, %) — lighter grey */
.a2t-calc-btn.a2t-calc-btn-action {
  background: #636373 !important;
  color: #000000 !important;
}
.a2t-calc-btn.a2t-calc-btn-action:hover {
  background: #737383 !important;
}

/* Operator keys (÷ × − +) — orange accent */
.a2t-calc-btn.a2t-calc-btn-op {
  background: var(--a2t-orange, #F59E0B) !important;
  color: #ffffff !important;
}
.a2t-calc-btn.a2t-calc-btn-op:hover {
  background: #FBBF24 !important;
}

/* = key and 0 key (inline styled) inherit shape */
/* = key and 0 key (inline styled) inherit shape */
.a2t-calc-btn[data-val="0"] {
  justify-content: flex-start !important;
  padding-left: 24px !important;
}

/* ── Homepage Hero Cards & Styling ── */
.a2t-hero-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-top: 28px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  .a2t-hero-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 575px) {
  .a2t-hero-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

.a2t-hero-card {
  background: var(--a2t-surface, #ffffff) !important;
  border: 1.5px solid var(--a2t-border, #E5E7EB) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.a2t-hero-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.05) !important;
  border-color: var(--a2t-blue, #378ADD) !important;
}

.a2t-hero-card-icon {
  font-size: 24px !important;
  margin-bottom: 4px !important;
}

.a2t-hero-card-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy, #1E3A8A) !important;
  margin: 0 !important;
}

.a2t-hero-card-desc {
  font-size: 12px !important;
  color: var(--a2t-text-muted, #6B7280) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ── Bottom 70/30 Columns Layout ── */
.a2t-details-row {
  display: flex !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin-top: 20px !important;
}

.a2t-details-left-70 {
  flex: 2.3 !important;
  min-width: 320px !important;
  max-width: 100% !important;
}

.a2t-details-right-30 {
  flex: 1 !important;
  min-width: 280px !important;
  max-width: 100% !important;
}

/* ── FAQ Dropdown Accordion Styling ── */
.a2t-faq-accordion {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

.a2t-faq-details {
  background: var(--a2t-surface, #ffffff) !important;
  border: 1.5px solid var(--a2t-border, #E5E7EB) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  list-style: none !important;
}

.a2t-faq-details[open] {
  border-color: var(--a2t-blue, #378ADD) !important;
  box-shadow: 0 4px 6px -1px rgba(55, 138, 221, 0.1) !important;
}

.a2t-faq-summary {
  padding: 14px 18px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--a2t-navy, #1E3A8A) !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  user-select: none !important;
  background: transparent !important;
  transition: background-color 0.2s ease !important;
}

.a2t-faq-summary:hover {
  background-color: var(--a2t-surface-alt, #F9FAFB) !important;
}

.a2t-faq-summary::-webkit-details-marker {
  display: none !important;
}

.a2t-faq-arrow {
  font-size: 10px !important;
  color: var(--a2t-blue, #378ADD) !important;
  transition: transform 0.2s ease !important;
  display: inline-block !important;
}

.a2t-faq-details[open] .a2t-faq-arrow {
  transform: rotate(180deg) !important;
}

.a2t-faq-content {
  padding: 0 18px 16px 18px !important;
  font-size: 13px !important;
  color: var(--a2t-text-muted, #4B5563) !important;
  line-height: 1.6 !important;
  border-top: 1px dashed var(--a2t-border, #E5E7EB) !important;
  padding-top: 12px !important;
  background: var(--a2t-surface-alt, #F9FAFB) !important;
}

/* ── Floating Back-to-Top Button ── */
.a2t-back-top-btn {
  position: fixed !important;
  bottom: 92px !important;
  right: 30px !important;
  z-index: 99998 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--a2t-navy, #0f172a) !important;
  color: #ffffff !important;
  border: 1px solid var(--a2t-accent, #10b981) !important;
  cursor: pointer !important;
  display: none !important;
  font-size: 20px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
  transition: all 0.2s ease !important;
  align-items: center !important;
  justify-content: center !important;
}
.a2t-back-top-btn.visible {
  display: flex !important;
}
.a2t-back-top-btn:hover {
  transform: translateY(-2px) !important;
  background: var(--a2t-teal, #0d9488) !important;
  color: #ffffff !important;
}



