@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ===== 리셋 & 기본 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --green-primary: #2E9B5A;
  --green-light: #4ABA74;
  --green-pale: rgba(255,255,255,0.10);
  --green-dark: #0F3D22;
  --green-mid: #1B6B3A;
  --gold: #F0B429;
  --gold-light: #FECB4B;
  --text-dark: #ffffff;
  --text-mid: rgba(255,255,255,0.75);
  --text-light: rgba(255,255,255,0.45);
  --white: #ffffff;
  --bg: #0a2015;
  --surface: #112a1c;
  --surface-2: #1a3d28;
  --border: rgba(255,255,255,0.10);
  --card-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
  --card-shadow-hover: 0 8px 28px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.25);
  --radius: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 스크롤바 */
::-webkit-scrollbar { width: 0; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }

/* ===== 화면 전환 ===== */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

/* ===== 시작 화면 ===== */
#splash-screen {
  background: linear-gradient(160deg, #061a0e 0%, #0f3d22 25%, #1B6B3A 55%, #2E7D45 80%, #245C35 100%);
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  padding: 64px 28px calc(40px + var(--safe-bottom));
}

/* 배경 원형 장식 */
.splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.bg-circle-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}

.bg-circle-4 {
  width: 160px;
  height: 160px;
  bottom: 160px;
  right: -40px;
  background: radial-gradient(circle, rgba(184,148,74,0.12) 0%, transparent 70%);
}

.bg-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 80px;
  left: -60px;
  background: rgba(255,255,255,0.06);
}

.bg-circle-3 {
  width: 120px;
  height: 120px;
  top: 200px;
  left: 20px;
  background: rgba(201,168,76,0.12);
}

/* ===== 로고 영역 ===== */
.splash-header {
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.logo-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(145deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.10) 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.logo-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  line-height: 1.5;
  padding-left: 4px;
}

/* ===== 기능 소개 카드 ===== */
.feature-list {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 26px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.08);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 20px;
  transition: background 0.18s;
}

.feature-item[style*="cursor:pointer"]:active {
  background: rgba(255,255,255,0.14);
}

.feature-chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 1;
}

svg.feature-chevron {
  display: block;
}

.feature-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.12);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.feature-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

/* ===== 시작 버튼 ===== */
.splash-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-start {
  width: 100%;
  height: 58px;
  background: var(--white);
  color: var(--green-primary);
  border: none;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-start svg path {
  stroke: var(--green-primary);
}

.btn-start:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-start:hover {
  background: var(--green-pale);
}

.splash-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== 내부 화면 공통 ===== */
#main-screen, #budget-screen, #report-screen,
#skill-screen, #optimize-screen, #scorecard-screen {
  background: var(--bg);
  overflow: hidden;
}

/* ───── 페이지 헤더 ───── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.btn-back {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-back:active { transform: scale(0.93); background: rgba(255,255,255,0.16); }
.btn-back svg path { stroke: rgba(255,255,255,0.85); }

.page-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

/* ───── 진행 바 ───── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2E9B5A, #4ABA74);
  border-radius: 10px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 50%;
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

/* ───── 스텝 화면 ───── */
.step-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.step-screen.active {
  display: flex;
}

.step-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 16px;
  -webkit-overflow-scrolling: touch;
}

.step-emoji,
.step-icon-wrap {
  margin-bottom: 20px;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.16);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.step-icon-wrap svg path,
.step-icon-wrap svg circle,
.step-icon-wrap svg line,
.step-icon-wrap svg rect {
  stroke: rgba(255,255,255,0.85);
}

.step-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.step-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ───── 선택지 버튼 ───── */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.choice-btn:active { transform: scale(0.98); }

.choice-btn.selected {
  border-color: #2E9B5A;
  background: rgba(46,155,90,0.18);
  box-shadow: 0 0 0 3px rgba(46,155,90,0.20), 0 4px 16px rgba(0,0,0,0.3);
}

.choice-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.14);
}
.choice-icon svg circle,
.choice-icon svg line,
.choice-icon svg path,
.choice-icon svg ellipse,
.choice-icon svg rect {
  stroke: rgba(255,255,255,0.85);
  fill: none;
}
.choice-icon svg [fill]:not([fill="none"]) {
  fill: rgba(255,255,255,0.15);
}

.choice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.choice-text strong {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.choice-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.choice-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-primary);
  color: white;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.7);
  flex-shrink: 0;
  font-weight: 700;
}

.choice-btn.selected .choice-check {
  opacity: 1;
  transform: scale(1);
}

/* ───── 섹션 레이블 ───── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 4px;
}

/* ───── 시/도 그리드 ───── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.region-btn {
  padding: 13px 6px;
  background: var(--surface-2);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.region-btn:active { transform: scale(0.97); }

.region-btn.selected {
  border-color: #2E9B5A;
  background: rgba(46,155,90,0.2);
  color: #4ABA74;
  box-shadow: 0 0 0 3px rgba(46,155,90,0.18);
}

/* ───── 구/군 그리드 ───── */
#district-section {
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.district-btn {
  padding: 11px 4px;
  background: var(--surface-2);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.district-btn:active { transform: scale(0.97); }

.district-btn.selected {
  border-color: #2E9B5A;
  background: rgba(46,155,90,0.2);
  color: #4ABA74;
}

/* ───── 동 입력 ───── */
#dong-section {
  animation: fadeUp 0.3s ease;
  margin-top: 4px;
}

.dong-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0 14px;
  gap: 8px;
  transition: border-color 0.2s;
}

.dong-input-wrap:focus-within {
  border-color: #2E9B5A;
}

