/* Premium Tab Styling - AI Advisory and Retirement */
#sidebar-menu ul li.ai-advisory-premium,
#sidebar-menu ul li.retirement-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    border-radius: 8px !important;
    margin: 8px 12px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    list-style: none !important;
}

#sidebar-menu ul li.ai-advisory-premium::before,
#sidebar-menu ul li.retirement-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#sidebar-menu ul li.ai-advisory-premium:hover::before,
#sidebar-menu ul li.retirement-premium:hover::before {
    left: 100%;
}

#sidebar-menu ul li.ai-advisory-premium > a,
#sidebar-menu ul li.retirement-premium > a {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

#sidebar-menu ul li.ai-advisory-premium > a:hover,
#sidebar-menu ul li.retirement-premium > a:hover {
    background: transparent !important;
    color: white !important;
}

#sidebar-menu ul li.ai-advisory-premium > a i,
#sidebar-menu ul li.retirement-premium > a i {
    color: white !important;
    font-size: 1.1em !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    width: 20px !important;
    text-align: center !important;
}

#sidebar-menu ul li.ai-advisory-premium > a span,
#sidebar-menu ul li.retirement-premium > a span {
    color: white !important;
    font-weight: 600 !important;
}

#sidebar-menu ul li.ai-advisory-premium:hover,
#sidebar-menu ul li.retirement-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge,
#sidebar-menu ul li.retirement-premium .premium-badge {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: linear-gradient(45deg, #ff6b6b, #ffa500) !important;
    color: white !important;
    font-size: 0.65em !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 3 !important;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge::before,
#sidebar-menu ul li.retirement-premium .premium-badge::before {
    content: '✨';
    position: absolute;
    top: -1px;
    left: -1px;
    font-size: 0.7em;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.8;
}

#sidebar-menu ul li.ai-advisory-premium .premium-badge::after,
#sidebar-menu ul li.retirement-premium .premium-badge::after {
    content: '✨';
    position: absolute;
    bottom: -1px;
    right: -1px;
    font-size: 0.5em;
    animation: sparkle 2s ease-in-out infinite 1s;
    opacity: 0.6;
}

/* Premium pulse animation */
@keyframes premium-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
}

#sidebar-menu ul li.ai-advisory-premium,
#sidebar-menu ul li.retirement-premium {
    animation: premium-pulse 3s ease-in-out infinite !important;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive adjustments for premium tabs */
@media (max-width: 768px) {
    #sidebar-menu ul li.ai-advisory-premium,
    #sidebar-menu ul li.retirement-premium {
        margin: 6px 8px !important;
    }
    
    #sidebar-menu ul li.ai-advisory-premium > a,
    #sidebar-menu ul li.retirement-premium > a {
        padding: 10px 12px !important;
    }
    
    #sidebar-menu ul li.ai-advisory-premium .premium-badge,
    #sidebar-menu ul li.retirement-premium .premium-badge {
        font-size: 0.6em !important;
        padding: 1px 4px !important;
    }
}

.retirement-dashboard {
  max-width: 700px;
  margin: 40px auto;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  color: #1a2a42;
  background: #f8fafc;
  padding: 24px 0;
}

.rd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.rd-header-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rd-icon {
  font-size: 2.5rem;
  color: #3b82f6;
  background: #e0e7ef;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 2px;
}

.rd-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a2a42;
}

.rd-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

.rd-btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
  cursor: pointer;
  transition: background 0.2s;
}

/* Performance optimization: disable transitions during chart rendering */
.chart-rendering * {
  transition: none !important;
  animation: none !important;
}

/* Add spacing between charts and retirement outcome section */
.charts-section {
  margin-bottom: 0.5rem;
}

/* Responsive chart container */
#retirementChart {
  width: 100%;
  min-height: 300px;
  max-height: 450px;
}

#netWorthComparisonChart {
  width: 100%;
  min-height: 200px;
  max-height: 275px;
}

