:root {
  /* Primary colors */
  --primary-600: #FF6B9D;
  --primary-700: #ff5a91;
  --primary-50: rgba(255, 107, 157, 0.1);
  
  /* Success/Accent colors */
  --success-600: #4ECDC4;
  --success-50: rgba(78, 205, 196, 0.1);
  --accent-cyan: #00FFD1;
  --accent-cyan-hover: #00E6BC;
  --accent-pink: #FF0080;
  --accent-orange: #ff6b35;
  --accent-yellow: #f59e0b;
  
  /* Gray scale */
  --gray-900: #1a1a1a;  /* Also used for dark backgrounds */
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #64748B;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e2e8f0;  /* Also used for light borders */
  --gray-100: #f3f4f6;
  --gray-50: #81D9D4;
  
  /* Base colors */
  --white: #ffffff;
  --black: #0A0A0B;  /* Consolidated darkest black */
  
  /* Background colors */
  --bg-light: #f8fafc;
  --bg-light-gray: #f1f5f9;
  
  /* Text colors */
  --text-dark: #111827;
  --text-gray: #999;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  --gradient-success: linear-gradient(135deg, #4ECDC4 0%, #81D9D4 100%);
  
  /* Shadows */
  --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1), 0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 1.25rem 1.5625rem -0.3125rem rgba(0, 0, 0, 0.1), 0 0.625rem 0.625rem -0.3125rem rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(165deg, var(--gray-50) 0%, #c0e4e2 25%);
  color: var(--gray-100);
  line-height: 1.6;
  transition: all 0.3s ease;
  min-height: 100vh;
  width: inherit;
}

/* Hero Section */
.hero {
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0 1rem 0;
}

.hero::after {
  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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--gray-900);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-orange) 50%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

/* Instructions Banner */
.instructions-banner {
  max-width: 62.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.instructions-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  border: 0.0625rem solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.instructions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.instructions-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.instructions-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructions-header h3::before {
  content: '?';
  font-size: 0.9rem;
  background: var(--gray-300);
  color: var(--gray-500);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.toggle-btn {
  background: transparent;
  border: none;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 1.1rem;
  font-weight: 700;
}

.toggle-icon {
  transition: transform 0.2s ease;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

.instruction-steps {
    transition: all 0.3s ease;
    max-height: 31.25rem;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    padding: 0 1.5rem 1.5rem;
}

.instruction-steps.collapsed {
  max-height: 0;
  padding: 0 1.5rem;
  opacity: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 0.0625rem solid var(--gray-100);
  width: 25%;
}

.step-item:last-child {
  border-bottom: none;
}

.step-icon {
  font-size: 1.2rem;
  min-width: 1.5rem;
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.2rem 0;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.3;
}

/* Main Calculator */
.calculator-section {
  max-width: 1200px;
  margin: -1rem auto 4rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.calculator-card {
  background: rgba(26, 26, 29, 0.95);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  backdrop-filter: blur(20px);
}

.calculator-grid {
  display: flex;
  min-height: 600px;
}

/* Left Panel - Inputs */
.inputs-panel {
  padding: 2rem;
  background: rgba(26, 26, 29, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  flex: 0 0 380px;
}

.panel-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-100);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.panel-subtitle {
  color: var(--gray-400);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group.compact {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Modern Slider */
.slider-container {
  position: relative;
  padding: 0.5rem 0;
}

.slider-wrapper {
  position: relative;
  margin: 0.5rem 0 1rem 0;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: var(--accent-cyan);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
  border: 0.1875rem solid var(--white);
  box-shadow: 0 0 1.25rem rgba(255, 0, 128, 0.5), 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 1.875rem rgba(255, 0, 128, 0.8), 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.4);
}

.slider-value {
  position: absolute;
  top: -3rem;
  background: var(--accent-pink);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
}

.slider-value::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.375rem solid transparent;
  border-top-color: var(--accent-pink);
  filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.2));
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Modern Input Stepper */
.input-stepper {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 0.125rem solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.input-stepper:focus-within {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 0.1875rem rgba(16, 185, 129, 0.1);
}

.stepper-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  background: var(--accent-cyan);
  color: var(--black);
}

.stepper-input {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-900);
  background: var(--white);
  border: none;
  outline: none;
  min-width: 0;
}

.stepper-input:focus {
  background: rgba(0, 255, 209, 0.1);
}

.calculate-btn {
  width: 100%;
  background: var(--accent-cyan);
  color: var(--black);
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.calculate-btn:hover {
  background: var(--accent-cyan-hover);
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 255, 209, 0.3);
}

/* Right Panel - Results */
.results-panel {
  padding: 3rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chart-container {
  flex: 1;
  position: relative;
  min-height: 21.875rem;
  margin-bottom: 2.5rem;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-content: center;
  justify-content: center;
  flex-direction: column;
}

/* Blank State */
.blank-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--gray-600);
}

.blank-state-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.blank-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 0.2rem;
}