.dong-prefix {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

.dong-input {
  flex: 1;
  height: 50px;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  font-family: inherit;
}

.dong-input { color: rgba(255,255,255,0.9); }
.dong-input::placeholder { color: rgba(255,255,255,0.3); }

.dong-clear {
  width: 24px;
  height: 24px;
  border: none;
  background: #e0ede6;
  border-radius: 50%;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

/* 자동완성 드롭다운 */
.dong-suggestions {
  margin-top: 6px;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none;
}

.dong-suggestions.open { display: block; }

.dong-suggest-item {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid #f0f7f3;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.dong-suggest-item:last-child { border-bottom: none; }
.dong-suggest-item:active,
.dong-suggest-item:hover { background: var(--green-pale); }

.dong-suggest-item .suggest-icon { font-size: 16px; }
.dong-suggest-item .suggest-name { font-weight: 600; }
.dong-suggest-item .suggest-full { font-size: 12px; color: var(--text-light); margin-left: auto; }

/* ───── 하단 버튼 영역 ───── */
.step-footer {
  padding: 16px 24px calc(24px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.step-footer.two-btn {
  display: flex;
  gap: 10px;
}

.btn-next {
  flex: 1;
  height: 56px;
  background: linear-gradient(135deg, #0e3d20 0%, #1B6B3A 50%, #2E9B5A 100%);
  color: var(--white);
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
  letter-spacing: -0.2px;
  box-shadow: 0 6px 20px rgba(27,107,58,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-next:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn-next:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(27,107,58,0.2);
}

.btn-prev {
  height: 56px;
  padding: 0 20px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}
.btn-prev:hover { background: rgba(255,255,255,0.13); }
.btn-prev:active { transform: scale(0.97); }

/* ───── 로딩 ───── */
.loading-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}

.loading-ball {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #DDE8E2;
  border-top-color: var(--green-primary);
  border-right-color: var(--green-light);
  animation: spin 0.9s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(27,107,58,0.15);
}

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

.loading-text {
  font-size: 16px;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.7;
}

.loading-text span {
  font-size: 14px;
  color: var(--text-light);
}

.step-content, .result-wrap {
  scroll-behavior: smooth;
}

/* ───── 결과 화면 ───── */
.result-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.result-header {
  background: linear-gradient(150deg, #061a0e 0%, #0f3d22 30%, #1B6B3A 70%, #2E7D45 100%);
  padding: 28px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.result-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.result-title {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  margin-bottom: 8px;
}

.result-total {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.result-budget-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.budget-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* 세부보기 버튼 행 */
.result-detail-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px 6px 9px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.detail-btn:active {
  background: rgba(255,255,255,0.28);
  transform: scale(0.95);
}

.detail-btn-icon { font-size: 14px; line-height: 1; }
.detail-btn-label { font-size: 12px; }
.detail-btn-arrow { font-size: 13px; opacity: 0.7; }

.result-body {
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 견적 항목 카드 */
.cost-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.cost-card-clickable {
  cursor: pointer;
  border: 2px solid var(--green-pale);
  transition: border-color 0.2s, transform 0.15s;
}

.cost-card-clickable:active {
  transform: scale(0.98);
  border-color: var(--green-primary);
}

.cost-card-compare-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  margin-top: 8px;
}

/* 클럽 비교 모달 포인트 리스트 */
.club-compare-points {
  list-style: none;
  margin-top: 8px;
  border-top: 1px solid #edf4f0;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.club-compare-points li {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
}

.cost-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--green-pale) 0%, #DFF0E6 100%);
  border: 1px solid rgba(27,107,58,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cost-card-info {
  flex: 1;
}

.cost-card-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.cost-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.cost-card-detail {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

.cost-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--green-primary);
  text-align: right;
  white-space: nowrap;
}

/* 연습장 추천 섹션 */
.range-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 4px 6px;
  border-top: 1px solid #edf4f0;
  margin-top: 4px;
}

/* 연습장 모달 내부 */
.range-modal-avg-card {
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.range-modal-avg-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

.range-modal-avg-price {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.range-modal-section {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.range-modal-ex {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 0;
}

.range-modal-ex-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.range-modal-pkg {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.range-modal-tip {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  padding: 10px 4px 4px;
}

.range-modal-empty {
  font-size: 13px;
  color: var(--text-light);
}

/* 기존 range-card (더 이상 사용 안 하지만 호환 유지) */
.range-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.range-badge.indoor  { background: #e8f0fe; color: #1a56c4; }
.range-badge.outdoor { background: #e8f5ee; color: #2D7D52; }

/* ===== 스마트 추천 카드 ===== */
.smart-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  border: 1.5px solid #e4eef8;
  display: flex;
  flex-direction: column;
}

/* 추천 패키지 영역 (위) */
.smart-rec-section {
  flex: 1;
}

.smart-rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 9px;
  background: #f5f8ff;
  border-bottom: 1px solid #eaf0f8;
}

.smart-rec-category {
  display: flex;
  align-items: center;
  gap: 5px;
}

.smart-cat-icon { display: inline-flex; align-items: center; }

.smart-cat-label {
  font-size: 13px;
  font-weight: 700;
  color: #2a3a4a;
}

.smart-rec-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--green-dark);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 2px;
}

.smart-rec-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.smart-pool-count {
  font-size: 11px;
  color: #fff;
  background: #8a9bb0;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-swap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-swap:active { background: var(--green-primary); transform: scale(0.96); }

.smart-rec-body {
  padding: 13px 15px 12px;
}

.smart-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #1a2a3a;
  margin-bottom: 3px;
  line-height: 1.3;
}

.smart-card-where {
  font-size: 12px;
  color: #5a7a9a;
  margin-bottom: 5px;
}

.smart-card-detail {
  font-size: 12px;
  color: #889aaa;
  line-height: 1.45;
  margin-bottom: 10px;
}

.smart-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f5fa;
  padding-top: 9px;
  margin-top: 2px;
}

.smart-card-tag {
  font-size: 11px;
  font-weight: 700;
  background: #e6f4ec;
  color: #1a6e3a;
  padding: 3px 9px;
  border-radius: 20px;
}

.smart-card-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--green-primary);
}

/* 세부 정보 전체 보기 버튼 (카드 하단) */
.btn-detail-open {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eaf2fb;
  border: none;
  border-top: 1.5px solid #d4e4f4;
  color: #1a5a9a;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: -0.2px;
}
.btn-detail-open:active { background: #d0e4f6; }
.detail-open-label { font-size: 13px; }
.detail-open-arrow { font-size: 12px; opacity: 0.65; }

/* 세부 모달 섹션 구분선 */
.modal-section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f5fa;
  padding: 10px 16px 9px;
  margin: 6px -16px 0;
  border-top: 1px solid #dde8f2;
  border-bottom: 1px solid #dde8f2;
}
.modal-section-divider:first-child { border-top: none; margin-top: -8px; }

.modal-section-icon { display: inline-flex; align-items: center; }

.modal-section-meta { display: flex; flex-direction: column; gap: 1px; }

.modal-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #1a3a5c;
}

.modal-section-sub {
  font-size: 11px;
  color: #7a9abf;
}

@keyframes smartSwap {
  0%   { opacity: 1; transform: translateX(0); }
  40%  { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 0; transform: translateX(-12px); }
}

.smart-card-swap {
  animation: smartSwap 0.18s ease forwards;
}

/* ===== 실력 향상 절감 가이드 ===== */
#result-savings {
  margin: 4px 20px 0;
}

.savings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a3a5c, #1e5a9c);
  border-radius: 16px 16px 0 0;
  padding: 14px 16px;
}

.savings-header-icon { font-size: 22px; }

.savings-header-text { flex: 1; }

.savings-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.savings-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 1px;
}

.savings-year-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}

.savings-timeline {
  background: var(--white);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  border: 1px solid #e0e8f0;
  border-top: none;
}

.savings-phase { border-bottom: 1px solid #f0f4f8; }
.savings-phase:last-child { border-bottom: none; }

.savings-phase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background 0.15s;
}
.savings-phase-head:active { background: #f5f8fb; }

.savings-phase-icon { font-size: 20px; flex-shrink: 0; }

.savings-phase-meta { flex: 1; display: flex; flex-direction: column; gap: 1px; }

.savings-phase-period {
  font-size: 11px;
  color: #888;
  font-weight: 600;
}

.savings-phase-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2a3a;
}

.savings-phase-desc {
  font-size: 11px;
  color: #aaa;
}

.savings-phase-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.savings-amount-badge {
  background: #e8f5ee;
  color: #1a6e3a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.savings-invest-badge {
  background: #fff3e0;
  color: #e65100;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.savings-chevron {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
  line-height: 1;
}

.savings-items {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #f8fbf9;
  padding: 0 14px;
}
.savings-items.open { display: flex; }

.savings-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f5;
}
.savings-item-row:last-child { border-bottom: none; }

.savings-item-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }

.savings-item-body { flex: 1; }

.savings-item-action {
  font-size: 13px;
  font-weight: 600;
  color: #1a2a3a;
  line-height: 1.3;
}

.savings-item-note {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  line-height: 1.4;
}

.savings-item-chip {
  flex-shrink: 0;
  background: #e8f5ee;
  color: #1a6e3a;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
  white-space: nowrap;
  margin-top: 2px;
}

/* AI 팁 박스 */
.result-tip {
  margin: 4px 20px 20px;
  background: #fffbea;
  border: 1px solid #f0d080;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 14px;
  color: #7a5c00;
  line-height: 1.6;
}

.result-tip::before {
  content: "AI 절약 팁";
  white-space: pre;
  font-weight: 700;
  font-size: 13px;
  color: #b88000;
  display: block;
  margin-bottom: 4px;
}

/* ───── 골프백·용품 세부 항목 ───── */
.cost-card.has-subitems {
  flex-direction: column;
  padding-bottom: 0;
  gap: 0;
}

.cost-card-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding-bottom: 14px;
}

.cost-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.subitem-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  background: var(--green-pale);
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.subitem-toggle.open {
  background: var(--green-primary);
  color: var(--white);
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.25s;
}

.subitem-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.subitem-list {
  display: none;
  flex-direction: column;
  border-top: 1px solid #edf4f0;
  width: 100%;
  animation: fadeUp 0.2s ease;
}

.subitem-list.open {
  display: flex;
}

.subitem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid #f4faf7;
}

.subitem-row:last-child {
  border-bottom: none;
  padding-bottom: 14px;
}

.subitem-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,125,82,0.08);
  border: 1px solid rgba(45,125,82,0.12);
  border-radius: 9px;
  flex-shrink: 0;
}

.subitem-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.subitem-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-primary);
}

.subitem-row.clickable {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 8px;
  margin: 0 -4px;
  padding-left: 8px;
  padding-right: 8px;
}

.subitem-row.clickable:active {
  background: var(--green-pale);
}

.subitem-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subitem-chevron {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== 브랜드 비교 바텀시트 ===== */
.brand-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: background 0.3s;
}

.brand-modal-overlay.open {
  background: rgba(0,0,0,0.45);
  pointer-events: auto;
}

.brand-modal {
  width: 100%;
  max-height: 82vh;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: calc(24px + var(--safe-bottom));
}

.brand-modal-overlay.open .brand-modal {
  transform: translateY(0);
}

.brand-modal-handle {
  width: 40px;
  height: 4px;
  background: #d0ddd5;
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.brand-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  flex-shrink: 0;
}

.brand-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.brand-modal-sub {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  padding: 4px 20px 12px;
  flex-shrink: 0;
}

.brand-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #edf4f0;
  border-radius: 50%;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-tier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.brand-tag.lowest {
  background: #e8f5ee;
  color: var(--green-primary);
}