/* Mobile responsive adjustments for charts */
@media (max-width: 768px) {
  .charts-section .col-lg-8 {
    margin-bottom: 1rem;
  }
  
  .charts-section .col-lg-4 {
    margin-bottom: 1rem;
  }
  
  #retirementChart {
    min-height: 250px;
    max-height: 300px;
  }
  
  #netWorthComparisonChart {
    min-height: 150px;
    max-height: 200px;
  }
  
  .chart-card {
    padding: 1rem;
  }
  
  .chart-card .card-title {
    font-size: 1.1rem;
  }
  
  .chart-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  #retirementChart {
    min-height: 200px;
    max-height: 250px;
  }
  
  #netWorthComparisonChart {
    min-height: 150px;
    max-height: 200px;
  }
  
  .chart-card {
    padding: 0.75rem;
  }
  
  .chart-card .card-title {
    font-size: 1rem;
  }
}

.retirement-outcome-section {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

/* Add spacing to the row containing the retirement outcome */
.retirement-outcome-section .row {
  margin-top: 0.25rem;
}
.rd-btn-primary:hover {
  background: #2563eb;
}

.rd-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 24px 28px;
  margin-bottom: 22px;
}

.rd-risk-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rd-risk-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e0f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #10b981;
  font-weight: 700;
  margin-right: 8px;
  border: 4px solid #10b981;
}

.rd-risk-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.rd-badge {
  background: #d1fae5;
  color: #059669;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 8px;
  font-weight: 500;
}

.rd-risk-desc {
  color: #64748b;
  font-size: 0.98rem;
}

.rd-mc-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-info {
  background: #e0e7ef;
  color: #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
}

.rd-mc-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.rd-mc-segment {
  flex: 1;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 16px 0;
  text-align: center;
}

.rd-mc-low .rd-mc-value { color: #ef4444; }
.rd-mc-median .rd-mc-value { color: #3b82f6; }
.rd-mc-high .rd-mc-value { color: #10b981; }

.rd-mc-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.rd-mc-label {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 2px;
}

.rd-expl-title {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-learn-more {
  margin-left: auto;
  font-size: 0.95rem;
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
}

.rd-expl-more {
  display: none;
  margin-top: 10px;
  color: #475569;
  font-size: 0.98rem;
}
.rd-expl-more.show {
  display: block;
}

.rd-strat-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.rd-strat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.rd-strat-item {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #1a2a42;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

@media (max-width: 600px) {
  .retirement-dashboard {
    padding: 8px 0;
  }
  .rd-header, .rd-card {
    padding: 16px 10px;
  }
  .rd-mc-bar, .rd-strat-list {
    flex-direction: column;
    gap: 8px;
  }
} 

/* Modern Retirement Modal Styles */
#retirementGoalsModal .modal-content {
    background: linear-gradient(135deg, #2a2a3e 0%, #3a3a52 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
}

#retirementGoalsModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 2rem 2.5rem 1.5rem !important;
    background: linear-gradient(135deg, #003087 0%, #0070BA 100%);
    border-radius: 20px 20px 0 0 !important;
    position: relative;
}

#retirementGoalsModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFC439 0%, #F39C12 50%, #E67E22 100%);
}

#retirementGoalsModal .modal-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#retirementGoalsModal .modal-title::before {
    content: "🎯";
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#retirementGoalsModal .modal-body {
    padding: 2.5rem !important;
    background: linear-gradient(135deg, #2a2a3e 0%, #3a3a52 100%);
    color: #ffffff;
}

#retirementGoalsModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem 2.5rem 2rem !important;
    background: linear-gradient(135deg, #2a2a3e 0%, #3a3a52 100%);
    border-radius: 0 0 20px 20px !important;
}

/* Enhanced Close Button */
#retirementGoalsModal .btn-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    filter: none !important;
}

#retirementGoalsModal .btn-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) rotate(90deg);
}

#retirementGoalsModal .btn-close::before {
    content: "×" !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #ffffff !important;
    line-height: 1 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Modern Form Controls */
#retirementGoalsModal .form-label {
    font-weight: 600 !important;
    color: #a8b2d1 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#retirementGoalsModal .form-control, 
#retirementGoalsModal .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    padding: 1rem 1.25rem !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    font-weight: 500;
}

#retirementGoalsModal .form-control:focus, 
#retirementGoalsModal .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #FFC439 !important;
    box-shadow: 0 0 0 3px rgba(255, 196, 57, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
}

#retirementGoalsModal .form-control::placeholder {
    color: #8a92b2 !important;
    opacity: 0.8;
    font-style: italic;
}

