/* Asterium demo app — mocked internal interface (no real functionality). */

@font-face {
  font-family: "ABC Favorit";
  src: url("/_nuxt/ABCFavorit-Regular.CPDn0Cre.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("/_nuxt/InterDisplay-Regular.CHKdHLF4.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #070708;
  --card: #1c1c1e;
  --card-2: #232326;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .55);
  --muted-2: rgba(255, 255, 255, .35);
  --accent: #d9fe43;
  --accent-dark: #192900;
  --warn: #f59e0b;
  --warn-bg: #2e1e1c;
  --radius: 20px;
  --font-head: "ABC Favorit", -apple-system, sans-serif;
  --font-body: "Inter Display", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  min-height: 100%;
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* phone-width shell, full-bleed on mobile */
.shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .shell {
    height: calc(100vh - 48px);
    border-radius: 32px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.8);
  }
}

/* ============ auth pages ============ */
.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px 48px;
  overflow-y: auto;
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-logo img { width: 44px; height: 44px; border-radius: 11px; }
.auth-logo span { font-family: var(--font-head); font-size: 24px; letter-spacing: -.02em; }
.auth h1 { font-family: var(--font-head); font-size: 30px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 32px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; }
.field input {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--muted-2); }
.btn-primary {
  width: 100%;
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-dark);
  border: none;
  border-radius: 9999px;
  padding: 16px 24px;
  font-family: var(--font-head);
  font-size: 16px;
  cursor: pointer;
  margin-top: 22px;
  transition: opacity .2s, transform .1s;
}
.btn-primary:active { transform: scale(.98); opacity: .9; }
.auth-alt { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--accent); text-decoration: none; }
.auth-demo-note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}
.auth-back { position: absolute; top: 24px; left: 24px; color: var(--muted); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.auth-back:hover { color: var(--text); }

/* ============ app shell ============ */
.screen { flex: 1; overflow-y: auto; padding: 0 20px 110px; display: none; }
.screen.active { display: block; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 18px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--bg) 75%, transparent);
}
.topbar h1 { font-family: var(--font-head); font-size: 28px; font-weight: 400; letter-spacing: -.02em; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 15px; color: var(--text);
  border: none; cursor: pointer; letter-spacing: .02em;
}

