/* ════════════════════════════════════════════════════════════════════
   행사 신청 / 불참 신청 페이지 — 디자인 시스템
   home.css와 동일한 토큰 (화이트 + 검정 + 로즈 액센트)
   ════════════════════════════════════════════════════════════════════ */

:root {
  --white:        #ffffff;
  --bg:           #ffffff;
  --surface:      #fafaf9;
  --surface-2:    #f5f5f4;
  --text:         #18181b;
  --text-muted:   #71717a;
  --text-subtle:  #a1a1aa;
  --border:       #e7e5e4;
  --border-strong:#d6d3d1;
  --accent:       #be185d;
  --accent-soft:  #fdf2f8;
  --accent-strong:#9d174d;
  --danger:       #b91c1c;
  --danger-soft:  rgba(239, 68, 68, 0.08);
  --shadow-sm:    0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-md:    0 4px 14px rgba(24, 24, 27, 0.08);
  --shadow-lg:    0 14px 36px rgba(24, 24, 27, 0.10);
  --shadow-xl:    0 24px 56px rgba(24, 24, 27, 0.14);
  --radius:       12px;
  --radius-lg:    20px;
  --container:    760px;
  --font:         "Pretendard", system-ui, -apple-system, sans-serif;
  --easing:       cubic-bezier(.2,.85,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header (홈과 동일 — 80px 높이, 56px 로고) ──────── */
.site-header {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(24, 24, 27, 0.06); }
.site-header > .container {
  max-width: 1200px;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;   /* 56 + 12*2 = 80 */
}
.brand {
  display: flex; align-items: center; gap: 14px;
  transition: opacity 0.15s;
}
.brand:hover { opacity: 0.7; }
.brand-logo {
  width: 56px; height: 56px;
  border-radius: 50%; overflow: hidden;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo img { width: 78%; height: 78%; object-fit: contain; }
.brand-text { display: flex; align-items: center; line-height: 1.1; }
.brand-text .ko {
  font-size: 20px; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px;
}
/* 텍스트 자리에 이미지를 사용할 때 — 로고 마크와 동일 높이 */
.brand-text .brand-text-img,
.brand-text-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
}
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  transition: all 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.cta {
  background: var(--text); color: var(--white);
  padding: 9px 18px; margin-left: 6px; font-weight: 700;
}
.site-nav a.cta:hover { background: var(--accent); }
.site-nav a.active { color: var(--text); background: var(--surface); }

/* ─── 페이지 헤더 ───────────────────────────────────── */
.page-header {
  text-align: center;
  padding: 80px 24px 36px;
  background: var(--white);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.page-header > * { position: relative; }
.page-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.8px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.page-title {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
  word-break: keep-all;
}
.page-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  word-break: keep-all;
}

/* ─── 단계 표시 ─────────────────────────────────────── */
.steps {
  display: flex; justify-content: center; gap: 0;
  /* 페이지 헤더(타이틀/안내) 제거 후 헤더 바와 단계바 사이 충분한 여백 확보 */
  list-style: none; margin: 40px auto 36px; padding: 0;
  max-width: 480px;
}
@media (max-width: 768px) {
  .steps { margin-top: 24px; margin-bottom: 24px; }
}
.steps li {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-subtle);
}
.steps li::before {
  content: ''; position: absolute;
  top: 14px; left: -50%; right: 50%;
  height: 2px; background: var(--border);
  z-index: 0;
}
.steps li:first-child::before { display: none; }
.steps li.active::before, .steps li.done::before {
  background: var(--accent);
}
.steps li .num {
  position: relative; z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  color: var(--text-subtle);
  transition: all 0.2s var(--easing);
}
.steps li.active .num {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.steps li.done .num {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.steps li.active .label { color: var(--accent); }
.steps li.done .label { color: var(--text-muted); }

/* ─── 메인 컨테이너 ─────────────────────────────────── */
.page-main {
  padding: 40px 0 80px;
}
.page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 18px;
  animation: card-in 0.5s var(--easing) backwards;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-card-head h2 {
  font-size: 19px; font-weight: 800;
  margin: 0;
  letter-spacing: -0.3px;
}
.step-meta {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  border-radius: 8px;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

/* ─── 카드 픽 (지역, 가수) ────────────────────────── */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.pick-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all 0.2s var(--easing);
}
.pick-card:hover {
  border-color: var(--text);
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pick-card .ico { font-size: 26px; }
.pick-card .name { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; }
.pick-card .meta { font-size: 11px; color: var(--text-muted); }
.empty-msg, .step-info-msg {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── 행사 선택 (Step 3) ──────────────────────────── */
.event-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.event-row {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s var(--easing);
}
.event-row:hover {
  border-color: var(--text);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}
.event-row.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  cursor: default;
}
.event-row .ev-date {
  font-size: 12px; font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}
.event-row .ev-title {
  font-size: 16px; font-weight: 800;
  color: var(--text);
  margin: 4px 0;
  letter-spacing: -0.3px;
}
.event-row .ev-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* ─── 폼 입력 ────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px; font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.field .req { color: var(--accent); margin-left: 2px; }
.field-hint {
  margin-top: 6px;
  font-size: 12px; color: var(--text-subtle);
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.input-public {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input-public:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.06);
}
.input-public::placeholder { color: var(--text-subtle); }
select.input-public {
  /* native dropdown 화살표 제거 — 3개 prefix 모두 필요 (특히 모바일 사파리/IE/일부 안드로이드) */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;     /* 미지정 시 일부 브라우저에서 SVG가 viewport(300x150)로 렌더되는 문제 방지 */
  padding-right: 38px;
}
/* IE 호환 — ms-expand로 native arrow를 한 번 더 제거 */
select.input-public::-ms-expand { display: none; }

/* ─── 버튼 ──────────────────────────────────────────── */
.btn-public {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px; font-weight: 800;
  border: 1.5px solid transparent;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s var(--easing);
  letter-spacing: -0.2px;
}
.btn-public-primary {
  background: var(--text);
  color: var(--white);
}
.btn-public-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.25);
}
.btn-public-outline {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}
.btn-public-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-public-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 12px;
}
.btn-public-ghost:hover { color: var(--text); }
.btn-public-danger {
  background: var(--accent);
  color: var(--white);
}
.btn-public-danger:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.3);
}
.btn-public-block {
  width: 100%;
  padding: 16px;
  font-size: 15px;
}
.btn-public-xs {
  padding: 6px 12px; font-size: 11px;
}

