:root {
  --chathams: #123962;
  --cerulean-blue: #2754ba;
  --cerulean: #00aee6;
  --bali-hai: #799eb2;
  --powder-blue: #b1d4e5;
  --bg: #f4f9fc;
  --green: #16a34a;
  --red: #dc2626;
  --card-radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #dfeaf2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--chathams);
}

/* ---------------------------------------------------------------- login */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #123962, #2754ba, #00aee6);
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(18, 57, 98, 0.35);
}
.login-logo {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2754ba, #00aee6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.login-logo-img { background: #fff; border: 1px solid var(--powder-blue); }
.login-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.login-card h1 { margin: 0 0 4px; font-size: 24px; }
.login-sub { color: var(--bali-hai); margin: 0 0 24px; font-size: 14px; }
.login-card form { text-align: left; }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--chathams); }
.login-card input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--powder-blue);
  font-size: 15px; background: var(--bg); outline: none;
}
.login-card input:focus { border-color: var(--cerulean-blue); box-shadow: 0 0 0 3px rgba(39,84,186,0.15); }
.login-card select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--powder-blue);
  font-size: 15px; background: var(--bg); outline: none; color: inherit; font-family: inherit;
}
.login-card select:focus { border-color: var(--cerulean-blue); box-shadow: 0 0 0 3px rgba(39,84,186,0.15); }
.login-error { color: var(--red); font-size: 13px; margin-top: 10px; text-align: center; }
.login-hint { color: var(--bali-hai); font-size: 12px; margin-top: 18px; }
.login-hint a, .login-switch a { color: var(--cerulean-blue); font-weight: 700; text-decoration: none; }
.login-switch { color: var(--bali-hai); font-size: 13px; margin-top: 18px; text-align: center; }
.field-row { display: flex; gap: 12px; }
.field-row > div { flex: 1; min-width: 0; }
.signup-card { max-width: 420px; }

.btn-primary {
  width: 100%; margin-top: 20px; padding: 13px; border: none; border-radius: 14px;
  background: var(--cerulean-blue); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .1s ease, opacity .1s ease;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  width: 100%; margin-top: 10px; padding: 13px; border-radius: 14px;
  background: #fff; color: var(--cerulean-blue); font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--cerulean-blue); cursor: pointer;
}

/* ------------------------------------------------------------ phone frame */
.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(18,57,98,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 460px) and (max-width: 899px) {
  body { padding: 24px 0; }
  .phone-frame { min-height: 860px; border-radius: 34px; }
}

/* ---------------------------------------------------------- desktop mode */
/* >=900px: a real widescreen dashboard, not a cropped phone view. */
@media (min-width: 900px) {
  body { padding: 0; background: #eef4f9; }

  .phone-frame {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .app-header { padding: 20px 48px; }
  .header-row { max-width: 1180px; margin: 0 auto; }
  .logo-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .tabs { flex: none; justify-content: flex-start; gap: 40px; margin-left: 56px; }
  .tab-btn { font-size: 16px; }
  .avatar-btn { width: 38px; height: 38px; }

  .app-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 48px 70px;
  }

  .card { padding: 22px 24px; }
  .card-value { font-size: 38px; }

  .dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 26px;
    align-items: start;
  }
  .dashboard-grid .col-main,
  .dashboard-grid .col-side { min-width: 0; }
  .dashboard-grid .col-side > .section-header:first-child,
  .dashboard-grid .col-main > .section-header:first-child { margin-top: 0; }

  .trading-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
  }
  .trading-grid .card,
  .trading-grid .section-header:first-child { margin-top: 0; }
  /* Trading tab now has a sidebar too, so its grid gets less width —
     drop to 2 columns there instead of cramming 3 into col-main. */
  .dashboard-grid .col-main .trading-grid { grid-template-columns: repeat(2, 1fr); }

  .action-row { padding: 4px 12px; }
  .action-icon { width: 52px; height: 52px; }

  .modal-overlay { align-items: center; }
  .modal-sheet {
    border-radius: 22px;
    width: 92%;
    max-width: 460px;
    margin: 0;
    animation: dialog-in .18s ease;
  }
}

