/* ==========================================================================
   DojinGift — 사용자 사이트(도메인 루트) 전용 스타일
   공통 스타일(partner.css) 뒤에 불러와 공개 화면의 머리글·히어로·조회 카드만 더한다.
   ========================================================================== */

.page-user {
  background: var(--surface);
}

.site-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-inner-narrow {
  max-width: 820px;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

/* ---------- 머리글 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-logo em {
  color: var(--primary);
  font-style: normal;
}

.site-logo-mark {
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.site-partner-link {
  flex: none;
  margin-left: 8px;
}

/* ---------- 히어로 + 조회 카드 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(31, 122, 77, 0.16), transparent 60%),
    radial-gradient(720px 460px at -12% 112%, rgba(217, 119, 6, 0.13), transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

/* 히어로 오른쪽 아래에 은은하게 깔리는 큰 원 장식. */
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 60px solid rgba(31, 122, 77, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* 배너는 문구 + 교환권 비주얼 2열. 신청 폼은 배너 아래 본문 카드에 있어 좌우 비율이 치우치지 않는다. */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 88px;
}

.hero-ticket {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) 150px;
  transform: rotate(-2deg);
}

.hero-ticket .sample-ticket-pin {
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid rgba(31, 122, 77, 0.25);
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: #2fa866;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.hero-title {
  margin-top: 20px;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.hero-title-accent {
  color: var(--primary);
  background: linear-gradient(transparent 62%, var(--primary-soft) 62%, var(--primary-soft) 94%, transparent 94%);
}

.hero-desc {
  max-width: 30rem;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .button {
  height: 48px;
  padding: 0 22px;
  font-size: 0.98rem;
}

.hero-actions .button:not(.button-ghost) {
  box-shadow: 0 10px 22px rgba(31, 122, 77, 0.28);
}

.hero-actions .button:not(.button-ghost):hover {
  transform: translateY(-1px);
}

/* 배너 하단에 겹치는 공지 알약 바. */
.hero-notice-wrap {
  position: relative;
  z-index: 3;
  margin-top: -27px;
}

.hero-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 35, 26, 0.1);
  color: var(--text);
  text-decoration: none;
}

