:root {
  --bg: #0b0d12;
  --bg-2: #0e1117;
  --surface: #12151c;
  --surface-2: #171b24;
  --hover: #1c212b;
  --line: rgba(148, 163, 184, 0.08);
  --line-2: rgba(148, 163, 184, 0.15);
  --text: #e8ecf3;
  --muted: #7c8595;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-soft: rgba(59, 130, 246, 0.12);
  --red: #f25f5c;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.55 Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
small { font-size: 12px; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 500; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-feature-settings: 'tnum'; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.sep { height: 1px; background: var(--line); margin: 4px 0; }
.ico { flex: none; }
::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #1f2430; border-radius: 8px; }
:focus-visible { outline: 2px solid rgba(96,165,250,.5); outline-offset: 2px; }
input:focus-visible { outline: none; }

/* ---------- Animations ---------- */
.rise { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }
.slide { animation: slide .5s var(--ease) both; animation-delay: var(--d, 0ms); }
.fade-in { animation: fade .4s ease both; }
.pop { animation: pop .18s var(--ease) both; transform-origin: top right; }
.spin { animation: spin .8s linear infinite; }
.rot { transform: rotate(180deg); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes slide { from { opacity: 0; transform: translateX(-10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn-lg { height: 46px; font-size: 14.5px; width: 100%; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #4a8cf7; transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary .arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-secondary { border: 1px solid var(--line-2); background: var(--surface-2); }
.btn-secondary:hover { background: var(--hover); }
.btn-link { color: var(--muted); height: 30px; font-weight: 400; }
.btn-link:hover { color: var(--text); }
.btn:disabled:not(.btn-primary) { opacity: .5; cursor: not-allowed; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 9px; border: 1px solid var(--line); color: var(--muted); transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--hover); }

/* ---------- Brand ---------- */
.logo { display: block; width: auto; max-width: 100%; user-select: none; }
.avatar {
  flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); color: var(--blue-2); font-weight: 600;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(59,130,246,.45);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin { flex: none; display: block; border-radius: 50%; }

/* ---------- Animated background ---------- */
.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-spot {
  position: absolute; left: 50%; top: -35vh; width: 140vw; height: 90vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59,130,246,.22), rgba(59,130,246,.06) 40%, transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; transform: translateX(-50%) scale(1.06); } }
.bg-aurora {
  position: absolute; left: 50%; top: -60vmax; width: 120vmax; height: 120vmax; margin-left: -60vmax;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(37,99,235,.18) 28%, transparent 36%, transparent 55%, rgba(14,165,233,.12) 63%, transparent 72%);
  filter: blur(60px); border-radius: 50%;
  animation: turn 60s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 55% 45% at 50% 0%, #000 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 0%, #000 10%, transparent 100%);
  animation: gridmove 30s linear infinite;
}
@keyframes gridmove { to { background-position: 0 64px; } }
.bg-horizon {
  position: absolute; left: 50%; bottom: -120vmax; width: 160vmax; height: 160vmax; margin-left: -80vmax;
  border-radius: 50%; background: var(--bg);
  box-shadow: 0 -1px 0 rgba(96,165,250,.55), 0 -30px 80px -10px rgba(59,130,246,.35), inset 0 30px 60px -30px rgba(59,130,246,.25);
  animation: rise-h 1.6s var(--ease) both;
}
@keyframes rise-h { from { transform: translateY(12vh); opacity: 0; } }
.bg-stars {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 78% 14%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 34% 64%, #fff, transparent), radial-gradient(1px 1px at 88% 52%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 56% 32%, #fff, transparent), radial-gradient(1px 1px at 22% 82%, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 66% 76%, #fff, transparent), radial-gradient(1px 1px at 6% 48%, #fff, transparent),
    radial-gradient(1px 1px at 94% 86%, #cfe0ff, transparent), radial-gradient(1.5px 1.5px at 44% 8%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .2; } }
.bg-grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift3 { to { transform: translate(-240px, -80px) scale(.85); } }

/* ---------- Login ---------- */
.login { position: relative; min-height: 100%; display: grid; place-items: center; padding: 32px 16px; overflow: hidden; background: var(--bg); }
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px; padding: 36px 32px 22px;
  background: rgba(18, 21, 28, .55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 22px;
}
.login-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.login-logo .logo { animation: float 6s ease-in-out infinite; filter: drop-shadow(0 8px 30px rgba(59,130,246,.35)); }
@keyframes float { 50% { transform: translateY(-5px); } }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-form h1 { font-size: 22px; }
.login-form p { margin-top: 4px; font-size: 13px; }
.label { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 500; color: #a9b1bf; }
.field {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  border-radius: 12px; background: rgba(11,13,18,.7); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: rgba(148,163,184,.35); }
.field:focus-within .field-ico { color: var(--text); }
.field.has-error { border-color: rgba(242,95,92,.6); box-shadow: 0 0 0 4px rgba(242,95,92,.1); }
.field-ico { color: var(--muted); flex: none; transition: color .2s; }
.field input { flex: 1; height: 100%; min-width: 0; font-size: 14px; color: var(--text); }
.field input::placeholder { color: #474e5c; }
.field-btn { display: grid; place-items: center; color: var(--muted); padding: 4px; margin-right: -4px; }
.field-btn:hover { color: var(--text); }
.login-switch { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.login-switch button { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); transition: text-decoration-color .2s; }
.login-switch button:hover { text-decoration-color: var(--text); }
.error { color: var(--red); font-size: 12.5px; margin-top: -8px; animation: fade .2s; }

/* ---------- Shell ---------- */
.app { position: relative; display: flex; min-height: 100%; }
.app-glow {
  position: fixed; top: -300px; left: 30%; width: 800px; height: 500px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(59,130,246,.13), transparent);
  animation: drift3 30s ease-in-out infinite alternate;
}
.sidebar {
  position: sticky; top: 0; z-index: 2; height: 100vh; width: 240px; flex: none;
  display: flex; flex-direction: column; padding: 18px 14px;
  background: rgba(14,17,23,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-right: 1px solid var(--line);
}
.side-top { position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 8px 22px; }
.side-top .icon-btn { position: absolute; right: 0; top: 4px; }
nav { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #4f5766; padding: 0 12px 8px; }
.side-bottom { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; padding: 0 12px;
  border-radius: 10px; color: #8b93a3; font-size: 13.5px; transition: color .2s, background .2s;
}
.nav-ico {
  display: grid; place-items: center; width: 30px; height: 30px; margin-left: -4px; border-radius: 8px; flex: none;
  color: #8b93a3; transition: transform .25s var(--ease), color .2s, background .2s;
}
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item:hover .nav-ico { color: var(--text); transform: scale(1.08) rotate(-4deg); }
.nav-item.active { color: var(--text); background: var(--blue-soft); }
.nav-item.active .nav-ico { color: #fff; }
.nav-hint { margin-left: auto; font-size: 11px; color: #4f5766; }
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--blue); box-shadow: 0 0 12px var(--blue);
}

.main { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 28px; background: rgba(11,13,18,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.announce {
  position: relative; z-index: 21; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; color: #fff;
  background: #c62828; border-bottom: 1px solid #e53935;
  animation: slidedown .5s var(--ease) both;
}
.announce svg { flex: none; animation: blink 2s ease-in-out infinite; }
@keyframes slidedown { from { transform: translateY(-100%); opacity: 0; } }
@keyframes blink { 50% { opacity: .45; } }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.chip {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px;
  border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; transition: .2s;
}
.chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.chip-label { color: var(--muted); }
.chip-val { font-weight: 600; }
.chip-user { padding-left: 5px; }
.chip-cur { font-weight: 600; }

.dd { position: relative; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 270px; padding: 5px;
  background: rgba(20,23,31,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.8);
}
.dd-head { padding: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.dd-total { font-size: 22px; font-weight: 600; margin-top: 2px; }
.dd-user { display: flex; align-items: center; gap: 10px; }
.coin-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13px; }
.coin-row:hover { background: var(--hover); }
.coin-row small { display: block; }
.dd-foot { display: flex; gap: 6px; padding: 8px 6px 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.dd-foot .btn { flex: 1; padding: 0 10px; }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: #a9b1bf; transition: .15s; }
.dd-item:hover { background: var(--hover); color: var(--text); }
.dd-item.on { color: var(--text); background: var(--surface-2); }
.cur-code { width: 38px; font-weight: 600; color: var(--text); }

.content { width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 28px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eyebrow { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 4px; }

/* ---------- Cards ---------- */
.card, .panel {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.panel { overflow: hidden; min-width: 0; }

.shop-empty { overflow: hidden; min-height: 460px; display: grid; }
.ghost-grid {
  grid-area: 1 / 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,.15), #000 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,.15), #000 90%);
}
.ghost { border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); padding: 10px; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 300ms); }
.ghost-img { height: 110px; border-radius: 8px; margin-bottom: 12px; }
.ghost-line { height: 9px; border-radius: 5px; margin-bottom: 8px; }
.w70 { width: 70%; } .w40 { width: 40%; }
.ghost-img, .ghost-line {
  background: linear-gradient(90deg, #151922 0%, #1c2230 50%, #151922 100%);
  background-size: 200% 100%; animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty-center {
  grid-area: 1 / 1; place-self: center; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 32px 36px; border-radius: 18px; max-width: 360px;
  background: rgba(18,21,28,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.empty-center p { font-size: 13px; margin-bottom: 10px; }
.empty-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 50%; background: var(--bg-2); color: #5b6372; border: 1px solid var(--line-2); }

.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; transition: background .15s; }
.row:hover { background: rgba(255,255,255,.012); }
.row:last-child { border-bottom: 0; }
.row small { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2 > * { animation: rise .7s var(--ease) both; }
.grid-2 > *:nth-child(2) { animation-delay: 80ms; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 80px 16px; color: var(--muted); }
.empty h2 { color: var(--text); margin-top: 8px; }
.empty .btn { margin-top: 14px; }
.tr { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 12px 20px; font-size: 12px; }
.th { color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.big-num { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin-top: 2px; }
.addr { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.addr span { flex: 1; min-width: 0; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr .icon-btn { border: 0; }

/* ---------- Wallet ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt { margin-top: 16px; }
.row-btn { width: 100%; text-align: left; border-left: 2px solid transparent; }
.row-btn.sel { background: rgba(59,130,246,.06); border-left-color: var(--blue); }
.tabs { display: flex; padding: 6px; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
  border-radius: 10px; color: var(--muted); font-weight: 500; transition: .2s;
}
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button.on { color: var(--text); background: var(--blue-soft); }
.coin-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (max-width: 520px) { .coin-pick { grid-template-columns: repeat(3, 1fr); } }
.coin-pick button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; font-size: 12px; font-weight: 500;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); transition: .2s var(--ease);
}
.coin-pick button:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-1px); }
.coin-pick button.on { border-color: rgba(59,130,246,.6); background: var(--blue-soft); color: var(--text); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv.strong { font-weight: 600; font-size: 14px; }
.label-row { display: flex; justify-content: space-between; gap: 8px; }
.label-row .muted { font-weight: 400; font-size: 12px; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.err { color: var(--red); }
.max-btn { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; color: var(--blue-2); background: var(--blue-soft); }
.max-btn:hover { background: rgba(59,130,246,.2); }
.summary { margin: 16px 0; padding: 4px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.notice {
  display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5;
  color: #e7c38a; background: rgba(234,179,8,.06); border: 1px solid rgba(234,179,8,.18);
}
.notice svg { flex: none; margin-top: 1px; color: #eab308; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.notice-info { margin-top: 0; color: #c9d3e3; background: var(--bg-2); border-color: var(--line-2); }
.notice-info svg { color: var(--text); }
.confirm-amount { display: flex; align-items: center; gap: 14px; padding: 6px 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.confirm-amount .big-num { font-size: 24px; }
.btn-row { display: flex; gap: 8px; margin-top: 18px; }
.btn-row .btn { flex: 1; }
.tx-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.pending { color: #eab308; }
.empty.small { padding: 32px 16px; }
.empty.small svg { color: var(--muted); }

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 13px;
  background: rgba(23,27,36,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.8); animation: rise .4s var(--ease);
}
.toast svg { color: var(--blue-2); }

/* ---------- Responsive ---------- */
.show-sm, .scrim { display: none; }
@media (max-width: 1000px) { .ghost-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .show-sm { display: grid; }
  .sidebar { position: fixed; left: 0; z-index: 60; transform: translateX(-100%); transition: transform .3s var(--ease); background: var(--bg-2); }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(5,7,10,.7); animation: fade .2s; }
  .topbar { padding: 0 16px; }
  .content { padding: 24px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .ghost-grid { grid-template-columns: repeat(2, 1fr); }
  .tr { grid-template-columns: repeat(3, 1fr); }
  .tr span:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .hide-xs { display: none; }
  .dd-menu { width: calc(100vw - 32px); max-width: 300px; }
  .login-card { padding: 28px 20px 18px; }
}
