:root {
  color-scheme: light;
  --bg: #eef2f7;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ee;
  --panel: #ffffff;
  --primary: #e11d48;
  --primary-dark: #be123c;
  --court: #f59e0b;
  --navy: #0f172a;
  --green: #16a34a;
  --wait: #7c3aed;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.24), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 560px);
  min-width: 0;
  max-width: 100vw;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 24px;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.76)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 46px),
    linear-gradient(135deg, #1f2937, #0f172a);
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(42px, 13vw, 72px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.subtitle {
  max-width: 320px;
  margin-bottom: 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.45;
}

.ball-mark {
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 150px;
  aspect-ratio: 1;
}

.ball-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.35));
}

.lang-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.lang-btn {
  padding: 6px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.lang-btn.ko {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.lang-btn.ko.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.lang-btn.en {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.lang-btn.en.active {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}

.admin-toggle-btn {
  padding: 5px 9px;
  border: 2px solid #dc2626;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.admin-toggle-btn:hover {
  background: #fecaca;
}

.bank-info-btn {
  margin-left: auto;
  padding: 5px 9px;
  border: 2px solid #16a34a;
  border-radius: 8px;
  background: #dcfce7;
  color: #15803d;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.bank-info-btn:hover {
  background: #bbf7d0;
}

.status-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.status-strip > div,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.status-strip > div {
  padding: 14px;
}

/* [추가] 정원 마감/참가 완료 여부에 따라 박스 색을 초록/빨강으로 표시합니다. */
.status-strip > div.box-ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.status-strip > div.box-ok strong {
  color: #15803d;
}

.status-strip > div.box-full {
  border-color: #fca5a5;
  background: #fef2f2;
}

.status-strip > div.box-full strong {
  color: #b91c1c;
}

.label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}


.panel {
  margin-top: 14px;
  padding: 16px;
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.calendar-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-head strong {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-row {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-spacer {
  min-height: 62px;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 7px 4px;
  border: 1px solid #edf2f7;
  border-radius: var(--radius);
  background: #f8fafc;
  color: #94a3b8;
  text-align: center;
}

.calendar-day.playable {
  border-color: #fecdd3;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.calendar-day.active {
  border-color: var(--primary);
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}

.calendar-day.past-playable {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: var(--ink);
  cursor: pointer;
}

.calendar-day.past-selected {
  border-color: var(--wait);
  background: #ede9fe;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

/* [추가] 목/일요일은 항상 경기가 있는 날임을 한눈에 알아볼 수 있게 표시합니다. */
.calendar-day.game-day:not(.playable):not(.past-playable) {
  border-color: #fbcfe8;
  background: #fff7f8;
  color: var(--primary-dark);
}

/* [추가] 베트남 공휴일은 날짜 숫자를 빨간색으로 표시합니다. */
.calendar-day.holiday .day-number {
  color: #dc2626;
}

/* [추가] 베트남 시간 기준 오늘 날짜 표시. */
.calendar-day.today {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

/* [추가] 내 참여율 검색 결과에 해당하는 날짜 표시 (다른 상태와 함께 표시될 수 있어 링 형태로 겹쳐 보여줍니다) */
.calendar-day.attended-mark {
  position: relative;
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.calendar-day.attended-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.calendar-day:disabled {
  cursor: default;
}

.day-number {
  font-weight: 900;
}

.day-type,
.day-count {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-type {
  color: var(--primary);
}

.day-type.muted-type {
  color: var(--wait);
}

.day-count {
  color: var(--muted);
}

.selected-event-summary {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: #fff7ed;
}

.selected-event-summary strong {
  color: #9a3412;
}

.selected-event-summary span {
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
}

.selected-event-summary small {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.loc-line {
  display: block;
  margin-top: 2px;
  color: var(--primary);
  font-weight: 800;
}

.loc-line-summary {
  margin: 4px 0;
}

.maps-link {
  color: #0284c7;
  font-weight: 800;
  text-decoration: underline;
}

.my-stats-search-row {
  display: flex;
  gap: 10px;
}

.my-stats-search-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.my-stats-search-row button {
  flex: 0 0 auto;
  padding: 0 18px;
}

.my-stats-result {
  position: relative;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  background: #f0f9ff;
}

.my-stats-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
}

.my-stats-name {
  margin: 0 34px 4px 0;
  color: #075985;
  font-size: 16px;
  font-weight: 900;
}

.my-stats-count-list {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.my-stats-count-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #fff;
}

.my-stats-count-list span {
  color: #0369a1;
  font-size: 12.5px;
  font-weight: 700;
}

.my-stats-count-list strong {
  color: #075985;
  font-size: 14px;
  font-weight: 900;
}

.my-stats-list-title {
  margin: 0 0 6px;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}

.my-stats-date-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-stats-date-list li {
  padding: 8px 10px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #fff;
  color: #0c4a6e;
  font-size: 13px;
  font-weight: 700;
}

.my-stats-empty {
  margin: 0;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
}

.top-attendees-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.top-attendees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.top-attendees-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
}

.top-attendees-header .icon-button {
  width: 32px;
  height: 32px;
  transition: transform 150ms ease;
}

.top-attendees-header .icon-button.collapsed {
  transform: rotate(-90deg);
}

.top-attendees-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-attendees-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.top-attendees-rank {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
}

.top-attendees-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-attendees-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.top-attendees-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* [추가] 지난 일요일 경기 결과 박스 */
.match-result-header-actions {
  display: flex;
  gap: 6px;
}

#registerMatchBtn,
#searchMatchResultBtn {
  min-height: 25px;
  padding: 0px 3px;
  font-size: 8px;
}

.match-result-content {
  display: grid;
  gap: 11px;
}

.match-result-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.match-result-date {
  margin: 0 auto;
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.match-result-vs {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.match-vs-text {
  color: #eab308;
}

.match-opponent-name {
  color: var(--primary);
}

.match-result-games {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}

.match-game-badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.match-game-badge.result-win {
  background: #dcfce7;
  color: #15803d;
}

.match-game-badge.result-draw {
  background: #fef9c3;
  color: #a16207;
}

.match-game-badge.result-loss {
  background: #fee2e2;
  color: #b91c1c;
}

.match-game-badge.match-record-badge {
  background: var(--line);
  color: var(--navy);
}

.match-game-badge.match-record-badge.record-winning {
  background: #dcfce7;
  color: #15803d;
}

/* [추가] 경기 결과 검색 팝업 결과 표시 영역 - 테두리 박스 + 확대된 폰트 */
#matchSearchResultContent {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#matchSearchResultContent .match-result-vs {
  font-size: 60px;
  overflow-wrap: break-word;
}

#matchSearchResultContent .match-game-badge {
  font-size: 34px;
}

#matchSearchResultContent .match-result-games {
  flex-wrap: wrap;
}

/* [추가] 달력의 지난 일요일 날짜 아래 상대팀/경기결과 표시 */
.day-match-opponent {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-match-results {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.day-match-result {
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.day-match-result.result-win {
  color: #15803d;
}

.day-match-result.result-draw {
  color: #a16207;
}

.day-match-result.result-loss {
  color: #b91c1c;
}

.pill {
  flex: 0 0 auto;
  max-width: 46%;
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffe4e6;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill.muted {
  background: #ede9fe;
  color: var(--wait);
}

/* [수정] 참가 신청 상단의 선택된 일정 표시를 더 크고 눈에 띄게 표시합니다. */
#selectedEventLabel {
  max-width: 60%;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 900;
}

.rsvp-form {
  display: grid;
  gap: 12px;
}

.rsvp-fields {
  display: grid;
  gap: 12px;
}

.fee-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: #fff7ed;
}

.fee-box span {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.fee-box strong {
  color: #c2410c;
  font-size: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.rsvp-hint {
  margin: -6px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #075985;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

#submitBtn.primary-button {
  background: var(--green);
}

#cancelButton.secondary-button {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.people-list {
  display: grid;
  gap: 8px;
}

.people-list.empty {
  color: var(--muted);
  font-size: 14px;
}

.person {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.person-name {
  font-weight: 900;
}

.team-tag {
  max-width: 120px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.event-tables {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.event-table-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.table-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: #fff7ed;
}

.table-event-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.table-event-header strong {
  color: #9a3412;
  font-size: 18px;
}

.table-event-header span {
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.table-event-header b {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.event-table-block.match .table-event-header {
  border-color: #fed7aa;
  background: #fff7ed;
}

.event-table-block.match .table-event-header strong,
.event-table-block.match .table-event-header span {
  color: #9a3412;
}

.event-table-block.match .table-event-header b {
  background: #ea580c;
}

.event-table-block.pickup .table-event-header {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.event-table-block.pickup .table-event-header strong,
.event-table-block.pickup .table-event-header span {
  color: #1e3a8a;
}

.event-table-block.pickup .table-event-header b {
  background: #2563eb;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.payment-table th,
.payment-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  word-break: keep-all;
}

.payment-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.payment-table tr:last-child td {
  border-bottom: 0;
}

.payment-table td:last-child {
  font-weight: 800;
}

.payment-table th:first-child,
.payment-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding-left: 10px;
  padding-right: 6px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.payment-table th:nth-child(2),
.payment-table td:nth-child(2) {
  position: sticky;
  left: 36px;
  z-index: 2;
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding-left: 6px;
  padding-right: 8px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-table th:first-child,
.payment-table th:nth-child(2) {
  background: #f8fafc;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 5;
  max-width: 520px;
  margin: 0 auto;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.paid-badge,
.paid-toggle {
  display: inline-block;
  min-width: 68px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.paid-badge {
  border: 1px solid transparent;
}

.paid-toggle {
  border: 1px solid transparent;
  cursor: pointer;
}

.paid-toggle:disabled {
  opacity: 0.6;
  cursor: default;
}

.paid-yes {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.paid-no {
  background: #f1f5f9;
  color: #64748b;
  border-color: var(--line);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.call-active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
  cursor: pointer;
}

.call-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: var(--line);
  cursor: default;
}

.day-group + .day-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.day-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.day-group-header span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cancel-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  background: #fef2f2;
  display: grid;
  gap: 10px;
}

/* [추가] 참가 신청 확인창을 화면 중앙에 고정된 모달로 표시합니다 (배경 스크롤 없음). */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-panel {
  width: min(100%, 420px);
  max-height: 90vh;
  overflow-y: auto;
  margin-top: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.modal-open {
  overflow: hidden;
}

/* [추가] Bank Info 팝업 - 계좌 안내 전용 색상과 행 레이아웃 */
.bank-info-panel {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.bank-info-panel h3 {
  color: #1d4ed8;
}

.bank-info-panel .section-title {
  margin-bottom: 4px;
}

.bank-info-rows {
  display: grid;
  gap: 10px;
}

.bank-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #fff;
}

.bank-info-label {
  flex: 0 0 auto;
  min-width: 56px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.bank-info-row strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-info-row .secondary-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
}

.bank-info-qr-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #bfdbfe;
  text-align: center;
}

.bank-info-qr {
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #fff;
}

.bank-info-qr svg {
  display: block;
  width: 200px;
  height: 200px;
}

.bank-info-qr-hint {
  margin: 0;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.cancel-panel h3 {
  margin: 0;
  color: #b91c1c;
  font-size: 15px;
}

.cancel-panel p {
  margin: 0;
  color: #7f1d1d;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-link {
  display: flex;
  flex: 1 1 30%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  min-width: 0;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.footer-link:active {
  opacity: 0.9;
}

.youtube-link {
  background: #ff0000;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.25);
}

.kakao-link {
  background: #fee500;
  color: #3c1e1e;
  box-shadow: 0 10px 30px rgba(254, 229, 0, 0.35);
}

.youtube-icon {
  width: 26px;
  height: 19px;
  flex: 0 0 auto;
}

.kakao-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

/* [추가] 네이버 환율 바로가기 버튼 */
.naver-link {
  background: #03c75a;
  box-shadow: 0 10px 30px rgba(3, 199, 90, 0.3);
}

.naver-icon {
  width: 26px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel {
    padding: 14px;
  }

  h1 {
    font-size: clamp(36px, 15vw, 60px);
  }

  .action-row {
    gap: 8px;
  }

  .payment-table {
    min-width: 640px;
  }

  .payment-table th,
  .payment-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .paid-badge,
  .paid-toggle {
    min-width: 58px;
    font-size: 11px;
    padding: 5px 6px;
  }
}

@media (min-width: 720px) {
  body {
    padding: 26px 0;
  }

  .hero {
    border-radius: var(--radius);
  }
}