.hero-notice-badge {
  flex: none;
  padding: 4px 10px;
  background: var(--primary);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-notice-title {
  min-width: 0;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-notice:hover .hero-notice-title {
  color: var(--primary-strong);
}

.hero-notice-date {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* 배너 아래 특징 4개 행: 아이콘 + 영문 소제목 + 한글 제목, 사이 구분선. */
.hero-features-band {
  padding: 36px 0 4px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 14px;
}

.hero-features li + li {
  border-left: 1px solid var(--border);
}

.hero-feature-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--primary-soft);
  border-radius: 50%;
  color: var(--primary);
}

.hero-feature-icon .icon {
  width: 22px;
  height: 22px;
}

.hero-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-feature-en {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-feature-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 조회 카드: 위쪽 띠 + 떠 있는 그림자로 교환권 느낌을 낸다. */
.check-card {
  position: relative;
  padding: 26px 28px 28px;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(16, 35, 26, 0.13), var(--shadow-sm);
  scroll-margin-top: 86px;
}

.check-card-band {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--border);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.check-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.check-desc {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.check-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-pin {
  height: 50px;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check-submit {
  height: 50px;
  width: 100%;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(31, 122, 77, 0.24);
}

/* 조회 결과 */
.check-result {
  padding: 18px;
  background: linear-gradient(180deg, var(--primary-soft), var(--surface-2));
  border: 1px solid rgba(31, 122, 77, 0.2);
  border-radius: var(--radius);
  animation: result-in 0.25s ease-out;
}

.check-result[data-status]:not([data-status="issued"]) {
  background: var(--surface-2);
  border-color: var(--border-soft);
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.check-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-amount {
  color: var(--primary-strong);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.check-message {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.check-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(23, 33, 28, 0.14);
}

.check-details dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.check-details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 조회 상태 배지: 상태 코드가 data-status 로 들어온다. */
.rgu-status-issued,
.check-result[data-status="issued"] .badge {
  background: var(--primary);
  color: #ffffff;
}

.rgu-status-used,
.check-result[data-status="used"] .badge {
  background: var(--info-soft);
  color: var(--info);
}

.rgu-status-canceled,
.check-result[data-status="canceled"] .badge {
  background: var(--danger-soft);
  color: var(--danger);
}

.rgu-status-expired,
.check-result[data-status="expired"] .badge {
  background: var(--accent-soft);
  color: #8a4b03;
}

/* ---------- 본문 구간 ---------- */
.site-section {
  padding: 72px 0;
  scroll-margin-top: 66px;
}

.site-section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 8px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-desc {
  margin-top: 8px;
  color: var(--muted);
}

.section-subtitle {
  margin: 44px 0 16px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 26px 24px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(31, 122, 77, 0.3);
  color: #ffffff;
  font-weight: 800;
}

.step h3 {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 800;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* 교환권 예시: 왼쪽 본권 + 오른쪽 절취 스텁, 가운데 절취선. */
.sample-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  margin-top: 36px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: #c9d8cf;
  overflow: hidden;
}

.sample-ticket-main {
  padding: 26px 28px;
}

.sample-ticket-brand {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sample-ticket-brand span {
  color: #6fd39c;
}

.sample-ticket-label {
  margin-top: 22px;
  color: #8fa397;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sample-ticket-pin {
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sample-ticket-note {
  margin-top: 14px;
  color: #8fa397;
  font-size: 0.86rem;
  line-height: 1.6;
}

.sample-ticket-stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 26px 22px;
  border-left: 2px dashed rgba(255, 255, 255, 0.22);
  color: #8fa397;
  font-size: 0.8rem;
}

.sample-ticket-stub strong {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 바코드 흉내: 굵기가 다른 세로줄 반복. */
.sample-ticket-barcode {
  height: 34px;
  margin-top: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0 2px, transparent 2px 5px,
    rgba(255, 255, 255, 0.85) 5px 6px, transparent 6px 11px,
    rgba(255, 255, 255, 0.85) 11px 14px, transparent 14px 17px
  );
  border-radius: 2px;
  opacity: 0.75;
}

.sample-ticket-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  padding: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.status-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.status-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- 자주 묻는 질문 ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.faq-item {
  padding: 0 20px;
  transition: box-shadow 0.18s;
}

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-item summary {
  position: relative;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* 펼치기 표시: 닫혀 있으면 +, 열리면 - 로 보인다. */
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary-soft);
  border-radius: 50%;
  color: var(--primary-strong);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.faq-item[open ] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--primary-ring);
  outline-offset: 2px;
}

.faq-item p {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.check-guide {
  margin-top: 30px;
}

/* ---------- 파트너 안내 띠 ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 90% -30%, rgba(111, 211, 156, 0.22), transparent 60%),
    linear-gradient(120deg, var(--ink) 0%, var(--primary-strong) 130%);
  color: #c9d8cf;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-desc {
  margin-top: 6px;
  color: #a7c9b4;
  font-size: 0.94rem;
}

.cta-button {
  height: 48px;
  padding: 0 24px;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--primary-strong);
  font-size: 0.98rem;
}

.cta-button:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

/* ---------- 바닥글 ---------- */
.site-footer {
  padding: 40px 0 30px;
  background: var(--ink);
  color: #c9d8cf;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.site-footer-brand {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer-brand em {
  color: #6fd39c;
  font-style: normal;
}

.site-footer-text {
  margin-top: 6px;
  color: #8fa397;
  font-size: 0.88rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer-nav a {
  color: #c9d8cf;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: #ffffff;
}

.site-footer-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #71867b;
  font-size: 0.82rem;
}

.site-footer-copy {
  margin-top: 8px;
  color: #5c7266;
  font-size: 0.8rem;
}

/* ---------- 교환신청 / 도구 / 현황 (참고 사이트와 같은 기능 구성) ---------- */
.page-h1 {
  margin-top: 8px;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-section-tight {
  padding: 44px 0;
}

.exchange-card {
  max-height: none;
}

.exchange-section {
  padding-top: 36px;
}

/* 신청 카드 안 2열: 왼쪽 핀 입력(약 54%), 오른쪽 입금 정보(약 41%). */
.exchange-cols {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 41fr);
  gap: 20px 32px;
  align-items: start;
}

.exchange-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.exchange-subcard {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.exchange-subcard .field-input {
  background: var(--surface);
}

.exchange-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.exchange-subhead .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.payee-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payee-card .save-info {
  align-self: flex-end;
  margin-top: 2px;
}

/* 자주 묻는 질문(왼쪽) + 실시간 교환현황(오른쪽) 2열. */
.live-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px 36px;
  align-items: start;
}

.live-faq-grid .faq-list {
  margin-top: 22px;
}

.live-card {
  margin-top: 18px;
}

.exchange-extract {
  min-height: 76px;
}

.exchange-extract-button {
  align-self: flex-end;
  margin-top: 8px;
}

.pin-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.pin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-row .field-input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}

.pin-amount {
  flex: none;
  min-width: 92px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pin-amount[data-kind="ok"] {
  color: var(--primary-strong);
}

.pin-amount[data-kind="error"] {
  color: var(--danger);
  font-weight: 600;
}

.pin-remove {
  flex: none;
}

.save-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.exchange-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.exchange-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.exchange-summary dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.exchange-summary dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.exchange-summary-payout {
  padding-top: 8px;
  border-top: 1px dashed rgba(23, 33, 28, 0.14);
}

.exchange-summary-payout dt {
  color: var(--text-2);
  font-weight: 700;
}

.exchange-summary-payout dd {
  color: var(--primary-strong);
  font-size: 1.15rem;
  font-weight: 800;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  scroll-margin-top: 86px;
}

.tool-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.tool-desc {
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 실시간 현황 표 */
.table-like {
  overflow: hidden;
}

.live-head,
.live-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 90px 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
}

.live-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-row {
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.live-row:last-child {
  border-bottom: 0;
}

.live-info {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-empty {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.section-more {
  margin-top: 18px;
}

/* 공지 목록 */
.notice-list {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.notice-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  text-decoration: none;
}

.notice-row:hover .notice-row-title {
  color: var(--primary-strong);
}

.notice-row-title {
  font-weight: 600;
}

.notice-row-date {
  flex: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.post-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-body {
  margin-top: 22px;
  padding: 26px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 내 교환내역 / 고객센터 */
.history-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
  padding: 24px;
}

.history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.history-required {
  color: var(--danger);
}

.history-empty {
  margin-top: 18px;
}

.history-card {
  margin-top: 16px;
  padding: 20px 22px;
}

.history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-card-title {
  font-weight: 800;
}

.history-card-date {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}

.history-details {
  border-top: 0;
}

.history-pins {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(23, 33, 28, 0.14);
  list-style: none;
}

.history-pins li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.88rem;
}

.kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.kind-tab {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.kind-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.buy-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.buy-kinds h3 {
  font-size: 0.98rem;
  font-weight: 800;
}

/* 공지 팝업 */
.popup-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 26, 20, 0.55);
}

.popup-layer[hidden] {
  display: none;
}

.popup-card {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 60px);
  padding: 26px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.popup-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.popup-body {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
}

.site-footer-tel {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

/* 실시간 현황의 교환신청 레이어 팝업 */
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

dialog.exchange-modal {
  max-width: min(720px, calc(100vw - 32px));
}

dialog.exchange-modal .modal-body {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
}

dialog.exchange-modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 팝업은 폭이 좁아 신청 폼 2열을 1열로 접는다. */
dialog.exchange-modal .exchange-cols {
  grid-template-columns: minmax(0, 1fr);
}

/* 실수령액 계산기 플로팅 버튼: 모든 공개 화면 오른쪽 아래에 고정한다. */
.calc-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(31, 122, 77, 0.38);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.calc-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(31, 122, 77, 0.42);
}

.calc-fab .icon {
  width: 22px;
  height: 22px;
}

.calc-modal .tool-desc {
  margin-top: 0;
}

@media (max-width: 600px) {
  .calc-fab {
    right: 16px;
    bottom: 16px;
    height: 50px;
    padding: 0 18px 0 14px;
    font-size: 0.9rem;
  }
}

/* ---------- 화면 폭에 따른 조정 ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero-visual {
    display: none;
  }

  .hero-desc {
    max-width: none;
  }

  .hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .hero-features li + li {
    border-left: 0;
  }

  .hero-features li:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .exchange-cols,
  .live-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .site-nav {
    display: none;
  }

  .hero-feature-text strong {
    white-space: normal;
  }

  .site-header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .steps,
  .status-grid,
  .check-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-card {
    padding: 22px 18px 24px;
  }

  .sample-ticket {
    grid-template-columns: minmax(0, 1fr);
  }

  .sample-ticket-stub {
    border-left: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.22);
  }

  .site-section {
    padding: 48px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-head {
    display: none;
  }

  .live-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .buy-kinds {
    grid-template-columns: minmax(0, 1fr);
  }

  .pin-amount {
    min-width: 70px;
  }
}

/* ---------- 사업자 정보 바닥글 (biz-footer) ---------- */
.site-footer.biz-footer {
  padding: 48px 0 100px;
  background: #111214;
  color: #aeb2b8;
}

.biz-footer .biz-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.biz-footer .biz-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.biz-footer .biz-logo {
  margin: 0;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.biz-footer .biz-tel {
  display: inline-block;
  margin-top: 26px;
  color: #2f6bff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}

.biz-footer .biz-hours {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 0.88rem;
}

.biz-footer .biz-kakao {
  margin: 8px 0 0;
  font-size: 0.82rem;
}

.biz-footer .biz-kakao a {
  color: #aeb2b8;
  text-decoration: underline;
}

.biz-footer .biz-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.biz-footer .biz-legal-link {
  color: #9a9fa6;
  font-size: 0.9rem;
  font-weight: 500;
}

.biz-footer .biz-legal-strong {
  color: #e4e6e9;
  font-weight: 700;
}

.biz-footer .biz-note {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #7d8289;
  font-size: 0.8rem;
}

.biz-footer .biz-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-top: 14px;
}

.biz-footer .biz-info {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.9;
}

.biz-footer .biz-info li {
  display: inline-flex;
  gap: 8px;
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.biz-footer .biz-info li:first-child {
  padding-left: 0;
  border-left: 0;
}

.biz-footer .biz-info .k {
  color: #7d8289;
}

.biz-footer .biz-info .v {
  color: #e4e6e9;
}

.biz-footer .biz-info .v a {
  color: inherit;
  text-decoration: none;
}

.biz-footer .biz-copy {
  flex: none;
  margin: 0;
  color: #6f747b;
  font-size: 0.78rem;
  text-align: right;
}

@media (max-width: 760px) {
  .site-footer.biz-footer {
    padding: 36px 0 96px;
  }

  .biz-footer .biz-head {
    flex-direction: column-reverse;
    gap: 22px;
  }

  .biz-footer .biz-legal {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    text-align: left;
  }

  .biz-footer .biz-tel {
    margin-top: 22px;
    font-size: 2rem;
  }

  .biz-footer .biz-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .biz-footer .biz-info {
    flex-direction: column;
    line-height: 1.8;
  }

  .biz-footer .biz-info li {
    padding: 0;
    border-left: 0;
  }

  .biz-footer .biz-copy {
    text-align: left;
  }
}
