/* ============================================================
   회원 간 포인트 거래 모달 (확정 시안 기준)
   클래스 접두사 gt- 전용 — 다른 화면과 절대 겹치지 않는다.
   반응형(767px 이하 등)은 프로젝트 규칙대로 responsive.css 에서만 조정한다.
   ============================================================ */

/* 배경이 스크롤되지 않게 잠근다 (position:fixed + top 은 transfer-modal.js 가 넣는다) */
body.gt-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

.gt-back {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(12, 34, 74, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gt-modal {
  width: 520px; max-width: 100%;
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px;
  box-shadow: 0 24px 60px rgba(10, 32, 72, .28);
  overflow: hidden;
}

/* ---------- 헤더 ---------- */
.gt-head {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, #eaf4ff 0%, #f6fbff 100%);
  border-bottom: 1px solid #e4eefb;
}
.gt-head-ico {
  flex: 0 0 auto; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e4eefb; border-radius: 16px;
  box-shadow: 0 2px 6px rgba(30, 80, 160, .10);
}
.gt-head-tx { min-width: 0; }
.gt-title { margin: 0 0 3px; font-size: 21px; font-weight: 900; color: #16305e; letter-spacing: -.2px; }
.gt-sub { margin: 0; font-size: 12.5px; font-weight: 600; color: #7f8a9e; }
.gt-x {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid #dce8f7; color: #6c7c98;
  font-size: 17px; line-height: 1; cursor: pointer;
}
.gt-x:hover { background: #f1f7ff; color: #16305e; }

/* ---------- 본문 ---------- */
.gt-body { padding: 18px 22px 6px; overflow-y: auto; }

/* 현재 보유 포인트 */
.gt-have {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #eef5fd; border: 1px solid #e0ecfb; border-radius: 14px;
  padding: 13px 16px; margin-bottom: 16px;
}
.gt-have-l { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: #3c4f74; }
.gt-have-l svg { display: block; }
.gt-have-v { font-size: 20px; font-weight: 900; color: #1158c3; }

/* 라벨 줄 */
.gt-field { margin-bottom: 14px; }
.gt-flabel { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.gt-flabel label { font-size: 14px; font-weight: 900; color: #16305e; }
.gt-hint { font-size: 11.5px; font-weight: 700; color: #8f9bb1; }

/* 닉네임 입력 + 회원 확인 */
.gt-nickrow { display: flex; gap: 9px; }
.gt-input {
  flex: 1 1 auto; min-width: 0; height: 48px;
  padding: 0 14px; font-size: 15px; font-weight: 700; color: #16305e;
  background: #fff; border: 2px solid #bcd8fb; border-radius: 13px; outline: none;
}
.gt-input::placeholder { color: #aeb9cc; font-weight: 600; }
.gt-input:focus { border-color: #2f7bf0; box-shadow: 0 0 0 3px rgba(47, 123, 240, .14); }
.gt-find {
  flex: 0 0 auto; width: 104px; height: 48px;
  background: #e9f2ff; border: 1px solid #cfe1fb; border-radius: 13px;
  font-size: 13.5px; font-weight: 900; color: #1a63d6; cursor: pointer;
}
.gt-find:hover:not(:disabled) { background: #dceaff; }
.gt-find:disabled { opacity: .6; cursor: default; }

/* 회원 확인 완료 */
/* display:flex 가 [hidden] 보다 우선하므로 숨김 규칙을 따로 둔다 */
.gt-ok[hidden] { display: none; }
.gt-ok {
  display: flex; align-items: center; gap: 9px;
  background: #eefaf1; border: 1px solid #cdeeda; border-radius: 14px;
  padding: 12px 15px; margin-bottom: 16px;
}
.gt-ok-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: #ffffff; border: 1px solid #cdeeda;
  display: flex; align-items: center; justify-content: center;
}
.gt-ok-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 900; color: #1e7a49;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-ok-pt { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #6f8a7c; }

/* 보낼 포인트 */
.gt-amtbox {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #dfe6f0; border-radius: 14px;
  padding: 0 16px; height: 54px;
}
.gt-amt {
  flex: 1 1 auto; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  text-align: right; font-size: 19px; font-weight: 900; color: #16305e;
}
.gt-amt::placeholder { color: #c3ccdb; }
.gt-amtbox:focus-within { border-color: #2f7bf0; box-shadow: 0 0 0 3px rgba(47, 123, 240, .12); }
.gt-amt-unit { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: #8f9bb1; }

/* 거래 예상 내역 */
.gt-recap { border: 1px solid #e2ebf7; border-radius: 14px; overflow: hidden; margin: 16px 0 14px; }
.gt-recap-head {
  display: flex; align-items: center; gap: 8px;
  background: #eef5fd; border-bottom: 1px solid #e2ebf7;
  padding: 11px 15px; font-size: 13.5px; font-weight: 900; color: #16305e;
}
.gt-recap-head svg { display: block; }
.gt-recap-body { padding: 11px 15px 12px; }
.gt-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.gt-r > span { font-size: 12.5px; font-weight: 700; color: #7c88a0; }
.gt-r > b { font-size: 13.5px; font-weight: 900; color: #16305e; }
.gt-r > b.is-plus { color: #17a25c; }
.gt-r > b.is-minus { color: #e0453c; }
.gt-r-line { border-top: 1px dashed #dbe5f3; margin: 5px 0; }
.gt-r.is-final {
  background: #eaf3ff; border: 1px solid #d8e8fd; border-radius: 11px;
  margin-top: 8px; padding: 10px 12px;
}
.gt-r.is-final > span { color: #3c4f74; font-weight: 800; }
.gt-r.is-final > b { font-size: 16.5px; color: #1158c3; }

/* 수수료 안내 */
.gt-notice {
  display: flex; align-items: flex-start; gap: 9px;
  background: #fff8e3; border: 1px solid #f5e2ac; border-radius: 13px;
  padding: 12px 14px; margin: 0 0 12px;
  font-size: 12px; font-weight: 700; color: #8a6a12; line-height: 1.55; text-align: center;
}
.gt-notice > span:last-child { flex: 1 1 auto; }
.gt-notice-ico {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: #f0b400; color: #fff; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* 오류 */
.gt-err {
  margin: 0 0 12px; padding: 10px 13px;
  background: #fdeceb; border: 1px solid #f6cbc8; border-radius: 12px;
  font-size: 12.5px; font-weight: 800; color: #c33a32; line-height: 1.5;
}

/* ---------- 하단 버튼 ---------- */
.gt-foot {
  display: flex; gap: 10px; padding: 14px 22px 20px;
  border-top: 1px solid #eef3fa; background: #fff;
}
.gt-btn-ghost {
  flex: 0 0 150px; height: 52px;
  background: #fff; border: 1px solid #dfe7f2; border-radius: 14px;
  font-size: 15px; font-weight: 900; color: #4a5b7c; cursor: pointer;
}
.gt-btn-ghost:hover { background: #f5f9ff; }
.gt-btn-main {
  flex: 1 1 auto; height: 52px;
  background: linear-gradient(180deg, #3d86f5, #1f63dc);
  border: 0; border-radius: 14px;
  font-size: 15.5px; font-weight: 900; color: #fff; cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 99, 220, .28);
}
.gt-btn-main:hover:not(:disabled) { filter: brightness(1.05); }
.gt-btn-main:disabled { background: #b8c9e4; box-shadow: none; cursor: default; }

/* ============================================================
   닉네임 클릭 선택 메뉴 (정보 보기 / 포인트 거래)
   ============================================================ */
.gt-menu {
  position: absolute; z-index: 1500;
  min-width: 176px; padding: 6px;
  background: #fff; border: 1px solid #d9e7fa; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(16, 44, 92, .18);
}
.gt-menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  font-size: 13.5px; font-weight: 800; color: #16305e; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gt-menu button:hover, .gt-menu button:focus-visible { background: #eef5fd; outline: none; }
.gt-menu button.is-trade { color: #1a63d6; }