.blank-state p {
  color: var(--text-gray);
  font-size: 0.95rem;
  max-width: 17.5rem;
  line-height: 1.5;
}

.blank-state img {
  width: 100%;
}

.gelatine {
  animation: gelatine 5s infinite;
}

@keyframes gelatine {
  from, to { transform: scale(1, 1); }
  5% { transform: scale(0.9, 1.1); }
  20% { transform: scale(1.1, 0.9); }
  25% { transform: scale(0.95, 1.05); }
  50%, 100% { transform: scale(1, 1); }
}

/* Equation Layout */
.wealth-equation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: nowrap;
}

.equation-box {
  background: var(--white);
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all 0.2s ease;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  flex: 1;
  max-width: 160px;
}

.equation-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.equation-box.invested,
.equation-box.interest {
  border-color: rgba(78, 205, 196, 0.3);
  background: rgba(78, 205, 196, 0.05);
}

.equation-box.final {
  border-color: rgba(255, 107, 157, 0.3);
  background: rgba(255, 107, 157, 0.05);
  font-weight: 700;
}

.equation-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.equation-label {
  font-size: 0.8rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.3;
}

.equation-operator {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 1.875rem;
  flex-shrink: 0;
}

.equation-operator:hover {
  color: var(--primary-600);
  transform: scale(1.1);
}

.equation-operator.equals {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--success-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Progress Section */
.progress-section {
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  width: inherit;
}

.progress-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

.progress-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bg-light-gray);
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.progress-year {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 1rem;
}

.progress-description {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

/* Progress Breakdown Styling */
.progress-breakdown {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border-left: 3px solid transparent;
}

.breakdown-item.investment {
  border-left-color: #00FFD1;
  background: rgba(0, 255, 209, 0.05);
}

.breakdown-item.epf {
  border-left-color: #4ECDC4;
  background: rgba(78, 205, 196, 0.05);
}

.breakdown-item.mix-etf {
  border-left-color: #FF6B9D;
  background: rgba(255, 107, 157, 0.05);
}

.breakdown-item.mix-ut {
  border-left-color: #00FFD1;
  background: rgba(0, 255, 209, 0.05);
}

.breakdown-item.mix-fd {
  border-left-color: #4ECDC4;
  background: rgba(78, 205, 196, 0.05);
}

.breakdown-item.mix-stocks {
  border-left-color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

.breakdown-label {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.8rem;
}

.breakdown-amount {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.progress-total {
  text-align: right;
  margin-left: 1rem;
  flex-shrink: 0;
}

.progress-amount {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.progress-total-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Optional field style */
.optional-label::after {
  content: '(Optional)';
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* EPF Section Styles */
.epf-toggle-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.epf-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--gray-200);
}

.epf-toggle-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

.epf-toggle-text {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

.epf-toggle-subtitle {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 400;
  display: block;
}

.epf-section {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.epf-section.hidden {
  max-height: 0;
  padding: 0 1.5rem;
  margin-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

.epf-slider {
  background: var(--success-600) !important;
}

.epf-slider::-webkit-slider-thumb {
  background: var(--success-600) !important;
  box-shadow: 0 0 1.25rem rgba(78, 205, 196, 0.5), 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3) !important;
}

.epf-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 1.875rem rgba(78, 205, 196, 0.8), 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.4) !important;
}

.epf-value {
  background: var(--success-600) !important;
}

.epf-value::after {
  border-top-color: var(--success-600) !important;
}

/* EPF Link Styling */
.epf-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.epf-link:hover {
  color: var(--accent-cyan-hover);
  border-bottom-color: var(--accent-cyan-hover);
  transform: translateY(-1px);
}

.epf-link:active {
  transform: translateY(0);
}

/* Investment Mix Styles */
.mix-toggle-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}

.mix-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--gray-200);
}

