/* Retire Page Specific Styles */

/* Retire-specific main container - 세로 배치 기본 */
.retire .main-container {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

/* Retire-specific header styling */
.retire .header-section h1 {
  background: #1a202c;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header top 좌우 정렬 명시적 설정 */
.retire .header-section .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-direction: row;
}

.retire .header-section .header-top .menu-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.retire .header-section .header-top .bitsaving-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Retire-specific settings sections - common 스타일 기반으로 약간의 강조만 */
.retire .settings-section {
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

/* Retire-specific settings sections - asset-selection과 동일한 스타일로 통일 */
.retire .age-settings-section,
.retire .expense-settings-section,
.retire .investment-settings-section,
.retire .growth-rate-settings-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* 고급설정 섹션 - 특별한 스타일 */
.retire .advanced-settings-section {
  margin-bottom: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 12px;
}

/* 고급설정 헤더 */
.retire .advanced-settings-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.retire .advanced-settings-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2em;
  font-weight: 600;
  white-space: nowrap;
}

.retire .advanced-settings-header::after {
  content: '';
  flex: 1;
}

/* 토글 버튼 공통 */
.retire .toggle-collapse-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9em;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.retire .toggle-collapse-btn:hover {
  color: var(--text-primary);
}

.retire .toggle-collapse-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.retire .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  min-height: 1em;
  transform-origin: center center;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.retire .collapsible-section.expanded > .collapsible-header .toggle-icon {
  transform: rotate(180deg);
}

/* 요약 섹션 */
.retire .advanced-settings-summary {
  padding: 16px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.retire .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.retire .summary-label {
  color: var(--text-secondary);
  font-size: 1em;
  font-weight: 500;
}

.retire .summary-value {
  color: var(--text-primary);
  font-size: 1em;
  font-weight: 600;
}

.retire .live-indicator {
  color: var(--primary-color);
  font-size: 0.8em;
  font-weight: 500;
}

/* 고급설정 상세 내용 */
.retire .advanced-settings-content {
  padding: 12px;
  background: var(--bg-white);
}

.retire .setting-item {
  margin-bottom: 20px;
}

.retire .setting-item:last-child {
  margin-bottom: 0;
}

.retire .setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retire .setting-header-with-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px; /* 최소 높이 설정으로 정렬 보장 */
}

.retire .setting-header label {
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 600;
  margin: 0;
}

.retire .setting-header-with-toggle label {
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 600;
  margin: 0;
}

.retire .inflation-value {
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 600;
}

.retire .setting-content {
  display: flex;
  flex-direction: column;
}

/* 토글 스위치 스타일 */
.retire .toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  text-align: center;
  height: auto; /* 부모 높이에 맞춰 자동 조정 */
  flex-shrink: 0;
}

.retire .toggle-switch-label {
  color: var(--text-secondary);
  font-size: 0.9em;
  font-weight: 500;
  margin-right: 8px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.retire .toggle-switch-input {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center; /* 토글스위치 자체도 수직 가운데 정렬 */
}

.retire .toggle-switch-input.active {
  background: var(--primary-color);
}

.retire .toggle-switch-input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.retire .toggle-switch-input.active::after {
  transform: translateX(24px);
}

/* 입력 필드 스타일 - 라이트모드 */
.retire .price-display-field,
.retire .balance-display-field {
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  border: 1px solid var(--border-color);
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.retire .price-display-field:focus,
.retire .balance-display-field:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
  background: #f8f9fa;
}

.retire .price-display-field[readonly] {
  cursor: default;
  background: #f0f0f0;
}

.retire .price-display-field:not([readonly]) {
  cursor: text;
  background: white;
}

.retire .price-display-field::placeholder {
  color: #999;
  font-style: italic;
}

.retire .balance-display-field {
  cursor: text;
  background: white;
}

.retire .balance-display-field:focus {
  background: #f8f9fa;
}

/* 인플레이션 슬라이더 스타일 - 성장률 슬라이더와 동일 */
.retire .inflation-rate-slider {
  width: 100%;
  height: 40px; /* 클릭 영역을 더 넓게 */
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: absolute;
  top: -16px;
  left: 0;
  z-index: 3;
  opacity: 0.01;
}

.retire .inflation-rate-slider::-webkit-slider-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
}

