/*
 * 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: 70px !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-logo-link {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.a2t-finplan-wrap .a2t-logo-img {
  height: 50px !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; /* Made compact to pull content up */
  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; /* Optimized font size */
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--a2t-navy) !important;
  margin-bottom: 12px !important; /* Reduced margin */
  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: 16px !important; /* Optimized margin */
  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: wrap !important;
}

.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-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-navy) !important;
  color: #fff !important;
  border-color: var(--a2t-navy) !important;
  box-shadow: 0 4px 12px rgba(27, 43, 94, 0.12) !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(280px, 1fr)) !important;
  gap: 28px !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: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important; /* Extremely high to overlay any WordPress templates! */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

.a2t-finplan-wrap .a2t-view-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.a2t-finplan-wrap .a2t-view-modal-backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 24, 54, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 1 !important;
}

.a2t-finplan-wrap .a2t-view-modal-container {
  position: relative !important;
  background: var(--a2t-surface) !important;
  border-radius: 20px !important;
  width: 95% !important;
  max-width: 1300px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  z-index: 2 !important;
  box-shadow: 0 24px 64px rgba(15, 24, 54, 0.16) !important;
  border: 1.5px solid var(--a2t-border) !important;
  transform: translateY(30px) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !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-teal) !important;
  background: var(--a2t-teal-light) !important;
  box-shadow: 0 4px 14px rgba(29, 158, 117, 0.08) !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 {
  width: 170px !important;
  height: 170px !important;
  margin: 0 auto !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: center !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-tools-grid {
    grid-template-columns: 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: 40px 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: 6px !important;
  border-radius: 4px !important;
  background: var(--a2t-border) !important;
  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: 6px !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: -6px !important; /* Centering */
  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: 6px !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;
}