#retirementGoalsModal .input-group-text {
    background: rgba(255, 196, 57, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-right: none !important;
    color: #FFC439 !important;
    font-weight: 700 !important;
    border-radius: 12px 0 0 12px !important;
    font-size: 1rem;
}

#retirementGoalsModal .input-group .form-control {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

#retirementGoalsModal .form-text, 
#retirementGoalsModal small {
    color: #8a92b2 !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
    font-weight: 500;
}

/* Modern Button Styling */
#retirementGoalsModal .btn-primary {
    background: linear-gradient(135deg, #FFC439 0%, #F39C12 50%, #E67E22 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    box-shadow: 0 6px 20px rgba(255, 196, 57, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

#retirementGoalsModal .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 196, 57, 0.6) !important;
}

#retirementGoalsModal .btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #6c757d !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none;
}

#retirementGoalsModal .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #a8b2d1 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

#retirementGoalsModal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Enhanced Range Slider Styling */
#retirementGoalsModal .form-range {
    background: transparent;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #003087 0%, #0070BA 50%, #FFC439 100%);
    outline: none;
    margin: 1rem 0;
}

#retirementGoalsModal .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFC439 0%, #F39C12 100%);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 196, 57, 0.4);
    transition: all 0.3s ease;
}

#retirementGoalsModal .form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 196, 57, 0.6);
}

#retirementGoalsModal .form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFC439 0%, #F39C12 100%);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 196, 57, 0.4);
    transition: all 0.3s ease;
}

/* Progress Bar Enhancement */
#retirementGoalsModal .progress {
    height: 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#retirementGoalsModal .progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

#retirementGoalsModal .progress-bar.bg-danger {
    background: linear-gradient(90deg, #dc3545 0%, #e74c3c 100%) !important;
}

/* Section Headers */
#retirementGoalsModal h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    margin: 2rem 0 1.5rem 0 !important;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 196, 57, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#retirementGoalsModal h4::before {
    content: "📊";
    font-size: 1.5rem;
}

/* Input Group Enhancement */
#retirementGoalsModal .input-group {
    margin-bottom: 0.75rem;
}

#retirementGoalsModal .input-group .form-control:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #a8b2d1 !important;
}

/* Row and Column Spacing */
#retirementGoalsModal .row.mb-3 {
    margin-bottom: 2rem !important;
}

#retirementGoalsModal .mb-3 {
    margin-bottom: 1.75rem !important;
}

/* Modal Backdrop Enhancement */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(10px) !important;
}

/* Smooth Modal Animation */
#retirementGoalsModal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #retirementGoalsModal .modal-header {
        padding: 1.5rem 1.5rem 1rem !important;
    }
    
    #retirementGoalsModal .modal-body {
        padding: 1.5rem !important;
    }
    
    #retirementGoalsModal .modal-footer {
        padding: 1rem 1.5rem 1.5rem !important;
    }
    
    #retirementGoalsModal .modal-title {
        font-size: 1.4rem !important;
    }
    
    #retirementGoalsModal .btn-primary,
    #retirementGoalsModal .btn-secondary {
        padding: 0.875rem 2rem !important;
        font-size: 0.9rem !important;
    }
}

/* Enhanced Focus States for Accessibility */
#retirementGoalsModal .form-control:focus,
#retirementGoalsModal .form-select:focus,
#retirementGoalsModal .btn:focus {
    outline: none !important;
}

/* Loading State for Submit Button */
#retirementGoalsModal .btn-primary.loading {
    position: relative;
    color: transparent !important;
}

