/* JSOL Club, the member app (docs/phases/3E.md): the member design (docs/design/member-dashboard.png) on the shared stylesheet
   (club/web/shared/club.css): its dashboard grid, the membership card, the current trade, the wallet card, the notices, the way in.
   Design only: every figure on screen comes from the API. */

.shell.member .side { gap: 4px; }
.shell.member .nav a { font-size: 15.5px; padding: 11px 13px; }
.built-on { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--radius);
  padding: 12px 14px; color: #d6e2da; font-size: 13.5px; }
.built-on .icon { color: var(--violet); }

.top .chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.who .name { display: flex; flex-direction: column; line-height: 1.2; }
.who .name small { color: var(--muted); font-size: 12px; }
.who .avatar { width: 40px; height: 40px; }

.welcome h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.welcome p { margin: 4px 0 0; color: var(--muted); }

/* the dashboard */
.mkpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
.mkpis .kpi .value { font-size: 25px; }
.member-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; justify-content: center; }
.member-card .line { display: flex; align-items: center; gap: 12px; }
.member-card .line .icon { color: var(--green); }
.member-card .line span.what { flex: 1; color: #d6e2da; font-weight: 600; }
.member-card .line + .line { border-top: 1px solid var(--line); padding-top: 12px; }
.mgrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; }
.mcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.status-card .reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.status-card .reasons li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg);
  border: 1px solid rgba(246, 183, 60, 0.3); }
.status-card .reasons li .icon { color: var(--amber); margin-top: 1px; }
.status-card .reasons li b { display: block; }
.status-card .reasons li small { color: #e9d3a6; }
.status-card .ok { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--green-bg);
  border: 1px solid rgba(47, 227, 107, 0.3); }
.status-card .ok .icon { color: var(--green); }
.status-card .last { margin-top: 10px; }

.current { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.current .coin { display: flex; align-items: center; gap: 14px; padding-right: 22px; border-right: 1px solid var(--line-2); }
.current .coin b { font-size: 18px; }
.coin-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px;
  color: #04130a; background: linear-gradient(135deg, #3cf07c, #1fa64d); font-family: var(--mono); letter-spacing: -0.02em; }
.coin-badge.small { width: 32px; height: 32px; border-radius: 9px; font-size: 11.5px; }
.coin-badge.tj { background: linear-gradient(135deg, #c3a3ff, #7d55e0); }
.field-v { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-v > span:first-child { color: var(--muted); font-size: 12.5px; }
.field-v > b, .field-v > span:last-child { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell small { display: block; color: var(--muted); font-size: 12px; }

.wallet-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.wallet-box .sol-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0b0f0d; border: 1px solid var(--line-2);
  color: var(--violet); flex: none; }
.wallet-box .big { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.wallet-actions .btn { padding: 11px; font-size: 14.5px; }
.btn.outline { background: transparent; border-color: #c9d4cd66; }

.notices li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notices li:last-child { border-bottom: 0; }
.notices .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--green-bg); color: var(--green); }
.notices .ic.amber { background: var(--amber-bg); color: var(--amber); }
.notices .ic.red { background: var(--red-bg); color: var(--red); }
.notices .txt { flex: 1; min-width: 0; }
.notices .txt b { display: block; }
.notices .txt small { color: var(--muted); }
.notices time { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.notices { list-style: none; margin: 0; padding: 0; }
.view-all { display: flex; justify-content: center; margin-top: 10px; }
.view-all .btn { width: 100%; border-color: var(--green-line); color: var(--green); background: transparent; }

.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 10px; }
.steps5 i { height: 10px; border-radius: 999px; background: #1b2620; display: block; }
.steps5 i.on { background: linear-gradient(90deg, #1fc456, #3cf07c); }
.steps5 i.now { box-shadow: 0 0 10px rgba(47, 227, 107, 0.7); }

.chain-test { color: var(--amber); }
.address-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #0a110d; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.address-line span { flex: 1; min-width: 0; }
.deposit { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
input.full { width: 100%; }

/* the way in */
.gate .card.wide { width: min(620px, 100%); }
.steps-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.steps-bar span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.steps-bar span.on { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }
.steps-bar span.done { color: #cfdcd4; }
.line-box { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a110d; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; }
.picture { display: flex; align-items: center; gap: 16px; }
.picture .avatar { width: 72px; height: 72px; }
.tabs.gate-tabs { margin-bottom: 4px; }

@media (max-width: 1400px) {
  .mkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .mgrid { grid-template-columns: 1fr; }
  .mkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mkpis { grid-template-columns: 1fr; }
  .current .coin { border-right: 0; padding-right: 0; }
  .deposit { grid-template-columns: 1fr; }
  .built-on { display: none; }
}
