:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --card-2: #f8fafc;
  --line: #e4e8ef;
  --fg: #191f28;
  --body: #333d4b;
  --muted: #6b7684;
  --kakao: #fee500;
  --kakao-hover: #f4dc00;
  --acc: #946300;
  --acc-soft: #fff8db;
  --acc-border: #ebd16a;
}

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

body {
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: underline; }

.shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.hero {
  text-align: center;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(20, 30, 50, 0.04);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--acc);
  background: var(--acc-soft);
  border: 1px solid var(--acc-border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
}

.title {
  font-size: 21px;
  font-weight: 800;
  color: var(--fg);
}

.sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 5px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(20, 30, 50, 0.03);
}

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

.member-right { text-align: right; }
.member-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.member-val { font-size: 15.5px; font-weight: 800; color: var(--fg); margin-top: 2px; }
.member-val.gold { color: var(--acc); }

.cancel-row { margin-top: 12px; text-align: right; }

.confirm-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff4f4;
  border: 1px solid #f5c2c2;
}

.confirm-msg { font-size: 13px; color: #9b2222; margin-bottom: 10px; font-weight: 600; }
.confirm-btns { display: flex; gap: 8px; justify-content: flex-end; }

.notice-banner {
  background: var(--acc-soft);
  border: 1px solid var(--acc-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.8px;
  color: #5b4100;
  margin-bottom: 14px;
}

.alert-box {
  background: #fff2f2;
  border: 1px solid #f5c2c2;
  color: #a92626;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.success-box {
  background: #effaf3;
  border: 1px solid #a7e0bc;
  color: #166534;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  white-space: pre-line;
}

.section { margin-bottom: 18px; }

.sec-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 10px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.item-btn {
  appearance: none;
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.item-btn:hover {
  border-color: #d8bc38;
}

.item-btn.selected {
  border-color: #e2bf00;
  background: linear-gradient(180deg, #fffdf0, #ffffff);
  box-shadow: 0 3px 10px rgba(215, 175, 0, 0.14);
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.item-name { font-size: 15.5px; font-weight: 800; color: var(--fg); }

.item-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  border: 1px solid var(--acc-border);
}

.item-price { font-size: 19px; font-weight: 800; color: var(--fg); }
.item-price span { font-size: 12px; color: var(--muted); font-weight: 500; }
.item-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }

.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.checkout-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.checkout-name { font-size: 17px; font-weight: 800; color: var(--fg); margin-top: 2px; }
.checkout-price { font-size: 22px; font-weight: 800; color: var(--acc); white-space: nowrap; }
.checkout-summary { font-size: 13px; color: var(--muted); margin: 10px 0 14px; }

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.chk-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.8px;
  color: var(--body);
  cursor: pointer;
}

.chk-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #191919;
}

.btn-kakao {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px 16px;
  background: var(--kakao);
  color: #191919;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(25, 25, 25, 0.08);
}

.btn-kakao:hover:not(:disabled) {
  background: var(--kakao-hover);
}

.btn-kakao:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--card-2);
  color: var(--body);
  border: 1px solid #d3dae5;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.pay-footnote {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.orders-list { display: flex; flex-direction: column; gap: 8px; }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--fg);
}

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links { margin-top: 6px; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  .plan-grid, .ticket-grid { grid-template-columns: 1fr; }
}