#retirementGoalsModal .btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Label Icons */
#retirementGoalsModal .form-label i {
    color: #FFC439;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
} 

#actionPlanModal .investment-strategy,
#actionPlanModal .tax-estate-planning {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin-top: 2rem !important;
}

#actionPlanModal .asset-allocation-card,
#actionPlanModal .strategy-details-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Modern Button Styling */
#actionPlanModal .btn-primary {
    background: linear-gradient(135deg, #FFC439 0%, #F39C12 50%, #E67E22 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    box-shadow: 0 6px 20px rgba(255, 196, 57, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

#actionPlanModal .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 196, 57, 0.6) !important;
}

#actionPlanModal .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 1rem 2.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #a8b2d1 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

#actionPlanModal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Enhanced Progress Bar */
#actionPlanModal .progress {
    height: 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#actionPlanModal .progress-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Enhanced Badge Styling */
#actionPlanModal .badge {
    font-size: 0.8rem !important;
    padding: 0.5em 1.2em !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#actionPlanModal .badge.bg-warning {
    background: linear-gradient(135deg, #FFC439 0%, #F39C12 100%) !important;
    color: #1a1a1a !important;
}

#actionPlanModal .badge.bg-info {
    background: linear-gradient(135deg, #0070BA 0%, #47bce8 100%) !important;
    color: #ffffff !important;
}

#actionPlanModal .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: #ffffff !important;
}

/* Custom Checkbox Styling */
#actionPlanModal .action-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#actionPlanModal .action-item input[type="checkbox"]:hover {
    border-color: #FFC439;
    box-shadow: 0 0 0 3px rgba(255, 196, 57, 0.2);
}

#actionPlanModal .action-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #FFC439 0%, #F39C12 100%);
    border-color: #FFC439;
    box-shadow: 0 0 0 3px rgba(255, 196, 57, 0.2);
}

#actionPlanModal .action-item input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

#actionPlanModal .action-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#actionPlanModal .action-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #FFC439 !important;
    box-shadow: 0 0 0 3px rgba(255, 196, 57, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

#actionPlanModal .action-item .action-content {
    flex: 1;
    min-width: 0;
}

#actionPlanModal .action-item .action-title {
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-size: 1rem !important;
    line-height: 1.3;
}

#actionPlanModal .action-item .action-description {
    color: #a8b2d1 !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Enhanced Focus States for Accessibility */
#actionPlanModal .action-item:focus,
#actionPlanModal .btn:focus {
    outline: none !important;
}

/* Modal Backdrop Enhancement */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(10px) !important;
}

/* Smooth Modal Animation */
#actionPlanModal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #actionPlanModal .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    #actionPlanModal .modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    #actionPlanModal .risk-assessment-banner {
        padding: 1rem;
    }
    
    #actionPlanModal .success-rate {
        text-align: right;
    }

    #actionPlanModal .action-item {
        padding: 0.75rem;
    }

    #actionPlanModal .action-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
    }
}

/* Modern Analysis Container - Custom Theme */
.modern-analysis-container {
    background: linear-gradient(120deg, #232b3e 60%, #232b3e 80%, #262f47 100%);
    border-radius: 28px;
    margin-bottom: 2rem;
    box-shadow: 0 6px 32px 0 rgba(30,40,60,0.18);
    border: none;
    position: relative;
    color: #f3f6fa;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    overflow: hidden;
}
.modern-analysis-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, #ffb347 0%, #ff7f50 100%);
    border-radius: 28px 28px 0 0;
    z-index: 2;
}

.combined-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.retirement-number-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
    background: none;
    border-radius: 18px;
    color: #fff;
    position: relative;
    overflow: visible;
}

.retirement-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffb347 0%, #ff7f50 100%);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px 0 rgba(255, 140, 60, 0.18);
    color: #fff;
    border: 4px solid rgba(255,255,255,0.12);
}

.retirement-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.retirement-amount {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(255,140,60,0.08);
}