/* verify banner */
.verify-banner {
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 14px;
  margin-bottom: 28px;
}
.verify-banner .vb-icon { flex: 0 0 auto; margin-top: 3px; }
.verify-banner h3 { font-family: var(--font-head); font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.verify-banner p { color: rgba(255,255,255,.7); font-size: 14.5px; line-height: 1.45; margin-bottom: 14px; }
.vb-btn {
  background: rgba(255,255,255,.1);
  color: var(--text);
  border: none; border-radius: 9999px;
  padding: 10px 22px;
  font-family: var(--font-head); font-size: 14px;
  cursor: pointer;
}
.vb-btn:active { background: rgba(255,255,255,.18); }

/* balance */
.total { text-align: center; margin: 8px 0 34px; }
.total .t-label { color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.total .t-value {
  font-family: var(--font-head); font-size: 56px; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 14px;
}
.eye-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.eye-btn:active { color: var(--text); }

/* actions row */
.actions { display: flex; justify-content: center; gap: 26px; margin-bottom: 30px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; color: var(--text); }
.action .a-circle {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
}
.action:active .a-circle { background: var(--card-2); transform: scale(.95); }
.action span { font-size: 14px; color: var(--text); font-family: var(--font-body); }

/* gold promo */
.gold-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 148px;
  margin-bottom: 34px;
  background:
    radial-gradient(120% 160% at 85% 20%, #f7e8b0 0%, #e3c56d 30%, #b98d2f 65%, #8a6418 100%);
  cursor: pointer;
}
.gold-banner .g-word {
  position: absolute; left: 22px; top: 12px;
  font-family: var(--font-head);
  font-size: 64px; color: rgba(255,255,255,.85);
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(122, 84, 10, .45);
}
.gold-banner .g-pill {
  position: absolute; left: 22px; bottom: 18px;
  background: #fff; color: #1a1a1a;
  border-radius: 9999px; padding: 9px 18px;
  font-size: 16px; font-family: var(--font-body);
}
.gold-bar {
  position: absolute; border-radius: 6px;
  background: linear-gradient(160deg, #f9edbe 0%, #e9cd78 40%, #c49a3a 75%, #a67c22 100%);
  box-shadow: inset 0 2px 6px rgba(255,255,255,.5), inset 0 -4px 8px rgba(120,80,10,.4), 6px 6px 14px rgba(90,60,5,.35);
  transform: rotate(8deg);
}
.gold-bar::after {
  content: "999.9";
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: rgba(105, 72, 12, .8); font-family: var(--font-body);
}
.gb-1 { width: 74px; height: 150px; right: 118px; top: 14px; }
.gb-2 { width: 86px; height: 170px; right: 16px; top: 2px; }

/* sections */
.section-title { font-family: var(--font-head); font-size: 26px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 18px; }
.section { margin-bottom: 34px; }

.account-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  width: 62%;
  cursor: pointer;
  transition: background .15s;
}
.account-card:active { background: var(--card-2); }
.account-card .ac-head { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; margin-bottom: 26px; }
.account-card .ac-value { font-family: var(--font-head); font-size: 26px; }

/* balances / generic asset rows */
.asset-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  cursor: pointer;
}
.asset-row + .asset-row { border-top: 1px solid rgba(255,255,255,.06); }
.asset-icon {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 15px; color: #fff;
}
.asset-main { flex: 1; min-width: 0; }
.asset-main .a-name { font-size: 16px; margin-bottom: 2px; }
.asset-main .a-sub { font-size: 13.5px; color: var(--muted); }
.asset-right { text-align: right; }
.asset-right .a-amt { font-size: 16px; }
.asset-right .a-fiat { font-size: 13.5px; color: var(--muted); }

/* bottom nav */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex;
  padding: 10px 6px calc(14px + env(safe-area-inset-bottom));
  background: rgba(7,7,8,.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.tab {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--muted); font-family: var(--font-body); font-size: 12px;
}
.tab.active { color: var(--accent); }
.tab svg { width: 26px; height: 26px; }

/* ============ secondary screens ============ */
.list-card { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer;
  color: var(--text); text-decoration: none;
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-body); font-size: 16px;
}
.list-item + .list-item { border-top: 1px solid rgba(255,255,255,.06); }
.list-item:active { background: var(--card-2); }
.list-item .li-icon {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
}
.list-item .li-text { flex: 1; }
.list-item .li-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.list-item .li-chev { color: var(--muted-2); }
.list-item.danger { color: #ff6b6b; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .es-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.empty-state h3 { font-family: var(--font-head); font-size: 21px; color: var(--text); font-weight: 400; margin-bottom: 8px; }
.empty-state p { font-size: 14.5px; line-height: 1.5; max-width: 260px; margin: 0 auto 22px; }
.es-btn {
  background: var(--accent); color: var(--accent-dark);
  border: none; border-radius: 9999px; padding: 13px 28px;
  font-family: var(--font-head); font-size: 15px; cursor: pointer;
}

/* demo card visual (Cards tab) */
.demo-card {
  border-radius: 22px; height: 190px; padding: 22px;
  background: linear-gradient(135deg, #d9fe43 0%, #9ccf1e 55%, #5f8c0a 100%);
  color: #192900; display: flex; flex-direction: column; justify-content: space-between;
  margin-bottom: 24px;
}
.demo-card .dc-brand { font-family: var(--font-head); font-size: 19px; }
.demo-card .dc-num { font-family: var(--font-head); font-size: 21px; letter-spacing: .14em; }
.demo-card .dc-row { display: flex; justify-content: space-between; align-items: flex-end; font-size: 13px; }

/* ============ bottom sheet ============ */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  background: #161618;
  border-radius: 24px 24px 0 0;
  padding: 14px 22px calc(30px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  max-height: 78%; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }
.sheet .sh-grip { width: 42px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: 0 auto 18px; }
.sheet h3 { font-family: var(--font-head); font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.sheet .sh-sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; }
.sheet .sh-body { font-size: 15px; }
.mono-box {
  background: var(--card); border-radius: 14px; padding: 14px 16px;
  font-family: ui-monospace, monospace; font-size: 13.5px; color: rgba(255,255,255,.8);
  word-break: break-all; margin-bottom: 14px;
}
.qr-mock {
  width: 168px; height: 168px; margin: 6px auto 18px; border-radius: 12px; background: #fff;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); padding: 12px; gap: 3px;
}
.qr-mock i { background: #111; border-radius: 2px; }
.qr-mock i.o { background: transparent; }
.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(16px);
  background: #232326; color: var(--text); border-radius: 12px; padding: 12px 20px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 30; white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.demo-chip {
  display: inline-block; background: rgba(217,254,67,.12); color: var(--accent);
  border-radius: 9999px; padding: 4px 12px; font-size: 12px; margin-bottom: 10px;
}
