:root {
  --bg: #0f1419;
  --bg-card: #1a2332;
  --bg-deep: #0a0f15;
  --accent: #ffd700;
  --text: #e8edf2;
  --text-dim: #8b9bb0;
  --win: #4ade80;
  --neutral: #fbbf24;
  --loss: #f87171;
  --border: #2a3a52;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  /* 자산 표기 정책 — 골드=노랑(--accent), USDT=파랑(--cyan), GP=진한노랑(--gp) */
  --gold: #ffd700;
  --usdt: #38bdf8;
  --gp:   #d4a017;
  --primary: linear-gradient(135deg, #ff6b35, #f72585);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(circle at top left, rgba(167, 139, 250, 0.12), transparent 22rem), var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.page-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px;
}
.page-header::after {
  content: "";
  width: 58px;
}
.page-title { text-align: center; font-size: 16px; font-weight: 900; }
.nav-btn {
  min-width: 58px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.nav-btn:active { transform: scale(0.97); }
.nav-btn.ghost { color: var(--text-dim); cursor: default; }

.identity-card {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(56, 189, 248, 0.06)), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.identity-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: grid;
  place-items: center;
  font-size: 28px;
  flex: 0 0 auto;
  color: white;
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.18);
}
.identity-meta { flex: 1; min-width: 0; }
.identity-name {
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.identity-uid {
  display: inline-block;
  vertical-align: baseline;
  font-size: 1.36em;
  font-weight: 1000;
  letter-spacing: 0.5px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.identity-login-id {
  display: inline-block;
  max-width: min(130px, 44vw);
  margin-left: 6px;
  color: #b7c9ee;
  font-size: 0.62em;
  font-weight: 850;
  vertical-align: baseline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity-summary {
  margin-top: 7px;
  color: #a7c7ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity-summary .cp-label {
  color: #ff6b35;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.identity-summary b {
  color: #ff6b35;
  font-weight: 500;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.identity-summary .gold {
  color: var(--accent);
  font-weight: 500;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.identity-summary .gold .unit {
  margin-left: 2px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1em;
}
.xp-track {
  width: min(220px, 100%);
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(10, 15, 21, 0.72);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(43, 60, 83, 0.8);
}
.xp-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.25s ease;
}
.identity-pill {
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--accent);
  background: rgba(10, 15, 21, 0.34);
  border-radius: 14px;
  padding: 8px 11px;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  min-width: 68px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(167, 139, 250, 0.12);
}

.telegram-uid-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(34, 158, 217, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.16), rgba(34, 197, 94, 0.07)), var(--bg-card);
}
.telegram-uid-banner strong {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 4px;
}
.telegram-uid-banner p {
  margin: 0;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 700;
}
.telegram-uid-banner a,
.telegram-uid-banner button {
  min-width: 72px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #229ed9;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  border: none;
  cursor: pointer;
  font-family: "Pretendard Variable", Pretendard, inherit;
  padding: 0 14px;
}

.link-warning {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.40);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  text-align: left;
}
.link-warning b { color: #f87171; font-weight: 900; }

.link-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 6px;
  text-align: left;
}
.link-field {
  display: grid;
  gap: 4px;
}
.link-field span {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.link-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-family: "Pretendard Variable", Pretendard, inherit;
  outline: none;
}
.link-field input:focus { border-color: var(--cyan); }
.link-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  margin-top: 4px;
}
.link-confirm-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #229ed9;
  cursor: pointer;
}
.link-err {
  color: #f87171;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 2px 0;
  margin-top: 4px;
}
.section-title .sub { font-size: 10px; letter-spacing: 0; text-transform: none; opacity: 0.75; font-weight: 700; }

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.asset-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
}
.asset-value {
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
  line-height: 1;
}
/* 자산 컬러 정책: 골드=노랑, USDT=파랑, GP=진한 노랑. */
.asset-value.gold { color: var(--gold); }
.asset-value.usdt { color: var(--usdt); }
.asset-value.gp   { color: var(--gp); }
.asset-value.cyan { color: var(--cyan); } /* deprecated — usdt 의미면 .usdt 사용. 기존 호환용. */
/* 인라인 시맨틱 (모든 페이지 공통) */
.color-gold { color: var(--gold) !important; }
.color-usdt { color: var(--usdt) !important; }
.color-gp   { color: var(--gp) !important; }
.asset-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gp);     /* a-shards 아래 GP 표기 — 진한 노랑 */
  opacity: 0.88;
  letter-spacing: 0.5px;
}
.asset-value.fire { color: #ff6b35; }
.asset-value.violet { color: var(--violet); }

.slot-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 8px;
}
.slot-row {
  display: grid;
  grid-template-columns: 24px 60px 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.slot-row:last-child { border-bottom: none; }
.slot-icon { font-size: 18px; text-align: center; }
.slot-name { color: var(--text-dim); font-weight: 700; }
.slot-lv {
  font-weight: 900;
  color: var(--accent);
  text-align: right;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.slot-bar {
  height: 6px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
}
.slot-bar-fill { height: 100%; transition: width 0.3s ease; }
.slot-bar-fill.weapon { background: linear-gradient(90deg, #ff6b35, #f72585); }
.slot-bar-fill.armor { background: linear-gradient(90deg, var(--win), var(--cyan)); }
.slot-bar-fill.accessory { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.slot-power {
  text-align: right;
  font-size: 11px;
  color: #ff6b35;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 10px;
  text-align: center;
}
.stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}
.stat-value {
  font-size: 18px;
  font-weight: 900;
  margin-top: 4px;
  color: var(--text);
}

/* ===== 통계 카테고리 (강화/전투/골드워/경제) ===== */
.stats-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 380px) {
  .stats-wrap { grid-template-columns: 1fr; }
}
.stat-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stat-section-head {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.stat-row > span {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-row > b {
  font-size: 11px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  flex: 1 1 auto;
}
.stat-row > b.gold { color: var(--accent); }
.stat-row > b.fire { color: #ff6b35; }
.stat-row > b.win { color: var(--win); }
.stat-row > b.loss { color: var(--loss); }

/* ===== 추천인 (asset-grid 톤에 맞춰 카드 그리드) ===== */
.referral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.referral-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.referral-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 3px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.referral-copy {
  flex: 0 0 auto;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.referral-copy:active { transform: translateY(1px); }

.referral-referees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.referral-claim-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.referral-pending-amt {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.referral-claim-btn {
  align-self: center;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 12px;
  line-height: 1.2;
  cursor: pointer;
  letter-spacing: 0.4px;
}
.referral-claim-btn:disabled { opacity: 0.5; cursor: default; }
.referral-claim-btn:active { transform: translateY(1px); }

/* v2.0.3 (2026-05-18) — referral deep-link 복사 영역. REFERRAL CODE 카드 아래 얇은 행. */
.referral-link-bar { padding: 8px 12px; }
.referral-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.referral-link {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

/* 등록 / 추천인 정보 — 가로 전폭 카드 (asset-card 톤 그대로 사용) */
.referral-bar { margin-top: 8px; }
.referral-redeem-hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
  opacity: 0.7;
}
.referral-redeem-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}
.referral-input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  text-transform: uppercase;
}
.referral-input::placeholder {
  letter-spacing: normal;
  color: var(--text-dim);
  opacity: 0.7;
}
.referral-input:focus {
  outline: none;
  border-color: var(--accent);
}
.referral-submit {
  flex: 0 0 auto;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  cursor: pointer;
  line-height: 1.2;
  min-width: 64px;
}
.referral-submit:active { transform: translateY(1px); }
.referral-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.referral-redeem-err {
  font-size: 11px;
  color: var(--loss, #e85d5d);
  font-weight: 700;
  margin-top: 6px;
}

/* 내가 추천한 유저 목록 */
.referral-referees.hidden { display: none; }
.referees-count {
  margin-left: 6px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.referees-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* 충전 기록은 5행(=약 150px)부터 스크롤 */
#deposit-history-list { max-height: 150px; }
/* 합계 inline 표기 — 카운트 옆 괄호 표기 */
.deposit-total-inline {
  margin-left: 4px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
/* 충전 기록 헤더만 폰트 키우기 (기본 asset-label 10px 보다 크게) */
#deposit-history .asset-label {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
/* 행의 시간 폰트는 USDT(11px) 와 통일 — 시각 정돈 */
#deposit-history-list .referee-uid {
  font-size: 11px;
}
.referees-list::-webkit-scrollbar { width: 4px; }
.referees-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.referee-row {
  display: grid;
  grid-template-columns: 1fr 70px 70px 70px;
  gap: 5px 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.referee-row:last-child { border-bottom: none; }
.referee-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.referee-header span { text-align: right; }
.referee-header span:first-child { text-align: left; }
.referee-uid {
  color: var(--text);
  font-weight: 800;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.referee-cell {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.referee-cell.color-gold { color: var(--gold, #ffd700); }

.action-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.action-btn {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.action-btn:active { transform: scale(0.99); }
.action-btn.danger { border-color: rgba(248, 113, 113, 0.4); }
.action-btn.danger:active { background: rgba(248, 113, 113, 0.05); }

.action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--cyan);
}
.action-btn.danger .action-icon { color: var(--loss); }
.action-text { font-weight: 800; line-height: 1.3; }
.action-text small { display: block; font-weight: 600; color: var(--text-dim); font-size: 10px; margin-top: 3px; }
.action-tag {
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(145, 163, 184, 0.10);
  color: var(--text-dim);
}
.action-tag.soon { color: var(--neutral); background: rgba(251, 191, 36, 0.10); }
.action-tag.local { color: var(--win); background: rgba(74, 222, 128, 0.10); }

.profile-foot {
  text-align: center;
  color: var(--text-dim);
  font-size: 10px;
  opacity: 0.65;
  margin-top: 6px;
  line-height: 1.5;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fadeIn 0.18s ease;
}
.overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 318px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 20px 22px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}
.profile-icon { font-size: 48px; line-height: 1; }
.profile-icon.exchange-icon {
  font-size: 42px;
  color: var(--text);
  margin: 2px 0 4px;
}
.profile-icon.danger { color: var(--loss); }
.soon-title { font-size: 20px; font-weight: 900; margin: 12px 0 8px; }
.soon-sub {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.soon-sub b { color: var(--text); }

.exch-notice {
  margin: 12px 0 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 12px 14px;
}
.exch-notice p {
  margin: 0 0 8px;
}
.exch-notice p:last-child {
  margin-bottom: 0;
}
.exch-notice b { color: var(--accent); }
.exch-notice-soft {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}
.exch-progress {
  margin-top: 10px;
  height: 6px;
  background: rgba(10, 15, 21, 0.55);
  border-radius: 999px;
  overflow: hidden;
}
.exch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.3s ease;
}
.exch-progress-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.exchange-wallets {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  text-align: left;
}
.exchange-wallets-label {
  font-size: 10px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.exchange-wallet-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  font-weight: 700;
}
.exchange-wallet-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.75;
}
.exchange-wallet-row b {
  color: var(--accent);
  font-family: "Pretendard Variable", Pretendard, inherit;
  font-size: 11px;
}

.exchange-box {
  display: grid;
  gap: 9px;
  margin: 16px 0 15px;
  text-align: left;
}
.exchange-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.exchange-label {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.exchange-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-deep);
  color: var(--accent);
  padding: 0 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 900;
  outline: none;
}
.exchange-input:focus {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08);
}
.exchange-balance {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.exchange-balance b {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.exchange-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 15, 21, 0.54);
  padding: 8px 11px;
}
.exchange-preview-label {
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 800;
}
.exchange-preview b {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  white-space: nowrap;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.close-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.close-btn:active { transform: scale(0.98); }
.close-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.close-btn.ghost {
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
}
.close-btn.danger {
  background: var(--loss);
  color: white;
}

.deposit-info-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
  text-align: left;
}
.deposit-info-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 15, 21, 0.54);
}
.deposit-info-row .deposit-info-label {
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.deposit-info-row .deposit-info-value {
  margin-top: 3px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.35;
}
.deposit-info-row.amount .deposit-info-value {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
}
.copy-btn {
  min-width: 50px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--cyan);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  font-family: "Pretendard Variable", Pretendard, inherit;
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { color: var(--win); border-color: rgba(74, 222, 128, 0.5); }

.deposit-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.deposit-actions .close-btn { min-height: 46px; }

.deposit-status {
  margin: 10px 0 2px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.06);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
}
.deposit-status.success {
  color: var(--win);
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.4);
}
.deposit-status.expired {
  color: var(--loss);
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.4);
}
.deposit-status .deposit-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-top-color: var(--cyan);
  margin-right: 6px;
  vertical-align: -1px;
  animation: depositSpin 0.85s linear infinite;
}
@keyframes depositSpin { to { transform: rotate(360deg); } }
