:root {
  --bg: #111314;
  --panel: #202020;
  --panel-2: #2b2926;
  --bone: #fff6e7;
  --muted: rgba(255, 246, 231, 0.66);
  --gold: #e4bd69;
  --cinnabar: #b14335;
  --jade: #147268;
  --line: rgba(255, 246, 231, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(228, 189, 105, 0.14), transparent 30%),
    linear-gradient(180deg, #151617 0%, #101112 100%);
  color: var(--bone);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.payment-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  border-left: 1px solid rgba(255, 246, 231, 0.07);
  border-right: 1px solid rgba(255, 246, 231, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 246, 231, 0.03), transparent 240px),
    var(--bg);
}

.payment-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 20, 0.92);
  backdrop-filter: blur(16px);
}

.back-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}

.payment-topbar p,
.payment-topbar h1 {
  margin: 0;
}

.payment-topbar p {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-topbar h1 {
  font-size: 20px;
}

.payment-hero,
.checkout-card,
.notice-card,
.progress-card {
  margin: 18px;
  border-radius: 8px;
}

.payment-hero {
  display: grid;
  gap: 12px;
  padding: 26px 18px;
  border: 1px solid rgba(228, 189, 105, 0.22);
  background:
    linear-gradient(135deg, rgba(228, 189, 105, 0.14), rgba(177, 67, 53, 0.12)),
    rgba(255, 246, 231, 0.05);
}

.pill {
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(228, 189, 105, 0.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.payment-hero h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
}

.payment-hero p:last-child,
.checkout-card p,
.notice-card p,
.progress-card li {
  color: var(--muted);
  line-height: 1.62;
}

.checkout-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.checkout-card.primary {
  border-color: rgba(228, 189, 105, 0.36);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.card-head span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(20, 114, 104, 0.18);
  color: #7be4bc;
  font-size: 12px;
  font-weight: 950;
}

.card-head strong {
  font-size: 20px;
}

.checkout-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-card dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-card dl div:last-child {
  border-bottom: 0;
}

.checkout-card dt,
.checkout-card dd {
  margin: 0;
}

.checkout-card dt {
  color: var(--muted);
}

.checkout-card dd {
  color: var(--bone);
  font-weight: 900;
}

.payment-action,
.manual-grid button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--cinnabar);
  color: #fff7e6;
  font: inherit;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.payment-action.naver {
  background: #03c75a;
  color: #04140b;
}

.payment-action.toss {
  background: #2563eb;
}

.payment-action.kakao {
  background: #fee500;
  color: #1d1b16;
}

.payment-action.card {
  background: rgba(255, 246, 231, 0.11);
  border: 1px solid rgba(255, 246, 231, 0.18);
}

.payment-action.ghost {
  background: var(--jade);
}

.payment-mini-note {
  margin: 0;
  color: rgba(255, 246, 231, 0.52);
  font-size: 12px;
  line-height: 1.55;
}

.manual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.manual-grid button {
  background: rgba(255, 246, 231, 0.08);
  border: 1px solid var(--line);
}

.notice-card,
.progress-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 246, 231, 0.07);
  border: 1px solid rgba(228, 189, 105, 0.22);
}

.notice-card strong,
.progress-card strong {
  color: var(--gold);
}

.progress-card ul {
  margin: 0;
  padding-left: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  width: min(calc(100% - 32px), 420px);
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--bg);
  font-weight: 950;
  text-align: center;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 420px) {
  .payment-hero h2 {
    font-size: 27px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


.checkout-card.is-disabled {
  opacity: 0.72;
}

.checkout-card.is-disabled .payment-action,
.payment-action[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.15);
  opacity: 0.72;
}

.payment-action[disabled] {
  border: 1px solid rgba(255, 246, 231, 0.14);
}

.manual-grid .is-pending {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  border: 1px dashed rgba(255,255,255,0.18);
}
