/* ═══════════════════════════════════════════════
   Hash Nance — 입출금 (Wallet)
   ═══════════════════════════════════════════════ */

/* ── Overflow fix (mobile horizontal scroll) ── */
html.wl-page,
html.wl-page body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* ── Layout ── */
.wl-main {
  min-height: calc(100vh - 60px);
  background: var(--bg-body);
  padding-bottom: 3rem;
  overflow-x: hidden;
  position: relative;
}
.wl-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow: hidden;
}

/* ── Breadcrumb ── */
.wl-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 0 1rem;
  font-size: .8125rem;
}
.wl-breadcrumb-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--c-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.wl-breadcrumb-link:hover { color: var(--c-brand); }
.wl-breadcrumb-sep { color: var(--c-dim); opacity: .4; }
.wl-breadcrumb-current {
  color: var(--c-text);
  font-weight: 600;
}

/* ── Balance Card ── */
.wl-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: wlFadeUp .5s var(--ease) both;
}
.wl-balance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 100%, rgba(255,255,255,.1), transparent 50%),
    radial-gradient(ellipse 50% 50% at 90% 0%, rgba(0,0,0,.08), transparent 50%);
  pointer-events: none;
}
@keyframes wlFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.wl-balance-left { position: relative; z-index: 1; }
.wl-balance-greeting {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: -.01em;
}
.wl-balance-label {
  font-size: .6875rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wl-balance-amount {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: .25rem;
}
.wl-balance-value {
  font-family: var(--f-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.wl-balance-unit {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
.wl-balance-right { position: relative; z-index: 1; }
.wl-balance-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
}

/* ── Main Tabs ── */
.wl-tabs {
  display: flex;
  gap: .25rem;
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  padding: .25rem;
  margin-bottom: 1.25rem;
  animation: wlFadeUp .5s var(--ease) .1s both;
}
.wl-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6875rem 1rem;
  background: none;
  border: none;
  border-radius: calc(var(--r-sm) - 2px);
  font-family: var(--f-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-dim);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.wl-tab:hover { color: var(--c-sub); }
.wl-tab--active {
  background: var(--bg-card);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.wl-tab--active svg { color: var(--c-brand); }

/* ── Panel ── */
.wl-panel {
  animation: wlFadeUp .4s var(--ease) .15s both;
  overflow: hidden;
}
.wl-sub-panel {
  overflow: hidden;
}

/* ── Sub-Tabs ── */
.wl-sub-tabs {
  display: flex;
  gap: .375rem;
  margin-bottom: 1.25rem;
}
.wl-sub-tab {
  padding: .4375rem 1.125rem;
  background: none;
  border: 1.5px solid rgba(0,0,0,.06);
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-dim);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.wl-sub-tab:hover {
  border-color: rgba(13,148,136,.2);
  color: var(--c-sub);
}
.wl-sub-tab--active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}
.wl-sub-tab--active:hover {
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
  color: #fff;
}

/* ── Section ── */
.wl-section {
  margin-bottom: 1.25rem;
}
.wl-section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 .625rem;
}
.wl-section-title svg { color: var(--c-brand); flex-shrink: 0; }

/* ── Coin Grid ── */
.wl-coin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.wl-coin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .125rem;
  padding: .75rem 1.125rem;
  background: var(--bg-card);
  border: 1.5px solid rgba(0,0,0,.06);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .25s var(--ease);
  min-width: 70px;
}
.wl-coin-btn:hover {
  border-color: rgba(13,148,136,.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.wl-coin-btn--active {
  border-color: var(--c-brand);
  background: rgba(13,148,136,.04);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.wl-coin-symbol {
  font-family: var(--f-mono);
  font-size: .875rem;
  font-weight: 800;
  color: var(--c-text);
}
.wl-coin-name {
  font-size: .5625rem;
  color: var(--c-dim);
  font-weight: 500;
}

/* ── Network Grid ── */
.wl-network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.wl-network-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1875rem;
  padding: .875rem .5rem;
  background: var(--bg-card);
  border: 1.5px solid rgba(0,0,0,.06);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.wl-network-btn:hover {
  border-color: rgba(13,148,136,.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.wl-network-btn--active {
  border-color: var(--c-brand);
  background: rgba(13,148,136,.04);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.wl-network-name {
  font-family: var(--f-mono);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-text);
}
.wl-network-chain {
  font-size: .625rem;
  color: var(--c-dim);
  font-weight: 500;
}
.wl-network-fee {
  font-size: .5625rem;
  color: var(--c-dim);
  margin-top: .0625rem;
}
.wl-network-badge {
  position: absolute;
  top: -.3125rem;
  right: -.1875rem;
  padding: .0625rem .4375rem;
  border-radius: var(--r-full);
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wl-network-badge--recommended {
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-light));
  color: #fff;
}

/* ── Address Box ── */
.wl-address-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}
.wl-qr-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wl-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  color: var(--c-dim);
  font-size: .5625rem;
  font-weight: 500;
}
.wl-qr-placeholder svg { width: 40px; height: 40px; }
.wl-address-info {
  flex: 1;
  min-width: 0;
}
.wl-address-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
}
.wl-address-hint {
  display: block;
  font-size: .625rem;
  color: var(--c-amber, #f59e0b);
  margin-top: .25rem;
  margin-bottom: .25rem;
  font-weight: 500;
}
.wl-address-network {
  display: inline-block;
  padding: .0625rem .4375rem;
  border-radius: var(--r-full);
  background: rgba(13,148,136,.08);
  color: var(--c-brand);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.wl-address-row {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}
.wl-address-text {
  flex: 1;
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--c-text);
  background: var(--bg-inset);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--r-xs);
  padding: .5rem .625rem;
  word-break: break-all;
  line-height: 1.55;
  user-select: all;
}
.wl-copy-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .4375rem .75rem;
  background: var(--c-brand);
  border: none;
  border-radius: var(--r-xs);
  color: #fff;
  font-family: var(--f-body);
  font-size: .6875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}
.wl-copy-btn:hover {
  background: var(--c-brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}
.wl-copy-btn:active { transform: translateY(0); }
.wl-copy-btn--sm {
  padding: .3125rem .5rem;
  font-size: .625rem;
}
.wl-copy-btn.is-copied {
  background: var(--c-green);
}

/* ── Notice Box ── */
.wl-notice-box {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.125rem;
  background: rgba(37,99,235,.04);
  border: 1px solid rgba(37,99,235,.08);
  border-radius: var(--r-md);
  margin-top: .5rem;
  min-width: 0;
  overflow: hidden;
}
.wl-notice-box--warm {
  background: rgba(217,119,6,.04);
  border-color: rgba(217,119,6,.1);
}
.wl-notice-box--warm .wl-notice-icon { color: var(--c-amber); }
.wl-notice-box--warm .wl-notice-title { color: var(--c-amber); }
.wl-notice-icon {
  flex-shrink: 0;
  color: var(--c-blue);
  margin-top: .0625rem;
}
.wl-notice-content { min-width: 0; overflow: hidden; }
.wl-notice-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-blue);
  margin: 0 0 .375rem;
}
.wl-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3125rem;
}
.wl-notice-list li {
  position: relative;
  padding-left: .75rem;
  font-size: .6875rem;
  color: var(--c-sub);
  line-height: 1.6;
}
.wl-notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-dim);
}
.wl-notice-list li strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ── Bank Info ── */
.wl-bank-info {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.wl-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  min-width: 0;
}
.wl-bank-label {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--c-dim);
  flex-shrink: 0;
}
.wl-bank-value {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text);
  text-align: right;
  min-width: 0;
}
.wl-bank-account {
  font-family: var(--f-mono);
  letter-spacing: .03em;
}
.wl-bank-value-row {
  display: flex;
  align-items: center;
  gap: .375rem;
  min-width: 0;
}
.wl-bank-value-row .wl-copy-btn--sm {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 5px;
}
.wl-bank-value-row .wl-copy-btn--sm svg {
  width: 12px;
  height: 12px;
}
.wl-bank-divider {
  height: 1px;
  background: rgba(0,0,0,.04);
}