@keyframes dialog-in {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ------------------------------------------------------------ app header */
.app-header {
  background: linear-gradient(120deg, #123962, #2754ba, #00aee6);
  padding: 18px 18px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background .25s ease;
}
.app-header.perps {
  background: linear-gradient(120deg, #123962, #799eb2, #b1d4e5);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.18);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
  overflow: hidden;
}
.logo-mark-img img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 20px; flex: 1; justify-content: center; }
.tab-btn {
  background: none; border: none; color: rgba(255,255,255,0.6); font-size: 15px; font-weight: 600;
  padding: 6px 2px; cursor: pointer; position: relative;
}
.tab-btn.active { color: #fff; font-weight: 800; }
.tab-btn.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2.5px; background: #fff; border-radius: 2px;
}
.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.18);
  border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}

.avatar-menu-wrap { position: relative; flex-shrink: 0; }
.avatar-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(18,57,98,0.22);
  overflow: hidden; z-index: 30; padding: 6px;
}
.avatar-dropdown-item {
  display: block; width: 100%; text-align: left; padding: 11px 14px; font-size: 14px; font-weight: 700;
  color: var(--chathams); background: none; border: none; border-radius: 9px; cursor: pointer;
}
.avatar-dropdown-item:hover { background: var(--bg); }
.avatar-dropdown-item.danger { color: var(--red); }

/* ----------------------------------------------------------- content area */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 90px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 16px rgba(18,57,98,0.06);
  padding: 18px;
  margin-bottom: 16px;
}
.card-label { font-size: 13px; font-weight: 700; color: var(--chathams); margin-bottom: 4px; }
.card-value { font-size: 32px; font-weight: 800; }
.card-sub { font-size: 13px; color: var(--bali-hai); margin-top: 2px; }

/* ------------------------------------------------------------- portfolio */
.portfolio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; }
.portfolio-head-text { flex: 1; min-width: 0; }
.chevron-btn {
  background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-top: 2px;
}
.chevron-btn svg { transition: transform .25s ease; }
.chevron-btn.open svg { transform: rotate(180deg); }

.portfolio-dropdown {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .32s ease, opacity .25s ease, margin-top .32s ease;
}
.portfolio-dropdown.open { max-height: 640px; opacity: 1; margin-top: 18px; }
.portfolio-dropdown-inner { padding-top: 16px; border-top: 1px solid #eef4f8; }

.portfolio-chart-wrap { display: flex; justify-content: center; margin: 4px 0 20px; }
.portfolio-pie {
  width: 148px; height: 148px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(18,57,98,0.08), 0 4px 14px rgba(18,57,98,0.10);
}

.portfolio-list { display: flex; flex-direction: column; }
.portfolio-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef4f8; }
.portfolio-row:last-child { border-bottom: none; }
.portfolio-row-left { display: flex; align-items: center; gap: 10px; }
.portfolio-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.portfolio-name { font-weight: 700; font-size: 14px; }
.portfolio-sub { font-size: 12px; color: var(--bali-hai); }
.portfolio-row-right { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.portfolio-row-clickable { cursor: pointer; }
.portfolio-row-close {
  font-size: 11px; font-weight: 700; color: var(--cerulean-blue);
  background: rgba(39,84,186,0.1); padding: 3px 9px; border-radius: 999px;
}

.action-row { display: flex; justify-content: space-around; padding: 6px 4px; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; }
.action-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; color: var(--chathams);
}
.action-item span { font-size: 12px; font-weight: 600; color: var(--chathams); }