.mix-toggle-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent-pink);
}

.mix-toggle-text {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

.mix-toggle-subtitle {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 400;
  display: block;
}

.mix-section {
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.mix-section.hidden {
  max-height: 0;
  padding: 0 1.5rem;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

.mix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.mix-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-100);
  margin: 0;
}

.blended-return {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blended-label {
  font-size: 0.8rem;
  color: var(--gray-300);
  font-weight: 500;
}

.blended-rate {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-pink);
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 107, 157, 0.3);
}

.mix-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mix-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mix-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mix-checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent-pink);
}

.investment-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  flex: 1;
}

.mix-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-100);
}

.mix-description {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 400;
}

.mix-config {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.mix-config.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.mix-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mix-return-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.return-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.return-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  border: 1px solid var(--white);
  box-shadow: 0 0 0.25rem rgba(0, 255, 209, 0.3);
  transition: all 0.2s ease;
}

.return-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0.5rem rgba(0, 255, 209, 0.5);
}

.mix-return-rate {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  min-width: 3rem;
  text-align: center;
  background: rgba(0, 255, 209, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 255, 209, 0.2);
}

.mix-allocation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mix-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mix-slider {
  -webkit-appearance: none;
  width: 120px;
  height: 0.375rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.mix-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 0 0.5rem rgba(255, 0, 128, 0.3);
  transition: all 0.2s ease;
}

.mix-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 1rem rgba(255, 0, 128, 0.5);
}

.mix-percentage {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-pink);
  min-width: 2.5rem;
  text-align: right;
}

.mix-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 107, 157, 0.2);
}

.total-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-200);
}

.total-percentage {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-100);
}

.allocation-status {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
}

.allocation-status.balanced {
  color: var(--success-600);
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.allocation-status.warning {
  color: var(--accent-yellow);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Simple Instructions */
.simple-instructions {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.simple-instructions p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.footer-content p {
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 18.75rem;
  color: var(--gray-500);
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.1875rem solid var(--gray-200);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 64rem) {
  .inputs-panel {
    border-right: none;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 48rem) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    margin: 0 1rem;
  }
  
  .calculator-grid {
    flex-direction: column;
  }
  
  .inputs-panel {
    max-width: none;
    width: 100%;
    border-right: none;
    border-bottom: 0.0625rem solid rgba(226, 232, 240, 0.5);
    flex: none;
    padding: 1rem 3rem;
  }
  
  .results-panel {
    padding: 0.5rem 1.5rem;
  }
  
  .calculator-section {
    margin: -2rem auto 4rem auto;
    padding: 0;
  }
  
  .calculator-card {
    border-radius: 0;
    margin: 0 -1.5rem;
  }

  .wealth-equation {
      flex-direction: column;
      gap: 0.5rem;
      padding: 1.5rem;
      flex-wrap: wrap;
  }
  
  .equation-operator {
    transform: rotate(90deg);
    margin: 0;
  }
  
  .equation-operator {
    transform: none !important;
    margin: 0;
  }

    .equation-box {
        min-width: 100%;
        max-width: none;
        padding: 0.5rem;
    }

  .equation-amount {
    font-size: 1.25rem;
  }

  .instructions-header {
    padding: 0.8rem 1.5rem 2rem 1.5rem;
  }

  .instruction-steps {
      flex-wrap: nowrap;
      flex-direction: column;
      padding: 0 1.5rem 1.5rem;
  }

  .wealth-equation {
    margin-bottom: 0.5rem;
  }

  .chart-container {
    margin-bottom: -0.5rem;
  }

  .progress-section {
    width: 90%;
    margin: 0 auto;
  }

  .step-item {
    width: 100%;
  }
}