.retirement-description {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
    color: #f3f6fa;
}

.risk-assessment-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.risk-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    background: linear-gradient(90deg, #ffb347 0%, #ff7f50 100%);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(255,140,60,0.10);
    border: none;
}

.analysis-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.success-probability-section {
    margin-bottom: 2rem;
}

.probability-display {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
}

.probability-circle {
    position: relative;
    flex-shrink: 0;
}

.probability-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.probability-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.probability-info p {
    color: #f3f6fa;
    margin: 0;
    line-height: 1.5;
    opacity: 0.85;
}

/* Monte Carlo Section - Consistent with Page Theme */
.monte-carlo-section {
    margin-bottom: 1.5rem;
}

.mc-header {
    margin-bottom: 1rem;
}

.mc-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.25rem;
}

.mc-info {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    line-height: 1.4;
}

.mc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.mc-stat {
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid var(--bs-border-color);
}

.mc-stat:hover {
    transform: translateY(-1px);
}

.mc-stat.conservative {
    background: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

.mc-stat.median {
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
}

.mc-stat.optimistic {
    background: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
    color: var(--bs-body-color);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

/* Insights Section - Consistent with Page Theme */
.insights-section {
    margin-bottom: 1.5rem;
}

.insights-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.75rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bs-tertiary-bg);
    border-radius: 10px;
    border: 1px solid var(--bs-border-color);
}

.insight-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.insight-content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.125rem;
}

.insight-content p {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin: 0;
    line-height: 1.4;
}

/* Action Section - Consistent with Page Theme */
.action-section {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
}

.action-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.75rem;
}

.action-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem;
    background: var(--bs-tertiary-bg);
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    transition: background-color 0.2s ease;
}

.action-item:hover {
    background: var(--bs-secondary-bg);
}

.action-icon {
    color: var(--bs-success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.action-text {
    font-size: 0.8rem;
    color: var(--bs-body-color);
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--bs-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bs-secondary);
    color: var(--bs-secondary-color);
    border: 1px solid var(--bs-secondary-border);
}

.btn-secondary:hover {
    background: var(--bs-secondary-hover);
    transform: translateY(-1px);
}

/* Responsive Design for Combined Header */
@media (max-width: 768px) {
    .combined-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .retirement-number-section {
        padding: 1rem;
    }
    
    .retirement-amount {
        font-size: 1.75rem;
    }
    
    .retirement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .mc-stats {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .action-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modern-analysis-container {
        padding: 1rem;
    }
    
    .probability-display {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .retirement-number-section {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Responsive Design for Modern Components */
@media (max-width: 768px) {
    .retirement-number-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .retirement-amount {
        font-size: 2.5rem;
    }
    
    .probability-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mc-stats {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .action-list {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
} 

/* Dark Theme for Action Plan Modal */
/* Premium Gate Overlay Styles */
.premium-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.premium-gate-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: premiumGateFadeIn 0.6s ease-out;
}

@keyframes premiumGateFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premium-gate-icon {
    margin-bottom: 20px;
    animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.6));
    }
}

.premium-gate-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-gate-description {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.premium-gate-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    color: #ffffff;
    font-weight: 500;
}

.premium-gate-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.premium-gate-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.premium-gate-actions .btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.premium-gate-actions .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    background: linear-gradient(45deg, #ff8c00, #ffc107);
}

.premium-gate-actions .btn-outline-secondary {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.premium-gate-actions .btn-outline-secondary:hover {
    background: #6c757d;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive design for premium gate */
@media (max-width: 768px) {
    .premium-gate-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .premium-gate-title {
        font-size: 2rem;
    }
    
    .premium-gate-description {
        font-size: 1rem;
    }
    
    .premium-gate-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .premium-gate-actions {
        flex-direction: column;
    }
    
    .premium-gate-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .premium-gate-content {
        padding: 25px 15px;
    }
    
    .premium-gate-title {
        font-size: 1.8rem;
    }
    
    .premium-gate-icon i {
        font-size: 3rem !important;
    }
}

/* Premium Outcome Overlay Styles */
.premium-outcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.premium-outcome-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: premiumOutcomeFadeIn 0.4s ease-out;
    color: #ffffff;
}

@keyframes premiumOutcomeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Add a subtle glow effect to the crown icon */
.premium-outcome-header .fa-crown {
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
    animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8));
    }
}

.premium-outcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.premium-outcome-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 2px;
}