.retire .inflation-rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.retire .inflation-rate-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  border: none;
}

.retire .inflation-rate-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.retire .form-group label {
  color: #2d3748;
  font-weight: 600;
}

/* 원화 환산 표시 스타일 (입력 필드용) */
.retire .krw-conversion {
  display: block;
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.5;
}

/* 원화 환산 표시 스타일 (결과 섹션용) */
.retire .krw-conversion-result {
  display: block;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 0.85em;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.5;
}

/* 나이 설정 섹션 - 데스크톱과 태블릿에서 좌우 배치 */
.retire .age-settings {
  display: flex;
  gap: 16px;
}

.retire .age-settings .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Retire-specific input styling - common 스타일 기반으로 약간의 강조만 */
.retire input, .retire select {
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  font-weight: 500;
}

.retire input:focus, .retire select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  background: var(--bg-white);
}

/* 커스텀 슬라이더 스타일 - 라이트모드 */
.retire .slider-container {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  border: 1px solid var(--border-color);
  gap: 16px;
}

.retire .slider-value-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.retire .slider-value-display span {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.retire .slider-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.retire .growth-rate-slider {
  width: 100%;
  height: 40px; /* 클릭 영역을 더 넓게 */
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: absolute;
  top: -16px; /* 썸과 맞춤 */
  left: 0;
  z-index: 3; /* 최상위로 */
  opacity: 0.01; /* 완전히 투명하지 않고 아주 살짝 보이게 */
}

.retire .growth-rate-slider::-webkit-slider-track {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
}

.retire .growth-rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.retire .growth-rate-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  border: none;
}

.retire .growth-rate-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.retire .slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.retire .slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.1s ease;
  pointer-events: none;
  z-index: 1;
}

.retire .slider-thumb {
  position: absolute;
  top: -6px;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.1s ease;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.retire .slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  color: var(--text-secondary);
  margin-top: 16px;
}

.retire .auto-growth-container {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  border: 1px solid var(--border-color);
}

.retire .auto-growth-main-rate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.retire .auto-growth-label {
  color: var(--text-secondary);
  font-size: 0.95em;
  font-weight: 600;
}

.retire .auto-growth-main-rate #growthRateValue {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text-primary);
}

.retire .auto-growth-summary-grid {
  display: block;
}

.retire #autoGrowthDecadeList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.retire .auto-growth-summary-item {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.retire .auto-growth-summary-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.82em;
  margin-bottom: 4px;
}

.retire .auto-growth-summary-value {
  color: var(--text-primary);
  font-size: 1em;
  font-weight: 600;
}

.retire .auto-growth-disclaimer {
  margin-top: 10px;
}

/* 인플레이션 슬라이더는 기본 스타일로 숨김 */
.retire .inflation-slider-container {
  display: none;
}

/* 결과 컨테이너 */
.retire .results-container {
  max-width: 1200px;
  margin: 24px auto;
}

/* 빈 상태 메시지 */
.retire .empty-state-message {
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 950px;
  }
  
  .retire .empty-state-message p {
    font-size: 1em;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
  }

/* 결과 섹션 */
.retire .results-section {
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 950px;
}

.retire .investment-results,
.retire .withdrawal-results {
  margin-bottom: 24px;
}

.retire .investment-results h4,
.retire .withdrawal-results h4 {
  color: var(--text-primary);
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.retire .result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.retire .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.retire .result-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.retire .result-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1em;
}

.retire .recommendations {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.retire .recommendations h4 {
  color: var(--text-primary);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 12px;
}

.retire .recommendations p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Retire-specific results styling */
.retire #results {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
}

/* Retire-specific result items */
.retire .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.retire .result-item:hover {
  padding-left: 8px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 4px;
}

.retire .result-item span:first-child {
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95em;
}

.retire .result-item span:last-child {
  color: #2d3748;
  font-weight: 700;
  font-size: 1.1em;
}

