body { 
      background: #fff; 
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    }
    .calculator-header { 
      background: linear-gradient(135deg, #9c7c41, #b8933d); 
      color: white; 
      padding: 2rem 0; 
      margin-bottom: 2rem;
    }
    h1 { color: white; font-weight: 600; margin: 0; }
    .card-custom { 
      background: linear-gradient(135deg, #9c7c41, #b8933d); 
      color: #fff; 
      border-radius: 15px; 
      transition: all 0.3s ease;
      border: none;
      box-shadow: 0 8px 25px rgba(156, 124, 65, 0.15);
    }
    .card-custom:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 35px rgba(156, 124, 65, 0.2);
    }
    .form-label { 
      font-weight: 600; 
      color: #495057; 
      margin-bottom: 0.75rem; 
    }
    .form-label span { 
      color: #9c7c41; 
      font-weight: bold; 
      float: right; 
    }
    .form-control, .form-check-input { 
      border: 2px solid #e9ecef; 
      border-radius: 10px; 
      transition: all 0.3s ease;
    }
    .form-control:focus, .form-check-input:focus { 
      border-color: #9c7c41; 
      box-shadow: 0 0 0 0.2rem rgba(156, 124, 65, 0.25); 
    }
    .main-card {
      border-radius: 15px;
      border: none;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      background: white;
    }
    .input-group-field {
      max-width: 135px;
      margin-left: auto;
    }
    .input-group-field .form-control {
      text-align: center;
      font-weight: 600;
      color: #9c7c41;
      border-color: #9c7c41;
      padding: 0.5rem;
      font-size: 0.9rem;
    }
    .input-group-text {
      background-color: #9c7c41;
      color: white;
      border-color: #9c7c41;
      font-weight: 600;
    }
    .noUi-connect {
      background: linear-gradient(135deg, #9c7c41, #b8933d) !important;
    }
    .noUi-handle {
      background: #fff !important;
      border: 3px solid #9c7c41 !important;
      border-radius: 50%;
      box-shadow: 0 3px 10px rgba(156, 124, 65, 0.3);
    }
    .noUi-handle:before, .noUi-handle:after {
      display: none;
    }
    input[type="range"] {
      height: 8px;
      background: transparent;
      outline: none;
    }
    input[type="range"]::-webkit-slider-runnable-track {
      height: 8px;
      background: linear-gradient(to right, #9c7c41 var(--val,0%), #e9ecef var(--val,0%));
      border-radius: 25px;
      border: none;
    }
    input[type="range"]::-moz-range-track {
      height: 8px;
      background: linear-gradient(to right, #9c7c41 var(--val,0%), #e9ecef var(--val,0%));
      border-radius: 25px;
      border: none;
    }
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      height: 24px;
      width: 24px;
      border-radius: 50%;
      background: #fff;
      border: 3px solid #9c7c41;
      cursor: pointer;
      margin-top: -8px;
      box-shadow: 0 3px 10px rgba(156, 124, 65, 0.3);
    }
    input[type="range"]::-moz-range-thumb {
      height: 24px;
      width: 24px;
      border-radius: 50%;
      background: #fff;
      border: 3px solid #9c7c41;
      cursor: pointer;
      box-shadow: 0 3px 10px rgba(156, 124, 65, 0.3);
    }
    .result-card {
      background: white;
      border-radius: 15px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      border: 2px solid #f8f9fa;
      transition: all 0.3s ease;
    }
    .result-card h3 {
      font-size: 2rem;
      font-weight: 700;
      color: #9c7c41;
      margin: 0;
    }
    .result-card p {
      color: #6c757d;
      margin: 0;
      font-size: 0.9rem;
      font-weight: 500;
    }
    .chart-container {
      background: white;
      border-radius: 15px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 6px 20px rgba(0,0,0,0.08);
      position: relative;
      height: 400px;
    }
    #pensionChart {
      position: relative;
      z-index: 2;
    }
    .chart-tabs {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
      position: relative;
      z-index: 3;
    }
    .chart-tab {
      padding: 0.5rem 1.5rem;
      border: 2px solid #e9ecef;
      background: rgba(255, 255, 255, 0.95);
      color: #6c757d;
      border-radius: 25px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      font-size: 0.9rem;
      backdrop-filter: blur(5px);
    }
    .chart-tab.active {
      background: #9c7c41;
      color: white;
      border-color: #9c7c41;
    }
    .depletion-table {
      max-height: 320px;
      overflow-y: auto;
      margin-top: 1rem;
      position: relative;
      z-index: 2;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 10px;
      backdrop-filter: blur(10px);
    }
    .depletion-table table {
      font-size: 0.75rem;
    }
    .depletion-table th {
      background: #9c7c41;
      color: white;
      position: sticky;
      top: 0;
      z-index: 10;
      font-size: 0.7rem;
      padding: 0.5rem 0.25rem;
    }
    .depletion-table td {
      padding: 0.4rem 0.25rem;
    }
    .depletion-table .negative {
      color: #dc3545;
      font-weight: bold;
    }
    .depletion-table .positive {
      color: #198754;
    }
    #results, #outlook {
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.6s ease;
    }
    #results.show, #outlook.show {
      opacity: 1;
      transform: translateY(0);
    }
    .age-input-container {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 1rem;
    }
    .age-input-group {
      flex: 1;
    }
    .age-input-group label {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 0.25rem;
      display: block;
    }
    .age-input-group input {
      width: 100%;
      text-align: center;
      font-weight: 600;
      color: #9c7c41;
      border: 2px solid #9c7c41;
      border-radius: 8px;
      padding: 0.5rem;
    }
    .form-check-label {
      font-weight: 600;
      color: #495057;
    }
    .form-check-input:checked {
      background-color: #9c7c41;
      border-color: #9c7c41;
    }
    .chart-legend-overlay {
      position: absolute;
      top: 60px;
      right: 20px;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      z-index: 100;
      font-size: 14px;
      backdrop-filter: blur(10px);
      border: 1px solid #9c7c41;
      display: none !important;
    }
    .legend-item-overlay {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .legend-item-overlay:last-child {
      margin-bottom: 0;
    }
    .legend-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      flex-shrink: 0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .legend-line {
      width: 24px;
      height: 3px;
      border-radius: 2px;
      flex-shrink: 0;
    }
    .legend-dashed {
      background-image: repeating-linear-gradient(to right, #9c7c41 0, #9c7c41 5px, transparent 5px, transparent 10px);
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    .chart-legend {
      display: none !important;
    }