:root {
  --bg: #05060c;
  --text: #eef1fa;
  --muted: #939bb4;
  --muted-2: #646b85;

  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .055);
  --stroke: rgba(255, 255, 255, .08);
  --stroke-2: rgba(255, 255, 255, .14);

  --accent: #5b8cff;
  --accent-2: #8a7bff;
  --cyan: #46e3ff;
  --pos: #34e3a4;
  --neg: #ff6184;
  --warn: #ffc24b;

  --glow-blue: rgba(91, 140, 255, .45);
  --glow-mint: rgba(52, 227, 164, .4);
  --glow-rose: rgba(255, 97, 132, .4);

  --shadow: 0 24px 70px rgba(0, 0, 0, .6);
  --radius: 18px;
  --sidebar-w: 252px;
  --rail-w: 74px;
  --cell: 48px; /* fixed icon column so icons never jump between rail/expanded */

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
b { font-weight: 700; }
.ic { display: block; }

/* ============ living background ============ */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; pointer-events: none; }
.glow-a { width: 620px; height: 620px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(91,140,255,.55), transparent 70%); animation: drift1 24s ease-in-out infinite; }
.glow-b { width: 560px; height: 560px; bottom: -200px; right: -120px; background: radial-gradient(circle, rgba(138,123,255,.45), transparent 70%); animation: drift2 30s ease-in-out infinite; }
.glow-c { width: 460px; height: 460px; top: 40%; left: 55%; background: radial-gradient(circle, rgba(70,227,255,.22), transparent 70%); animation: drift3 36s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-100px, -60px) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate(-80px, 60px) scale(1.2); } }

/* ============ buttons / inputs ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--stroke); background: var(--glass-2); color: var(--text);
  padding: 9px 15px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(8px);
}
.btn:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); border-color: var(--stroke-2); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 16px; height: 16px; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px rgba(91,140,255,.4);
}
.btn.primary:hover { box-shadow: 0 14px 34px rgba(91,140,255,.55); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; justify-content: center; }
.btn.icon-only { padding: 9px; }
.btn.icon-only .ic { width: 18px; height: 18px; }

input {
  background: rgba(0,0,0,.28); border: 1px solid var(--stroke); color: var(--text);
  border-radius: 12px; padding: 11px 13px; font: inherit; outline: none; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s;
}
input::placeholder { color: var(--muted-2); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.18); background: rgba(0,0,0,.35); }

.icon-btn { display: inline-grid; place-items: center; background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 7px; border-radius: 9px; transition: all .14s; }
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--glass-2); color: var(--text); }
.icon-btn.del:hover { color: var(--neg); background: rgba(255,97,132,.12); }

/* ============ PIN gate ============ */
.pin-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.pin-card {
  position: relative; width: 350px; text-align: center;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 26px;
  padding: 38px 32px; box-shadow: var(--shadow); backdrop-filter: blur(24px);
  animation: pop .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.pin-logo { width: 64px; height: 64px; margin: 0 auto 16px; filter: drop-shadow(0 8px 22px rgba(91,140,255,.5)); }
.pin-logo svg, .pin-logo .ltc-logo { width: 100%; height: 100%; }
.pin-card h1 { margin: 0 0 4px; font-family: var(--display); font-size: 23px; font-weight: 600; }
.pin-dots { display: flex; gap: 11px; justify-content: center; margin: 22px 0 14px; }
.pin-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--stroke); transition: all .18s ease; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--glow-blue); transform: scale(1.12); }
.pin-input { position: absolute; opacity: 0; pointer-events: none; }
.pin-error { color: var(--neg); min-height: 18px; margin-bottom: 8px; font-size: 13px; }
.pin-gate.shake .pin-card { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }

