/* Halaman aplikasi MECHAFOLIO (Hangar, Arena, Yard, Ledger, Docs) — tema cockpit.
   Komponen HUD (.top, .hud, .dock, .menu, .btn, .ca-chip) berasal dari landing.css. */
body.app { background: #070b14; color: var(--hud-text); min-height: 100vh; }
body.app.plate::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 9, 18, .78), rgba(5, 9, 18, .94) 60%), url('../assets/art/hangar-1440.webp') center / cover no-repeat;
  filter: saturate(.9);
}
.app main { position: relative; z-index: 5; }
.app .veil { background: linear-gradient(90deg, rgba(4, 9, 18, .78) 0%, rgba(4, 9, 18, .35) 34%, rgba(4, 9, 18, 0) 55%, rgba(4, 9, 18, .35) 80%, rgba(4, 9, 18, .7) 100%); }

/* tautan halaman di HUD atas */
.pages { display: flex; height: 100%; margin-left: 6px; }
.pages a { display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--hud-dim); text-decoration: none; font: 600 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.pages a:hover { color: var(--hud-text); }
.pages a[aria-current="page"] { color: var(--hud-text); border-bottom-color: var(--accent); }
.top .brand-mark { color: #fff; }
.wallet-btn { min-width: 112px; font-family: var(--f-mono); letter-spacing: .02em; text-transform: none; }
.wallet-btn[data-state="off"] { font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; }

/* pemilih dompet */
.wallet-pick { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(4, 8, 16, .7); backdrop-filter: blur(6px); }
.wallet-pick[hidden] { display: none; }
.wp-in { width: min(400px, 92vw); padding: 18px; }
.wp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wp-head strong { font: 700 18px/1 var(--f-display); }
.wp-x { border: 0; background: none; color: var(--hud-dim); font-size: 26px; cursor: pointer; line-height: 1; }
.wp-list { display: grid; gap: 8px; }
.wp-item { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border: 1px solid var(--hud-line); background: var(--hud-bg-2); color: var(--hud-text); cursor: pointer; font: 600 15px/1 var(--f-body); text-align: left; }
.wp-item:hover { border-color: var(--accent); }
.wp-item img, .wp-item i { width: 28px; height: 28px; border-radius: 6px; background: var(--hud-line-2); }
.wp-empty { margin: 0; color: var(--hud-dim); font-size: 14px; }

/* panel umum di halaman aplikasi */
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hud-line-2); }
.panel-h h2, .panel-h h3 { margin: 0; font: 700 14px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.panel-b { padding: 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; align-items: baseline; }
.kv .v { font-size: 15px; text-align: right; }
.kv .v.mono { font-size: 14px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font: 600 10.5px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--hud-line); color: var(--hud-dim); }
.tag-pill.ok { color: #34d27b; border-color: rgba(52, 210, 123, .4); }
.tag-pill.warn { color: #f2c230; border-color: rgba(242, 194, 48, .45); }
.tag-pill.live { color: var(--accent); border-color: rgba(79, 227, 255, .45); }
.preview-banner { position: fixed; left: 50%; top: 70px; z-index: 24; transform: translateX(-50%); padding: 7px 12px; background: #f2c230; color: #0b1220; font: 700 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.input { height: 40px; padding: 0 12px; border: 1px solid var(--hud-line); background: rgba(4, 9, 18, .6); color: var(--hud-text); font: 500 13px/1 var(--f-mono); outline: none; }
.input:focus { border-color: var(--accent); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; text-align: left; background: var(--hud-bg-2); color: var(--hud-dim); font: 600 10px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--hud-line); }
table.grid td { padding: 9px 10px; border-bottom: 1px solid var(--hud-line-2); }
table.grid td.r, table.grid th.r { text-align: right; }
table.grid tr.me td { background: rgba(79, 227, 255, .08); }
table.grid tr[data-click] { cursor: pointer; }
table.grid tr[data-click]:hover td { background: var(--hud-line-2); }
.mono { font-family: var(--f-mono); }
.dim { color: var(--hud-dim); }
a.ext { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
.empty { padding: 26px 14px; text-align: center; color: var(--hud-dim); font-size: 14px; }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--co); vertical-align: 1px; }

.toast { position: fixed; left: 50%; bottom: 84px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; max-width: min(560px, 92vw); padding: 12px 16px; background: #0b1220; color: #fff; border: 1px solid var(--hud-line); font-size: 14px; transition: .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="ok"] { border-color: #34d27b; }
.toast[data-kind="err"] { border-color: #ff6b5a; }

/* bilah tingkat (alokasi / loadout) */
.bar { position: relative; height: 6px; background: var(--hud-line-2); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--co, var(--accent)); }

@media (max-width: 1100px) { .pages a { padding: 0 8px; } }
@media (max-width: 960px) { .pages { display: none; } }
@media (max-width: 560px) { .hide-sm { display: none; } .wallet-btn { min-width: 0; } }
@media (max-width: 420px) {
  .top { gap: 10px; }
  .top .actions { gap: 6px; }
  .top .icon-btn { display: none; }
  .top .brand-word { font-size: 14px; letter-spacing: .1em; }
  .wallet-btn { padding: 0 12px; }
  .menu-btn { padding: 0 10px; }
  .menu-btn span { display: none; }
}