/* ── Input Group ── */
.wl-input-group {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.wl-input {
  width: 100%;
  padding: .75rem .875rem;
  background: var(--bg-card);
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: .8125rem;
  color: var(--c-text);
  outline: none;
  transition: all .2s var(--ease);
}
.wl-input::placeholder { color: var(--c-dim); font-size: .75rem; }
.wl-input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.wl-input--mono { font-family: var(--f-mono); font-size: .75rem; }
.wl-input--valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.1) !important;
}
.wl-input--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

/* Address type badge */
.wl-addr-wrap { position: relative; }
.wl-addr-badge {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: .18rem .55rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  pointer-events: none;
}
.wl-addr-badge--trc { background: #ff0013; color: #fff; }
.wl-addr-badge--erc { background: #627eea; color: #fff; }

/* Address hint text */
.wl-addr-hint {
  margin-top: .35rem;
  font-size: .72rem;
  min-height: 1.1em;
  transition: color .15s;
}
.wl-addr-hint.valid { color: #10b981; }
.wl-addr-hint.error { color: #ef4444; }
.wl-input-suffix {
  position: absolute;
  right: .875rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-dim);
  pointer-events: none;
}

/* ── Quick Amount Buttons ── */
.wl-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .375rem;
  margin-top: .5rem;
}
.wl-quick-btn {
  padding: .4375rem;
  background: var(--bg-inset);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--r-xs);
  font-family: var(--f-body);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--c-sub);
  cursor: pointer;
  transition: all .2s var(--ease);
  text-align: center;
}
.wl-quick-btn:hover {
  background: rgba(13,148,136,.06);
  border-color: rgba(13,148,136,.15);
  color: var(--c-brand);
}