/* ============ layout ============ */
.app { position: relative; z-index: 1; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column; padding: 14px 13px;
  background: rgba(10, 12, 20, .72); border-right: 1px solid var(--stroke);
  backdrop-filter: blur(22px); box-shadow: 14px 0 50px rgba(0,0,0,.4);
  transition: width .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden; white-space: nowrap;
}
.side-top { display: flex; align-items: center; min-height: 44px; margin-bottom: 16px; }
.side-toggle { flex: 0 0 var(--cell); height: 42px; display: grid; place-items: center; border: none; background: transparent; border-radius: 11px; color: var(--text); cursor: pointer; transition: background .15s; }
.side-toggle:hover { background: var(--glass-2); }
.side-toggle .ic { width: 22px; height: 22px; }
.brand-logo { display: inline-flex; flex: none; filter: drop-shadow(0 4px 12px rgba(91,140,255,.4)); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15px; margin-left: 9px; }
.nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.nav-item {
  display: flex; align-items: center; background: transparent; border: 1px solid transparent;
  color: var(--muted); padding: 6px 0; border-radius: 13px; font: inherit; font-weight: 600; cursor: pointer;
  text-align: left; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-item:hover { background: var(--glass-2); color: var(--text); }
.nav-item.active { background: linear-gradient(135deg, rgba(91,140,255,.2), rgba(138,123,255,.12)); color: var(--text); border-color: rgba(91,140,255,.28); }
.nav-ico { flex: 0 0 var(--cell); height: 30px; display: grid; place-items: center; }
.nav-ico .ic { width: 20px; height: 20px; }
.nav-label { font-weight: 600; }
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.price-ticker { display: flex; align-items: center; height: 46px; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 13px; overflow: hidden; }
.ltc-ico { flex: 0 0 var(--cell); display: grid; place-items: center; }
.price-label { color: var(--muted); font-size: 13px; }
.price-label b { color: var(--text); font-family: var(--display); }
.price-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); margin: 0 13px 0 auto; flex: none; box-shadow: 0 0 8px var(--glow-mint); transition: opacity .25s; }
.price-pulse.flash { animation: ppulse .9s ease; }
@keyframes ppulse { 0% { box-shadow: 0 0 0 0 rgba(52,227,164,.6); } 100% { box-shadow: 0 0 0 9px rgba(52,227,164,0); } }

/* collapsible bits: smooth clip + fade, never a hard snap */
.brand-logo, .brand-name, .nav-label, .price-label {
  overflow: hidden; opacity: 1; max-width: 200px;
  transition: max-width .35s cubic-bezier(.4,0,.2,1), opacity .22s ease, margin .35s ease;
}
body.rail .sidebar { width: var(--rail-w); }
body.rail .brand-logo, body.rail .brand-name, body.rail .nav-label, body.rail .price-label {
  max-width: 0; opacity: 0; margin-left: 0; pointer-events: none;
}
body.rail .price-pulse { opacity: 0; }

.main { margin-left: var(--sidebar-w); transition: margin-left .35s cubic-bezier(.4,0,.2,1); min-height: 100vh; }
body.rail .main { margin-left: var(--rail-w); }

