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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Noto Sans KR', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── 공통 ── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

.top-bar {
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 22px;
  height: 22px;
}

/* ── 로그인 (중앙 정렬) ── */
.center-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 80px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}

.desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

.input-box {
  width: 100%;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  height: 50px;
  margin-bottom: 10px;
  background: #fff;
}

.input-box:focus-within {
  border-color: #111;
}

.country {
  font-size: 14px;
  color: #333;
  margin-right: 10px;
  white-space: nowrap;
}

.phone-display {
  font-size: 15px;
  color: #111;
}

.input-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.timer {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 600;
  margin-left: 8px;
}

/* 버튼 */
.btn-dark {
  width: 100%;
  height: 50px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity .15s;
}
.btn-dark:disabled {
  background: #ccc;
  color: #fff;
  cursor: default;
}
.btn-dark:not(:disabled):hover { opacity: .85; }

.btn-outline {
  width: 100%;
  height: 50px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 4px;
}
.btn-outline:hover { background: #fafafa; }

/* ── 결제 화면 ── */
.payment-wrap {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 40px;
  min-height: calc(100vh - 55px);
  display: flex;
  flex-direction: column;
}

.payment-wrap > .footer {
  margin-top: auto;
}

.section { margin-bottom: 32px; }

.section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 카드 */
.card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 10px;
  background: #fafafa;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.badge-blue  { background: #e8f0fe; color: #1a73e8; }
.badge-orange { background: #fef1e6; color: #e8710a; }

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  background: #fff;
}

.tag-accent {
  border-color: #e8710a;
  color: #e8710a;
}

.card-section {
  margin-bottom: 12px;
}

.card-section:last-child {
  margin-bottom: 0;
}

.card-section strong {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.card-list {
  list-style: none;
  font-size: 14px;
  color: #555;
}
.card-list li { padding: 2px 0; }
.card-list li::before {
  content: '·';
  margin-right: 6px;
  color: #999;
}

/* 페이지 제목 */
.page-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 주요 정보 리스트 */
.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  color: #888;
  flex-shrink: 0;
  margin-right: 16px;
}

/* 금액 행 */
.row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
}
.row .val { font-weight: 600; }

.row-total {
  font-size: 17px;
  font-weight: 700;
}

.divider {
  border-top: 1px solid #e5e5e5;
  margin: 8px 0;
}

.note {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 리스트 */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .15s;
}
.list-item:hover { background: #fafafa; }

.list-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.list-left .badge {
  min-width: 42px;
  text-align: center;
  margin-bottom: 0;
}

.list-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-arrow {
  font-size: 22px;
  color: #bbb;
  flex-shrink: 0;
  margin-left: 8px;
}

/* 상세 제목 */
.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.4;
}

/* 뒤로가기 */
.back-link {
  display: inline-block;
  background: none;
  border: none;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color .15s;
}
.back-link:hover { color: #333; }

/* 환불 */
.refund-row { padding: 6px 0; }
.refund-row strong { font-size: 14px; display: block; margin-bottom: 2px; }
.refund-row p { font-size: 13px; color: #555; }

/* 결제 버튼 영역 */
.action-area { margin-bottom: 40px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  cursor: pointer;
}
.checkbox-label input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: #222;
}

.btn-pay {
  height: 54px;
  font-size: 16px;
  border-radius: 10px;
}

/* 푸터 */
.footer {
  border-top: 1px solid #eee;
  padding-top: 24px;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}


.footer-links {
  margin-top: 4px;
}

.footer-links a {
  color: #888;
  text-decoration: underline;
}

.footer-links .sep {
  margin: 0 6px;
  color: #ddd;
}

.copyright {
  margin-top: 8px;
  color: #bbb;
}

@media (max-width: 480px) {
  .payment-wrap { padding: 20px 16px 32px; }
}