/* Retire-specific chart styling */
.retire .chart-container {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

.retire .chart-controls {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--border-color);
}

/* Retire-specific table styling */
.retire .investment-table-container {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
  overflow: hidden;
}

.retire .investment-table {
  border: none;
}

.retire .investment-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--bg-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8em;
}

.retire .investment-table td {
  font-weight: 500;
  transition: var(--transition-fast);
}

.retire .investment-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}


/* Retire-specific special elements */
.retire-highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.retire-highlight h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.retire-highlight p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* 은퇴 시 월 소득 섹션 */
.retire .retirement-income-section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.retire .retirement-income-section h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.retire .income-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.retire .income-panel,
.retire .expense-panel {
  text-align: center;
  min-width: 0; /* Grid 오버플로우 방지 */
  overflow-wrap: break-word; /* 긴 텍스트 줄바꿈 */
}

.retire .income-panel label,
.retire .expense-panel label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: 8px;
}

.retire .large-value {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin: 8px 0;
}

.retire .description {
  color: var(--text-muted);
  font-size: 0.9em;
}

/* 인출 규칙 칩 (4% / 8%) */
.retire .withdrawal-rule-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 4px;
}

.retire .withdrawal-rule-chips {
  display: inline-flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;

  white-space: nowrap;
}

.retire .withdrawal-rule-chip {
  font-family: inherit;
  font-size: 0.8em;
  font-weight: 400;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.retire .withdrawal-rule-chip:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.retire .withdrawal-rule-chip:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.retire .withdrawal-rule-chip--selected {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
  box-shadow: 0 1px 3px rgba(76, 175, 80, 0.25);
  font-weight: 600;
}

.retire .withdrawal-rule-star-hint {
  font-size: 0.85em;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
}

/* 커버리지 바 */
.retire .coverage-section {
  margin-top: 24px;
}

.retire .coverage-section label {
  display: block;
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 8px;
}

.retire .coverage-bar {
  position: relative;
  width: 100%;
  height: 40px;
  background: var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  margin: 12px 0;
}

.retire .coverage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color) 0%, #4CAF50 100%);
  transition: width 0.5s ease;
  width: 0%;
}

.retire .coverage-percentage {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text-primary);
}

.retire .coverage-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--success-color);
  font-weight: 500;
  margin-top: 12px;
  font-size:0.9em;
}

.retire .check-icon {
  color: var(--success-color);
  font-size: 1.2em;
}

/* 비트코인 경로 섹션 */
.retire .bitcoin-path-section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.retire .bitcoin-path-section h3 {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.retire .btc-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.retire .btc-symbol {
  font-size: 3em;
  color: #f7931a;
  font-weight: 700;
  margin-right: 8px;
}

.retire .btc-value {
  font-size: 3em;
  color: #f7931a;
  font-weight: 700;
}

.retire .btc-label {
  color: var(--text-secondary);
  font-size: 0.9em;
  text-align: center;
}

.retire .portfolio-value{
    font-size: 2em;
    font-weight: 600;
    color: var(--text-primary);
  }

.retire .portfolio-krw-conversion {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.retire .future-price {
  font-size: 0.8em;
  color: var(--text-secondary);
  margin: 16px 0;
}

.retire .growth-potential {
  font-size: 1.5em;
  color: var(--success-color);
  font-weight: 700;
  margin-top: 16px;
}

/* 상세 정보 섹션 */
.retire .detail-info-section {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.retire .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.retire .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
}

.retire .detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.retire .detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* 인플레이션 반영 시나리오 드롭다운 (고급설정 스타일) */
.retire .inflation-scenario-section {
  margin-top: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 12px;
}

.retire .inflation-scenario-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.retire .inflation-scenario-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
}

.retire .inflation-scenario-header::after {
  content: '';
  flex: 1;
}

.retire .inflation-scenario-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88em;
}

.retire .inflation-scenario-panel {
  margin-top: 12px;
}

.retire .inflation-scenario-note {
  margin: 12px 0 0 0;
  font-size: 0.85em;
  color: var(--text-secondary);
}

