/* ============================================================
   Stock Cards — App dashboard (Home / Deposit / Portfolio / Activity)
   Reuses tokens from style.css. Monochrome b/w.
   ============================================================ */

.app-body { background: var(--bg); }
.app-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #0a0a0a; color: rgba(255,255,255,.75);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em;
  text-align: center; padding: 9px 16px;
}
.app-nav { top: 36px; }
.app-nav.scrolled { background: rgba(255,255,255,.82); }

/* segmented tabs */
.app-tabs { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--brd-soft); border-radius: 100px; padding: 4px; }
.app-tab { background: none; border: none; font-family: var(--sans); font-size: 14.5px; color: var(--txt-dim);
  padding: 9px 20px; border-radius: 100px; cursor: pointer; transition: color .3s, background .3s; }
.app-tab:hover { color: var(--txt); }
.app-tab.active { background: #0a0a0a; color: #fff; }

.app-main { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 100px; min-height: 100vh; position: relative; z-index: 3; }
.app-view { display: none; }
.app-view.active { display: block; animation: appfade .5s var(--ease-out); }
@keyframes appfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.app-h { font-size: clamp(30px,4vw,44px); font-weight: 300; letter-spacing: -.03em; margin: 0 0 28px; }

/* generic panel */
.app-panel { border: 1px solid var(--brd-soft); border-radius: var(--radius); background: var(--card-2); padding: 24px 26px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-mute); margin-bottom: 8px; }
.panel-more { color: var(--txt-mute); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 13px; }
.panel-more:hover { color: var(--txt); }

/* HOME */
.home-grid { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; margin-bottom: 16px; }
.app-card {
  position: relative; aspect-ratio: 1.586/1; border-radius: 22px; overflow: hidden; padding: 26px;
  display: flex; flex-direction: column; color: #f2f2f2;
  background: radial-gradient(120% 120% at 12% 0%, rgba(255,255,255,.08), transparent 55%), linear-gradient(150deg,#1c1c1c,#0a0a0a 60%,#151515);
  border: 1px solid rgba(0,0,0,.4); box-shadow: 0 40px 90px -46px rgba(0,0,0,.55);
}
.app-card.frozen { filter: grayscale(1) brightness(.8); }
.ac-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.06) 50%, transparent 58%); pointer-events: none; }
.ac-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ac-logo { display: inline-flex; align-items: center; font-size: clamp(16px,1.8vw,21px); letter-spacing: -.03em; }
.ac-logo .cf-mark { height: 1.3em; margin-right: 8px; filter: invert(1); mix-blend-mode: screen; }
.ac-logo b { font-weight: 400; }
.ac-virtual { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5); }
.ac-chiprow { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.app-card .cf-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg,#e2e2e2,#9a9a9a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); position: relative; }
.app-card .cf-chip::before, .app-card .cf-chip::after { content: ""; position: absolute; background: rgba(0,0,0,.4); }
.app-card .cf-chip::before { left: 50%; top: 0; width: 1px; height: 100%; }
.app-card .cf-chip::after { top: 50%; left: 0; height: 1px; width: 100%; }
.app-card .cf-nfc { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.ac-num { font-family: var(--mono); font-size: clamp(16px,1.9vw,20px); letter-spacing: .04em; margin: 16px 0; }
.ac-bottom { display: flex; align-items: flex-end; gap: 26px; }
.ac-bottom > div { display: flex; flex-direction: column; }
.ac-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ac-val { font-size: 13px; margin-top: 3px; }
.ac-visa { margin-left: auto; font-style: italic; font-weight: 800; font-size: clamp(18px,2.2vw,24px); }

.home-side { }
.hs-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-mute); }
.hs-big { font-family: var(--mono); font-size: clamp(40px,5.5vw,64px); font-weight: 400; letter-spacing: -.03em; margin: 6px 0; }
.hs-sub { color: var(--txt-dim); font-size: 15px; }
.hs-actions { display: flex; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.wallet-box { display: flex; align-items: center; gap: 12px; border: 1px solid var(--brd-soft); border-radius: 14px; padding: 14px 16px; }
.wb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--txt-mute); flex-shrink: 0; }
.wallet-box.on .wb-dot { background: #0a0a0a; }
.wb-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mute); }
.wb-val { font-size: 14px; }