.section-header { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.section-title { font-size: 20px; font-weight: 800; }
.see-all { color: var(--cerulean-blue); font-weight: 700; font-size: 14px; text-decoration: none; background: none; border: none; cursor: pointer; }

.pill-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--powder-blue); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--chathams); }
.pill.active { background: var(--chathams); color: #fff; border-color: var(--chathams); }

.list-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #eef4f8; cursor: pointer;
}
.list-row:last-child { border-bottom: none; }
.list-left { display: flex; align-items: center; gap: 12px; }
.badge {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.badge-wrap {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--powder-blue); flex-shrink: 0; overflow: hidden;
}
.badge-img { width: 100%; height: 100%; object-fit: contain; padding: 5px; box-sizing: border-box; background: #fff; }
.list-name { font-weight: 700; font-size: 15px; }
.list-sub { font-size: 13px; color: var(--bali-hai); }
.list-right { text-align: right; }
.list-value { font-weight: 800; font-size: 15px; }
.list-change { font-size: 13px; font-weight: 700; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ------------------------------------------------------- top movers ticker */
.ticker-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.ticker-wrap::-webkit-scrollbar { display: none; }
.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  cursor: grab;
}
.ticker-track:active { cursor: grabbing; }
.ticker-item {
  scroll-snap-align: start;
  display: flex; flex-direction: column; flex-shrink: 0; min-width: 190px;
  background: #fff; border-radius: 18px; padding: 18px 18px;
  box-shadow: 0 4px 16px rgba(18,57,98,0.06); cursor: pointer;
}
.ticker-item-top { display: flex; align-items: center; gap: 12px; }
.ticker-info { min-width: 0; }
.ticker-symbol { font-weight: 800; font-size: 16px; white-space: nowrap; }
.ticker-price { font-size: 13px; color: var(--bali-hai); white-space: nowrap; margin-top: 2px; }
.ticker-change { font-size: 15px; font-weight: 700; white-space: nowrap; margin-left: 4px; }
.ticker-item-graph { margin-top: 12px; width: 100%; line-height: 0; }
.ticker-item-graph svg { display: block; width: 100%; }

.leverage-tag {
  background: var(--powder-blue); color: var(--chathams); font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px; margin-left: 6px;
}

/* --------------------------------------------------------------- toasts */
.toast-root { position: fixed; bottom: 24px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast {
  background: var(--chathams); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(18,57,98,0.35); max-width: 88%; text-align: center;
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------- modals */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18,57,98,0.45); display: none;
  align-items: flex-end; justify-content: center; z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: #fff; width: 100%; max-width: 420px; border-radius: 22px 22px 0 0;
  padding: 20px 20px 28px; max-height: 86vh; overflow-y: auto;
  animation: sheet-in .22s ease;
}
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 18px; font-weight: 800; }
.icon-btn { background: var(--bg); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--chathams); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--chathams); }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--powder-blue);
  font-size: 15px; background: var(--bg); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--cerulean-blue); box-shadow: 0 0 0 3px rgba(39,84,186,0.15); }
.field-hint { font-size: 12px; color: var(--bali-hai); margin-top: 4px; }

.asset-picker-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--powder-blue);
  background: var(--bg); cursor: pointer; font: inherit;
}
.asset-picker-trigger-left { display: flex; align-items: center; gap: 10px; }
.asset-picker-label { font-weight: 700; font-size: 15px; color: var(--chathams); }
.asset-picker-chevron { color: var(--bali-hai); transition: transform .2s ease; }
.asset-picker-chevron.open { transform: rotate(180deg); }
.asset-picker-list {
  margin-top: 8px; border: 1px solid var(--powder-blue); border-radius: 12px;
  max-height: 220px; overflow-y: auto; background: #fff;
}
.asset-picker-group-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: var(--bali-hai); padding: 10px 14px 4px;
}
.asset-picker-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; }
.asset-picker-row:hover, .asset-picker-row.active { background: var(--bg); }
.asset-picker-row-name { font-weight: 700; font-size: 14px; color: var(--chathams); }

/* ---------------------------------------------------------- AI trading */
.ai-toggle-card { padding: 16px 18px; }
.ai-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.switch {
  position: relative; width: 48px; height: 28px; border-radius: 999px; border: none;
  background: var(--powder-blue); cursor: pointer; flex-shrink: 0; padding: 0; transition: background .2s ease;
}
.switch.on { background: var(--green); }
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(18,57,98,0.25); transition: transform .2s ease;
}
.switch.on .switch-knob { transform: translateX(20px); }

.ai-signal-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0; margin: 0 10px;
}
.ai-signal-pill.buy { background: rgba(22,163,74,0.12); color: var(--green); }
.ai-signal-pill.sell { background: rgba(220,38,38,0.12); color: var(--red); }
.ai-signal-pill.hold { background: var(--bg); color: var(--bali-hai); }