/* ─── 성공 카드 ──────────────────────────────────────── */
.public-success {
  text-align: center;
  padding: 48px 32px;
}
.public-success .icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: pop 0.6s var(--easing);
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.public-success h2 {
  font-size: 24px; font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.public-success p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}
.public-success .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ─── 약관 동의 체크박스 ──────────────────────────── */
.ap-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px 2px;
  margin-top: 4px;
  cursor: default;
  user-select: none;
}
.ap-agree-checkbox {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}
.ap-agree-check-visual {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  margin-top: 1px;
  cursor: pointer;
}
.ap-agree-check-visual::after {
  content: '';
  width: 11px; height: 6px;
  border-left: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: border-color 0.18s ease;
}
.ap-agree-checkbox:checked + .ap-agree-check-visual {
  background: #10b981;
  border-color: #10b981;
}
.ap-agree-checkbox:checked + .ap-agree-check-visual::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}
.ap-agree-text {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-muted, #71717a);
  word-break: keep-all;
  flex: 1;
  min-width: 0;
}
.ap-agree-text:hover { color: #059669; }
.ap-agree-text:focus-visible { outline: 2px solid #10b981; outline-offset: 3px; border-radius: 2px; }
.ap-agree-row.invalid .ap-agree-check-visual {
  border-color: #ef4444;
  animation: ap-shake 0.4s;
}
@keyframes ap-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

/* ─── 약관 모달 ───────────────────────────────────── */
.ap-agree-modal-card {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 86dvh;
  max-height: 86vh;
}
.ap-agree-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 6px;
}
.ap-agree-text-body {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text, #0f172a);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ─── 동반인 공유 박스 ──────────────────────────────── */
.share-companion-box {
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 20px 18px;
  margin: 0 0 22px;
  text-align: left;
  animation: pop-up-soft 0.5s ease-out 0.2s both;
}
@keyframes pop-up-soft {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.share-companion-box .share-q {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.share-companion-box .share-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.share-companion-box .share-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.share-companion-box .share-link {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: #fff;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text, #0f172a);
  outline: none;
}
.share-companion-box .share-link:focus {
  border-color: #10b981;
}
.share-companion-box .btn-share {
  flex: 0 0 auto;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}
.share-companion-box .btn-share.copied {
  background: linear-gradient(180deg, #06b6d4, #0891b2);
  animation: shake-tiny 0.4s;
}
@keyframes shake-tiny {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}
@media (max-width: 520px) {
  .share-companion-box { padding: 16px 14px; }
  .share-companion-box .share-row { flex-direction: column; }
  .share-companion-box .btn-share { width: 100%; padding: 12px; }
}

/* ─── 알림 (notice) ────────────────────────────────── */
.public-notice {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 12px; font-weight: 600;
  letter-spacing: -0.1px;
}
.public-notice b { color: var(--accent-soft); }

/* ─── 모달 (공통) ──────────────────────────────────── */
.public-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.public-modal-overlay.show { display: flex; animation: fade-in 0.2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.public-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 540px; max-width: 100%; max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modal-pop 0.22s var(--easing);
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.public-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.public-modal-header h3 {
  font-size: 17px; font-weight: 800;
  margin: 0; letter-spacing: -0.3px;
}
.public-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 18px; line-height: 1;
  cursor: pointer; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.public-modal-close:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.public-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.public-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}

/* ─── 모달 메시지 박스 ───────────────────────────────── */
.modal-msg-warn {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px; line-height: 1.7;
  margin-bottom: 16px;
}
.modal-msg-warn b { color: var(--accent); }
.modal-msg-info {
  background: var(--surface);
  border-left: 3px solid var(--text);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px; line-height: 1.7;
  margin-bottom: 16px;
}
.info-card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.info-row { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 13px; line-height: 1.55; }
.info-row dt { color: var(--text-muted); font-weight: 700; }
.info-row dd { color: var(--text); font-weight: 700; margin: 0; }

/* ─── 매치 카드 (불참 신청용) ───────────────────────── */
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.18s;
}
.match-card:hover { border-color: var(--text); }
.match-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 6px 12px;
  font-size: 13px; line-height: 1.5;
  margin-bottom: 12px;
}
.match-row dt { color: var(--text-muted); font-weight: 700; }
.match-row dd { color: var(--text); font-weight: 700; margin: 0; }
.match-card .actions { text-align: right; }

.warn-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.empty-state {
  text-align: center; padding: 16px 0;
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h4 {
  font-size: 17px; font-weight: 800;
  margin: 0 0 8px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 13px; line-height: 1.7;
  margin: 0 0 18px;
}

/* ─── 푸터 (홈과 동일) ─────────────────────────────── */
.site-footer {
  background: var(--surface);
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer .copy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-subtle);
}

/* ─── 신청 폼 하단 안내 (당첨 안내) ──────────────────── */
.apply-form-notice {
  margin: 18px 0 4px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted, #71717a);
  background: var(--surface-2, #f5f5f4);
  border: 1px dashed var(--border, #e7e5e4);
  border-radius: 12px;
  text-align: left;
  word-break: keep-all;
}
@media (max-width: 520px) {
  .apply-form-notice {
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* ─── Quick CTA (홈과 동일) ────────────────────────── */
.quick-cta {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 10px;
  z-index: 85;
  align-items: flex-end;
}
.qa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  text-decoration: none;
  transition: all 0.22s var(--easing);
  letter-spacing: -0.2px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.12);
}
.qa-btn .ico { font-size: 16px; }
.qa-primary { background: var(--text); color: var(--white); }
.qa-primary:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(190, 24, 93, 0.32);
}
.qa-outline {
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--border);
}
.qa-outline:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(24, 24, 27, 0.14);
}

/* ─── 기존 public_*.html markup 호환 (legacy class alias) ─────── */
.public-notice { display: none; }
.public-header { display: none; }
.public-footer { display: none; }
.public-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.public-page-header {
  text-align: center;
  padding: 60px 24px 36px;
  background: var(--white);
  position: relative;
  margin: 0 -24px 28px;
}
.public-page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.public-page-header > * { position: relative; }
.public-page-title {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
  word-break: keep-all;
}
.public-page-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.7;
  word-break: keep-all;
}
.public-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 18px;
  animation: card-in 0.5s var(--easing) backwards;
}
.public-card h2 {
  font-size: 19px; font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.public-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.public-success {
  text-align: center;
  padding: 60px 32px;
}
.public-success .icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: pop 0.6s var(--easing);
}
.public-success h2 {
  font-size: 26px; font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.public-success p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 14px; line-height: 1.7;
}
.public-success .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