/* link panel */
.link-panel { display: flex; align-items: center; gap: 18px; cursor: pointer; transition: border-color .3s, transform .4s var(--ease-out); }
.link-panel:hover { border-color: var(--brd-hard); transform: translateY(-2px); }
.link-panel .lp-ico { width: 44px; height: 44px; border-radius: 12px; background: #0a0a0a; color: #fff; display: grid; place-items: center; font-size: 18px; }
.link-panel > div { display: flex; flex-direction: column; }
.link-panel b { font-weight: 400; font-size: 17px; }
.link-panel span { color: var(--txt-dim); font-size: 14px; }
.link-panel .lp-arrow { margin-left: auto; color: var(--txt-mute); font-size: 20px; }

/* tx list */
.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--brd-soft); }
.tx:first-child { border-top: none; }
.tx-ico { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--brd); display: grid; place-items: center; color: var(--txt-dim); flex-shrink: 0; }
.tx-body { display: flex; flex-direction: column; }
.tx-body b { font-weight: 400; font-size: 15.5px; }
.tx-body span { font-size: 12.5px; color: var(--txt-mute); font-family: var(--mono); }
.tx-amt { margin-left: auto; font-family: var(--mono); font-size: 15px; }
.tx-amt.in { color: #0a0a0a; }
.tx-amt.out { color: var(--txt-dim); }

/* balances */
.bal-list { display: flex; flex-direction: column; }
.bal { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--brd-soft); }
.bal:first-child { border-top: none; }
.bal-ico { width: 34px; height: 34px; border-radius: 50%; background: #ececed; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: #0a0a0a; flex-shrink: 0; }
.bal-body { display: flex; flex-direction: column; }
.bal-body b { font-weight: 400; font-size: 15px; }
.bal-body span { font-size: 12.5px; color: var(--txt-mute); }
.bal-amt { margin-left: auto; font-family: var(--mono); font-size: 15px; text-align: right; }
.bal-amt span { display: block; font-size: 12px; color: var(--txt-mute); }

/* DEPOSIT */
.asset-list { display: flex; flex-direction: column; }
.asset { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--brd-soft); cursor: pointer; transition: opacity .3s; }
.asset:first-child { border-top: none; }
.asset.is-soon { cursor: default; opacity: .55; }
.as-ico { width: 40px; height: 40px; border-radius: 50%; background: #0a0a0a; color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; flex-shrink: 0; }
.as-body { display: flex; flex-direction: column; }
.as-body b { font-weight: 400; font-size: 16px; }
.as-body span { font-size: 13.5px; color: var(--txt-dim); }
.as-cta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #fff; background: #0a0a0a; padding: 8px 16px; border-radius: 100px; }
.as-yield { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--txt); border: 1px solid var(--brd); padding: 6px 12px; border-radius: 100px; }
.as-soon { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--txt-mute); border: 1px solid var(--brd-soft); padding: 6px 12px; border-radius: 100px; }
.app-note { color: var(--txt-mute); font-size: 13.5px; max-width: 720px; margin-top: 8px; }

/* PORTFOLIO */
.port-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 16px; }
.port-stat { display: flex; flex-direction: column; margin-bottom: 0; }
.port-stat.is-black { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.ps-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-mute); }
.port-stat.is-black .ps-lbl { color: rgba(255,255,255,.5); }
.port-stat b { font-family: var(--mono); font-size: clamp(26px,3.2vw,40px); font-weight: 400; letter-spacing: -.02em; margin: 12px 0 6px; }
.ps-sub { font-size: 13px; color: var(--txt-mute); }
.port-stat.is-black .ps-sub { color: rgba(255,255,255,.5); }

@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; gap: 22px; }
  .app-card { max-width: 400px; }
  .port-grid { grid-template-columns: 1fr; }
  .app-tabs { gap: 0; }
  .app-tab { padding: 8px 13px; font-size: 13.5px; }
}
@media (max-width: 620px) {
  .app-nav .nav-links { display: none; }
  .app-tabs { order: 3; width: 100%; margin-top: 8px; justify-content: space-between; }
  .app-nav .wrap { flex-wrap: wrap; }
}

/* real-transfer modal + empty states */
.send-modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(10,10,12,.55); backdrop-filter: blur(6px); padding: 20px; }
.send-modal.open { display: grid; animation: appfade .3s var(--ease-out); }
.send-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--brd); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); }
.send-head { display: flex; justify-content: space-between; align-items: center; }
.send-head b { font-size: 22px; font-weight: 400; }
.send-x { background: none; border: none; font-size: 17px; color: var(--txt-mute); cursor: pointer; }
.send-note { font-size: 13px; color: var(--txt-dim); margin: 8px 0 18px; line-height: 1.5; }
.send-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-mute); margin: 14px 0 7px; }
.send-input { width: 100%; background: rgba(0,0,0,.03); border: 1px solid var(--brd); border-radius: 12px; padding: 13px 15px; font-family: var(--mono); font-size: 14px; color: var(--txt); outline: none; box-sizing: border-box; }
.send-input:focus { border-color: rgba(0,0,0,.45); }
.send-row { display: flex; gap: 10px; }
.send-row .send-input:first-child { flex: 1; }
.send-select { width: auto; font-family: var(--sans); cursor: pointer; }
.send-go { width: 100%; justify-content: center; margin-top: 22px; }
.send-msg { font-family: var(--mono); font-size: 12.5px; margin-top: 14px; min-height: 16px; color: var(--txt); word-break: break-word; }
.send-msg a { text-decoration: underline; }
.app-empty { color: var(--txt-mute); font-size: 14.5px; padding: 22px 2px; }
.tx-body a { color: var(--txt-dim); text-decoration: none; font-family: var(--mono); }
.tx-body a:hover { color: var(--txt); }