.retire .powerlaw-scenario-wrap {
  margin-top: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  padding: 10px 12px;
}

.retire .powerlaw-scenario-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.retire .powerlaw-scenario-header::after {
  content: '';
  flex: 1;
}

.retire .powerlaw-scenario-title {
  color: var(--text-primary);
  font-size: 0.9em;
  font-weight: 500;
}

.retire .powerlaw-scenario-panel {
  margin-top: 10px;
}


.retire .inflation-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.retire .inflation-scenario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0;
}

.retire .inflation-scenario-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.retire .inflation-scenario-value {
  color: var(--text-primary);
  font-weight: 600;
}

.retire .inflation-scenario-milestone-wrap {
  margin-bottom: 16px;
}

.retire .inflation-scenario-milestone-caption {
  margin: 0 0 8px 0;
  font-size: 0.88em;
  color: var(--text-secondary);
  font-weight: 400;
}

.retire .inflation-scenario-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
}

.retire .inflation-scenario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
}

.retire .inflation-scenario-table th,
.retire .inflation-scenario-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}

.retire .inflation-scenario-table th:first-child,
.retire .inflation-scenario-table td:first-child {
  text-align: center;
}

.retire .inflation-scenario-table thead th {
  background: var(--bg-light);
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.25;
}

.retire .inflation-scenario-table .table-sub-label {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--text-muted);
}

.retire .inflation-scenario-table .milestone-btc-amount {
  white-space: nowrap;
}

.retire .inflation-scenario-table .milestone-btc-valuation {
  margin-top: 4px;
  font-size: 0.92em;
  color: var(--text-muted);
  white-space: nowrap;
}

.retire .inflation-scenario-table tbody tr:last-child td {
  border-bottom: none;
}

.retire .withdrawal-rule-explanation {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.retire .explanation-text {
  color: var(--text-muted);
  font-size: 0.85em;
  line-height: 1.6;
  margin: 0;
}


@media (min-width: 991px) {
    .retire .main-container {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 24px;
      align-items: start;
    }
    
    .retire .settings-section {
      grid-column: 1;
    }
    
    .retire .results-container {
      grid-column: 2;
      margin: 0 auto;
    }
}
/* Retire-specific responsive design */
@media (max-width: 768px) {
  /* 모바일에서도 헤더 좌우 정렬 유지 */
  .retire .header-section .header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    width: 100% !important;
  }
  
  .retire .header-section .header-top .menu-container {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    position: relative !important;
  }
  
  .retire .header-section .header-top .bitsaving-btn {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  
  .retire .settings-section {
    padding: 16px;
    border-radius: var(--radius-md);
  }
  
  .retire .age-settings-section,
  .retire .expense-settings-section,
  .retire .investment-settings-section,
  .retire .growth-rate-settings-section,
  .retire .advanced-settings-section {
    padding: 12px;
  }
  
  /* 모바일에서 나이 설정을 상하 배치로 변경 */
  .retire .age-settings {
    flex-direction: flex;
    gap: 12px;
  }
  
  .retire .age-settings .form-group {
    margin-bottom: 12px;
  }
  
  /* 모바일에서 슬라이더 스타일 조정 */
  .retire .slider-container {
    padding: 16px;
  }

  .retire .auto-growth-container {
    padding: 16px;
  }

  .retire #autoGrowthDecadeList {
    grid-template-columns: 1fr;
  }
  
  .retire #results h2 {
    font-size: 1.6em;
  }
  
  /* 결과 섹션 반응형 */
  .retire .income-comparison {
    grid-template-columns: 1fr;
  }
  
  .retire .large-value {
    font-size: 2em;
  }
  
  .retire .btc-symbol {
    font-size: 2.5em;
  }
  
  .retire .btc-value {
    font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  .retire .header-section h1 {
    font-size: 1.8em;
  }
  
  .retire .result-item span:last-child {
    font-size: 1em;
  }
}

/* 이더리움 버튼 비활성화 스타일 */
.retire .asset-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-medium);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.retire .asset-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}


