/* ============================
   색상 변수 (신뢰감 있는 딥블루 톤)
   ============================ */
:root {
  --color-primary-start: #2c4a8c;
  --color-primary-end: #16305c;
  --color-primary-solid: #1f3a73;
  --color-navy-text: #16213f;
  --color-text-body: #4b5573;
  --color-text-muted: #8b93ab;
  --color-card-bg-start: #e6ecfa;
  --color-card-bg-end: #bdcbea;
  --color-success: #1f8a5f;
  --color-success-bg: #e6f4ec;
  --color-danger: #c9382a;
  --color-danger-bg: #fbeaea;
}

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #eef1f6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0;
}

.app-screen {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 22px 28px;
  box-shadow: 0 8px 28px rgba(16, 28, 56, 0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 431px) {
  .app-screen {
    min-height: auto;
    margin-top: 20px;
  }
}

/* 상단 네비게이션 바 (공통) - 플랫폼은 보조 정보로 작게 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 28px;
  margin-bottom: 16px;
}

.platform-watermark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: -0.2px;
}

.platform-watermark i {
  color: #9fb0da;
  font-size: 11px;
}

.back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-navy-text);
  font-size: 19px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
}

.back-button:active {
  opacity: 0.6;
}

/* 가맹점 정보 (주인공) 공통 컴포넌트 */
.merchant-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.merchant-identity-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.merchant-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-primary-solid);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}

.merchant-request-line {
  text-align: center;
  font-size: 12.5px;
  color: var(--color-text-body);
  font-weight: 500;
  margin-bottom: 18px;
}

/* 결제 요청 카드 */
.request-card {
  background: linear-gradient(135deg, var(--color-card-bg-start) 0%, var(--color-card-bg-end) 100%);
  border-radius: 18px;
  padding: 22px 20px 26px;
  margin-bottom: 14px;
  border: 1px solid rgba(22, 48, 92, 0.06);
}

.merchant-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-navy-text);
  letter-spacing: -0.5px;
}

.amount-row {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 16px 10px 20px;
  text-align: center;
}

.amount-badge {
  display: inline-block;
  background: var(--color-primary-solid);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.amount-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-navy-text);
  letter-spacing: 0px;
}

.amount-number {
  font-variant-numeric: tabular-nums;
}

.amount-unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy-text);
}

.guide-text {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

/* 섹션 공통 */
.section-block {
  margin-bottom: 26px;
}

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

/* 상품 내역 테이블 */
.product-table {
  width: 100%;
  border-top: 1px solid #eceff4;
}

.product-table-head,
.product-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  align-items: center;
  padding: 12px 4px;
}

.product-table-head {
  background: #f7f8fb;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  border-radius: 4px;
}

.product-table-row {
  font-size: 14px;
  color: #333a4d;
  font-weight: 500;
  border-bottom: 1px solid #eceff4;
}

.col-qty {
  text-align: center;
}

.col-price {
  text-align: right;
}

/* 가맹점 정보 */
.merchant-info-box {
  background: #f7f8fb;
  border-radius: 14px;
  padding: 18px 18px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.info-row dt {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.info-row dd {
  font-size: 14px;
  color: #2b3350;
  font-weight: 600;
  text-align: right;
}

.phone-link {
  color: #2b3350;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-link i {
  color: var(--color-primary-solid);
  font-size: 12px;
}

/* 보안 배지 (신뢰 요소) */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-bg);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
}

.security-badge i {
  font-size: 12px;
}

/* 결제 버튼 */
.pay-button-wrap {
  margin-top: 8px;
}

.pay-button {
  width: 100%;
  padding: 17px 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 18px rgba(22, 48, 92, 0.28);
}

.pay-button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(22, 48, 92, 0.28);
}

/* ============================
   결제방식 선택 페이지
   ============================ */
.method-intro-card {
  background: linear-gradient(135deg, var(--color-card-bg-start) 0%, var(--color-card-bg-end) 100%);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 18px;
  text-align: center;
  border: 1px solid rgba(22, 48, 92, 0.06);
}

.method-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy-text);
}

.method-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.method-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
  border: none;
  border-radius: 14px;
  padding: 19px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 14px rgba(22, 48, 92, 0.25);
}

.method-button:active {
  transform: scale(0.98);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-label {
  flex: 1;
  text-align: left;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.method-chevron {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  flex-shrink: 0;
}

.notice-section {
  margin-bottom: 22px;
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy-text);
  margin-bottom: 12px;
}

.notice-icon-info {
  color: var(--color-primary-solid);
  font-size: 15px;
}

.notice-icon-danger {
  color: var(--color-danger);
  font-size: 15px;
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}

.notice-list li {
  font-size: 13.5px;
  color: var(--color-text-body);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.notice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a9b2c7;
}

.notice-list strong {
  color: #2b3350;
  font-weight: 700;
}

.phishing-box {
  background: var(--color-danger-bg);
  border-radius: 14px;
  padding: 16px 16px 16px 14px;
  margin-top: 12px;
}

.phishing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phishing-list li {
  font-size: 13.5px;
  color: #a5352a;
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.phishing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-danger);
}

/* ============================
   하단 Footer (신뢰 정보)
   ============================ */
.site-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #eceff4;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-link {
  font-size: 12.5px;
  color: var(--color-text-body);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover,
.footer-link:active {
  color: var(--color-primary-solid);
  text-decoration: underline;
}

.footer-divider {
  color: #c7ccd9;
  font-size: 12px;
}

.footer-company-info {
  font-size: 11.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 11px;
  color: #aab1c2;
  letter-spacing: 0.2px;
}