/* ============ topbar ============ */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 16px 30px; background: linear-gradient(180deg, rgba(5,6,12,.85), rgba(5,6,12,.4)); backdrop-filter: blur(12px); }
.page-title { font-family: var(--display); font-weight: 600; font-size: 19px; }
.spacer { flex: 1; }
.pending-pill { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,194,75,.12); color: var(--warn); border: 1px solid rgba(255,194,75,.3); padding: 9px 14px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: all .15s; }
.pending-pill b { font-family: var(--display); }
.pending-pill:hover { background: rgba(255,194,75,.2); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,194,75,.2); }
.pending-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ============ profile ============ */
.profile-wrap { position: relative; }
.profile-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); padding: 8px 14px 8px 9px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: all .15s; }
.profile-btn:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.profile-ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #06121f; }
.profile-ava .ic { width: 16px; height: 16px; }
.profile-panel { position: absolute; right: 0; top: calc(100% + 12px); width: 340px; background: rgba(14,16,26,.9); border: 1px solid var(--stroke); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(22px); padding: 16px; z-index: 50; opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.profile-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.pp-head { font-weight: 700; margin-bottom: 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pp-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; }
.pp-item { display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--stroke); border-radius: 13px; padding: 10px 12px; }
.pp-item .pp-main { flex: 1; min-width: 0; }
.pp-item .pp-name { font-weight: 600; }
.pp-item .pp-addr { color: var(--muted-2); font-size: 12px; font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-add { display: flex; gap: 8px; margin-top: 13px; }
.pp-add input { flex: 1; }
.pp-err { color: var(--neg); font-size: 12px; min-height: 16px; margin-top: 7px; }

/* ============ content ============ */
.tab { padding: 26px 40px 70px; max-width: 1880px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* all three drift together (no stagger), very slow and very subtle */
.card-wrap { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.stat-card {
  position: relative; overflow: hidden; min-height: 156px; padding: 22px 24px;
  border-radius: var(--radius); border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  animation: fadein .6s ease backwards;
}
.card-wrap:nth-child(2) .stat-card { animation-delay: .08s; }
.card-wrap:nth-child(3) .stat-card { animation-delay: .16s; }
@keyframes fadein { from { opacity: 0; } }
.stat-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,255,255,.25), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .6; }
.card-glow { position: absolute; bottom: -70px; right: -40px; width: 220px; height: 160px; border-radius: 50%; filter: blur(50px); opacity: .55; transition: opacity .3s; pointer-events: none; }
.c-bal .card-glow { background: var(--glow-blue); }
.c-rec .card-glow { background: var(--glow-mint); }
.c-sent .card-glow { background: var(--glow-rose); }
.card-wrap:hover .stat-card { transform: translateY(-7px) scale(1.015); border-color: var(--stroke-2); box-shadow: 0 32px 70px rgba(0,0,0,.5); }
.card-wrap:hover .card-glow { opacity: .9; }
.stat-title { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.5px; margin-top: 20px; line-height: 1; white-space: nowrap; }
.stat-value.pos { color: var(--pos); text-shadow: 0 0 26px rgba(52,227,164,.35); }
.stat-value.neg { color: var(--neg); text-shadow: 0 0 26px rgba(255,97,132,.32); }
.c-bal .stat-value { text-shadow: 0 0 26px rgba(91,140,255,.3); }
.stat-value .unit { font-size: .42em; font-weight: 600; color: var(--muted); margin-left: 7px; letter-spacing: 0; }
.stat-sub { color: var(--muted); font-size: 13px; margin-top: 10px; font-family: var(--display); }

/* fade separator */
.fade-sep { height: 1px; margin: 36px 2px 8px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16) 22%, rgba(255,255,255,.16) 78%, transparent); }

.tx-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 16px; }
.tx-head h2 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 600; }
.tx-head-right { display: flex; align-items: center; gap: 12px; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--pos); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--glow-mint); animation: blink 1.6s infinite; }

.tx-groups { display: flex; flex-direction: column; gap: 18px; }
.tx-date-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px); }
.tx-date-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--stroke); }
.tx-date-head .d { font-family: var(--display); font-weight: 600; font-size: 14px; }
.tx-date-head .c { color: var(--muted-2); font-size: 12px; }
.tx-row { display: flex; align-items: center; gap: 15px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.045); cursor: pointer; transition: background .14s; }
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: rgba(255,255,255,.035); }
.tx-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.tx-ico .ic { width: 19px; height: 19px; }
.tx-ico.in { background: rgba(52,227,164,.13); color: var(--pos); box-shadow: inset 0 0 0 1px rgba(52,227,164,.25); }
.tx-ico.out { background: rgba(255,97,132,.13); color: var(--neg); box-shadow: inset 0 0 0 1px rgba(255,97,132,.25); }
.tx-main { flex: 1; min-width: 0; }
.tx-title { display: flex; align-items: center; gap: 10px; }
.tx-title .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-title .time { color: var(--muted-2); font-size: 12px; font-weight: 500; flex: none; }
.tx-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { text-align: right; flex: none; font-family: var(--display); }
.tx-amt .v { font-weight: 600; font-size: 15px; }
.tx-amt .v.in { color: var(--pos); }
.tx-amt .v.out { color: var(--neg); }
.tx-amt .f { color: var(--muted-2); font-size: 12px; margin-top: 2px; }
.tx-pend { font-size: 10.5px; color: var(--warn); border: 1px solid rgba(255,194,75,.3); background: rgba(255,194,75,.1); border-radius: 6px; padding: 1px 7px; margin-left: 4px; text-transform: uppercase; letter-spacing: .4px; }
.tx-row .icon-btn { flex: none; }
.empty { text-align: center; color: var(--muted); padding: 54px 0; }

