/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #c5a059 0%, #dfbf7a 50%, #967533 100%);
  color: #05070a;
  font-weight: 700;
  border: 1px solid rgba(223, 191, 122, 0.35);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dfbf7a 0%, #ecd498 50%, #ba9548 100%);
  box-shadow: 0 6px 28px rgba(197, 160, 89, 0.42);
  transform: translateY(-2px);
  color: #05070a;
}

.btn-secondary {
  background: rgba(13, 18, 30, 0.7);
  color: var(--text-main);
  border: 1px solid rgba(197, 160, 89, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(197, 160, 89, 0.14);
  border-color: rgba(197, 160, 89, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #c5a059 0%, #dfbf7a 50%, #967533 100%);
  color: #05070a;
  font-weight: 700;
  border: 1px solid rgba(223, 191, 122, 0.4);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #dfbf7a 0%, #ecd498 50%, #ba9548 100%);
  box-shadow: 0 6px 28px rgba(197, 160, 89, 0.48);
  transform: translateY(-2px);
  color: #05070a;
}

/* Service Card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(197, 160, 89, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 35px rgba(197, 160, 89, 0.12);
}

.service-card-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.strategy-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .strategy-card-photo {
  transform: scale(1.06);
}

.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 18, 30, 0.85) 100%);
  pointer-events: none;
}

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

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(143, 212, 248, 0.08);
  border: 1px solid rgba(143, 212, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ice);
  margin-bottom: 24px;
}

.card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-feature-list {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.service-feature-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-ice);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Location Card */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
}

.location-card:hover {
  border-color: rgba(186, 157, 101, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-gold-glow);
}

.location-flag-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.location-city {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-main);
}

.location-country {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
}

.location-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.location-address {
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-address svg {
  width: 15px;
  height: 15px;
  color: var(--accent-ice);
}

/* Custom Glassmorphic Popup Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.96) 0%, rgba(8, 11, 20, 0.98) 100%);
  border: 1px solid rgba(143, 212, 248, 0.25);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(143, 212, 248, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Glassmorphic Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: rgba(8, 12, 22, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14.5px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-ice);
  box-shadow: 0 0 0 3px rgba(143, 212, 248, 0.15);
  background: rgba(12, 17, 30, 0.95);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238FD4F8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select.form-control option {
  background: #0e1422;
  color: #f0f4fc;
  padding: 8px 12px;
}

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

/* Modern Glassmorphic Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 60px);
  pointer-events: none;
}

.toast-item {
  background: rgba(14, 20, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(143, 212, 248, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-main);
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast-item.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-item.success .toast-icon {
  color: var(--accent-ice);
}

.toast-item.error {
  border-color: rgba(233, 61, 61, 0.4);
}

.toast-item.error .toast-icon {
  color: #e93d3d;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.toast-close {
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
}

.toast-close:hover {
  color: var(--text-main);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Capital Allocation & Growth Simulator (Lead Magnet)
   ========================================================================== */
.simulator-wrapper {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.94) 0%, rgba(8, 11, 20, 0.98) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(143, 212, 248, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.sim-control-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-output-panel {
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-segmented-control {
  display: flex;
  background: rgba(6, 8, 15, 0.9);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.sim-segment-btn {
  flex: 1;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
}

.sim-segment-btn.active {
  background: rgba(143, 212, 248, 0.15);
  color: var(--accent-ice);
  border: 1px solid rgba(143, 212, 248, 0.3);
  font-weight: 600;
}

.range-slider-wrap {
  position: relative;
  margin-top: 12px;
}

.sim-range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(143, 212, 248, 0.2);
  outline: none;
}

.sim-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-ice);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-ice);
  border: 2px solid #08090f;
}

.sim-metric-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.sim-metric-val {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
}

.sim-result-card {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}

.sim-result-title {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sim-result-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent-ice);
  line-height: 1.1;
}

.sim-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(186, 157, 101, 0.15);
  border: 1px solid rgba(186, 157, 101, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin-top: 8px;
}

/* ==========================================================================
   Progressive Onboarding Wizard (/apply)
   ========================================================================== */
.wizard-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
  overflow-x: auto;
  gap: 8px;
}

