/* ==========================================================================
   SINGULOGI – WEALTH MANAGEMENT OF THE FUTURE
   Modern Master Design System & Styling
   Exact Brand Colors: #1a3932, #118d5e, #c3f53c, #ffffff
   ========================================================================== */

:root {
  /* Brand Manual Color Palette */
  --primary-dark: #1a3932;
  --primary-dark-rgb: 26, 57, 50;
  --primary-darker: #0c1f1a;
  --primary-emerald: #118d5e;
  --primary-emerald-rgb: 17, 141, 94;
  --primary-emerald-light: #16a36d;
  --accent-lime: #c3f53c;
  --accent-lime-rgb: 195, 245, 60;
  --accent-lime-hover: #b4ea2a;
  --pure-white: #ffffff;
  
  /* Background & Surface Colors */
  --bg-body: #f7faf8;
  --bg-card: #ffffff;
  --bg-card-dark: #142f29;
  --bg-subtle: #edf5f0;
  --bg-dark-section: #102621;
  --bg-glass-dark: rgba(26, 57, 50, 0.85);
  --bg-glass-light: rgba(255, 255, 255, 0.9);

  /* Typography Colors */
  --text-dark: #122822;
  --text-muted: #556e66;
  --text-light: #f1f8f4;
  --text-light-muted: #9eb8af;
  
  /* Borders & Shadows */
  --border-light: rgba(26, 57, 50, 0.12);
  --border-dark: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(195, 245, 60, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(26, 57, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 57, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 57, 50, 0.12);
  --shadow-glow: 0 0 25px rgba(195, 245, 60, 0.25);
  --shadow-dark: 0 20px 45px rgba(0, 0, 0, 0.35);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Brand Background Segment Watermarks */
.brand-bg-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.12;
}

.brand-segment-pill {
  position: absolute;
  border-radius: var(--radius-full);
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-dark));
}

/* Containers & Grid */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.container-narrow {
  max-width: 960px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--text-muted); font-size: 1.05rem; }

.text-white { color: var(--pure-white) !important; }
.text-lime { color: var(--accent-lime) !important; }
.text-emerald { color: var(--primary-emerald) !important; }
.text-muted-light { color: var(--text-light-muted) !important; }
.text-center { text-align: center; }

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-lime {
  background-color: rgba(195, 245, 60, 0.18);
  color: #1a3932;
  border: 1px solid rgba(195, 245, 60, 0.4);
}

.badge-dark-lime {
  background-color: rgba(195, 245, 60, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(195, 245, 60, 0.3);
}

.badge-emerald {
  background-color: rgba(17, 141, 94, 0.12);
  color: var(--primary-emerald);
  border: 1px solid rgba(17, 141, 94, 0.25);
}

.badge-coral {
  background-color: rgba(252, 129, 129, 0.15);
  color: #fc8181;
  border: 1px solid rgba(252, 129, 129, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-lime);
  color: var(--primary-darker);
  box-shadow: 0 4px 18px rgba(195, 245, 60, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(195, 245, 60, 0.45);
}

.btn-emerald {
  background-color: var(--primary-emerald);
  color: var(--pure-white);
  box-shadow: 0 4px 16px rgba(17, 141, 94, 0.3);
}

.btn-emerald:hover {
  background-color: var(--primary-emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17, 141, 94, 0.4);
}

.btn-dark {
  background-color: var(--primary-dark);
  color: var(--pure-white);
}

.btn-dark:hover {
  background-color: var(--primary-darker);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--pure-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--pure-white);
  color: var(--accent-lime);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--primary-dark);
  border-color: rgba(26, 57, 50, 0.3);
}

.btn-outline-dark:hover {
  background-color: var(--primary-dark);
  color: var(--pure-white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(26, 57, 50, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(12, 31, 26, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(195, 245, 60, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-light-muted);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-lime);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-lime);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--pure-white);
  font-size: 1.7rem;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  background-color: var(--primary-darker);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  border-bottom: 2px solid var(--accent-lime);
  box-shadow: var(--shadow-dark);
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.15rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(145deg, #0c1f1a 0%, #1a3932 60%, #114237 100%);
  padding: 160px 0 100px 0;
  overflow: hidden;
  color: var(--pure-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  margin-bottom: 20px;
}

.hero-title {
  color: var(--pure-white);
  margin-bottom: 24px;
  line-height: 1.12;
}

.hero-title span.highlight {
  color: var(--accent-lime);
  position: relative;
  display: inline-block;
}

.hero-description {
  color: var(--text-light-muted);
  font-size: 1.18rem;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item h4 {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--accent-lime);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-light-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Hero Quick Interactive Card */
.hero-card {
  background: rgba(20, 47, 41, 0.7);
  border: 1px solid rgba(195, 245, 60, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-dark), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--accent-lime);
  transform: rotate(-45deg);
  opacity: 0.18;
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Sections Global */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark-section);
  color: var(--pure-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--pure-white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px auto;
}

.section-header .badge {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 18px;
}

.section-header p {
  font-size: 1.15rem;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Service Card */
.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-lg);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-emerald), var(--accent-lime));
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary-emerald);
  color: var(--pure-white);
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-emerald);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 12px;
}

