/* send-v1 — self-contained per prototype principle. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; background: none; border: 0; outline: 0; }

/* ============ APP SHELL ============ */
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 680px) 320px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* ============ SIDEBAR ============ */
.sidebar { position: sticky; top: 24px; height: calc(100vh - 48px); display: flex; flex-direction: column; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 800; margin-bottom: 36px; color: var(--text); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar nav a {
  padding: 14px 18px; color: var(--text-soft); border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.sidebar nav a.active, .sidebar nav a:hover { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.new-post { border-radius: 999px; background: var(--cta-bg); color: var(--cta-text); font-weight: 700; padding: 14px 22px; font-size: 16px; }

/* ============ MAIN ============ */
.main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
}
.topbar .back {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.topbar .back:hover { background: var(--surface-soft); color: var(--text); }
.topbar h1 { font-size: 28px; margin: 0; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.topbar-brand { display: none; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.topbar-brand img { width: 24px; height: 24px; object-fit: contain; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.wallet-chip:hover { background: var(--surface); border-color: var(--primary); transform: translateY(-1px); }
.wallet-chip .ic { display: inline-flex; align-items: center; line-height: 1; }
.wallet-chip .ic svg { display: block; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }

/* ============ HERO (available balance) ============ */
.send-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 20px 22px;
  color: white;
  position: relative;
  overflow: hidden;
}
.send-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.send-hero .lbl {
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.send-hero .bal {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.send-hero .bal small { font-size: 13px; font-weight: 700; opacity: 0.85; margin-left: 5px; }
.send-hero .usd { color: rgba(255,255,255,0.78); font-size: 12px; margin-top: 4px; }

/* ============ FORM CARD ============ */
.form-card { padding: 20px 22px; }

.field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 8px;
}

/* Recipient tabs + swiper */
.recip-tabs-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.recip-tabs-row .field-label { margin: 0; }
.recip-tabs {
  display: flex;
  gap: 4px;
}
.rtab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.15s;
}
.rtab.active { color: var(--primary-dark); }
.rtab:hover:not(.active) { color: var(--text-soft); }

.recip-swiper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.recip-swiper::-webkit-scrollbar { display: none; }
.recip-panel {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}

/* External address input */
.ext-addr-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 14px 14px;
  background: var(--surface-soft);
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.ext-addr-wrap:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.ext-addr {
  flex: 1; min-width: 0;
  font-size: 14px;
  font-weight: 600;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ext-addr::placeholder {
  color: var(--text-muted);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 500;
}
#addr-paste {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700; font-size: 12px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
#addr-paste:hover { background: var(--primary); color: white; }
.addr-hint {
  font-size: 12px;
  color: var(--text-soft);
  margin: 10px 4px 0;
  line-height: 1.55;
}
.addr-hint b {
  color: var(--primary-dark);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 800;
}

/* Recipient picker */
.recip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.recip:hover { background: var(--surface); border-color: var(--primary-soft); }
.recip .ph {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px dashed var(--line);
  font-size: 16px;
}
.recip .ph svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recip .who { flex: 1; min-width: 0; }
.recip .who b { display: block; font-weight: 700; font-size: 14px; }
.recip .who small { display: block; color: var(--text-soft); font-size: 12px; margin-top: 2px; }
.recip.selected .ph {
  background: linear-gradient(135deg, var(--primary), var(--ai));
  color: white;
  border: 0;
  font-weight: 800;
}

/* Recent contacts row */
.recent-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.recent-row::-webkit-scrollbar { display: none; }
.recent-row .person {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-soft);
  transition: opacity 0.15s;
}
.recent-row .person:hover { opacity: 0.78; }
.recent-row .person .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}
.recent-row .person.active .avatar { border-color: var(--primary); transform: scale(1.05); }
.recent-row .person.active { color: var(--primary-dark); font-weight: 700; }
.avatar.g1 { background: linear-gradient(135deg, var(--primary), var(--ai)); }
.avatar.g2 { background: linear-gradient(135deg, var(--ai), var(--info)); }
.avatar.g3 { background: linear-gradient(135deg, var(--success), var(--ai)); }
.avatar.g4 { background: linear-gradient(135deg, var(--accent), var(--accent-warm)); }
.avatar.g5 { background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* Amount input */
.amount-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.amount-input-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
}
.amount-input {
  flex: 1;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  width: 100%;
  min-width: 0;
}
.amount-input::placeholder { color: var(--text-disabled); }
.amount-input.error { color: var(--error); }
.amount-unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
.amount-unit:hover { background: var(--surface-soft); color: var(--primary-dark); }
.amount-unit svg { opacity: 0.55; transition: opacity 0.15s; }
.amount-unit:hover svg { opacity: 1; }
.amount-usd {
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Quick amount chips */
.quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.quick-amounts button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s, border-color 0.15s;
}
.quick-amounts button:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.quick-amounts button.max { color: var(--primary-dark); font-weight: 800; }

/* Escrow option */
.escrow-block {
  margin-top: 30px;
}

/* ============ NOTE BLOCK ============ */
.note-block { margin-top: 24px; }
.note-block .field-label .optional {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
}
.note-block textarea {
  width: 100%;
  display: block;
  resize: none;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.note-block textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.note-block textarea::placeholder { color: var(--text-muted); }
.note-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ MODAL NOTE ============ */
.modal-note {
  background: var(--surface-soft);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  line-height: 1.5;
  word-break: break-word;
}
.modal-note[hidden] { display: none !important; }
.modal-note::before { content: "「"; opacity: 0.5; }
.modal-note::after { content: "」"; opacity: 0.5; }
.escrow-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  border-radius: 10px;
  transition: background 0.15s;
  user-select: none;
}
.escrow-check:hover { background: var(--surface-soft); }
.escrow-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.escrow-check .box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.escrow-check .box::after {
  content: "";
  width: 6px; height: 11px;
  border: 2.5px solid white;
  border-top: 0; border-left: 0;
  transform: rotate(45deg) scale(0);
  margin-top: -3px;
  transition: transform 0.15s ease-out;
}
.escrow-check input:checked + .box {
  background: var(--primary);
  border-color: var(--primary);
}
.escrow-check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.escrow-check .lbl { font-weight: 700; font-size: 14px; }
.escrow-check .hint {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 12px;
  text-align: right;
}

.escrow-detail {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--primary-soft);
  border-radius: 12px;
  animation: escrow-in 0.18s ease-out;
}
@keyframes escrow-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.escrow-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 10px;
}
/* Escrow flow — 3-step explanation */
.escrow-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.escrow-flow li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 8px;
}
.escrow-flow .step {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.escrow-flow .step.ok   { background: var(--success); }
.escrow-flow .step.warn { background: var(--warning); }
.escrow-flow .step.auto { background: var(--info); }
.escrow-flow b {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}
.escrow-flow small {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}
.escrow-flow small b { display: inline; font-size: 12px; margin: 0; color: var(--text); }
.escrow-flow .penalty { color: var(--error); font-weight: 800; }
.escrow-fee {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}
.escrow-fee b {
  color: var(--primary-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Escrow badge (used in confirm modal) */
.escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-left: 6px;
  vertical-align: middle;
}

/* Summary card (shown when amount > 0) */
.summary {
  padding: 16px 22px;
  margin-top: 0;
  display: none;
}
.summary.show { display: block; }
.summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.summary .row:last-of-type { border-bottom: 0; }
.summary .row .k { color: var(--text-soft); }
.summary .row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary .row.total .v { font-weight: 800; color: var(--text); }
.summary .row.error .v { color: var(--error); }

/* Send button */
.send-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-top: 4px;
  transition: opacity 0.15s, transform 0.15s;
}
.send-btn:hover { opacity: 0.93; }
.send-btn:active { transform: scale(0.99); }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; background: var(--text-muted); }

/* ============ RIGHT PANEL ============ */
.right-panel { display: flex; flex-direction: column; gap: 18px; }
.right-panel .card { padding: 18px; }
.right-panel h2 { font-size: 16px; margin: 0 0 12px; font-weight: 700; }

.tips-card { background: linear-gradient(180deg, var(--surface), var(--primary-soft)); }
.tips-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tips-card li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.tips-card li::before { content: "·"; color: var(--primary); font-weight: 800; }

.fee-card .rate {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.fee-card .rate small {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-left: 4px;
}
.fee-card p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============ CONFIRM MODAL ============ */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  width: 100%;
  max-width: 360px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-float);
  text-align: center;
  animation: modal-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.modal-subtitle { color: var(--text-soft); font-size: 13px; margin: 0 0 18px; }
.modal-recipient {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-soft);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.modal-recipient .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.modal-recipient .avatar.placeholder {
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 18px;
}
.modal-recipient b { font-weight: 800; font-size: 14px; }
.modal-recipient b.mono {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}
.modal-amount {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 4px;
}
.modal-amount small { font-size: 14px; opacity: 0.7; font-weight: 700; margin-left: 4px; }
.modal-usd { color: var(--text-soft); font-size: 12px; margin: 0 0 22px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s;
}
.modal-actions button:hover { background: var(--surface-soft); }
.modal-actions .confirm {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
}

/* Success state inside modal */
.modal-success {
  text-align: center;
  padding: 8px 0;
}
.modal-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 32px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  animation: success-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.modal-success h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.modal-success p { margin: 0 0 18px; color: var(--text-soft); font-size: 13px; }
.modal-success .fv-line {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
}
.modal-success .done {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 14px;
}

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.32);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (hover: hover) {
  .to-top:hover { background: var(--primary-dark); }
}
.to-top:active { transform: translateY(0) scale(0.94); }