.premium-outcome-header h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.premium-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.premium-feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.premium-feature-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.premium-feature-item span {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    flex: 1;
}

.premium-outcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.premium-outcome-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.premium-outcome-actions .btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.premium-outcome-actions .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    background: linear-gradient(45deg, #ff8c00, #ffc107);
}

.premium-outcome-actions .btn-outline-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.premium-outcome-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Enhanced Retirement Overview Styling */
.enhanced-retirement-overview {
    margin-bottom: 2rem;
}

.retirement-overview-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.retirement-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.overview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.overview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-icon i {
    font-size: 1.8rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-text {
    flex: 1;
}

.overview-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overview-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    margin: 0 0.5rem;
}

.premium-badge-inline i {
    font-size: 0.8rem;
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.overview-content {
    padding: 2rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.goal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.goal-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.goal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-icon i {
    font-size: 1.3rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.goal-content {
    flex: 1;
}

.goal-label {
    color: var(--bs-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-value {
    color: var(--bs-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.placeholder-text {
    color: var(--bs-secondary);
    font-weight: 400;
    font-style: italic;
}

.goal-value-set {
    color: #10b981;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.overview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.action-btn.premium-btn {
    background: transparent;
    border: 2px solid #ffa500;
    color: #ffa500;
}

.action-btn.premium-btn:hover {
    background: #ffa500;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.action-btn i {
    font-size: 1.1rem;
}

/* Responsive Design for Enhanced Overview */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
    }
    
    .header-icon i {
        font-size: 1.5rem;
    }
    
    .overview-title {
        font-size: 1.5rem;
    }
    
    .overview-subtitle {
        font-size: 0.9rem;
    }
    
    .premium-badge-inline {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .goal-card {
        padding: 1rem;
    }
    
    .overview-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .overview-header {
        padding: 1.5rem;
    }
    
    .overview-content {
        padding: 1.5rem;
    }
    
    .goal-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .goal-icon {
        width: 40px;
        height: 40px;
    }
    
    .goal-icon i {
        font-size: 1.1rem;
    }
}

/* Responsive design for premium outcome */
@media (max-width: 768px) {
    .premium-outcome-content {
        padding: 20px;
        margin: 10px;
    }
    
    .premium-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .premium-feature-item {
        padding: 14px 16px;
    }
    
    .premium-feature-item span {
        font-size: 0.9rem;
    }
    
    .premium-outcome-actions {
        flex-direction: column;
    }
    
    .premium-outcome-actions .btn {
        width: 100%;
    }
}

/* Purchase Modal Styles */
#purchaseModal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#purchaseModal .plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

#purchaseModal .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#purchaseModal .plan-card.selected {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

#purchaseModal .plan-card .card-header {
    border-bottom: none;
}

#purchaseModal .price-display {
    margin-bottom: 1rem;
}

#purchaseModal .price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ffc107;
}

#purchaseModal .price-period {
    color: #b0b0b0;
    font-size: 1rem;
}

#purchaseModal .payment-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

#purchaseModal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
}

#purchaseModal .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: #ffffff;
}

#purchaseModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#purchaseModal .form-label {
    color: #ffffff;
    font-weight: 500;
}

#purchaseModal .btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#purchaseModal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(45deg, #20c997, #28a745);
}

/* Card number formatting */
#cardNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Responsive design for purchase modal */
@media (max-width: 768px) {
    #purchaseModal .modal-dialog {
        margin: 10px;
    }
    
    #purchaseModal .plan-card {
        margin-bottom: 15px;
    }
    
    #purchaseModal .payment-form {
        padding: 15px;
    }
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}