/* Feature Comparison Table / Card */
.comparison-box {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 24px 32px;
  background-color: var(--primary-dark);
  color: var(--pure-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.comparison-header div:nth-child(3) {
  color: var(--accent-lime);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  font-size: 0.98rem;
}

.comparison-row:nth-child(even) {
  background-color: #fafcfb;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-feature {
  font-weight: 600;
  color: var(--primary-dark);
}

.comparison-bad {
  color: #c93b3b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comparison-good {
  color: var(--primary-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   INTERACTIVE CALCULATORS SUITE
   ========================================================================== */

.calculator-wrapper {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-nav-control-bar {
  background: #102621;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-nav-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pure-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
  font-weight: 800;
  user-select: none;
}

.calc-scroll-btn:hover {
  background: var(--accent-lime);
  color: var(--primary-dark);
  border-color: var(--accent-lime);
  transform: scale(1.05);
}

.calc-tabs-nav {
  display: flex;
  background-color: var(--primary-dark);
  padding: 10px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(195, 245, 60, 0.4) transparent;
  scroll-behavior: smooth;
}

.calc-tabs-nav::-webkit-scrollbar {
  height: 4px;
}

.calc-tabs-nav::-webkit-scrollbar-thumb {
  background: var(--accent-lime);
  border-radius: 4px;
}

.calc-tab-btn {
  flex: 1;
  min-width: 170px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-light-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-tab-btn:hover {
  color: var(--pure-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.calc-tab-btn.active {
  background-color: var(--primary-emerald);
  color: var(--pure-white);
  box-shadow: 0 4px 14px rgba(17, 141, 94, 0.4);
}

.calc-tab-btn.active.lime-accent {
  background-color: var(--accent-lime);
  color: var(--primary-darker);
}

.calc-panel {
  display: none;
  padding: 40px;
}

.calc-panel.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* Calculator Inputs */
.calc-input-group {
  margin-bottom: 24px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.calc-value-display {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-emerald);
  background-color: var(--bg-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Range Slider Styling */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #dbe7e1;
  outline: none;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary-emerald);
  border: 3px solid var(--pure-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-lime);
  box-shadow: 0 0 10px rgba(195, 245, 60, 0.6);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary-emerald);
  border: 3px solid var(--pure-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.calc-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Calculator Segment Options / Buttons */
.strategy-pills {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.strategy-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.strategy-btn:hover {
  background: #dfece6;
}

.strategy-btn.active {
  background: var(--primary-dark);
  color: var(--accent-lime);
  border-color: var(--primary-dark);
}

/* Calculator Result Card */
.calc-results-card {
  background: linear-gradient(145deg, #102621 0%, #1a3932 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--pure-white);
  border: 1px solid rgba(195, 245, 60, 0.25);
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.calc-results-card::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--accent-lime);
  transform: rotate(-45deg);
  opacity: 0.12;
  pointer-events: none;
}

.calc-result-main {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-result-main .result-label {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.calc-result-main .result-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-lime);
  line-height: 1.1;
}

.calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.calc-breakdown-item span:first-child {
  color: var(--text-light-muted);
}

.calc-breakdown-item span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--pure-white);
}

.calc-chart-container {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 190px;
  position: relative;
}

.calc-chart-canvas {
  width: 100%;
  height: 100%;
}

/* Prepayment Savings Badge */
.savings-highlight-box {
  background: rgba(195, 245, 60, 0.12);
  border: 1px solid rgba(195, 245, 60, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.savings-highlight-box h4 {
  font-size: 0.9rem;
  color: var(--accent-lime);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.savings-highlight-box .savings-amount {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pure-white);
}

/* ==========================================================================
   PARTNERS, REVIEWS, TEAM & CONTACT
   ========================================================================== */

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

.partner-logo-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.1rem;
  text-align: center;
  transition: var(--transition);
  min-height: 85px;
  box-shadow: var(--shadow-sm);
}

.partner-logo-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-md);
  color: var(--primary-emerald);
}

/* Team Grid */
.team-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-emerald);
}

.team-photo-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-badge-pos {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.team-info {
  padding: 24px;
}

.team-info h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary-emerald);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.team-desc {
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.team-socials {
  display: flex;
  gap: 12px;
}

.team-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.team-social-link:hover {
  background-color: var(--primary-emerald);
  color: var(--pure-white);
}

/* Contact & Consultation Form */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: linear-gradient(145deg, #102621 0%, #1a3932 100%);
  border-radius: var(--radius-xl);
  padding: 44px;
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--accent-lime);
  transform: rotate(-45deg);
  opacity: 0.15;
}

.contact-info-card h3 {
  color: var(--pure-white);
  margin-bottom: 18px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(195, 245, 60, 0.15);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text h5 {
  color: var(--pure-white);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text p {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-item-text a:hover {
  color: var(--accent-lime);
}

.social-links-bar {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--pure-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-lime);
  color: var(--primary-darker);
  border-color: var(--accent-lime);
}

/* Contact Form */
.contact-form-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-body);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-emerald);
  background-color: var(--pure-white);
  box-shadow: 0 0 0 4px rgba(17, 141, 94, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background-color: var(--primary-darker);
  color: var(--text-light-muted);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-top: 18px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--pure-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--accent-lime);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-lime);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* Floating Quick Action CTA */
.floating-advisor-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  background-color: var(--accent-lime);
  color: var(--primary-darker);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  transition: var(--transition);
}

.floating-advisor-btn:hover {
  transform: translateY(-4px) scale(1.03);
  background-color: var(--pure-white);
}

/* Success Modal / Toast */
.form-success-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: var(--pure-white);
  border: 1px solid var(--accent-lime);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dark);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}

.form-success-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 130px 0 60px 0;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .calc-panel {
    padding: 24px 18px;
  }
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .contact-section-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .floating-advisor-btn span {
    display: none;
  }
  .floating-advisor-btn {
    padding: 14px;
    border-radius: var(--radius-full);
  }
}