@media (max-width: 768px) {
  .public-container { padding: 0 16px 80px; }
  .public-page-header { padding: 44px 20px 28px; margin: 0 -16px 20px; }
  .public-page-title { font-size: clamp(22px, 6vw, 28px); }
  .public-card { padding: 22px 18px; border-radius: 16px; }
  .public-card h2 { font-size: 17px; }
}

/* ─── 반응형 ────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .site-header > .container { padding-top: 8px; padding-bottom: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-text .ko { font-size: 14px; }
  /* 모바일 — 브랜드 워드마크 이미지 콤팩트 */
  .brand-text-img { height: 32px; max-width: 200px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 12px; font-size: 12px; min-height: 40px; display: inline-flex; align-items: center; }
  .site-nav a:not(.cta) { display: none; }
  .site-nav a.cta { padding: 10px 16px; }

  .page-header { padding: 56px 20px 28px; }
  .page-title { font-size: clamp(24px, 6.5vw, 30px); }
  .page-sub { font-size: 13px; }
  .steps { max-width: 360px; }
  .steps li { font-size: 11px; }

  .page-card { padding: 24px 20px; border-radius: 16px; }
  .page-card-head h2 { font-size: 17px; }
  .pick-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .pick-card { padding: 16px 10px; }
  .pick-card .ico { font-size: 22px; }
  .pick-card .name { font-size: 13px; }

  .field-row { grid-template-columns: 1fr; }
  .input-public { padding: 12px 14px; font-size: 14px; }

  .public-modal { border-radius: 14px; }
  .public-modal-header { padding: 16px 18px; }
  .public-modal-body { padding: 18px; }
  .public-modal-footer { padding: 14px 18px; }

  .quick-cta { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .qa-btn { padding: 11px 16px; font-size: 12px; min-height: 40px; }
  .qa-btn .ico { font-size: 14px; }

  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
}