.brand-tag.highest {
  background: #fce4ec;
  color: #c62828;
}

.brand-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-model {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

.brand-tip {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* 저장된 레슨 배너 (Step 3) */
.saved-lesson-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #e8f5ee;
  border-left: 3px solid #2D7D52;
  border-radius: 8px;
  font-size: 13px;
  color: #1a4d32;
  line-height: 1.5;
}
.saved-banner-icon { margin-right: 4px; color: #2D7D52; }

/* 현재 레슨 박스 (결과 상단) */
.skill-current-lesson-box {
  margin: 14px 0;
  padding: 12px 14px;
  background: #f0f9f4;
  border: 1px solid #b2dfca;
  border-radius: 10px;
}
.skill-cur-lesson-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2D7D52;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.skill-cur-lesson-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.skill-cur-lesson-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a2e22;
}
.skill-cur-lesson-section {
  font-size: 12px;
  color: #5a7a66;
  background: #d4ede1;
  padding: 2px 7px;
  border-radius: 10px;
}

/* 레슨 교체 절감 시뮬레이션 */
.lesson-switch-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.lesson-switch-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lesson-cur-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.lesson-cur-badge {
  flex-shrink: 0;
  background: #546e7a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 2px;
}
.lesson-cur-info { display: flex; flex-direction: column; gap: 2px; }
.lesson-cur-name { font-size: 14px; font-weight: 700; color: #222; }
.lesson-cur-price { font-size: 12px; color: #777; }
.switch-cat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.switch-cat-icon { font-size: 16px; }
.switch-cat-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.lesson-cur-where, .lesson-alt-where {
  font-size: 11px;
  color: #5a7a66;
  margin-top: 1px;
}

.lesson-alts-label {
  font-size: 12px;
  font-weight: 600;
  color: #2D7D52;
  margin-bottom: 8px;
}
.lesson-alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  background: #f4faf7;
  border-radius: 8px;
  margin-bottom: 6px;
}
.lesson-alt-row:last-child { margin-bottom: 0; }
.lesson-alt-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lesson-alt-name { font-size: 13px; font-weight: 600; color: #1a2e22; }
.lesson-alt-price { font-size: 12px; color: #5a7a66; }
.lesson-alt-saving {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #e65100;
  background: #fff3e0;
  padding: 3px 8px;
  border-radius: 8px;
  margin-left: 8px;
}

/* ===== 화면 전환 애니메이션 ===== */
.screen.slide-out {
  animation: slideOut 0.35s ease forwards;
}

.screen.slide-in {
  display: flex;
  flex-direction: column;
  animation: slideIn 0.35s ease forwards;
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ───── 예산별 AI 추천 ───── */
.budget-step {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.budget-step.active {
  display: flex;
}

.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.budget-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: var(--white);
  border: 2px solid #e8ecef;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.budget-btn:active { transform: scale(0.96); }

.budget-btn.selected {
  border-color: var(--green-primary);
  background: var(--green-pale);
}

.budget-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.budget-btn.selected .budget-amount { color: var(--green-primary); }

.budget-desc {
  font-size: 11px;
  color: var(--text-light);
}

.budget-btn.selected .budget-desc {
  color: var(--green-primary);
  opacity: 0.8;
}

/* 추천 결과 카드 */
.budget-rec-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 16px 16px;
}

.budget-rec-card {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1.5px solid #e8ecef;
}

.budget-rec-card.possible  { border-color: #c8e6c9; }
.budget-rec-card.partial   { border-color: #ffe082; }
.budget-rec-card.difficult { border-color: #ffcdd2; opacity: 0.85; }

.budget-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.budget-rec-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-rec-icon   { display: inline-flex; align-items: center; }

.budget-rec-category {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.budget-rec-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.budget-rec-status.possible  { background: #e8f5ee; color: #2D7D52; }
.budget-rec-status.partial   { background: #fff8e1; color: #b8860b; }
.budget-rec-status.difficult { background: #fce8e8; color: #c62828; }

.budget-rec-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.budget-rec-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.budget-rec-meta {
  font-size: 12px;
  color: var(--text-mid);
}

.budget-rec-tip {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
  margin-top: 2px;
}

.budget-rec-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eef2ef;
  margin-top: 8px;
}

.budget-rec-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid #f5f8f6;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.budget-rec-link:last-child { border-bottom: none; }

.budget-rec-link:active { background: var(--green-pale); border-radius: 8px; }

.budget-link-chevron {
  font-size: 16px;
  color: var(--green-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== 지출 분석 리포트 ===== */
#report-screen {
  flex-direction: column;
}

.report-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 월 선택기 */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 12px 20px;
  border: 1px solid var(--border);
}

.month-nav-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.month-nav-btn svg path { stroke: rgba(255,255,255,0.75); }

.month-nav-label {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  min-width: 120px;
  text-align: center;
}

/* 요약 카드 */
.report-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.report-summary-card {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.report-summary-card.main-card {
  background: linear-gradient(135deg, #061a0e 0%, #0f3d22 40%, #1B6B3A 100%);
  border: none;
}

.report-summary-card.main-card .rsc-label { color: rgba(255,255,255,0.8); }
.report-summary-card.main-card .rsc-value { color: var(--white); }

.rsc-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.rsc-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.rsc-value.up      { color: #e53935; }
.rsc-value.down    { color: var(--green-primary); }
.rsc-value.neutral { color: var(--text-mid); }

/* 리포트 섹션 공통 */
.report-section {
  background: var(--surface-2);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.report-section-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-section-title .section-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  flex-shrink: 0;
}

/* 지출 입력 폼 */
.expense-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.expense-row:last-child { border-bottom: none; }

.expense-cat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  gap: 7px;
}

.exp-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  flex-shrink: 0;
}

.expense-field {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 6px 10px;
}

.expense-input {
  width: 88px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: right;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.expense-input::placeholder { color: rgba(255,255,255,0.25); font-weight: 400; }

.expense-unit {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  white-space: nowrap;
}

.btn-save-expense {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0e3d20 0%, #1B6B3A 50%, #2E9B5A 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(27,107,58,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-save-expense:active { transform: scale(0.98); opacity: 0.88; }

/* 절감/추가 분석 카드 */
.analysis-card {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 10px;
  border-left: 4px solid #ccc;
}

.analysis-card:last-child { margin-bottom: 0; }
.analysis-card.saving     { border-left-color: var(--green-primary); }
.analysis-card.extra      { border-left-color: #e53935; }
.analysis-card.neutral-card { border-left-color: #90a4ae; }

.analysis-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.analysis-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-mid);
  border-bottom: 1px solid #f5f5f5;
}

.analysis-row:last-child { border-bottom: none; }

.analysis-amount {
  font-weight: 700;
  font-size: 13px;
}

.analysis-amount.up   { color: #e53935; }
.analysis-amount.down { color: var(--green-primary); }

/* 카테고리 바 차트 */
.cat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
}

.cat-bar-row:last-child { border-bottom: none; }

.cat-bar-label {
  font-size: 12px;
  color: var(--text-mid);
  width: 72px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-bar-track {
  flex: 1;
  height: 10px;
  background: #f0f4f0;
  border-radius: 5px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
  min-width: 4px;
}

.cat-bar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 54px;
}

.cat-bar-pct    { font-size: 10px; color: var(--text-light); }
.cat-bar-amount { font-size: 12px; font-weight: 700; color: var(--text-dark); }

/* 월별 추이 차트 */
.trend-chart-wrap {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  height: 150px;
  padding-top: 28px;
  position: relative;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
}

.trend-amount {
  font-size: 9px;
  color: var(--text-light);
  position: absolute;
  top: 0;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.trend-bar-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.trend-bar {
  width: 100%;
  background: var(--green-pale);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
  min-height: 3px;
}

.trend-bar.current {
  background: linear-gradient(to top, var(--green-dark), var(--green-light));
}

.trend-month {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
}

.trend-month.current {
  color: var(--green-primary);
  font-weight: 700;
}

.chart-empty {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

/* 다음 버튼 미선택 상태 */
.btn-next.btn-next-dim {
  opacity: 0.45;
}

/* 선택 안 했을 때 흔들기 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.shake { animation: shake 0.4s ease; }

/* ===== 실력별 비용 최적화 화면 ===== */

#skill-screen {
  flex-direction: column;
  background: var(--bg-light);
}

.skill-progress {
  padding: 10px 20px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-step-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 0;
}

.skill-step-screen.active { display: flex; }

.step-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.skill-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.skill-opt-btn {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.skill-opt-btn.selected {
  border-color: var(--green-primary);
  background: #eaf7ef;
  color: var(--green-primary);
}

/* Result */
.skill-result-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
  text-align: center;
}

.skill-improvement-badge {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.skill-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.skill-score-box {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 90px;
}

.skill-score-box.current {
  background: rgba(255,255,255,0.3);
}

.skill-score-label {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.skill-score-val {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.skill-score-arrow {
  font-size: 20px;
  opacity: 0.7;
}

.skill-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.skill-recs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-rec-card {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.skill-rec-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.skill-rec-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-rec-content { flex: 1; }

.skill-rec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.skill-rec-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.skill-rec-saving {
  margin-top: 10px;
  background: #eaf7ef;
  color: var(--green-primary);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.skill-total-saving {
  background: linear-gradient(135deg, #1a4d32, #2D7D52);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.skill-saving-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.skill-saving-amount {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

/* ── 최저가 라운딩 섹션 ── */
.cheapest-rounding-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.cheapest-courses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.cheapest-course-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cheapest-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cheapest-course-row:nth-child(2) .cheapest-rank-num { background: #3d9970; }
.cheapest-course-row:nth-child(3) .cheapest-rank-num { background: #6aaf8e; }
.cheapest-course-row:nth-child(n+4) .cheapest-rank-num { background: #95c9ab; }

.cheapest-course-info {
  flex: 1;
  min-width: 0;
}

.cheapest-course-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e1a;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.cheapest-type-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.cheapest-type-badge.public {
  background: #e8f5ee;
  color: var(--green-primary);
}

.cheapest-type-badge.semi {
  background: #fff8e1;
  color: #C9A84C;
}

.cheapest-course-meta {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
}

.cheapest-course-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-primary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* AI 추천 버튼 */
.ai-rounding-btn {
  background: linear-gradient(135deg, #1a4d32, var(--green-primary));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
  letter-spacing: -0.2px;
}

.ai-rounding-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* AI 결과 */
.ai-rounding-header {
  font-size: 14px;
  font-weight: 700;
  color: #1a4d32;
  margin: 14px 0 8px 2px;
}

.ai-rounding-card {
  display: flex;
  gap: 10px;
  background: linear-gradient(135deg, #f0f9f4, #fff);
  border: 1px solid #c6e8d5;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
}

.ai-rounding-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-rounding-info { flex: 1; min-width: 0; }

.ai-rounding-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 4px;
}

.ai-rounding-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 3px;
}

.ai-rounding-tip {
  font-size: 12px;
  color: var(--green-primary);
  font-weight: 600;
  margin-bottom: 3px;
}

.ai-rounding-booking {
  font-size: 11px;
  color: #999;
}

.ai-rounding-error {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c62828;
  text-align: center;
  margin-top: 8px;
}

/* ══════════════════════════════
   스케줄 요약 섹션
══════════════════════════════ */
.sched-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  padding: 20px 20px 10px;
}

.sched-summary-wrap {
  background: #fff;
  border-radius: 16px;
  margin: 0 16px 14px;
  padding: 6px 16px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sched-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4f2;
}

.sched-row:last-child { border-bottom: none; }
.sched-row.inactive .sched-icon,
.sched-row.inactive .sched-label { opacity: 0.5; }

.sched-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.sched-row-body { flex: 1; min-width: 0; }

.sched-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sched-icon { font-size: 16px; }

.sched-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 40px;
}

.sched-freq {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

.sched-monthly {
  font-size: 11px;
  color: #999;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 2px 7px;
}

.sched-row-sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sched-type {
  font-size: 11px;
  color: #666;
  background: #f0f4f2;
  border-radius: 6px;
  padding: 2px 8px;
}

.sched-budget {
  font-size: 11px;
  color: var(--green-primary);
  font-weight: 600;
}

/* ══════════════════════════════
   달력
══════════════════════════════ */
.calendar-card {
  background: #fff;
  border-radius: 20px;
  margin: 0 16px 24px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-nav-btn {
  background: #f0f4f2;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: var(--green-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.15s;
}

.cal-nav-btn:active { background: #d8ece0; }

.cal-month-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-wd {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  padding: 4px 0;
}

.cal-wd.sun { color: #e53935; }
.cal-wd.sat { color: #1976D2; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 2px 2px;
  cursor: pointer;
  transition: background 0.12s;
  min-height: 0;
  position: relative;
}

.cal-cell:not(.empty):hover { background: #f0f9f4; }
.cal-cell.empty { cursor: default; }

.cal-cell.today .cal-day-num {
  background: var(--green-primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-cell.sel {
  background: #e8f5ee;
  border: 1.5px solid var(--green-primary);
}

.cal-cell.sun .cal-day-num { color: #e53935; }
.cal-cell.sat .cal-day-num { color: #1976D2; }

.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 22px;
  width: 22px;
  height: 22px;
  text-align: center;
  flex-shrink: 0;
}

.cal-dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.cal-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.cal-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* 날짜 선택 패널 */
.cal-day-panel {
  background: #f8fdf9;
  border: 1.5px solid #c6e8d5;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.cal-day-date {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 10px;
}

.cal-day-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-chip {
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}

.cal-chip.on {
  color: #fff;
  font-weight: 700;
}

.cal-chip-time {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 500;
}

.cal-day-hint {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 8px;
}

/* 월 정기권 뱃지 */
.sched-pass-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e3f0ff;
  color: #1976D2;
  border-radius: 8px;
  padding: 2px 8px;
}

/* ══════════════════════════════
   요일·시간대 설정 카드
══════════════════════════════ */
.sched-prefs-card {
  background: #fff;
  border-radius: 18px;
  margin: 0 16px 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.sched-prefs-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sched-prefs-desc {
  font-size: 12px;
  color: #888;
  margin: 0 0 14px;
  line-height: 1.5;
}

.sched-pref-block {
  padding: 6px 0;
}

.sched-pref-type-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.sched-pref-type-icon { font-size: 16px; }

.sched-pref-type-label {
  font-size: 14px;
  font-weight: 700;
}

.sched-pref-time-chip {
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 8px;
  margin-left: 4px;
}

.sched-pref-days {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pref-day-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fafafa;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #666;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pref-day-btn.on {
  color: #fff;
  font-weight: 800;
}

.sched-pref-times {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pref-time-btn {
  padding: 6px 11px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  background: #fafafa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #777;
  transition: all 0.15s;
}

.pref-time-btn.on { font-weight: 700; }

.sched-pref-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 12px 0;
}

.sched-apply-btn {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, #1a4d32, var(--green-primary));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: opacity 0.2s;
}

.sched-apply-btn:active { opacity: 0.85; }

/* ── 스케줄링 빈 상태 ── */
.sched-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px 40px;
  text-align: center;
  gap: 12px;
}

.sched-empty-icon { font-size: 52px; }

.sched-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.sched-empty-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

.sched-empty-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #1a4d32, var(--green-primary));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ── 현재 이용 옵션 바 ── */
.sched-option-bar {
  padding: 16px 20px 10px;
}

.sched-option-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.sched-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sched-option-chip {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── budget-schedule-main 스크롤 ── */
#budget-schedule-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 알림 배너 ── */
.notif-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fdf9;
  border: 1.5px solid #c6e8d5;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 0;
}

.notif-banner.granted {
  background: #e8f5ee;
  border-color: #2D7D52;
}

.notif-banner.denied {
  background: #fafafa;
  border-color: #e0e0e0;
}

.notif-banner-bell { font-size: 20px; flex-shrink: 0; }

.notif-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.notif-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.notif-banner-sub {
  font-size: 11px;
  color: #888;
}

.notif-banner.granted .notif-banner-title { color: #2D7D52; }

.notif-banner-check {
  font-size: 16px;
  font-weight: 800;
  color: #2D7D52;
}

.notif-allow-btn {
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 토스트 ── */
.bp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), opacity 0.3s ease;
  background: #1a2e1a;
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  z-index: 9999;
}

.bp-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.bp-toast-icon { font-size: 22px; flex-shrink: 0; }

.bp-toast-body { flex: 1; min-width: 0; }

.bp-toast-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}

.bp-toast-msg {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-toast-close {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ───── 월간 비용 최적화 (실력별) ───── */

/* 스텝 서브 설명 */
.step-question-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.5;
}

/* 저번달 타수 힌트 */
.step1-prev-hint {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--green-pale);
  border-radius: 12px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
}

/* 월간 리포트 카드 (새 레이아웃) */
.skill-report-card {
  margin: 16px 20px 0;
  background: var(--white);
  border: 1.5px solid #d4e8db;
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 2px 8px rgba(45,125,82,0.07);
}
.skill-report-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.skill-report-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
}
.skill-report-scores {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 12px;
}
.skill-report-score-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.skill-report-score-month {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}
.skill-report-score-val {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
  text-align: center;
  word-break: keep-all;
  line-height: 1.3;
}
.skill-report-score-val.improved { color: #1a6e3a; }
.skill-report-score-val.regressed { color: #c0392b; }
.skill-report-score-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 64px;
}
.skill-report-score-arrow {
  font-size: 18px;
  color: var(--text-light);
}
.skill-report-score-diff {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.diff-good { color: #1a6e3a; }
.diff-bad  { color: #c0392b; }
.diff-even { color: var(--text-mid); }
.skill-report-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e8f5ee, #f0f9f4);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 2px;
}
.skill-report-goal-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.skill-report-goal-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}
.skill-report-goal-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-dark);
}

/* 월간 헤더 (기간 + 뱃지) */
.skill-monthly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: var(--green-pale);
  border-radius: 16px;
  margin: 16px 20px 0;
  gap: 10px;
}

.skill-monthly-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  flex: 1;
}

.skill-monthly-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.skill-monthly-badge.improved {
  background: #d4edda;
  color: #155724;
}
.skill-monthly-badge.steady {
  background: #fff3cd;
  color: #856404;
}
.skill-monthly-badge.regressed {
  background: #f8d7da;
  color: #721c24;
}

/* 타수 비교 행 */
.skill-score-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border: 1px solid #e8f0ea;
  border-radius: 16px;
  margin: 10px 20px;
  padding: 18px 10px;
  overflow: hidden;
}

.skill-score-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.skill-score-col-month {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.skill-score-col-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -1px;
}
.skill-score-col-val.improved { color: #1a6e3a; }
.skill-score-col-val.regressed { color: #c0392b; }

.skill-score-arrow-big {
  font-size: 22px;
  color: var(--text-light);
  flex-shrink: 0;
  padding: 0 6px;
}

/* 다음 목표 */
.skill-next-goal {
  margin: 0 20px 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f5ee, #f0f9f4);
  border-radius: 14px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.5;
}

/* 다음달 알림 카드 */
/* Step 4 지출 입력 */
.skill-cost-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 20px 12px;
}
.skill-cost-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 20px 16px;
  padding: 14px 18px;
  background: var(--green-pale);
  border-radius: 14px;
}
.skill-cost-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
}
.skill-cost-total-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--green-primary);
}

.skill-to-optimize-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 4px 20px 10px;
  padding: 15px;
  background: linear-gradient(135deg, #C9A84C, #e0b95a);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}
.skill-to-optimize-btn:active { opacity: 0.88; }

.skill-next-month-remind {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 20px 4px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid #e0ebf5;
  border-radius: 16px;
}

.skill-remind-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.skill-remind-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.skill-remind-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.skill-remind-sub {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.skill-remind-btn {
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.skill-remind-btn:active { background: var(--green-dark); }

/* 월간 비용 최적화 — AI 로딩 */
.skill-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 20px;
}
.skill-ai-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--green-primary) 0%, transparent 70%);
  animation: spin 0.9s linear infinite;
}
.skill-ai-loading-text {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 600;
  text-align: center;
}

/* AI 종합 분석 요약 */
/* 데이터 없음 */
.skill-nodata {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 12px;
}
.skill-nodata-icon { font-size: 48px; }
.skill-nodata-title { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.skill-nodata-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.skill-nodata-btn {
  margin-top: 8px;
  padding: 14px 28px;
  background: var(--green-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
}

/* 자동 반영 칩 */
.skill-auto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 20px 14px;
}
.skill-chip {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #b6dfc8;
}

/* 레슨 플랜 카드 */
.skill-lesson-plan-card {
  margin: 0 20px 12px;
  background: linear-gradient(135deg, #f0f9f4, #e8f5ee);
  border: 1.5px solid #9dd4b5;
  border-radius: 16px;
  padding: 16px 18px;
}
.skill-lesson-plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.skill-lesson-plan-icon { font-size: 24px; }
.skill-lesson-plan-title { font-size: 15px; font-weight: 800; color: var(--green-dark); }
.skill-lesson-plan-saving { font-size: 12px; font-weight: 700; color: #1a6e3a; margin-top: 2px; }
.skill-lesson-plan-current {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  padding-left: 2px;
}
.skill-lesson-plan-rec {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

/* 비용 재조정 항목 */
.skill-cost-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 20px 12px;
}
.skill-cost-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e0ebe4;
  border-radius: 14px;
  padding: 13px 15px;
}
.skill-cost-item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}
.skill-cost-item-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.skill-cost-item-cat { font-size: 14px; font-weight: 800; color: var(--text-dark); }
.skill-cost-item-reason { font-size: 11px; color: var(--text-light); margin-top: 2px; line-height: 1.4; }
.skill-cost-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  min-width: 80px;
}
.skill-cost-item-cur { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
.skill-cost-item-action {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}
.action-reduce   { background: #d4edda; color: #155724; }
.action-maintain { background: #fff3cd; color: #856404; }
.action-increase { background: #cfe2ff; color: #084298; }
.skill-cost-item-rec { font-size: 12px; font-weight: 700; color: var(--text-dark); }

.skill-ai-summary {
  margin: 10px 20px;
  padding: 14px 16px;
  background: var(--green-pale);
  border-left: 3px solid var(--green-primary);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 500;
}

/* AI 한 줄 팁 */
.skill-ai-tip {
  margin: 4px 20px 4px;
  padding: 14px 16px;
  background: #fffbea;
  border: 1px solid #f0d080;
  border-radius: 14px;
  font-size: 13px;
  color: #7a5c00;
  line-height: 1.5;
  font-weight: 600;
}

/* ───── 예산 최적화 화면 ───── */

.opt-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

/* 총 지출 헤더 */
.opt-total-header {
  margin: 14px 16px 10px;
  padding: 20px 18px;
  background: linear-gradient(135deg, #1a4d32, #2D7D52);
  border-radius: 20px;
  text-align: center;
}
.opt-total-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 6px;
}
.opt-total-amount {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.opt-total-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* 카테고리 카드 */
.opt-cats-card {
  margin: 0 16px 10px;
  background: var(--white);
  border: 1px solid #e0ebe4;
  border-radius: 18px;
  overflow: hidden;
}
.opt-cats-title {
  padding: 12px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  border-bottom: 1px solid #f0f4f1;
}
.opt-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #f4f8f5;
  gap: 8px;
}
.opt-cat-row:last-child { border-bottom: none; }
.opt-cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.opt-cat-icon { font-size: 22px; flex-shrink: 0; }
.opt-cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.opt-cat-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}
.opt-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.opt-cat-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.opt-cat-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-primary);
  white-space: nowrap;
}
.opt-cat-price.unset { color: #bbb; font-weight: 500; }
.opt-edit-btn {
  background: var(--green-pale);
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.opt-edit-btn:active { background: #c8e8d4; }

/* 빈 상태 힌트 */
.opt-empty-hint {
  margin: 0 16px 10px;
  padding: 16px;
  background: #fffbea;
  border: 1px solid #f0d080;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #7a5c00;
  line-height: 1.5;
}
.opt-empty-hint span { font-size: 20px; }
.opt-goto-btn {
  background: #f0d060;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #5a4000;
  cursor: pointer;
  text-align: center;
}

/* AI 분석 버튼 */
.opt-analyze-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 4px 16px 16px;
  padding: 16px;
  background: var(--green-primary);
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.opt-analyze-btn:active { background: var(--green-dark); }
.opt-analyze-btn.disabled, .opt-analyze-btn:disabled {
  background: #b0c8b8;
  cursor: not-allowed;
  box-shadow: none;
}
.opt-analyze-hint {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin: -8px 16px 16px;
}

/* 입력 화면 */
.opt-intro-banner {
  margin: 14px 16px 16px;
  padding: 20px 18px;
  background: linear-gradient(135deg, #061a0e 0%, #0f3d22 40%, #1B6B3A 100%);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(6,26,14,0.28);
}
.opt-intro-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.opt-intro-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
/* 자동 반영 배너 */
.opt-auto-banner {
  margin: 0 16px 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f5ee, #f0f9f5);
  border: 1.5px solid #b6dfc8;
  border-radius: 14px;
}
.opt-auto-banner-title {
  font-size: 12px;
  font-weight: 800;
  color: #2D7D52;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.opt-auto-banner-row {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.5;
}
.opt-auto-banner-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.opt-auto-tag {
  display: inline-block;
  background: #2D7D52;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-right: 4px;
}
.opt-score-diff { font-weight: 700; }
.opt-auto-name {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 1px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-input-card.auto-filled {
  border-color: #9dd4b5;
  background: #fafffe;
}

.opt-input-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 16px 12px;
}
.opt-input-card {
  background: #fff;
  border: 1.5px solid #e0ebe4;
  border-radius: 16px;
  padding: 14px 16px 12px;
}
.opt-input-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.opt-input-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a2a3a;
}
.opt-input-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.opt-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #2D7D52;
  background: #f0f7f3;
  color: #2D7D52;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.opt-step-btn:active { background: #c8e8d4; }
.opt-step-val {
  min-width: 56px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #2D7D52;
}
.opt-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opt-type-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #dde8e2;
  background: #f7faf8;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.opt-type-chip.selected {
  background: #2D7D52;
  border-color: #2D7D52;
  color: #fff;
}
.opt-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 16px;
  padding: 14px 18px;
  background: #f0f7f3;
  border-radius: 14px;
  border: 1.5px solid #c8e0d0;
}
.opt-total-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
}
.opt-total-bar-amount {
  font-size: 18px;
  font-weight: 900;
  color: #2D7D52;
}

/* 결과 헤더 */
.opt-result-header {
  margin: 0 16px 10px;
  padding: 18px;
  background: linear-gradient(135deg, #061a0e 0%, #0f3d22 40%, #1B6B3A 100%);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(6,26,14,0.28);
}
.opt-result-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.opt-result-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.opt-result-col-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.opt-result-col-val {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.opt-result-col-val.optimized { color: #a8f0c0; }
.opt-result-arrow-big {
  font-size: 20px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.opt-result-total-saving {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #a8f0c0;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px;
}

/* 항목별 결과 카드 */
.opt-result-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 16px 10px;
}
.opt-result-cat {
  background: var(--white);
  border: 1px solid #e0ebe4;
  border-radius: 16px;
  overflow: hidden;
}
.opt-result-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--green-pale);
}
.opt-result-cat-icon { font-size: 20px; }
.opt-result-cat-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-dark);
  flex: 1;
}
.opt-result-saving-badge {
  font-size: 12px;
  font-weight: 800;
  color: #1a6e3a;
  background: #d4edda;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.opt-result-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opt-result-current {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.opt-result-arrow {
  font-size: 16px;
  color: var(--green-primary);
  font-weight: 700;
  text-align: center;
  margin: -2px 0;
}
.opt-result-optimized {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.opt-result-opt-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}
.opt-result-opt-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-primary);
}
.opt-result-reason {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-top: 2px;
}
.opt-result-tips {
  margin: 4px 0 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.opt-result-tips li {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

/* 장소 추천 섹션 */
.opt-venue-section {
  border-top: 1px solid #edf5f0;
  padding: 10px 14px 12px;
  background: #f8fbf9;
}
.opt-venue-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.opt-venue-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #edf5f0;
}
.opt-venue-row:last-child { border-bottom: none; }
.opt-venue-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.opt-venue-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.opt-venue-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.opt-venue-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-venue-sub {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}
.opt-venue-tip {
  font-size: 11px;
  color: var(--green-primary);
  font-weight: 600;
  margin-top: 1px;
}
.opt-venue-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.opt-venue-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--green-primary);
  white-space: nowrap;
}
.opt-venue-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

/* 수동 입력 모달 */
.opt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.opt-modal-card {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 36px;
  width: 100%;
  max-width: 480px;
}
.opt-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.opt-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.opt-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  width: 64px;
  flex-shrink: 0;
}
.opt-modal-input {
  flex: 1;
  border: 1px solid #d0ddd4;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  background: #fafcfb;
}
.opt-modal-input:focus { border-color: var(--green-primary); }

/* ───── 스코어카드 화면 ───── */

/* 헤더 추가 버튼 */
.sc-add-btn {
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.sc-add-btn:active { background: var(--green-dark); }

/* 월간 요약 배너 */
.sc-monthly-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #061a0e 0%, #0f3d22 40%, #1B6B3A 100%);
  border-radius: 18px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(6,26,14,0.3);
}
.sc-month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.sc-month-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.sc-month-val {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.sc-month-val.improved { color: #a8f0c0; }
.sc-month-val.regressed { color: #ffb3b3; }
.sc-month-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.sc-month-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.sc-month-badge.improved  { background: rgba(255,255,255,0.2); color: #a8f0c0; }
.sc-month-badge.regressed { background: rgba(255,255,255,0.2); color: #ffb3b3; }
.sc-month-badge.steady    { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
.sc-analyze-btn {
  width: 100%;
  margin-top: 4px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.sc-analyze-btn:active { background: rgba(255,255,255,0.25); }

/* 라운드 추가 폼 */
.sc-add-form {
  margin: 0 16px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 12px;
}
.sc-form-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}
.sc-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  width: 72px;
  flex-shrink: 0;
}
.sc-label-opt {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}
.sc-input {
  flex: 1;
  border: 1px solid #d0ddd4;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  background: #fafcfb;
}
.sc-input:focus { border-color: var(--green-primary); }
.sc-hole-toggle {
  display: flex;
  gap: 8px;
}
.sc-hole-btn {
  padding: 8px 18px;
  border: 1.5px solid #ccddd4;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
}
.sc-hole-btn.selected {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}
.sc-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sc-score-stepper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--green-primary);
  background: var(--white);
  color: var(--green-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.sc-score-stepper:active { background: var(--green-pale); }
.sc-score-display {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark);
  min-width: 56px;
  text-align: center;
  letter-spacing: -0.5px;
}
.sc-form-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.sc-cancel-btn {
  flex: 1;
  padding: 11px;
  border: 1.5px solid #d0ddd4;
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
}
.sc-save-btn {
  flex: 2;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: var(--green-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.sc-save-btn:active { background: var(--green-dark); }

/* ── 스코어카드 AI 분석 카드 ── */
.sc-analysis-card {
  margin: 0 16px 12px;
  background: var(--white);
  border: 1px solid #dde8e0;
  border-radius: 20px;
  overflow: hidden;
}
.sc-analysis-card.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
}

.sc-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #edf5f0;
}
.sc-analysis-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-analysis-icon { font-size: 24px; flex-shrink: 0; }
.sc-analysis-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}
.sc-analysis-trend {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 3px;
}
.sc-analysis-trend.improving  { background: #d4edda; color: #155724; }
.sc-analysis-trend.regressed  { background: #f8d7da; color: #721c24; }
.sc-analysis-trend.steady     { background: #fff3cd; color: #856404; }

.sc-analysis-refresh {
  background: var(--green-pale);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: var(--green-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sc-analysis-refresh:active { background: #c8e8d4; }

/* 스파크라인 */
.sc-sparkline-wrap {
  padding: 10px 16px 6px;
  border-bottom: 1px solid #edf5f0;
}
.sc-sparkline-label {
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}

/* 종합 분석 */
.sc-analysis-summary {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 500;
  border-bottom: 1px solid #edf5f0;
}

/* 섹션 */
.sc-ai-section-title {
  padding: 10px 16px 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sc-ai-items {
  padding: 0 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-ai-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}
.sc-ai-item-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* 기록 리스트 */
.sc-list {
  padding: 0 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-group {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.sc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
}
.sc-group-label {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}
.sc-group-avg {
  font-size: 13px;
  font-weight: 700;
  color: #4ABA74;
}
.sc-round-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-round-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-round-date {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
}
.sc-round-course {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
}
.sc-round-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-round-holes {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 20px;
}
.sc-round-score {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  min-width: 44px;
  text-align: right;
}
.sc-del-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}
.sc-del-btn:hover { color: #e55; }

/* 비어 있을 때 */
.sc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 24px 40px;
  text-align: center;
}
.sc-empty-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  border-radius: 24px;
  border: 1.5px solid rgba(27,107,58,0.10);
}
.sc-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}
.sc-empty-sub {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* =====================================================
   다크 테마 내부 화면 전체 오버라이드
   ===================================================== */

/* 견적 카드 */
.cost-card { background: var(--surface-2); border: 1px solid var(--border); }
.cost-card-name { color: rgba(255,255,255,0.90); }
.cost-card-detail { color: rgba(255,255,255,0.65); }
.cost-card-label { color: rgba(255,255,255,0.45); }
.cost-card-clickable { border: 2px solid var(--border); }
.cost-card-compare-hint { color: #4ABA74; }
.cost-card-icon { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.10); }
.club-compare-points { border-top-color: rgba(255,255,255,0.08); }
.club-compare-points li { color: rgba(255,255,255,0.65); }
.subitem-list { border-top-color: rgba(255,255,255,0.08); }
.subitem-row { border-bottom-color: rgba(255,255,255,0.07); }
.subitem-icon { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.10); }
.subitem-name { color: rgba(255,255,255,0.90); }
.range-section-title { color: rgba(255,255,255,0.80); border-top-color: rgba(255,255,255,0.08); }
.range-badge.indoor  { background: rgba(26,86,196,0.22); color: #82b1ff; }
.range-badge.outdoor { background: rgba(46,155,90,0.22); color: #4ABA74; }

/* 스마트 추천 카드 */
.smart-card { background: var(--surface-2); border: 1.5px solid var(--border); box-shadow: var(--card-shadow); }
.smart-rec-top { background: rgba(255,255,255,0.06); border-bottom-color: rgba(255,255,255,0.08); }
.smart-cat-label { color: rgba(255,255,255,0.85); }
.smart-card-name { color: #ffffff; }
.smart-card-where { color: rgba(255,255,255,0.50); }
.smart-card-detail { color: rgba(255,255,255,0.50); }
.smart-price-row { border-top-color: rgba(255,255,255,0.08); }
.smart-card-tag { background: rgba(46,155,90,0.22); color: #4ABA74; }
.btn-detail-open { background: rgba(255,255,255,0.06); border-top: 1.5px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
.btn-detail-open:active { background: rgba(255,255,255,0.12); }
.modal-section-divider { background: rgba(255,255,255,0.05); border-top-color: rgba(255,255,255,0.08); border-bottom-color: rgba(255,255,255,0.08); }
.modal-section-title { color: rgba(255,255,255,0.90); }
.modal-section-sub { color: rgba(255,255,255,0.45); }

/* 절감 가이드 */
.savings-timeline { background: var(--surface-2); border-color: var(--border); }
.savings-phase { border-bottom-color: rgba(255,255,255,0.07); }
.savings-phase-head { background: var(--surface-2); }
.savings-phase-head:active { background: var(--surface); }
.savings-phase-period { color: rgba(255,255,255,0.45); }
.savings-phase-title { color: #ffffff; }
.savings-phase-desc { color: rgba(255,255,255,0.40); }
.savings-chevron { color: rgba(255,255,255,0.40); }
.savings-items { background: rgba(255,255,255,0.03); }
.savings-item-row { border-bottom-color: rgba(255,255,255,0.07); }
.savings-item-action { color: rgba(255,255,255,0.90); }
.savings-item-note { color: rgba(255,255,255,0.45); }
.savings-amount-badge { background: rgba(46,155,90,0.22); color: #4ABA74; }
.savings-invest-badge { background: rgba(255,152,0,0.20); color: #FECB4B; }

/* AI 팁 */
.result-tip { background: rgba(240,180,41,0.10); border-color: rgba(240,180,41,0.30); color: #FECB4B; }
.result-tip::before { color: #F0B429; }
.skill-ai-tip { background: rgba(240,180,41,0.10); border-color: rgba(240,180,41,0.30); color: #FECB4B; }

/* 분석 카드 */
.analysis-card { background: var(--surface-2); box-shadow: var(--card-shadow); border-left-width: 4px; }
.analysis-card-title { color: rgba(255,255,255,0.90); }
.analysis-row { color: rgba(255,255,255,0.70); border-bottom-color: rgba(255,255,255,0.07); }

/* 카테고리 바 */
.cat-bar-row { border-bottom-color: rgba(255,255,255,0.07); }
.cat-bar-label { color: rgba(255,255,255,0.65); }
.cat-bar-track { background: rgba(255,255,255,0.10); }
.cat-bar-amount { color: rgba(255,255,255,0.90); }

/* 동 자동완성 */
.dong-clear { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.70); }
.dong-suggestions { background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.45); }
.dong-suggest-item { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.07); }
.dong-suggest-item:active, .dong-suggest-item:hover { background: rgba(255,255,255,0.07); }
.dong-suggest-item .suggest-full { color: rgba(255,255,255,0.40); }

/* 로딩 */
.loading-ball { border-color: rgba(255,255,255,0.12); }

/* 예산별 추천 */
.budget-btn { background: var(--surface-2); border-color: var(--border); }
.budget-btn.selected { background: rgba(46,155,90,0.18); }
.budget-amount { color: rgba(255,255,255,0.90); }
.budget-rec-card { background: var(--surface-2); border-color: var(--border); }
.budget-rec-card.possible  { border-color: rgba(46,155,90,0.40); }
.budget-rec-card.partial   { border-color: rgba(255,193,7,0.40); }
.budget-rec-card.difficult { border-color: rgba(229,57,53,0.35); }
.budget-rec-category { color: rgba(255,255,255,0.90); }
.budget-rec-status.possible  { background: rgba(46,155,90,0.20); color: #4ABA74; }
.budget-rec-status.partial   { background: rgba(255,193,7,0.20); color: #FECB4B; }
.budget-rec-status.difficult { background: rgba(229,57,53,0.20); color: #ff8a80; }
.budget-rec-type { color: rgba(255,255,255,0.90); }
.budget-rec-meta { color: rgba(255,255,255,0.60); }
.budget-rec-tip { color: rgba(255,255,255,0.50); border-top-color: rgba(255,255,255,0.08); }
.budget-rec-links { border-top-color: rgba(255,255,255,0.08); }
.budget-rec-link { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.06); }
.budget-rec-link:active { background: rgba(255,255,255,0.05); border-radius: 8px; }

/* 스케줄 */
.sched-summary-wrap { background: var(--surface-2); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.sched-row { border-bottom-color: rgba(255,255,255,0.07); }
.sched-monthly { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.55); }
.sched-type { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.60); }
.sched-empty-desc { color: rgba(255,255,255,0.55); }
.sched-option-bar-label { color: rgba(255,255,255,0.40); }
.sched-pass-badge { background: rgba(25,118,210,0.22); color: #82b1ff; }
.notif-banner { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.notif-banner-sub { color: rgba(255,255,255,0.50); }
.notif-banner.granted { background: rgba(46,155,90,0.15); border-color: rgba(46,155,90,0.40); }

/* 달력 */
.calendar-card { background: var(--surface-2); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.cal-nav-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #4ABA74; font-size: 18px; }
.cal-nav-btn:active { background: rgba(255,255,255,0.15); }
.cal-month-label { color: #ffffff; }
.cal-wd { color: rgba(255,255,255,0.40); }
.cal-wd.sun { color: #ff8a80; }
.cal-wd.sat { color: #82b1ff; }
.cal-cell:not(.empty):hover { background: rgba(255,255,255,0.06); }
.cal-cell.sel { background: rgba(46,155,90,0.18); border-color: #2E9B5A; }
.cal-day-num { color: rgba(255,255,255,0.85); }
.cal-cell.sun .cal-day-num { color: #ff8a80; }
.cal-cell.sat .cal-day-num { color: #82b1ff; }
.cal-legend { border-top-color: rgba(255,255,255,0.08); }
.cal-leg-item { color: rgba(255,255,255,0.55); }
.cal-day-panel { background: var(--surface-2); border-color: rgba(46,155,90,0.30); }
.cal-day-date { color: rgba(255,255,255,0.90); }
.cal-chip { background: var(--surface); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.70); }
.cal-day-hint { color: rgba(255,255,255,0.35); }

/* 요일·시간대 설정 */
.sched-prefs-card { background: var(--surface-2); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.sched-prefs-desc { color: rgba(255,255,255,0.50); }
.sched-pref-divider { background: rgba(255,255,255,0.08); }
.pref-day-btn { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }
.pref-time-btn { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }

/* 실력별 최적화 */
.skill-opt-btn { background: var(--surface-2); border-color: rgba(255,255,255,0.12); }
.skill-opt-btn.selected { border-color: var(--green-primary); background: rgba(46,155,90,0.18); color: #4ABA74; }
.skill-rec-card { background: var(--surface-2); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.skill-rec-title { color: #ffffff; }
.skill-rec-desc { color: rgba(255,255,255,0.65); }
.skill-rec-saving { background: rgba(46,155,90,0.20); color: #4ABA74; }
.cheapest-course-row { background: var(--surface-2); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.cheapest-course-name { color: rgba(255,255,255,0.90); }
.cheapest-course-meta { color: rgba(255,255,255,0.50); }
.cheapest-type-badge.public { background: rgba(46,155,90,0.22); color: #4ABA74; }
.cheapest-type-badge.semi   { background: rgba(201,168,76,0.22); color: #FECB4B; }
.ai-rounding-header { color: #4ABA74; }
.ai-rounding-card { background: var(--surface-2); border-color: rgba(46,155,90,0.30); }
.ai-rounding-name { color: rgba(255,255,255,0.90); }
.ai-rounding-meta { color: rgba(255,255,255,0.55); }
.ai-rounding-booking { color: rgba(255,255,255,0.40); }
.ai-rounding-error { background: rgba(229,57,53,0.15); border-color: rgba(229,57,53,0.30); color: #ff8a80; }
.skill-score-compare { background: var(--surface-2); border-color: var(--border); }
.skill-score-col-month { color: rgba(255,255,255,0.50); }
.skill-score-col-val { color: rgba(255,255,255,0.90); }
.skill-score-arrow-big { color: rgba(255,255,255,0.40); }
.skill-next-goal { background: rgba(46,155,90,0.12); color: rgba(255,255,255,0.80); border: 1px solid rgba(46,155,90,0.25); }
.skill-report-card { background: var(--surface-2); border-color: var(--border); box-shadow: var(--card-shadow); }
.skill-report-period { color: rgba(255,255,255,0.65); }
.skill-report-scores { background: rgba(255,255,255,0.07); }
.skill-report-score-month { color: rgba(255,255,255,0.45); }
.skill-report-score-val { color: rgba(255,255,255,0.90); }
.skill-report-score-val.improved { color: #4ABA74; }
.skill-report-score-val.regressed { color: #ff8a80; }
.skill-report-score-mid .skill-report-score-arrow { color: rgba(255,255,255,0.40); }
.skill-report-goal { background: rgba(46,155,90,0.12); border: 1px solid rgba(46,155,90,0.20); }
.skill-report-goal-label { color: rgba(255,255,255,0.45); }
.skill-report-goal-val { color: #4ABA74; }
.skill-monthly-badge.improved  { background: rgba(46,155,90,0.25); color: #4ABA74; }
.skill-monthly-badge.steady    { background: rgba(255,193,7,0.20); color: #FECB4B; }
.skill-monthly-badge.regressed { background: rgba(229,57,53,0.20); color: #ff8a80; }
.skill-next-month-remind { background: var(--surface-2); border-color: var(--border); }
.skill-lesson-plan-card { background: rgba(46,155,90,0.10); border-color: rgba(46,155,90,0.25); }
.skill-lesson-plan-title { color: #4ABA74; }
.skill-lesson-plan-saving { color: #4ABA74; }
.skill-lesson-plan-rec { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.80); }
.skill-cost-item { background: var(--surface-2); border-color: var(--border); }
.skill-cost-item-cat { color: rgba(255,255,255,0.90); }
.skill-cost-item-rec { color: rgba(255,255,255,0.85); }
.action-reduce   { background: rgba(46,155,90,0.22); color: #4ABA74; }
.action-maintain { background: rgba(255,193,7,0.20); color: #FECB4B; }
.action-increase { background: rgba(33,150,243,0.20); color: #82b1ff; }
.skill-chip { background: rgba(46,155,90,0.15); color: #4ABA74; border-color: rgba(46,155,90,0.25); }
.step1-prev-hint { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.80); }

/* 예산 최적화 */
.opt-cats-card { background: var(--surface-2); border-color: var(--border); }
.opt-cats-title { color: rgba(255,255,255,0.70); border-bottom-color: rgba(255,255,255,0.08); }
.opt-cat-row { border-bottom-color: rgba(255,255,255,0.07); }
.opt-edit-btn { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
.opt-edit-btn:active { background: rgba(255,255,255,0.15); }
.opt-empty-hint { background: rgba(240,180,41,0.10); border-color: rgba(240,180,41,0.25); color: #FECB4B; }
.opt-goto-btn { background: rgba(240,180,41,0.20); color: #FECB4B; }
.opt-analyze-btn.disabled, .opt-analyze-btn:disabled { background: rgba(255,255,255,0.12); }
.opt-analyze-hint { color: rgba(255,255,255,0.35); }
.opt-auto-banner { background: rgba(46,155,90,0.12); border-color: rgba(46,155,90,0.30); }
.opt-auto-banner-title { color: #4ABA74; }
.opt-auto-banner-row { color: rgba(255,255,255,0.85); }
.opt-auto-banner-hint { color: rgba(255,255,255,0.40); }
.opt-input-card { background: var(--surface-2); border-color: var(--border); }
.opt-input-card.auto-filled { border-color: rgba(46,155,90,0.35); background: rgba(46,155,90,0.07); }
.opt-input-card-label { color: rgba(255,255,255,0.90); }
.opt-step-btn { background: rgba(255,255,255,0.08); border-color: rgba(46,155,90,0.50); color: #4ABA74; }
.opt-step-btn:active { background: rgba(255,255,255,0.15); }
.opt-type-chip { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }
.opt-total-bar { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.10); }
.opt-total-bar-label { color: rgba(255,255,255,0.65); }
.opt-result-cat { background: var(--surface-2); border-color: var(--border); }
.opt-result-cat-header { background: rgba(255,255,255,0.06); }
.opt-result-cat-title { color: rgba(255,255,255,0.90); }
.opt-result-saving-badge { background: rgba(46,155,90,0.22); color: #4ABA74; }
.opt-venue-section { background: rgba(255,255,255,0.04); border-top-color: rgba(255,255,255,0.07); }
.opt-venue-title { color: #4ABA74; }
.opt-venue-row { border-bottom-color: rgba(255,255,255,0.07); }
.opt-venue-tag { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.65); }
.opt-modal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px 24px 0 0; }
.opt-modal-input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.90); }
.opt-modal-input:focus { border-color: var(--green-primary); }

/* 스코어카드 폼 */
.sc-input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.90); }
.sc-input:focus { border-color: var(--green-primary); }
.sc-hole-btn { background: var(--surface); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.70); }
.sc-score-stepper { background: var(--surface); border-color: rgba(46,155,90,0.55); }
.sc-cancel-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.70); }

/* 스코어카드 AI 분석 */
.sc-analysis-card { background: var(--surface-2); border-color: var(--border); }
.sc-analysis-card.loading { background: var(--surface-2); }
.sc-analysis-header { border-bottom-color: rgba(255,255,255,0.07); }
.sc-analysis-title { color: #ffffff; }
.sc-analysis-trend.improving  { background: rgba(46,155,90,0.22); color: #4ABA74; }
.sc-analysis-trend.regressed  { background: rgba(229,57,53,0.20); color: #ff8a80; }
.sc-analysis-trend.steady     { background: rgba(255,193,7,0.20); color: #FECB4B; }
.sc-analysis-refresh { background: rgba(255,255,255,0.08); color: #4ABA74; }
.sc-analysis-refresh:active { background: rgba(255,255,255,0.15); }
.sc-sparkline-wrap { border-bottom-color: rgba(255,255,255,0.07); }
.sc-sparkline-label { color: rgba(255,255,255,0.35); }
.sc-analysis-summary { color: rgba(255,255,255,0.80); border-bottom-color: rgba(255,255,255,0.07); }
.sc-ai-section-title { color: rgba(255,255,255,0.55); }
.sc-ai-item { color: rgba(255,255,255,0.80); }

/* 브랜드 비교 모달 */
.brand-modal { background: var(--surface); }
.brand-modal-handle { background: rgba(255,255,255,0.20); }
.brand-modal-close { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.70); }
.brand-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.brand-tag.lowest  { background: rgba(46,155,90,0.20); color: #4ABA74; }
.brand-tag.highest { background: rgba(229,57,53,0.20); color: #ff8a80; }

/* 레슨 / 기타 배너 */
.saved-lesson-banner { background: rgba(46,155,90,0.12); border-left-color: #4ABA74; color: rgba(255,255,255,0.80); }
.saved-banner-icon { color: #4ABA74; }
.skill-current-lesson-box { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.skill-cur-lesson-label { color: #4ABA74; }
.skill-cur-lesson-name { color: rgba(255,255,255,0.90); }
.skill-cur-lesson-section { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.60); }
.lesson-switch-card { background: var(--surface-2); border-color: var(--border); }
.lesson-cur-name { color: rgba(255,255,255,0.90); }
.lesson-cur-price { color: rgba(255,255,255,0.55); }
.lesson-cur-where, .lesson-alt-where { color: rgba(255,255,255,0.50); }
.switch-cat-header { border-bottom-color: rgba(255,255,255,0.08); }
.switch-cat-label { color: rgba(255,255,255,0.85); }
.lesson-alts-label { color: #4ABA74; }
.lesson-alt-row { background: rgba(255,255,255,0.05); }
.lesson-alt-name { color: rgba(255,255,255,0.90); }
.lesson-alt-price { color: rgba(255,255,255,0.55); }
.lesson-alt-saving { background: rgba(255,152,0,0.20); color: #FECB4B; }