/* ============ MOBILE NAV ============ */
.mobile-nav { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
    padding-bottom: 96px;
    gap: 12px;
  }
  .sidebar, .right-panel { display: none; }

  .topbar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 4px; margin: 0 0 12px;
  }
  .topbar h1 { display: none; }
  .topbar-brand { display: inline-flex; flex: 1; }

  .amount-input { font-size: 32px; }

  .mobile-nav {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 20;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  }
  .mobile-nav.nav-hidden {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }
  .mobile-nav a { text-align: center; font-size: 12px; color: var(--text-soft); padding: 8px 4px; }
  .mobile-nav a.active { color: var(--text); font-weight: 600; }
  .mobile-nav .compose-btn {
    width: 46px; height: 46px;
    margin: auto; padding: 0;
    border-radius: 50%;
    background: var(--cta-bg); color: var(--cta-text);
    display: grid; place-items: center; line-height: 1;
  }

  .to-top {
    bottom: 88px; right: 16px; width: 42px; height: 42px;
    transition: opacity 0.2s, transform 0.2s, background 0.15s,
                bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.nav-hidden .to-top { bottom: 28px; }
}

/* ============ Withdraw 暫停橫幅 ============ */
.wd-hold {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 12px;
}
.wd-hold[hidden] { display: none !important; }
.wd-hold-ic { color: var(--warning); flex-shrink: 0; margin-top: 1px; }
.wd-hold-txt b { display: block; font-size: 13.5px; }
.wd-hold-txt small { font-size: 12px; color: var(--text-soft); line-height: 1.5; }