.status-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
}
.status-pill.pending { background: var(--bg); color: var(--bali-hai); }
.status-pill.confirmed { background: rgba(22,163,74,0.12); color: var(--green); }
.status-pill.rejected { background: rgba(220,38,38,0.12); color: var(--red); }

/* ------------------------------------------------------------------ PNL */
.pnl-summary-row { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid #eef4f8; }
.pnl-summary-stat { flex-shrink: 0; }
.pnl-subhead { font-size: 13px; font-weight: 800; color: var(--chathams); margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .02em; }

.chart-card { padding: 16px; }
.tv-chart-frame { width: 100%; height: 51vh; min-height: 456px; border-radius: 12px; overflow: hidden; }
.tradingview-widget-container { width: 100%; height: 100%; }
.tradingview-widget-container__widget { width: 100%; height: 100%; }

.swap-flip-row { display: flex; align-items: center; justify-content: center; margin: -4px 0 10px; }
.flip-btn { background: var(--powder-blue); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--chathams); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--powder-blue); background: #fff;
  font-weight: 700; font-size: 13px; cursor: pointer; color: var(--chathams);
}
.chip.active { background: var(--cerulean-blue); color: #fff; border-color: var(--cerulean-blue); }

.side-row { display: flex; gap: 10px; margin: 4px 0 16px; }
.side-btn { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid var(--powder-blue); background: #fff; font-weight: 800; cursor: pointer; font-size: 14px; }
.side-btn.long.active { background: var(--green); border-color: var(--green); color: #fff; }
.side-btn.short.active { background: var(--red); border-color: var(--red); color: #fff; }

.summary-box { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.notice-box { background: rgba(217,119,6,0.1); color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.4; margin: 4px 0 16px; }

.support-row {
  display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; cursor: pointer;
  padding: 4px 0; font-family: inherit; text-align: left;
}
.support-row-icon {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--chathams); flex-shrink: 0;
}
.support-unread-dot {
  position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%;
  background: #dc2626; border: 2px solid #fff;
}
.support-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.support-row-title { font-weight: 700; font-size: 14px; color: var(--chathams); }
.support-row-sub { font-size: 12.5px; color: var(--cerulean-blue); word-break: break-all; }
.support-row-arrow { font-size: 20px; color: var(--powder-blue); flex-shrink: 0; }

.support-thread { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.support-bubble-row { display: flex; }
.support-bubble-row.from-user { justify-content: flex-end; }
.support-bubble-row.from-admin { justify-content: flex-start; }
.support-bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.support-bubble.user { background: var(--cerulean-blue); color: #fff; border-bottom-right-radius: 4px; }
.support-bubble.admin { background: var(--bg); color: var(--chathams); border-bottom-left-radius: 4px; }
.support-bubble-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.support-bubble-attachments img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.support-bubble-time { font-size: 10.5px; opacity: .7; margin-top: 4px; }
.support-bubble-sender { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; opacity: .75; margin-bottom: 3px; }
.muted-note { color: var(--cerulean-blue); font-size: 13px; text-align: center; padding: 10px 0; }

.attach-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: #fff; color: var(--cerulean-blue); font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--cerulean-blue); cursor: pointer; font-family: inherit;
}
.attach-btn:disabled { opacity: .5; cursor: not-allowed; }
.attach-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attach-thumb { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 1px solid var(--powder-blue); }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-thumb-remove {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(18,57,98,0.75); color: #fff; border: none; font-size: 10px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.summary-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--chathams); }
.summary-row strong { font-weight: 800; }

.deposit-qr { text-align: center; margin-bottom: 14px; }
.deposit-qr img { width: 190px; height: 190px; border-radius: 12px; border: 1px solid var(--powder-blue); }
.address-box { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 12px; padding: 12px 14px; gap: 10px; }
.address-text { font-size: 13px; word-break: break-all; }
.copy-btn { background: none; border: none; cursor: pointer; color: var(--cerulean-blue); flex-shrink: 0; }
.unavailable-box { text-align: center; color: var(--bali-hai); padding: 30px 10px; font-size: 14px; }

.empty-state { text-align: center; color: var(--bali-hai); padding: 30px 10px; font-size: 14px; }

.position-card { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.position-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.position-close-btn { background: #fff; border: 1px solid var(--powder-blue); border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--chathams); }