/* ==========================================================================
   EVENT CARDS & TEAMBUILDING GALLERY
   ========================================================================== */
.event-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-lg);
}

.event-photo-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #102621 0%, #1a3932 60%, #118d5e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.event-photo-placeholder::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 45px;
  border-radius: var(--radius-full);
  background: var(--accent-lime);
  transform: rotate(-45deg);
  opacity: 0.2;
}

.event-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(195, 245, 60, 0.15);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.event-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary-emerald);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CAREER & HIRING STYLES
   ========================================================================== */
.career-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(195, 245, 60, 0.15);
  border: 1px solid rgba(195, 245, 60, 0.35);
  color: var(--accent-lime);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.perk-box {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.perk-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-md);
}

.job-position-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.job-position-card:hover {
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

/* ==========================================================================
   PROCESS TIMELINE (4 KROKY SPOLUPRÁCE)
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.process-step-card {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.process-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-md);
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid var(--accent-lime);
}

@media (max-width: 992px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INTERACTIVE QUIZ & HEALTH SCORE WIDGETS
   ========================================================================== */
.quiz-container {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.quiz-question-title {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-option-btn {
  background: var(--bg-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-option-btn:hover {
  border-color: var(--secondary-emerald);
  background: rgba(17, 141, 94, 0.05);
}

.quiz-option-btn.selected {
  border-color: var(--primary-emerald);
  background: rgba(17, 141, 94, 0.12);
  color: var(--primary-dark);
}

.quiz-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-option-btn.selected .quiz-option-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-emerald);
}

/* Financial Health Meter & Ratio Bars */
.health-score-badge {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-emerald);
  line-height: 1;
}

.ratio-bar-wrapper {
  margin-bottom: 18px;
}

.ratio-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.ratio-bar-track {
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
}

.ratio-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fee Comparison Barometer */
.fee-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .fee-compare-grid {
    grid-template-columns: 1fr;
  }
}

.fee-column {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.fee-column-bank {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.fee-column-etf {
  background: #f0fff4;
  border: 2px solid var(--accent-lime);
}

/* ==========================================================================
   MYTHBUSTERS & ACCORDIONS
   ========================================================================== */
.myth-card {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.myth-card:hover {
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-sm);
}

.myth-header {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  user-select: none;
}

.myth-header svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.myth-card.open .myth-header svg {
  transform: rotate(180deg);
}

.myth-content {
  padding: 0 28px 24px 28px;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.65;
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.myth-card.open .myth-content {
  display: block;
}

/* Branches Cards and Maps */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.branch-card {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-emerald);
}

.branch-header {
  background: var(--primary-dark);
  padding: 24px 28px;
  color: var(--pure-white);
}

.branch-header h3 {
  font-size: 1.4rem;
  color: var(--pure-white);
  margin-bottom: 6px;
}

.branch-header .branch-subtitle {
  color: var(--accent-lime);
  font-size: 0.92rem;
  font-weight: 700;
}

.branch-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branch-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.branch-info-row svg {
  color: var(--primary-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.branch-map-embed {
  width: 100%;
  height: 220px;
  border: none;
  border-top: 1px solid var(--border-light);
  display: block;
}

/* Floating Quick Action Bar (Mobile & Desktop) */
.floating-quick-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-dark);
  color: var(--pure-white);
  padding: 14px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(26, 57, 50, 0.4);
  border: 1.5px solid var(--accent-lime);
  transition: var(--transition-fast);
}

.floating-contact-btn:hover {
  background-color: var(--accent-lime);
  color: var(--primary-darker);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(195, 245, 60, 0.45);
}

.floating-contact-btn svg {
  color: var(--accent-lime);
  transition: var(--transition-fast);
}

.floating-contact-btn:hover svg {
  color: var(--primary-darker);
}

/* Cookie & GDPR Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 38, 33, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pure-white);
  padding: 20px 24px;
  z-index: 10000;
  border-top: 1px solid rgba(195, 245, 60, 0.3);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.35s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-light-muted);
}

.cookie-text strong {
  color: var(--pure-white);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* FAQ Accordion Styling */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.faq-item {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-emerald);
}

.faq-question {
  padding: 22px 28px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-question svg {
  color: var(--primary-emerald);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.65;
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.faq-item.open .faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .floating-quick-bar {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .floating-contact-btn {
    width: 100%;
    justify-content: center;
  }
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-buttons {
    flex-direction: column;
  }
  .cookie-buttons .btn {
    width: 100%;
  }
}

/* Consultation Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 21, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: linear-gradient(145deg, #102621 0%, #1a3932 100%);
  border: 1.5px solid var(--accent-lime);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(195, 245, 60, 0.15);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--pure-white);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-lime);
  color: var(--primary-dark);
  border-color: var(--accent-lime);
  transform: scale(1.08);
}

.modal-success-box {
  text-align: center;
  padding: 32px 16px 16px;
}

.modal-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(195, 245, 60, 0.15);
  border: 2px solid var(--accent-lime);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(195, 245, 60, 0.3);
}

/* Rentier Mode Switcher & Crossover Helpers */
.rentier-mode-switcher {
  display: flex;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 24px;
}

.rentier-mode-label {
  flex: 1;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rentier-mode-label:hover {
  background: rgba(17, 141, 94, 0.08);
}

.rentier-mode-label input[type="radio"] {
  accent-color: var(--primary-emerald);
  width: 16px;
  height: 16px;
}

.rentier-rate-pill, .early-invest-pill, .early-amount-pill, .zerocost-rate-pill, .inf-rate-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calc-inputs-col .rentier-rate-pill,
.calc-inputs-col .early-invest-pill,
.calc-inputs-col .early-amount-pill,
.calc-inputs-col .zerocost-rate-pill,
.calc-inputs-col .inf-rate-pill {
  border-color: var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-dark);
}

.rentier-rate-pill:hover, .early-invest-pill:hover, .early-amount-pill:hover, .zerocost-rate-pill:hover, .inf-rate-pill:hover {
  border-color: var(--primary-emerald);
  color: var(--primary-emerald);
  transform: translateY(-1px);
}

.rentier-rate-pill.active, .early-invest-pill.active, .early-amount-pill.active, .zerocost-rate-pill.active, .inf-rate-pill.active {
  background: var(--primary-emerald) !important;
  color: #ffffff !important;
  border-color: var(--primary-emerald) !important;
  box-shadow: 0 4px 12px rgba(17, 141, 94, 0.25);
}

.crossover-chart-container {
  background: rgba(14, 43, 36, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.crossover-legend-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 600;
}

.crossover-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.crossover-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.crossover-chart-canvas {
  width: 100%;
  height: 220px;
  display: block;
  cursor: crosshair;
}


