* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #f7f7f8;
  color: #1a1a1a;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* 브릿지 페이지 */

.bridge__label {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

.bridge__code {
  font-size: clamp(20px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 24px;
  padding: 16px;
  background: #fff;
  border: 2px dashed #2868ff;
  border-radius: 12px;
  color: #2868ff;
  user-select: all;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.bridge__button {
  font-size: 18px;
  font-weight: 600;
  padding: 18px;
  border: none;
  border-radius: 12px;
  background: #2868ff;
  color: #fff;
  cursor: pointer;
  width: 100%;
}

.bridge__button:active {
  background: #1f52cc;
}

.bridge__feedback {
  margin-top: 12px;
  color: #2a9d5c;
  font-weight: 600;
}

.bridge__fallback {
  margin-top: 16px;
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* 쿠폰 발급 페이지 */

.coupon__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.coupon__benefit {
  font-size: 15px;
  color: #444;
  margin-bottom: 24px;
  white-space: pre-line;
}

.coupon__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.coupon__input {
  font-size: 16px;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.coupon__notice {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  background: #f0f0f0;
  padding: 12px;
  border-radius: 8px;
}

.coupon__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.coupon__submit {
  font-size: 18px;
  font-weight: 600;
  padding: 18px;
  border: none;
  border-radius: 12px;
  background: #2868ff;
  color: #fff;
  cursor: pointer;
}

.coupon__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.coupon__code {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 2px dashed #2868ff;
  border-radius: 12px;
  color: #2868ff;
}

.coupon__error {
  color: #d63333;
  font-size: 14px;
}

/* 캐시백 신청 페이지 */

.cashback__file-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #444;
}

.cashback__file-button {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2868ff;
  color: #fff;
  cursor: pointer;
}

.cashback__file-button:active {
  background: #1f52cc;
}

.cashback__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cashback__file-name {
  font-size: 13px;
  color: #777;
  word-break: break-all;
}

/* 운영자 조회 */

.admin {
  max-width: 960px;
  text-align: left;
  justify-content: flex-start;
  gap: 24px;
}

.admin h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #333;
}

.admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin th,
.admin td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #edeef1;
}

.admin th {
  background: #fafafa;
  color: #666;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin tbody tr:hover {
  background: #f7f9ff;
}

.admin tbody tr:last-child td {
  border-bottom: none;
}

.admin__login {
  max-width: 320px;
  margin: 0 auto;
}

.admin__header {
  margin-bottom: 4px;
}

.admin__header .coupon__title {
  margin-bottom: 4px;
}

.admin__subtitle {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.admin__card {
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.admin__card h2 {
  margin-top: 0;
}

.admin__table-card {
  padding: 0;
  overflow: hidden;
}

.admin__table-scroll {
  overflow-x: auto;
}

.admin__table-card h2 {
  padding: 18px 20px 0;
}

.admin__table-card table {
  margin-top: 12px;
}

.admin__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin__filters select {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.admin__filters .coupon__submit,
.admin__card .coupon__submit {
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
}

.admin__copy-box {
  width: 100%;
  min-height: 72px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #444;
  background: #fafafa;
}

.admin__phone {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin__empty {
  padding: 32px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge--applied {
  background: #eef1f6;
  color: #556;
}

.status-badge--verified {
  background: #e6f0ff;
  color: #2868ff;
}

.status-badge--paid {
  background: #e5f7ec;
  color: #1a9d52;
}

.status-badge--rejected {
  background: #fdeaea;
  color: #d63333;
}

.admin__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin__status-form {
  display: inline-flex;
}

.btn-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pill--approve {
  background: #2868ff;
  color: #fff;
}

.btn-pill--approve:hover {
  background: #1f52cc;
}

.btn-pill--pay {
  background: #1a9d52;
  color: #fff;
}

.btn-pill--pay:hover {
  background: #147a40;
}

.btn-pill--reject {
  background: #fff;
  color: #d63333;
  border: 1px solid #f2c4c4;
}

.btn-pill--reject:hover {
  background: #fdeaea;
}

.admin__image-link {
  color: #2868ff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.admin__image-link:hover {
  text-decoration: underline;
}

.admin__no-image {
  color: #bbb;
  font-size: 13px;
}

/* 이동 전 확인 팝업 */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  text-align: left;
}

.modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.modal__body {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 20px;
}

.modal__confirm {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2868ff;
  color: #fff;
  cursor: pointer;
}

.modal__confirm:active {
  background: #1f52cc;
}

.coupon__reward-banner {
  background: #fff8e6;
  color: #b37400;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}