/* ============ admin ============ */
.admin-hero { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px; text-align: center; backdrop-filter: blur(12px); position: relative; overflow: hidden; }
.admin-hero h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; }
.admin-gen { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.admin-gen input { max-width: 240px; }
.key-list { margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.key-card { background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 15px 17px; display: flex; align-items: center; gap: 14px; backdrop-filter: blur(10px); }
.key-card .k { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 1.5px; }
.key-card .meta { color: var(--muted-2); font-size: 12px; margin-top: 3px; }
.key-card .grow { flex: 1; min-width: 0; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.badge.live { background: rgba(52,227,164,.14); color: var(--pos); }
.badge.used { background: rgba(255,97,132,.14); color: var(--neg); }
.badge.off { background: rgba(255,255,255,.06); color: var(--muted); }

/* ============ modals ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(3,4,9,.6); backdrop-filter: blur(6px); display: grid; place-items: center; animation: fade .2s; padding: 16px; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 480px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: rgba(14,16,26,.92); border: 1px solid var(--stroke); border-radius: 20px; box-shadow: var(--shadow); backdrop-filter: blur(24px); animation: pop .28s cubic-bezier(.2,.8,.2,1); }
.modal.small { width: 400px; }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--stroke); }
.modal-head h3 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 2px; }
.x { display: grid; place-items: center; background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 9px; }
.x:hover { background: var(--glass-2); color: var(--text); }
.x .ic { width: 18px; height: 18px; }
.modal-body { padding: 20px 22px; overflow: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* tx detail (clean wallet receipt) */
.txd-hero { text-align: center; padding: 2px 0 14px; }
.txd-coin { width: 52px; height: 52px; margin: 0 auto 12px; filter: drop-shadow(0 8px 22px rgba(91,140,255,.5)); }
.txd-coin svg, .txd-coin .ltc-logo { width: 100%; height: 100%; }
.txd-amount { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.txd-amount.in { color: var(--pos); } .txd-amount.out { color: var(--neg); }
.txd-usd { color: var(--muted); font-size: 14px; margin-top: 6px; font-family: var(--display); }
.txd-rows { display: flex; flex-direction: column; }
.txd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px; border-top: 1px solid var(--stroke); font-size: 13.5px; }
.txd-row .k { color: var(--muted); font-weight: 500; flex: none; }
.txd-row .v { text-align: right; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.txd-row .v.mono { font-family: ui-monospace, monospace; font-weight: 500; }
.txd-row .v a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, monospace; font-weight: 500; }
.txd-row .v a:hover { color: var(--accent); }
.txd-row .v .ic { width: 14px; height: 14px; color: var(--muted-2); }
.txd-copy { background: transparent; border: none; color: var(--muted-2); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-grid; place-items: center; }
.txd-copy:hover { color: var(--text); }
.txd-explorer { width: 100%; justify-content: center; margin-top: 20px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status-chip.ok { color: var(--pos); } .status-chip.pend { color: var(--warn); }
.status-chip .ic { width: 14px; height: 14px; }

/* pending list */
.pend-item { background: var(--glass); border: 1px solid var(--stroke); border-radius: 13px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; transition: background .14s; }
.pend-item:hover { background: var(--glass-2); }
.pend-item .row1 { display: flex; justify-content: space-between; font-weight: 600; font-family: var(--display); }
.pend-item .det { color: var(--muted); font-size: 12px; margin-top: 10px; display: none; }
.pend-item.open .det { display: block; }
.pend-item .det div { margin-top: 4px; word-break: break-all; }

/* ============ toast ============ */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(20,23,36,.95); border: 1px solid var(--stroke-2); color: var(--text); padding: 12px 20px; border-radius: 13px; box-shadow: var(--shadow); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: all .26s ease; z-index: 200; font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .tab { padding: 22px 18px 60px; }
  .topbar { padding: 14px 18px; }
  body:not(.rail) .sidebar { box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
}
@media (prefers-reduced-motion: reduce) {
  .card-wrap, .glow { animation: none !important; }
}