.wizard-nav-step {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.wizard-nav-step.active {
  color: var(--accent-ice);
  border-bottom-color: var(--accent-ice);
  font-weight: 600;
}

.wizard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.wizard-nav-step.active .wizard-step-num {
  background: var(--accent-ice);
  color: #08090f;
  font-weight: 700;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.field-optional {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 6px;
}

/* Interactive Step-by-Step Qualifier Funnel (Exclusive Allocation Gate) */
.qualifier-funnel-card {
  background: rgba(10, 14, 22, 0.94);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(197, 160, 89, 0.08);
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
}

/* Integrated Top Edge Hairline Progress */
.funnel-top-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.funnel-top-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent-gold), #fff0cb);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
  transition: width 0.4s ease;
}

.funnel-header {
  margin-bottom: 16px;
}

.funnel-fomo-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(197, 160, 89, 0.10);
  border: 1px solid rgba(197, 160, 89, 0.30);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold-light);
  margin-bottom: 10px;
}

.fomo-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.funnel-back-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.funnel-back-btn:hover {
  color: var(--accent-gold-light);
}

.funnel-main-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.funnel-main-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.funnel-step-panel {
  display: none;
}

.funnel-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.funnel-q-context {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.funnel-options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Options start hidden; JS reveals them one-by-one with typewriter text */
.funnel-step-panel .funnel-btn-option {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.funnel-step-panel .funnel-btn-option.tw-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Typewriter cursor blink on the title while typing */
.funnel-option-title.tw-typing::after {
  content: '|';
  display: inline;
  color: var(--accent-gold-light);
  animation: twCursorBlink 0.55s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}

@keyframes twCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.funnel-btn-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Light shimmer sweep on hover */
.funnel-btn-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-22deg);
  transition: none;
  pointer-events: none;
}

.funnel-btn-option:hover::before {
  left: 160%;
  transition: left 0.7s ease;
}

.funnel-btn-option:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: rgba(223, 191, 122, 0.65);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.14), 0 0 14px rgba(56, 189, 248, 0.08);
  transform: translateX(4px) scale(1.008);
}

/* Tactile selected click animation */
.funnel-btn-option.is-selected {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.4) !important;
  transform: scale(0.97) !important;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease !important;
}

.funnel-btn-option svg {
  color: var(--accent-gold);
  opacity: 0.7;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, color 0.25s ease;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.funnel-btn-option:hover svg {
  transform: translateX(5px) scale(1.2);
  opacity: 1;
  color: var(--accent-ice);
}

.funnel-btn-option:hover .funnel-option-title {
  color: var(--accent-gold-light);
  transform: translateX(2px);
  transition: transform 0.2s ease, color 0.2s ease;
}

.funnel-btn-option:hover .funnel-option-sub {
  color: rgba(240, 244, 252, 0.85);
}

.funnel-option-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.funnel-option-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.funnel-option-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.funnel-notice-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.5;
}

.funnel-input-wrap {
  margin-bottom: 12px;
}

.funnel-input-wrap .form-control {
  font-size: 14px;
  padding: 11px 14px;
}

.funnel-fomo-note {
  font-size: 11.5px;
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  line-height: 1.4;
}

.funnel-result-box {
  background: rgba(6, 9, 16, 0.90);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
}

.funnel-badge-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6ee7b7;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .simulator-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .simulator-wrapper {
    padding: 24px 18px;
  }
  .sim-output-panel {
    padding: 24px 18px;
  }
  .wizard-nav {
    flex-wrap: nowrap;
    overflow-x: scroll;
    padding-bottom: 8px;
  }
  .wizard-nav-step {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Holdings & Sector Allocation Breakdown */
.holdings-section {
  padding: 80px 0;
  position: relative;
}

.holdings-card {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xl);
  padding: 44px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.4);
}

.holdings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.holdings-col-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
}