/* ── Withdraw Info ── */
.wl-withdraw-info {
  margin-top: .625rem;
  padding: .875rem 1rem;
  background: var(--bg-inset);
  border-radius: var(--r-sm);
}
.wl-withdraw-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3125rem 0;
  font-size: .75rem;
  color: var(--c-sub);
}
.wl-withdraw-info-row--total {
  font-weight: 700;
  color: var(--c-text);
}
.wl-withdraw-available {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--c-brand);
}
.wl-withdraw-fee {
  font-family: var(--f-mono);
  font-weight: 500;
}
.wl-withdraw-total {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--c-green);
}
.wl-withdraw-info-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: .3125rem 0;
}
.wl-max-btn {
  margin-top: .4375rem;
  padding: .3125rem .75rem;
  background: none;
  border: 1.5px solid rgba(13,148,136,.2);
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--c-brand);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.wl-max-btn:hover {
  background: rgba(13,148,136,.06);
  border-color: var(--c-brand);
}

/* ── Submit Button ── */
.wl-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .875rem;
  background: linear-gradient(135deg, var(--c-brand-dark), var(--c-brand), var(--c-brand-light));
  background-size: 200% 100%;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-btn);
  margin-bottom: .875rem;
}
.wl-submit-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(13,148,136,.3);
}
.wl-submit-btn:active { transform: translateY(0); }
.wl-submit-btn--withdraw {
  background: linear-gradient(135deg, #1d4ed8, var(--c-blue), #60a5fa);
  box-shadow: 0 1px 3px rgba(37,99,235,.15), 0 4px 12px rgba(37,99,235,.12);
}
.wl-submit-btn--withdraw:hover {
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
}

/* ── History Section ── */
.wl-history-section {
  margin-top: 1.75rem;
}
.wl-history-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ── Pagination ── */
.wl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .9rem 1rem .75rem;
  border-top: 1px solid var(--border-color, #f0f2f5);
  flex-wrap: wrap;
}
.wl-pg-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 .45rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s, color .12s;
  line-height: 1;
}
.wl-pg-btn:hover:not([disabled]) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.wl-pg-btn.active {
  background: var(--c-brand, #0d9488);
  border-color: var(--c-brand, #0d9488);
  color: #fff;
  cursor: default;
}
.wl-pg-btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
}
.wl-pg-prev, .wl-pg-next { min-width: 32px; }
.wl-pg-ellipsis {
  font-size: .75rem;
  color: #94a3b8;
  padding: 0 .1rem;
  line-height: 32px;
}

/* Loading spinner inside history */
.wl-history-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.wl-history-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--c-brand, #0d9488);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wl-history-head {
  padding: .875rem 1.25rem;
  border-bottom: var(--border);
}
.wl-history-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}
.wl-history-title svg { color: var(--c-brand); }
.wl-history-body {
  min-height: 100px;
}
.wl-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: .5rem;
}
.wl-history-empty p {
  color: var(--c-dim);
  font-size: .75rem;
  margin: 0;
}

