:root {
  --navy: #0f2544;
  --warm-white: #fbf7ef;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e7ded1;
  --accent: #c79a52;
  --warning-bg: #fff7ed;
  --warning-line: #fed7aa;
  --warning-text: #9a3412;
  --coupang: #0073e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--warm-white), #f5efe3);
  color: var(--text);
}

.app {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

h1 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.progress {
  height: 5px;
  margin-top: 22px;
  background: #eadfce;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--navy);
  transition: width 0.35s ease;
}

.card {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(15, 37, 68, 0.08);
  animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.options {
  display: grid;
  gap: 12px;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.option {
  width: 100%;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font-size: 16px;
  transition: 0.2s ease;
}

.option:hover {
  background: #f7f2e8;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.option-title {
  display: block;
  font-weight: 800;
}

.option-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--navy);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chip {
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
}

.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.primary,
.ghost {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}

.primary {
  background: var(--navy);
  color: #fff;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
}

.hidden {
  display: none;
}

.loader {
  padding: 60px 20px;
  text-align: center;
}

.confetti {
  font-size: 44px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  50% {
    transform: translateY(-8px);
  }
}

.receipt {
  padding: 24px 18px;
  background: #fff;
  border: 2px dashed #111827;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  animation: fadeSlide 0.4s ease;
}

.receipt h2 {
  margin-bottom: 8px;
  text-align: center;
  font-size: 22px;
}

.center {
  margin-bottom: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 14px;
}

.row strong {
  color: var(--navy);
  text-align: right;
}

.total {
  margin: 18px 0;
  padding: 16px;
  background: #f7f2e8;
  border-radius: 14px;
  text-align: center;
}

.total span {
  color: var(--muted);
  font-size: 13px;
}

.total b {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 28px;
}

.section-title {
  margin-top: 20px;
  color: var(--navy);
  font-weight: 900;
}

.recommend-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.item-card {
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.item-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 17px;
}

.item-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tag-line {
  margin-bottom: 12px;
  color: #8a6a35;
  font-size: 12px;
}

.coupang-btn {
  width: 100%;
  padding: 14px;
  background: var(--coupang);
  color: #fff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.coupang-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 22px rgba(0, 115, 233, 0.25);
}

.warning {
  margin-top: 14px;
  padding: 14px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: 14px;
  color: var(--warning-text);
  font-size: 14px;
  line-height: 1.55;
}

.disclosure {
  margin-top: 20px;
  font-size: 11px;
  color: #a0a0a0;
  text-align: center;
  line-height: 1.5;
}

.toast {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 12px 16px;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  z-index: 20;
}