* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; background: #f5f3ff; color: #1e1b4b; min-height: 100vh; }

header { background: #4f46e5; color: #fff; text-align: center; padding: 22px 16px 0; }
header h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.5px; }
header p { font-size: 0.82rem; opacity: 0.7; margin-top: 5px; }

.nav-tabs { display: flex; margin-top: 16px; }
.nav-tab { flex: 1; padding: 10px; font-size: 0.88rem; font-weight: 600; font-family: inherit; border: none; cursor: pointer; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); transition: all 0.2s; }
.nav-tab.active { background: #f5f3ff; color: #4f46e5; border-radius: 10px 10px 0 0; }


main { max-width: 560px; margin: 0 auto; padding: 24px 16px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.screen { animation: fadeUp 0.3s ease; }

.card { background: #fff; border-radius: 18px; padding: 28px 24px; box-shadow: 0 2px 16px rgba(79,70,229,0.08); }

/* ── 시급 설정 ── */
.wage-bar { display: flex; align-items: center; justify-content: space-between; background: #eef2ff; border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; cursor: pointer; }
.wage-bar-left { font-size: 0.85rem; color: #4338ca; }
.wage-bar-left strong { font-size: 1rem; }
.wage-bar-edit { font-size: 0.78rem; color: #818cf8; font-weight: 600; }

.wage-form { background: #fff; border-radius: 16px; padding: 22px 20px; box-shadow: 0 2px 16px rgba(79,70,229,0.1); margin-bottom: 20px; }
.wage-form h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: #1e1b4b; }
.wage-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.wage-tab-btn { flex: 1; padding: 8px; border-radius: 8px; border: 2px solid #e0e7ff; background: #fff; font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer; color: #6366f1; transition: all 0.15s; }
.wage-tab-btn.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.tab-budget-btn { flex-basis: 100%; color: #4338ca; border-color: #c7d2fe; background: #eef2ff; font-size: 0.84rem; }
.tab-budget-btn.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }

.input-group { margin-bottom: 14px; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #6366f1; margin-bottom: 6px; }
.input-row { display: flex; align-items: center; gap: 8px; }
.input-row input { flex: 1; border: 2px solid #e0e7ff; border-radius: 10px; padding: 11px 14px; font-size: 1rem; font-family: inherit; outline: none; transition: border-color 0.15s; }
.input-row input:focus { border-color: #6366f1; }
.input-row .unit { font-size: 0.85rem; color: #818cf8; white-space: nowrap; }
.input-hint { font-size: 0.75rem; color: #a5b4fc; margin-top: 5px; }
.input-korean { font-size: 0.82rem; color: #6366f1; margin-top: 5px; font-weight: 600; min-height: 1.1em; }

.btn-primary { width: 100%; background: #4f46e5; color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 1rem; font-family: inherit; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { width: 100%; background: #fff; color: #4f46e5; border: 2px solid #4f46e5; border-radius: 12px; padding: 13px; font-size: 1rem; font-family: inherit; font-weight: 700; cursor: pointer; }
.btn-ghost { background: none; border: none; color: #818cf8; font-size: 0.85rem; font-family: inherit; cursor: pointer; padding: 6px 0; }

/* ── 가격 입력 ── */
.main-input-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; line-height: 1.4; }
.price-input-wrap { position: relative; margin-bottom: 8px; }
.price-input-wrap input { width: 100%; border: 2px solid #e0e7ff; border-radius: 14px; padding: 16px 60px 16px 18px; font-size: 1.4rem; font-family: inherit; font-weight: 700; outline: none; transition: border-color 0.15s; color: #1e1b4b; }
.price-input-wrap input:focus { border-color: #6366f1; }
.price-unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #818cf8; font-weight: 600; }
.name-input { width: 100%; border: 2px solid #e0e7ff; border-radius: 12px; padding: 12px 16px; font-size: 0.95rem; font-family: inherit; outline: none; margin-bottom: 18px; color: #1e1b4b; transition: border-color 0.15s; }
.name-input:focus { border-color: #6366f1; }

/* ── 환산 결과 ── */
.result-hero { text-align: center; padding: 8px 0 20px; }
.result-product { font-size: 0.9rem; color: #818cf8; margin-bottom: 8px; font-weight: 600; }
.result-hours-label { font-size: 0.85rem; color: #6366f1; margin-bottom: 6px; }
.result-hours { font-size: 3.2rem; font-weight: 900; color: #4f46e5; line-height: 1; margin-bottom: 4px; }
.result-hours span { font-size: 1.4rem; font-weight: 700; }
.result-days { font-size: 0.9rem; color: #818cf8; margin-bottom: 20px; }
.result-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.meta-chip { background: #eef2ff; color: #4338ca; font-size: 0.8rem; font-weight: 600; padding: 5px 14px; border-radius: 99px; }

/* ── 체크리스트 ── */
.checklist-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.cl-dot { flex: 1; height: 4px; border-radius: 99px; background: #e0e7ff; transition: background 0.3s; }
.cl-dot.done { background: #4f46e5; }
.cl-question { font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin-bottom: 22px; }
.cl-options { display: flex; flex-direction: column; gap: 10px; }
.cl-btn { background: #f5f3ff; border: 2px solid #e0e7ff; border-radius: 12px; padding: 14px 18px; font-size: 0.95rem; font-family: inherit; cursor: pointer; text-align: left; transition: all 0.15s; display: flex; align-items: center; gap: 10px; }
.cl-btn:hover { border-color: #6366f1; background: #eef2ff; }
.cl-btn .cl-emoji { font-size: 1.2rem; }

/* ── 판정 결과 ── */
.verdict-wrap { text-align: center; }
.verdict-icon { font-size: 4rem; margin-bottom: 12px; }
.verdict-label { font-size: 0.8rem; font-weight: 700; padding: 4px 14px; border-radius: 99px; display: inline-block; margin-bottom: 10px; }
.verdict-title { font-size: 1.7rem; font-weight: 900; margin-bottom: 10px; }
.verdict-desc { font-size: 0.93rem; line-height: 1.7; color: #4338ca; margin-bottom: 22px; }
.verdict-best .verdict-label { background: #ede9fe; color: #5b21b6; }
.verdict-best .verdict-title { color: #6d28d9; }
.verdict-green .verdict-label { background: #dcfce7; color: #166534; }
.verdict-green .verdict-title { color: #15803d; }
.verdict-yellow .verdict-label { background: #fef9c3; color: #854d0e; }
.verdict-yellow .verdict-title { color: #a16207; }
.verdict-red .verdict-label { background: #fee2e2; color: #991b1b; }
.verdict-red .verdict-title { color: #b91c1c; }
.verdict-black .verdict-label { background: #1e1b4b; color: #fff; }
.verdict-black .verdict-title { color: #1e1b4b; }

.action-btn { display: block; width: 100%; padding: 13px; border-radius: 12px; font-size: 0.95rem; font-weight: 700; font-family: inherit; text-decoration: none; text-align: center; margin-bottom: 10px; transition: opacity 0.15s; cursor: pointer; border: none; }
.action-btn:hover { opacity: 0.82; }
.action-buy  { background: #4f46e5; color: #fff; }
.action-used { background: #ff6f0f; color: #fff; }
.action-wait { background: #f5f3ff; color: #4f46e5; border: 2px solid #c7d2fe; }

.btn-wish { width: 100%; background: #f5f3ff; color: #4f46e5; border: 2px solid #c7d2fe; border-radius: 12px; padding: 13px; font-size: 0.95rem; font-family: inherit; font-weight: 700; cursor: pointer; margin-bottom: 10px; transition: all 0.15s; }
.btn-wish:hover { background: #eef2ff; }
.btn-wish:disabled { opacity: 0.5; cursor: default; }
.btn-group { display: flex; gap: 10px; flex-direction: column; }
.btn-retry { background: #4f46e5; color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 1rem; font-family: inherit; font-weight: 700; cursor: pointer; }


/* ── 찜 목록 ── */
#wishlist-section { display: none; }
.wish-header { margin-bottom: 20px; }
.wish-header h2 { font-size: 1.1rem; font-weight: 700; color: #1e1b4b; }
.wish-header p { font-size: 0.82rem; color: #818cf8; margin-top: 4px; }
.wish-empty { text-align: center; padding: 48px 16px; color: #a5b4fc; }
.wish-empty .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.wish-list { display: flex; flex-direction: column; gap: 12px; }
.wish-item { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 8px rgba(79,70,229,0.07); }
.wish-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.wish-item-name { font-size: 1rem; font-weight: 700; color: #1e1b4b; }
.wish-item-price { font-size: 1rem; font-weight: 800; color: #4f46e5; white-space: nowrap; }
.wish-item-meta { font-size: 0.78rem; color: #818cf8; margin-bottom: 10px; }
.wish-review-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wish-review-date { font-size: 0.78rem; }
.review-pending { color: #f59e0b; font-weight: 600; }
.review-ready { color: #4f46e5; font-weight: 700; }
.wish-del { background: none; border: none; cursor: pointer; font-size: 1rem; color: #c7d2fe; padding: 2px 4px; }
.wish-del:hover { color: #6366f1; }
.wish-rebuy-btn { background: #eef2ff; color: #4f46e5; border: none; border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.wish-rebuy-btn:hover { background: #e0e7ff; }

/* ── 팁 섹션 ── */
.tips-section { margin-top: 36px; }
.tips-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: #1e1b4b; }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tip-card { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 6px rgba(79,70,229,0.06); }
.tip-icon { font-size: 1.4rem; margin-bottom: 5px; }
.tip-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; }
.tip-card p { font-size: 0.75rem; color: #6366f1; line-height: 1.5; }

footer { text-align: center; padding: 24px 16px; font-size: 0.75rem; color: #a5b4fc; line-height: 2; }
footer a { color: #818cf8; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(60px); background: #1e1b4b; color: #fff; padding: 10px 22px; border-radius: 99px; font-size: 0.9rem; opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.intro-section { padding: 14px 4px 4px; font-size: 0.88rem; color: #6b7280; line-height: 1.7; text-align: center; }


.action-coupang { display: block; background: #fee500; color: #1a1a1a; border-radius: 12px; padding: 14px; text-align: center; font-weight: 700; text-decoration: none; margin-bottom: 10px; }
.action-coupang:hover { opacity: 0.88; }
.coupang-notice { font-size: 0.72rem; color: #9ca3af; text-align: center; margin: -4px 0 12px; }