/* History List (dynamic) */
.wl-history-list {
  display: flex;
  flex-direction: column;
}
.wl-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.03);
  transition: background .15s;
}
.wl-history-item:last-child { border-bottom: none; }
.wl-history-item:hover { background: rgba(13,148,136,.015); }
.wl-history-item-left {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}
.wl-history-type {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text);
}
.wl-history-date {
  font-size: .6875rem;
  color: var(--c-dim);
}
.wl-history-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .125rem;
}
.wl-history-amount {
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--f-mono);
}
.wl-history-plus { color: var(--c-green, #059669); }
.wl-history-minus { color: var(--c-red, #ef4444); }
.wl-history-status {
  font-size: .625rem;
  font-weight: 600;
  padding: .125rem .5rem;
  border-radius: 4px;
}
.wl-history-status--pending { background: rgba(245,158,11,.1); color: #f59e0b; }
.wl-history-status--approved { background: rgba(16,185,129,.1); color: #10b981; }
.wl-history-status--rejected { background: rgba(239,68,68,.1); color: #ef4444; }
.wl-history-status--cancelled { background: rgba(100,116,139,.1); color: #94a3b8; }
.wl-history-addr {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .6875rem;
  font-family: var(--f-mono);
  color: #6b7280;
  background: #f1f3f7;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 4px;
  padding: .1rem .375rem;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  letter-spacing: .01em;
}

/* History Row */
.wl-tx-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .625rem;
  padding: .75rem 1.25rem;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.03);
  transition: background .15s var(--ease);
}
.wl-tx-row:last-child { border-bottom: none; }
.wl-tx-row:hover { background: rgba(13,148,136,.015); }

.wl-tx-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wl-tx-type-icon--deposit {
  background: rgba(5,150,105,.08);
  color: var(--c-green);
}
.wl-tx-type-icon--withdraw {
  background: rgba(37,99,235,.08);
  color: var(--c-blue);
}
.wl-tx-info { min-width: 0; }
.wl-tx-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-text);
}
.wl-tx-date {
  font-size: .625rem;
  color: var(--c-dim);
  margin-top: .0625rem;
}
.wl-tx-amount {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wl-tx-amount--deposit { color: var(--c-green); }
.wl-tx-amount--withdraw { color: var(--c-blue); }

.wl-tx-status {
  display: inline-block;
  margin-top: .0625rem;
  font-size: .5625rem;
  font-weight: 600;
  padding: .0625rem .4375rem;
  border-radius: var(--r-full);
}
.wl-tx-status--pending {
  background: rgba(217,119,6,.08);
  color: var(--c-amber);
}
.wl-tx-status--complete {
  background: rgba(5,150,105,.08);
  color: var(--c-green);
}
.wl-tx-status--rejected {
  background: rgba(220,38,38,.08);
  color: var(--c-red);
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (<=768px)
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .wl-container {
    padding: 0 1rem;
  }
  .wl-balance-card {
    padding: 1.25rem 1.375rem;
    border-radius: var(--r-md);
  }
  .wl-balance-value {
    font-size: 1.5rem;
  }
  .wl-balance-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .wl-balance-icon svg {
    width: 22px;
    height: 22px;
  }

  .wl-address-box {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem;
  }
  .wl-qr-wrap {
    width: 100px;
    height: 100px;
  }
  .wl-qr-placeholder svg { width: 36px; height: 36px; }
  .wl-address-info {
    width: 100%;
  }
  .wl-address-label {
    justify-content: center;
  }
  .wl-address-row {
    flex-direction: column;
    gap: .5rem;
  }
  .wl-copy-btn {
    width: 100%;
    justify-content: center;
    padding: .5625rem;
  }

  .wl-network-btn {
    padding: .75rem .375rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (<=520px)
   ═══════════════════════════════════════ */

@media (max-width: 520px) {
  .wl-main {
    padding-bottom: 2rem;
  }
  .wl-container {
    padding: 0 .875rem;
  }

  /* Breadcrumb */
  .wl-breadcrumb {
    padding: .875rem 0 .625rem;
    font-size: .75rem;
  }

  /* Balance Card */
  .wl-balance-card {
    padding: 1.125rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 14px;
  }
  .wl-balance-label {
    font-size: .625rem;
  }
  .wl-balance-value {
    font-size: 1.375rem;
  }
  .wl-balance-unit {
    font-size: .6875rem;
  }
  .wl-balance-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .wl-balance-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Main Tabs */
  .wl-tabs {
    margin-bottom: .875rem;
    padding: .1875rem;
  }
  .wl-tab {
    padding: .5625rem .625rem;
    font-size: .75rem;
    gap: .375rem;
  }
  .wl-tab svg {
    width: 14px;
    height: 14px;
  }

  /* Sub Tabs */
  .wl-sub-tabs {
    gap: .3125rem;
    margin-bottom: 1rem;
  }
  .wl-sub-tab {
    padding: .375rem .875rem;
    font-size: .6875rem;
  }

  /* Section */
  .wl-section {
    margin-bottom: 1rem;
  }
  .wl-section-title {
    font-size: .75rem;
    gap: .375rem;
    margin-bottom: .5rem;
  }
  .wl-section-title svg {
    width: 14px;
    height: 14px;
  }

  /* Network Grid - 3 columns even on mobile */
  .wl-network-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .375rem;
  }
  .wl-network-btn {
    padding: .625rem .25rem;
    border-radius: 10px;
    gap: .125rem;
  }
  .wl-network-name {
    font-size: .6875rem;
  }
  .wl-network-chain {
    font-size: .5625rem;
  }
  .wl-network-fee {
    font-size: .5rem;
  }
  .wl-network-badge {
    font-size: .4375rem;
    padding: .0625rem .3125rem;
    top: -.25rem;
    right: -.125rem;
  }

  /* Address */
  .wl-address-box {
    padding: 1rem;
    gap: .875rem;
    border-radius: 12px;
  }
  .wl-qr-wrap {
    width: 88px;
    height: 88px;
    border-radius: 8px;
  }
  .wl-qr-placeholder svg { width: 32px; height: 32px; }
  .wl-qr-placeholder span { font-size: .5rem; }
  .wl-address-label {
    font-size: .625rem;
    margin-bottom: .375rem;
  }
  .wl-address-text {
    font-size: .625rem;
    padding: .4375rem .5rem;
  }
  .wl-copy-btn {
    padding: .5rem;
    font-size: .625rem;
  }

  /* Notice */
  .wl-notice-box {
    padding: .875rem;
    gap: .625rem;
    border-radius: 12px;
  }
  .wl-notice-icon svg {
    width: 16px;
    height: 16px;
  }
  .wl-notice-title {
    font-size: .6875rem;
    margin-bottom: .25rem;
  }
  .wl-notice-list {
    gap: .25rem;
  }
  .wl-notice-list li {
    font-size: .625rem;
    padding-left: .625rem;
    line-height: 1.5;
  }
  .wl-notice-list li::before {
    width: 2.5px;
    height: 2.5px;
  }

  /* Bank Info */
  .wl-bank-info {
    padding: .875rem 1rem;
    border-radius: 12px;
  }
  .wl-bank-row {
    padding: .4375rem 0;
  }
  .wl-bank-label {
    font-size: .625rem;
  }
  .wl-bank-value {
    font-size: .6875rem;
  }
  .wl-bank-value-row {
    gap: .25rem;
  }
  .wl-bank-value-row .wl-copy-btn--sm {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 4px;
  }
  .wl-bank-value-row .wl-copy-btn--sm svg {
    width: 11px;
    height: 11px;
  }

  /* Input */
  .wl-input {
    padding: .6875rem .75rem;
    font-size: .75rem;
    border-radius: 8px;
  }
  .wl-input::placeholder { font-size: .6875rem; }
  .wl-input--mono { font-size: .6875rem; }
  .wl-input-suffix {
    font-size: .6875rem;
    right: .75rem;
  }

  /* Quick Amounts */
  .wl-quick-amounts {
    grid-template-columns: repeat(4, 1fr);
    gap: .3125rem;
    margin-top: .375rem;
  }
  .wl-quick-btn {
    padding: .375rem;
    font-size: .625rem;
    border-radius: 6px;
  }

  /* Withdraw Info */
  .wl-withdraw-info {
    padding: .75rem .875rem;
    margin-top: .5rem;
    border-radius: 8px;
  }
  .wl-withdraw-info-row {
    font-size: .6875rem;
    padding: .25rem 0;
  }
  .wl-max-btn {
    font-size: .625rem;
    padding: .25rem .625rem;
    margin-top: .375rem;
  }

  /* Submit */
  .wl-submit-btn {
    padding: .75rem;
    font-size: .8125rem;
    border-radius: 8px;
    margin-bottom: .75rem;
  }
  .wl-submit-btn svg {
    width: 16px;
    height: 16px;
  }

  /* History */
  .wl-history-section {
    margin-top: 1.25rem;
  }
  .wl-history-card {
    border-radius: 14px;
  }
  .wl-history-head {
    padding: .75rem 1rem;
  }
  .wl-history-title {
    font-size: .75rem;
  }
  .wl-history-empty {
    padding: 1.5rem .875rem;
    gap: .375rem;
  }
  .wl-history-empty svg {
    width: 28px;
    height: 28px;
  }
  .wl-history-empty p {
    font-size: .6875rem;
  }
  .wl-tx-row {
    padding: .625rem 1rem;
    gap: .5rem;
  }
  .wl-tx-type-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .wl-tx-type-icon svg {
    width: 14px;
    height: 14px;
  }
  .wl-tx-label { font-size: .6875rem; }
  .wl-tx-date { font-size: .5625rem; }
  .wl-tx-amount { font-size: .6875rem; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tiny (<=380px)
   ═══════════════════════════════════════ */

@media (max-width: 380px) {
  .wl-container {
    padding: 0 .625rem;
  }
  .wl-balance-card {
    padding: 1rem;
  }
  .wl-balance-value {
    font-size: 1.25rem;
  }
  .wl-balance-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .wl-balance-icon svg {
    width: 18px;
    height: 18px;
  }
  .wl-network-btn {
    padding: .5rem .1875rem;
  }
  .wl-network-name {
    font-size: .625rem;
  }
  .wl-network-chain {
    font-size: .5rem;
  }
  .wl-address-box {
    padding: .875rem;
  }
  .wl-qr-wrap {
    width: 76px;
    height: 76px;
  }
  .wl-bank-info {
    padding: .75rem .875rem;
  }
  .wl-bank-value {
    font-size: .625rem;
  }
  .wl-bank-account {
    letter-spacing: 0;
  }
  .wl-bank-value-row .wl-copy-btn--sm {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
  }
  .wl-bank-value-row .wl-copy-btn--sm svg {
    width: 10px;
    height: 10px;
  }
}

/* ── Toast (shared) ── */
.toast-container {
  position: fixed;
  top: max(1.5rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: toastIn .35s var(--ease) both;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--c-green); }
.toast.error { border-left: 3px solid var(--c-red); }
.toast.info { border-left: 3px solid var(--c-blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════
   Confirm Modal — 입출금 신청 확인
   ══════════════════════════════════════════════════════ */
#wlConfirmModal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: wlcmFadeIn .22s var(--ease, cubic-bezier(.16,1,.3,1)) both;
}
#wlConfirmModal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@keyframes wlcmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── box ── */
.wlcm-backdrop {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--r-lg, 20px);
  box-shadow:
    0 2px 8px rgba(0,0,0,.06),
    0 12px 40px rgba(0,0,0,.14),
    0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
  animation: wlcmSlideUp .26s var(--ease, cubic-bezier(.16,1,.3,1)) both;
}
@keyframes wlcmSlideUp {
  from { transform: translateY(18px) scale(.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* ── header stripe ── */
.wlcm-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.75rem 1.5rem 1.375rem;
  position: relative;
}
.wlcm-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 1.25rem; right: 1.25rem;
  height: 1px;
  background: rgba(0,0,0,.06);
}

/* ── icon ── */
.wlcm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .25rem;
  flex-shrink: 0;
}
.wlcm-icon--deposit {
  background: linear-gradient(135deg, rgba(5,150,105,.12), rgba(16,185,129,.18));
  color: #059669;
  box-shadow: 0 0 0 6px rgba(5,150,105,.08);
}
.wlcm-icon--withdraw {
  background: linear-gradient(135deg, rgba(217,119,6,.12), rgba(251,191,36,.18));
  color: #d97706;
  box-shadow: 0 0 0 6px rgba(217,119,6,.08);
}

.wlcm-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0;
  letter-spacing: -.01em;
}
.wlcm-desc {
  font-size: .8125rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── rows ── */
.wlcm-body {
  padding: 1.125rem 1.375rem 1.25rem;
}
.wlcm-rows {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--r-sm, 10px);
  overflow: hidden;
}
.wlcm-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .875rem;
  padding: .625rem .875rem;
  font-size: .8125rem;
  line-height: 1.5;
}
.wlcm-row + .wlcm-row {
  border-top: 1px solid rgba(0,0,0,.05);
}
.wlcm-row--highlight {
  background: rgba(13,148,136,.05);
}
.wlcm-label {
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  padding-top: .05rem;
}
.wlcm-value {
  color: #111827;
  text-align: right;
  word-break: break-all;
  font-weight: 500;
}
.wlcm-value--highlight {
  color: #0d9488;
  font-weight: 700;
  font-size: .9375rem;
}

/* ── footer buttons ── */
.wlcm-footer {
  display: flex;
  gap: .625rem;
  padding: 0 1.375rem 1.375rem;
}
.wlcm-btn {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: var(--r-sm, 10px);
  border: none;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
  letter-spacing: -.01em;
  line-height: 1;
}
.wlcm-btn:active { transform: scale(.965); }

.wlcm-btn--cancel {
  background: #f1f3f7;
  color: #374151;
  border: 1px solid rgba(0,0,0,.06);
}
.wlcm-btn--cancel:hover {
  background: #e5e7eb;
  color: #111827;
}

.wlcm-btn--confirm {
  color: #fff;
  box-shadow: var(--shadow-btn, 0 1px 3px rgba(13,148,136,.2), 0 4px 12px rgba(13,148,136,.15));
}
.wlcm-btn--deposit {
  background: linear-gradient(135deg, #0d9488, #059669);
}
.wlcm-btn--deposit:hover {
  background: linear-gradient(135deg, #0f766e, #047857);
  box-shadow: 0 2px 6px rgba(13,148,136,.3), 0 6px 20px rgba(13,148,136,.2);
}
.wlcm-btn--withdraw {
  background: linear-gradient(135deg, #d97706, #b45309);
}
.wlcm-btn--withdraw:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 2px 6px rgba(217,119,6,.3), 0 6px 20px rgba(217,119,6,.2);
}

/* ── mobile ── */
@media (max-width: 480px) {
  #wlConfirmModal {
    align-items: flex-end;
    padding: 0;
  }
  .wlcm-backdrop {
    max-width: 100%;
    border-radius: var(--r-lg, 20px) var(--r-lg, 20px) 0 0;
    animation: wlcmSlideBottom .28s var(--ease, cubic-bezier(.16,1,.3,1)) both;
  }
  @keyframes wlcmSlideBottom {
    from { transform: translateY(100%); opacity: .6; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  .wlcm-header { padding: 1.5rem 1.25rem 1.25rem; }
  .wlcm-body  { padding: 1rem 1.25rem 1.125rem; }
  .wlcm-footer { padding: 0 1.25rem 1.5rem; }
  .wlcm-row { padding: .5625rem .75rem; }
  .wlcm-btn { padding: .75rem 1rem; font-size: .9375rem; }
}

/* ── KRW Disabled Notice ── */
.wl-krw-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  padding: 2rem 1rem;
  text-align: center;
  color: #9ca3af;
}
.wl-krw-disabled svg { color: #d1d5db; }
.wl-krw-disabled p {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  color: #6b7280;
}