.holdings-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.holdings-table td {
  padding: 11px 12px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.holdings-table tr:hover td {
  background: rgba(197, 160, 89, 0.06);
}

.company-name-cell {
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-ice);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.sector-tag-cell {
  font-size: 12.5px;
  color: var(--text-muted);
}

.weight-cell {
  font-weight: 600;
  color: var(--accent-gold-light);
  text-align: right;
  font-size: 13px;
}

/* Donut Chart and Legend */
.donut-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.donut-svg-wrap {
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
  position: relative;
  flex-shrink: 0;
}

.donut-svg-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-val {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1;
}

.donut-center-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.sector-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-pct {
  font-weight: 600;
  color: var(--text-main);
}

/* Institutional Safeguard Strip */
.holdings-safeguard-strip {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.safeguard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.safeguard-item strong {
  color: var(--text-main);
}

.safeguard-item svg {
  color: var(--accent-gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .holdings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    width: 100%;
  }
  .holdings-col-left,
  .holdings-col-right {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .holdings-card {
    padding: 28px 20px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .sector-legend-grid {
    grid-template-columns: 1fr;
  }
  .holdings-safeguard-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .safeguard-item {
    font-size: 12.5px;
  }
}

/* Calculator Visual Comparison Chart */
.sim-visual-chart-wrap {
  margin: 18px 0;
  padding: 16px 18px;
  background: rgba(12, 17, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.sim-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sim-chart-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sim-chart-rate-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-ice);
}

.sim-comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sim-bar-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.sim-bar-name {
  color: var(--text-muted);
}

.sim-bar-amount {
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.sim-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.sim-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sim-bar-fill.fill-principal {
  background: linear-gradient(90deg, #475569, #64748b);
}

.sim-bar-fill.fill-floor {
  background: linear-gradient(90deg, #b38e46, #e6ca85);
  box-shadow: 0 0 10px rgba(223, 191, 122, 0.3);
}

.sim-bar-fill.fill-projected {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Dynamic Calculation Pulse & Shimmer */
@keyframes calcPulse {
  0% { box-shadow: 0 0 0 rgba(56, 189, 248, 0); }
  50% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.3); }
  100% { box-shadow: 0 0 0 rgba(56, 189, 248, 0); }
}

.calc-updating {
  animation: calcPulse 0.4s ease-out;
}

/* Scroll-triggered reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Responsive Funnel & Holdings Enhancements for Mobile and Tablet (Portrait & Landscape) */
@media (max-width: 768px) {
  .qualifier-funnel-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .funnel-main-title {
    font-size: 17px;
  }
  .funnel-question {
    font-size: 14.5px;
  }
  .funnel-btn-option {
    padding: 11px 13px;
  }
  .funnel-option-title {
    font-size: 12.5px;
  }
  .funnel-option-sub {
    font-size: 11px;
    line-height: 1.35;
  }
  .holdings-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
  .holdings-table th, .holdings-table td {
    padding: 10px 10px;
    font-size: 12.5px;
  }
  .donut-chart-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  .donut-svg-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px auto;
  }
  .sector-legend-container {
    padding: 16px 14px;
  }
  .legend-item {
    font-size: 12px;
    padding: 6px 4px;
  }
}

@media (max-width: 480px) {
  .qualifier-funnel-card {
    padding: 20px 14px;
  }
  .funnel-main-title {
    font-size: 16px;
  }
  .funnel-question {
    font-size: 14px;
  }
  .funnel-q-context {
    font-size: 11.5px;
  }
  .donut-chart-container {
    max-width: 100%;
    width: 100%;
  }
  .donut-svg-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px auto;
  }
  .donut-center-val {
    font-size: 24px;
  }
  .donut-center-sub {
    font-size: 9.5px;
  }
  .sector-legend-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Calendar Booking Widget
   ========================================================================== */

.cal-modal-dialog {
  max-width: 560px;
}

.cal-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.cal-date-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.cal-date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(14, 19, 34, 0.6);
  cursor: pointer;
  transition: var(--transition);
  gap: 2px;
}

.cal-date-cell:hover {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
}

.cal-date-cell.selected {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.14);
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.15);
}

.cal-day-name {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.cal-day-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.1;
}

.cal-month {
  font-size: 10px;
  color: var(--text-dim);
}

.cal-date-cell.selected .cal-day-name,
.cal-date-cell.selected .cal-month {
  color: var(--accent-gold-light);
}

.cal-slots-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cal-slot-btn {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(14, 19, 34, 0.6);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.cal-slot-btn:hover {
  border-color: var(--accent-ice);
  background: rgba(143, 212, 248, 0.08);
}

.cal-slot-btn.selected {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.14);
  color: var(--accent-gold-light);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.12);
}

.cal-confirm-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(197, 160, 89, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .cal-modal-dialog {
    max-width: 100%;
    margin: 12px;
  }
  .cal-date-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .cal-slots-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .cal-day-num {
    font-size: 17px;
  }
  .cal-date-cell {
    padding: 10px 4px;
  }
  #cal-contact-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .cal-date-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cal-slots-list {
    grid-template-columns: 1fr 1fr;
  }
}
