/* ═══════════════════════════════════════════════════════════════
   UI POLISH — loaded after custom.css. Fixes layout gaps on the
   public site + auth pages and styles the components added with it.
   The hero background video is untouched.
═══════════════════════════════════════════════════════════════ */

/* Lenis smooth scroll (rules from lenis@1.1.13/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* lenis.css also sets `iframe {pointer-events:none}` — omitted: it would block the Tawk chat widget */

/* No white flash on overscroll / short pages */
html { background-color: #0d0718; }
html:has(body.auth-shell),
html:has(body.dashboard-shell) { background-color: #0c1524; }

/* Keyboard focus that is actually visible */
body.frontend-shell a:focus-visible,
body.frontend-shell button:focus-visible,
body.frontend-shell select:focus-visible,
body.auth-shell a:focus-visible,
body.auth-shell button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ── Ghost buttons: custom.css forces the purple gradient on every
      .cmn--btn with !important, so ghosts looked like primaries ── */
body.frontend-shell .cmn--btn.btn--ghost {
  background: rgba(168, 85, 247, 0.06) !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
  color: #e9d5ff !important;
  box-shadow: none !important;
}
body.frontend-shell .cmn--btn.btn--ghost:hover {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(192, 132, 252, 0.8) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.frontend-shell .cmn--btn,
body.frontend-shell .btn--ghost { min-height: 46px; padding: 12px 22px; }

/* ═══════════════ HERO ═══════════════ */
body.frontend-shell .banner-section .banner__content-txt {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 540px;
  color: rgba(245, 240, 255, 0.82);
}
body.frontend-shell .banner-section .hero-actions { margin-top: 28px; }

.hero-trust {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(245, 240, 255, 0.78);
}
.hero-trust i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.28);
}

/* Market board without the dead sub-tabs */
body.frontend-shell .market-board .seg { margin-bottom: 10px; }
body.frontend-shell .hero-market { display: grid; gap: 16px; }

/* Bootstrap g-5 gutter (3rem) overflowed the 16px mobile container */
@media (max-width: 991px) {
  body.frontend-shell .banner-section .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* ═══════════════ STATS STRIP ═══════════════ */
body.frontend-shell .cb-open-stats { padding: 40px 0 8px; }
body.frontend-shell .cb-open-stats-row { gap: 16px; }
body.frontend-shell .cb-open-stats-row > div {
  position: relative;
  padding: 22px 22px 20px 74px;
  min-height: 92px;
  border-radius: 18px;
  background: rgba(24, 15, 46, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.frontend-shell .cb-open-stats-row > div > i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.3rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.14);
}
body.frontend-shell .cb-open-stats-row strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
body.frontend-shell .cb-open-stats-row span { font-size: 0.84rem; }

@media (max-width: 1199px) {
  body.frontend-shell .cb-open-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 575px) {
  body.frontend-shell .cb-open-stats-row { gap: 10px !important; }
  body.frontend-shell .cb-open-stats-row > div { padding: 64px 14px 14px; min-height: 0; }
  body.frontend-shell .cb-open-stats-row > div > i { top: 14px; left: 14px; transform: none; width: 36px; height: 36px; }
  body.frontend-shell .cb-open-stats-row strong { font-size: 1.1rem; }
}

/* ═══════════════ FEATURE CARDS ═══════════════
   `.cb-open-visual img {max-width:160px;padding:18px}` beat `.sm-img`
   and squashed every icon into a dot. */
body.frontend-shell .cb-open-visual--cards article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: 22px;
}
body.frontend-shell .cb-open-visual--cards article .sm-img {
  width: 52px;
  height: 52px;
  max-width: none;
  padding: 11px;
  margin: 0 0 14px;
  border-radius: 15px;
  object-fit: contain;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.26);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.25);
}
body.frontend-shell .cb-open-visual--cards article h3 { margin: 0; font-size: 1.15rem; }
body.frontend-shell .cb-open-visual--cards article p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
body.frontend-shell .cb-open-visual--cards article:hover { transform: translateY(-3px); }
body.frontend-shell .cb-open-visual--cards article { transition: transform .25s ease, border-color .25s ease, background .25s ease; }

/* ═══════════════ RATE CARD ═══════════════ */
.rate-card {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, 0.14), transparent 55%),
    rgba(24, 15, 46, 0.78);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 30px 60px rgba(10, 4, 24, 0.45);
  overflow: hidden;
}
.rate-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.rate-card .cb-asset-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}
.rate-card .cb-asset-name img { width: 40px; height: 40px; }
.rate-card .cb-asset-name small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.rate-card .chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fdba74;
  background: rgba(247, 147, 26, 0.12);
  border: 1px solid rgba(247, 147, 26, 0.3);
}
.rate-card__price {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rate-card__unit {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.rate-card__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(168, 85, 247, 0.16);
  display: grid;
  gap: 12px;
}
.rate-card__facts li,
.about-scope li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(245, 240, 255, 0.85);
}
.rate-card__facts i,
.about-scope i {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

/* ═══════════════ 3D VAULT (three.js + GSAP) ═══════════════ */
body.frontend-shell .vault3d-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
body.frontend-shell .vault3d-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 75% 50%, rgba(168, 85, 247, 0.18), transparent 70%),
    radial-gradient(30% 40% at 80% 60%, rgba(247, 147, 26, 0.10), transparent 70%);
  pointer-events: none;
}
.vault3d-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.vault3d-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.vault3d-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(24, 15, 46, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.16);
}
.vault3d-steps li > span {
  flex: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #d8b4fe;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.vault3d-steps strong { display: block; font-size: 1rem; }
.vault3d-steps small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

.vault3d-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.vault3d-stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity .8s ease;
}
.vault3d-stage.is-ready canvas { opacity: 1; }
.vault3d-fallback {
  position: absolute;
  inset: 22%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: clamp(5rem, 14vw, 9rem);
  color: #fff6e6;
  background: radial-gradient(circle at 35% 30%, #ffc266, #f7931a 55%, #b35f00);
  box-shadow: 0 0 0 10px rgba(247, 147, 26, 0.12), 0 0 120px rgba(168, 85, 247, 0.45);
  transition: opacity .6s ease;
}
.vault3d-stage.is-ready .vault3d-fallback { opacity: 0; }
.vault3d-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f5f0ff;
  background: rgba(20, 10, 40, 0.72);
  border: 1px solid rgba(192, 132, 252, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(10, 4, 24, 0.45);
  pointer-events: none;
}
.vault3d-chip i { color: #d8b4fe; font-size: 1rem; }
.vault3d-chip--a { top: 12%; left: 0; }
.vault3d-chip--b { top: 46%; right: -2%; }
.vault3d-chip--c { bottom: 10%; left: 10%; }
.vault3d-chip--b i { color: #93c5fd; }
.vault3d-chip--c i { color: #2affc6; }
@media (max-width: 991px) {
  .vault3d-grid { grid-template-columns: 1fr; gap: 24px; }
  .vault3d-stage { margin: 0 auto; max-width: 440px; }
  body.frontend-shell .vault3d-section { padding: 64px 0; }
}
@media (max-width: 575px) {
  .vault3d-chip { font-size: 0.76rem; padding: 7px 11px; }
  .vault3d-chip--b { right: 0; }
}
body.frontend-shell[data-theme="light"] .vault3d-steps li {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}
body.frontend-shell[data-theme="light"] .vault3d-steps li > span { color: #7c3aed; }
body.frontend-shell[data-theme="light"] .vault3d-chip {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

/* ═══════════════ PHONE MOCKUPS (home) ═══════════════
   Pure HTML/CSS screens of the real dashboard + send page, tilted in 3D. */
.phones-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.phones-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.phones-points li { display: flex; gap: 14px; align-items: flex-start; }
.phones-points i {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 1.25rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.26);
}
.phones-points strong { display: block; font-size: 1.02rem; }
.phones-points span { display: block; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

.phones-stage {
  position: relative;
  height: 640px;
  perspective: 1800px;
  perspective-origin: 60% 40%;
}
/* framed panel behind the phones, like the reference shot */
.phones-stage::before {
  content: "";
  position: absolute;
  inset: 70px 0 30px 9%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(70% 60% at 70% 30%, rgba(42, 255, 198, 0.10), transparent 70%),
    radial-gradient(60% 60% at 30% 80%, rgba(168, 85, 247, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.35));
}
.phones-rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.25s ease-out;
}
.phone {
  position: absolute;
  width: 250px;
  height: 510px;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(145deg, #f1f5f9 0%, #94a3b8 18%, #e2e8f0 40%, #64748b 75%, #cbd5e1 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.7),
    inset 0 0 0 4px #1e293b,
    0 50px 80px -20px rgba(0, 0, 0, 0.65),
    0 30px 40px -30px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone::before { /* side button */
  content: "";
  position: absolute;
  right: -3px;
  top: 128px;
  width: 4px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#cbd5e1, #64748b);
}
.phone::after { /* dynamic island */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 20px;
  background: #020617;
  z-index: 3;
}
.phone--front {
  right: 4%;
  top: 40px;
  transform: translateY(var(--par-a, 0px)) rotateY(-20deg) rotateX(9deg) rotateZ(6deg) translateZ(60px);
  animation: phoneFloatA 7s ease-in-out infinite;
}
.phone--back {
  left: 6%;
  top: 150px;
  transform: translateY(var(--par-b, 0px)) rotateY(-24deg) rotateX(12deg) rotateZ(-14deg) translateZ(-40px) scale(0.9);
  animation: phoneFloatB 8s ease-in-out infinite;
}
@keyframes phoneFloatA {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes phoneFloatB {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 12px; }
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  padding: 14px 14px 0;
  color: #f0f4ff;
  font-size: 11px;
  line-height: 1.35;
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(42, 255, 198, 0.16), transparent 60%),
    #0a0e15;
}
.phone__screen::after { /* glass glare */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 22px; padding: 0 10px; font-weight: 700; font-size: 11px; }
.ph-status-ico { display: inline-flex; gap: 3px; font-size: 11px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 14px; }
.ph-top strong { flex: 1; font-size: 12.5px; }
.ph-top > i { font-size: 15px; color: rgba(240, 244, 255, 0.7); }
.ph-brand {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  font-weight: 800; font-size: 12px; color: #2affc6; background: rgba(42, 255, 198, 0.12); border: 1px solid rgba(42, 255, 198, 0.4);
}
.ph-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #2affc6, #4de8ff); }
.ph-muted { color: rgba(240, 244, 255, 0.55); font-size: 10px; }
.ph-balance { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 2px; }
.ph-sub { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: rgba(240, 244, 255, 0.75); font-size: 10.5px; }
.ph-coin {
  display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 800; color: #fff; background: #f7931a;
}
.ph-up { color: #00e676; font-style: normal; font-weight: 700; }
.ph-down { color: #ff5d73; font-style: normal; font-weight: 700; }
.ph-sub .ph-up { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: rgba(0, 230, 118, 0.12); }
.ph-spark { display: block; width: 100%; height: 54px; margin: 10px 0 8px; }
.ph-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-actions span {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: 12px;
  font-size: 9.5px; font-weight: 600; background: rgba(255, 255, 255, 0.05);
}
.ph-actions i { font-size: 15px; color: #2affc6; }
.ph-actions span:first-child { background: linear-gradient(135deg, #2affc6, #4de8ff); color: #07111f; }
.ph-actions span:first-child i { color: #07111f; }
.ph-section { display: flex; justify-content: space-between; align-items: baseline; margin: 13px 0 6px; }
.ph-section strong { font-size: 11.5px; }
.ph-section small { color: #2affc6; font-size: 9.5px; }
.ph-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; margin-bottom: 5px; border-radius: 11px; background: rgba(255, 255, 255, 0.035); }
.ph-row > div { flex: 1; min-width: 0; }
.ph-row b { display: block; font-size: 10.5px; }
.ph-row small { display: block; color: rgba(240, 244, 255, 0.5); font-size: 9px; }
.ph-row em { font-style: normal; font-weight: 700; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.ph-dir { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; flex: none; }
.ph-dir.is-in { color: #00e676; background: rgba(0, 230, 118, 0.12); }
.ph-dir.is-out { color: #ff5d73; background: rgba(255, 93, 115, 0.12); }
.ph-tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-around; padding: 9px 0;
  border-radius: 18px; font-size: 16px; color: rgba(240, 244, 255, 0.45); background: rgba(20, 26, 36, 0.92); border: 1px solid rgba(255, 255, 255, 0.06);
}
.ph-tabbar .is-on { color: #2affc6; }
/* send screen */
.ph-field { margin-bottom: 9px; }
.ph-field small, .ph-amount small, .ph-2fa small { display: block; margin-bottom: 4px; color: rgba(240, 244, 255, 0.5); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ph-field-row { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 10.5px; }
.ph-field-row em { margin-left: auto; font-style: normal; color: rgba(240, 244, 255, 0.6); font-size: 9.5px; }
.ph-mono { font-family: ui-monospace, "Courier New", monospace; font-size: 10px; color: rgba(240, 244, 255, 0.8); }
.ph-amount { padding: 11px 10px; border-radius: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(42, 255, 198, 0.25); margin-bottom: 9px; }
.ph-amount strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.ph-amount strong span { font-size: 10px; color: #2affc6; }
.ph-amount em { font-style: normal; color: rgba(240, 244, 255, 0.55); font-size: 10px; }
.ph-fee { display: grid; gap: 5px; padding: 9px 10px; border-radius: 11px; background: rgba(42, 255, 198, 0.06); margin-bottom: 10px; }
.ph-fee div { display: flex; justify-content: space-between; font-size: 10px; color: rgba(240, 244, 255, 0.7); }
.ph-fee b { color: #f0f4ff; }
.ph-2fa div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 12px; }
.ph-2fa i {
  display: grid; place-items: center; height: 30px; border-radius: 8px; font-style: normal; font-weight: 800; font-size: 13px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
}
.ph-2fa i.is-caret { border-color: #2affc6; box-shadow: 0 0 0 2px rgba(42, 255, 198, 0.18); }
.ph-2fa i.is-caret::after { content: ""; width: 1.5px; height: 14px; background: #2affc6; animation: phCaret 1s steps(1) infinite; }
@keyframes phCaret { 50% { opacity: 0; } }
.ph-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 999px;
  font-weight: 800; font-size: 11.5px; color: #07111f; background: linear-gradient(135deg, #2affc6, #4de8ff);
  box-shadow: 0 10px 22px rgba(42, 255, 198, 0.3);
}

.phones-tag {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5f0ff;
  background: rgba(20, 10, 40, 0.75);
  border: 1px solid rgba(192, 132, 252, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(10, 4, 24, 0.45);
}
.phones-tag i { color: #2affc6; font-size: 1rem; }
.phones-tag--a { left: 0; top: 64px; }
.phones-tag--b { right: 0; bottom: 64px; }

@media (max-width: 1199px) {
  .phone { width: 220px; height: 450px; }
  .phones-stage { height: 540px; }
}
@media (max-width: 991px) {
  .phones-split { grid-template-columns: 1fr; gap: 24px; }
  .phones-stage { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
  /* scale the whole composition instead of reflowing tiny screens */
  .phones-stage { height: 540px; }
  .phones-rig { transform-origin: 50% 0; scale: 0.82; left: -8%; right: -8%; }
  .phones-stage::before { inset: 60px 0 20px 0; }
  .phones-tag { font-size: 0.74rem; padding: 7px 11px; }
  .phones-tag--a { top: 20px; }
  .phones-tag--b { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone--front, .phone--back { animation: none; }
  .ph-2fa i.is-caret::after { animation: none; }
}
body.frontend-shell[data-theme="light"] .phones-stage::before {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(70% 60% at 70% 30%, rgba(13, 148, 136, 0.10), transparent 70%),
    radial-gradient(60% 60% at 30% 80%, rgba(124, 58, 237, 0.10), transparent 70%),
    #f1f5f9;
}
body.frontend-shell[data-theme="light"] .phones-points i { color: #7c3aed; background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.16); }
body.frontend-shell[data-theme="light"] .phones-tag { color: #1f2937; background: rgba(255, 255, 255, 0.9); border-color: rgba(124, 58, 237, 0.2); }
body.frontend-shell[data-theme="light"] .phones-tag i { color: #0d9488; }

/* ═══════════════ 3D SCENES (js/scenes-3d.js) ═══════════════ */
.scene3d { position: relative; }
.scene3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}
.scene3d.is-ready canvas { opacity: 1; }

/* inner-page header: network sits between the photo overlay and the title,
   faded out behind the text so the title stays readable */
.hero-section.inner-hero { position: relative; overflow: hidden; }
.scene3d--hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 34% 46% at 50% 58%, transparent 0%, rgba(0,0,0,.35) 55%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 46% at 50% 58%, transparent 0%, rgba(0,0,0,.35) 55%, #000 100%);
}

/* About: copy + block chain */
.scene3d-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}
.scene3d-split .cb-open-copy p { color: var(--text-muted); max-width: 520px; }
.scene3d--blocks { height: 300px; }
@media (max-width: 991px) {
  .scene3d-split { grid-template-columns: 1fr; gap: 8px; }
  .scene3d--blocks { height: 220px; }
}

/* Contact: globe card */
body.frontend-shell .contact-globe {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(168, 85, 247, 0.22), transparent 70%),
    rgba(24, 15, 46, 0.7) !important;
  border: 1px solid rgba(168, 85, 247, 0.18);
}
.scene3d--globe { height: 260px; }
.contact-globe__label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fde68a;
  background: rgba(20, 10, 40, 0.75);
  border: 1px solid rgba(247, 147, 26, 0.35);
}
body.frontend-shell[data-theme="light"] .contact-globe {
  background: radial-gradient(60% 60% at 50% 45%, rgba(124, 58, 237, 0.12), transparent 70%), #fff !important;
  border-color: rgba(17, 24, 39, 0.08);
}
body.frontend-shell[data-theme="light"] .contact-globe__label { color: #9a3412; background: #fff7ed; }

/* Auth: padlock above the headline (hidden where the aside list is hidden) */
.scene3d--lock {
  width: 220px;
  height: 190px;
  margin: 4px 0 -6px -18px;
}
@media (max-width: 991px) {
  .scene3d--lock { display: none; }
}

/* WebGL unavailable: drop the empty boxes */
.scene3d.is-fallback canvas { display: none; }
.scene3d--blocks.is-fallback,
.scene3d--lock.is-fallback,
.contact-globe:has(.scene3d.is-fallback) { display: none; }

/* ═══════════════ CTA PANEL ═══════════════ */
body.frontend-shell .cb-open-cta {
  background: none;
  border: 0;
}
body.frontend-shell .cta-panel {
  max-width: none;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px);
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(168, 85, 247, 0.32), transparent 70%),
    radial-gradient(40% 80% at 100% 100%, rgba(96, 165, 250, 0.16), transparent 70%),
    rgba(20, 10, 40, 0.75);
  box-shadow: 0 40px 80px rgba(20, 6, 48, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.frontend-shell .cta-panel h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
body.frontend-shell .cta-panel p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-muted);
}
body.frontend-shell .cta-panel .hero-actions { justify-content: center; margin-top: 28px; }

/* ═══════════════ BLOG ═══════════════ */
body.frontend-shell .cb-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) {
  body.frontend-shell .cb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 575px) {
  body.frontend-shell .cb-blog-grid { grid-template-columns: 1fr !important; }
}
body.frontend-shell .cb-blog-grid .post__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
body.frontend-shell .cb-blog-grid .post__item:hover { transform: translateY(-4px); }
body.frontend-shell .cb-blog-grid .post__thumb img { height: 200px; }
body.frontend-shell .cb-blog-grid .post__content { display: flex; flex-direction: column; flex: 1; }
body.frontend-shell .cb-blog-grid .post__read { margin-top: auto; padding-top: 10px; }
.post__thumb--art {
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 120%, rgba(96, 165, 250, 0.45), transparent 45%),
    radial-gradient(circle at 85% -10%, rgba(247, 147, 26, 0.35), transparent 42%),
    linear-gradient(135deg, #2a1052 0%, #1a0b38 55%, #120a2a 100%);
}
.post__thumb--art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%);
}
.post__thumb-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(135deg, #f7931a, #f59e0b);
  box-shadow: 0 18px 40px rgba(247, 147, 26, 0.35);
  transform: rotate(-8deg);
  transition: transform .35s ease;
}
.post__item:hover .post__thumb-mark { transform: rotate(0deg) scale(1.06); }

/* ═══════════════ ABOUT ═══════════════ */
body.frontend-shell .about-facts .how-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(24, 15, 46, 0.6);
  border-color: rgba(168, 85, 247, 0.16);
}
body.frontend-shell .about-facts .how-step h3 { margin: 6px 0 0; font-size: 1.15rem; }
body.frontend-shell .about-facts .how-step p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.how-step__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.5rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.26);
}
body.frontend-shell .about-facts { margin-top: 36px; }

.about-scope {
  list-style: none;
  margin: 0;
  padding: 30px;
  display: grid;
  gap: 16px;
  border-radius: 24px;
  background: rgba(24, 15, 46, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.18);
}
.about-scope li.is-no { color: rgba(245, 240, 255, 0.6); }
.about-scope li.is-no i { color: #f87171; background: rgba(248, 113, 113, 0.12); }

/* ═══════════════ CONTACT ═══════════════ */
body.frontend-shell .contact-layout { padding: 72px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
body.frontend-shell .contact-card,
body.frontend-shell .contact-info {
  border-radius: 24px;
  background: rgba(24, 15, 46, 0.7) !important;
  border: 1px solid rgba(168, 85, 247, 0.18);
}
body.frontend-shell .contact-card { padding: clamp(24px, 4vw, 40px); }
body.frontend-shell .contact-card .section__header { margin-bottom: 8px !important; }
body.frontend-shell .contact-card .section__title { margin: 12px 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
body.frontend-shell .contact-card .section__header p { color: var(--text-muted); margin: 0; }
body.frontend-shell .contact-form { margin-top: 8px; }
body.frontend-shell .contact-form textarea { min-height: 160px; resize: vertical; }
.contact-aside { display: grid; gap: 16px; }
body.frontend-shell .contact-info {
  display: flex;
  gap: 16px;
  padding: 24px;
}
.contact-info h3 { margin: 0 0 6px; font-size: 1.02rem; }
.contact-info p,
.contact-info address { margin: 0; color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; font-style: normal; }
.contact-info__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.35rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.14);
}
.contact-info__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #d8b4fe;
}
.contact-info__link:hover { color: #fff; gap: 9px; }
@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; }
  body.frontend-shell .contact-layout { padding: 48px 0; }
}

/* ═══════════════ FOOTER ═══════════════ */
body.frontend-shell .footer-widget .title {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
body.frontend-shell .footer-widget p { color: var(--text-muted); }
body.frontend-shell .footer-widget .links a { color: rgba(245, 240, 255, 0.78); }
body.frontend-shell .footer-widget .links a:hover { color: #fff; }
body.frontend-shell .footer-middle-wrapper .cont { color: var(--text-muted) !important; font-size: 0.88rem; }

/* ═══════════════ SECTION RHYTHM ═══════════════ */
@media (min-width: 992px) {
  body.frontend-shell .cb-open-story,
  body.frontend-shell .cb-open-assets,
  body.frontend-shell .cb-open-cta { padding: 88px 0; }
}

/* ═══════════════ AUTH PAGES ═══════════════ */
body.auth-shell .auth-aside .eyebrow,
body.auth-shell .account__section-content .eyebrow {
  display: inline-flex;
  width: auto;
  max-width: max-content;
}
body.auth-shell .agree-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body.auth-shell .agree-check .form-check-input {
  flex: none;
  margin: 3px 0 0;
  float: none;
}
body.auth-shell .agree-check label { margin: 0; line-height: 1.5; }
body.auth-shell .agree-check a { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════ LIGHT THEME ═══════════════ */
html:has(body.frontend-shell[data-theme="light"]) { background-color: #f8fafc; }
body.frontend-shell[data-theme="light"] .cmn--btn.btn--ghost {
  background: rgba(124, 58, 237, 0.06) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  color: #6d28d9 !important;
}
body.frontend-shell[data-theme="light"] .cmn--btn.btn--ghost:hover {
  background: rgba(124, 58, 237, 0.12) !important;
  color: #5b21b6 !important;
}
body.frontend-shell[data-theme="light"] .cb-open-stats-row > div,
body.frontend-shell[data-theme="light"] .rate-card,
body.frontend-shell[data-theme="light"] .about-scope,
body.frontend-shell[data-theme="light"] .about-facts .how-step,
body.frontend-shell[data-theme="light"] .contact-card,
body.frontend-shell[data-theme="light"] .contact-info {
  background: #fff !important;
  border-color: rgba(17, 24, 39, 0.08) !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
body.frontend-shell[data-theme="light"] .cb-open-stats-row > div > i,
body.frontend-shell[data-theme="light"] .how-step__icon,
body.frontend-shell[data-theme="light"] .contact-info__icon,
body.frontend-shell[data-theme="light"] .cb-open-visual--cards article .sm-img {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.16);
  box-shadow: none;
}
body.frontend-shell[data-theme="light"] .rate-card__facts li,
body.frontend-shell[data-theme="light"] .about-scope li { color: #1f2937; }
body.frontend-shell[data-theme="light"] .about-scope li.is-no { color: #6b7280; }
body.frontend-shell[data-theme="light"] .rate-card__facts { border-top-color: rgba(17, 24, 39, 0.08); }
body.frontend-shell[data-theme="light"] .rate-card .chip { color: #c2410c; }
body.frontend-shell[data-theme="light"] .contact-info__link { color: #7c3aed; }
body.frontend-shell[data-theme="light"] .cta-panel {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 70%),
    #fff;
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.08);
}
/* The video hero stays dark in light mode — keep its dark-theme colours */
body.frontend-shell[data-theme="light"] .banner-section .cmn--btn.btn--ghost {
  background: rgba(168, 85, 247, 0.06) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
  color: #e9d5ff !important;
}
body.frontend-shell[data-theme="light"] .banner-section .cmn--btn.btn--ghost:hover {
  background: rgba(168, 85, 247, 0.16) !important;
  color: #fff !important;
}
body.frontend-shell[data-theme="light"] .banner-section .hero-trust li { color: rgba(245, 240, 255, 0.78) !important; }
body.frontend-shell[data-theme="light"] .footer-widget .title { color: #111827; }
body.frontend-shell[data-theme="light"] .footer-widget .links a { color: #374151; }
body.frontend-shell[data-theme="light"] .footer-widget .links a:hover { color: #7c3aed; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD (body.dashboard-shell)
   Inline rules in theme_head use `body.dashboard-shell .ip-card …`
   with !important, so overrides below add `.table-responsive` or
   another class to win on specificity.
═══════════════════════════════════════════════════════════════ */
html:has(body.dashboard-shell) { background-color: #05070b; }
html:has(body.dashboard-shell[data-theme="light"]) { background-color: #f8fafc; }

body.dashboard-shell input::placeholder,
body.dashboard-shell textarea::placeholder { color: rgba(240, 244, 255, 0.38) !important; opacity: 1; }
body.dashboard-shell[data-theme="light"] input::placeholder,
body.dashboard-shell[data-theme="light"] textarea::placeholder { color: rgba(17, 24, 39, 0.4) !important; }

body.dashboard-shell a:focus-visible,
body.dashboard-shell button:focus-visible,
body.dashboard-shell select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Sent rows got the green "received" icon colour from a later rule */
body.dashboard-shell .dash-trx.is-out .dash-trx-ico {
  background: rgba(255, 93, 115, 0.12) !important;
  color: var(--down) !important;
}
body.dashboard-shell .dash-trx.is-in .dash-trx-ico {
  background: rgba(0, 230, 118, 0.12) !important;
  color: var(--up) !important;
}

/* Stat tiles: bigger value, readable unit, no dead space */
body.dashboard-shell .cb-mini .mini-stat {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px;
}
body.dashboard-shell .cb-mini .mini-ico {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  margin: 0;
  font-size: 1.15rem;
}
body.dashboard-shell .cb-mini .mini-stat span:not(.mini-ico) {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.dashboard-shell .cb-mini .mini-stat strong {
  margin: 2px 0 0;
  font-size: 1.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.dashboard-shell .cb-mini .mini-stat strong small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}
body.dashboard-shell .dashboard-item .dash-card-link { font-size: 0.78rem; }
@media (max-width: 575px) {
  body.dashboard-shell .cb-mini .mini-stat {
    grid-template-columns: 1fr;
    row-gap: 2px;
    padding: 14px;
  }
  body.dashboard-shell .cb-mini .mini-ico { grid-row: auto; width: 34px; height: 34px; margin-bottom: 8px; }
  body.dashboard-shell .cb-mini .mini-stat strong { font-size: 0.98rem; white-space: normal; overflow: visible; }
}
/* Amount + unit stay on one line in table cells */
body.dashboard-shell .ip-card .cmn--table td.bal-em,
body.dashboard-shell .ip-card .cmn--table td[data-label="Charge"],
body.dashboard-shell .ip-card .cmn--table td[data-label="Amount"] { white-space: nowrap; }

/* History tables (desktop): stop dates wrapping onto 3 lines */
@media (min-width: 768px) {
  body.dashboard-shell .ip-card .table-responsive .cmn--table td[data-label="Date"],
  body.dashboard-shell .ip-card .table-responsive .cmn--table td:first-child { white-space: nowrap; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table .see-more-less .wallet-addr,
  body.dashboard-shell .ip-card .table-responsive .cmn--table .see-more-less {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table .see-more-less.active,
  body.dashboard-shell .ip-card .table-responsive .cmn--table .see-more-less.active .wallet-addr {
    white-space: normal;
    word-break: break-all;
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table thead th { white-space: nowrap; }
}

/* History tables (phone): theme_head forced real table layout while
   custom.css tried cards; the wallet column shrank to 44px and every
   row grew ~1000px tall. One clean card per row instead. */
@media (max-width: 767px) {
  body.dashboard-shell .ip-card .table-responsive { overflow: visible; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table thead { display: none !important; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody { display: block !important; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
    padding: 18px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr:last-child { border-bottom: 0; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td {
    display: block !important;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal;
    font-size: 0.88rem !important;
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td::before {
    content: attr(data-label);
    display: block !important;
    position: static !important;
    width: auto !important;
    margin: 0 0 4px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 244, 255, 0.42);
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td.see-more-less,
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td.text-break,
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td[colspan] { grid-column: 1 / -1; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td[colspan]::before { content: none; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table .wallet-addr {
    display: block;
    max-width: none !important;
    white-space: normal !important;
    word-break: break-all;
  }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td br { display: none; }
  body.dashboard-shell .ip-card .table-responsive .cmn--table tbody tr td:first-child small.text--muted { display: block; margin-top: 2px; }
  body.dashboard-shell[data-theme="light"] .ip-card .table-responsive .cmn--table tbody tr { border-bottom-color: rgba(0, 0, 0, 0.06); }
  body.dashboard-shell[data-theme="light"] .ip-card .table-responsive .cmn--table tbody tr td::before { color: rgba(17, 24, 39, 0.45); }

  body.dashboard-shell .ip-filter { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
}

/* Light mode paints the balance header as a teal card but gave it no padding */
body.dashboard-shell[data-theme="light"] .dash-hero {
  padding: 26px 30px !important;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.22);
}
body.dashboard-shell[data-theme="light"] .dash-action span:not(.dash-action-ico) { color: #fff !important; }
@media (max-width: 575px) {
  body.dashboard-shell[data-theme="light"] .dash-hero { padding: 20px 18px !important; }
}

/* Open-a-ticket: form + tips side by side */
.tk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tk-tips {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tk-tips li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.tk-tips i { color: var(--primary); font-size: 1.1rem; flex: none; margin-top: 1px; }
.tk-faq-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.tk-faq-link:hover { gap: 11px; color: var(--primary); }
@media (max-width: 991px) {
  .tk-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.frontend-shell .cb-open-visual--cards article:hover,
  body.frontend-shell .cb-blog-grid .post__item:hover,
  .post__item:hover .post__thumb-mark { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   WALLET-APP VISUAL LAYER (styling only — no behaviour changes)
═══════════════════════════════════════════════════════════════ */

/* Selection + scrollbars */
::selection { background: rgba(168, 85, 247, 0.35); color: #fff; }
body.dashboard-shell ::selection { background: rgba(42, 255, 198, 0.3); }
body.dashboard-shell ::-webkit-scrollbar { width: 10px; height: 10px; }
body.dashboard-shell ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
body.dashboard-shell ::-webkit-scrollbar-thumb:hover { background-color: rgba(42, 255, 198, 0.35); }

/* ── Primary buttons: light sweep on hover (Phantom / Coinbase) ── */
body.frontend-shell .cmn--btn:not(.btn--ghost),
body.dashboard-shell .cmn--btn,
body.auth-shell .cmn--btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.frontend-shell .cmn--btn:not(.btn--ghost)::after,
body.dashboard-shell .cmn--btn::after,
body.auth-shell .cmn--btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
body.frontend-shell .cmn--btn:not(.btn--ghost):hover::after,
body.dashboard-shell .cmn--btn:hover::after,
body.auth-shell .cmn--btn:hover::after { transform: translateX(120%); }
body.frontend-shell .cmn--btn:active,
body.dashboard-shell .cmn--btn:active,
body.auth-shell .cmn--btn:active { transform: scale(0.97); }

/* ── Public cards: gradient border glow on hover (Phantom) ── */
body.frontend-shell .cb-open-visual--cards article,
body.frontend-shell .cb-open-stats-row > div,
body.frontend-shell .about-facts .how-step,
body.frontend-shell .contact-info,
body.frontend-shell .vault3d-steps li,
body.frontend-shell .cb-blog-grid .post__item {
  position: relative;
}
body.frontend-shell .cb-open-visual--cards article::before,
body.frontend-shell .cb-open-stats-row > div::before,
body.frontend-shell .about-facts .how-step::before,
body.frontend-shell .contact-info::before,
body.frontend-shell .vault3d-steps li::before,
body.frontend-shell .cb-blog-grid .post__item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.9), rgba(96, 165, 250, 0.6) 45%, rgba(42, 255, 198, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
body.frontend-shell .cb-open-visual--cards article:hover::before,
body.frontend-shell .cb-open-stats-row > div:hover::before,
body.frontend-shell .about-facts .how-step:hover::before,
body.frontend-shell .contact-info:hover::before,
body.frontend-shell .vault3d-steps li:hover::before,
body.frontend-shell .cb-blog-grid .post__item:hover::before { opacity: 1; }

/* Ticker: fade both edges like exchange tape */
body.frontend-shell .market-ticker {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Header: deeper glass once scrolled */
body.frontend-shell .site-header.header--scrolled {
  background: rgba(13, 7, 24, 0.72) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(5, 2, 12, 0.35);
}

/* ═══════════════ DASHBOARD ═══════════════ */

/* Balance hero: soft aura behind the number (Exodus) */
body.dashboard-shell .dash-hero { position: relative; }
body.dashboard-shell .dash-hero::before {
  content: "";
  position: absolute;
  left: -40px;
  top: -60px;
  width: 420px;
  height: 260px;
  background: radial-gradient(closest-side, rgba(42, 255, 198, 0.16), transparent);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
body.dashboard-shell .dash-hero > * { position: relative; z-index: 1; }
body.dashboard-shell:not([data-theme="light"]) .cb-bal {
  background: linear-gradient(180deg, #ffffff 30%, #a7f3e4 120%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Quick actions: lifted, glow on hover (Trust Wallet) */
body.dashboard-shell .dash-action { transition: transform 0.2s ease; }
body.dashboard-shell .dash-action:hover { transform: translateY(-3px); }
body.dashboard-shell .dash-action-ico { transition: box-shadow 0.25s ease, background 0.25s ease; }
body.dashboard-shell .dash-action:hover .dash-action-ico:not(.is-ghost) { box-shadow: 0 12px 30px rgba(42, 255, 198, 0.45); }
body.dashboard-shell .dash-action:hover .dash-action-ico.is-ghost { background: rgba(42, 255, 198, 0.12); border-color: rgba(42, 255, 198, 0.4); }

/* Sidebar: accent bar + glow on the active item (Ledger Live) */
body.dashboard-shell .main-menu a { position: relative; transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease; }
body.dashboard-shell .main-menu a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 4px;
  height: 22px;
  margin-top: -11px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #2affc6, #4de8ff);
  box-shadow: 0 0 14px rgba(42, 255, 198, 0.7);
}
body.dashboard-shell .dashboard-menu .user {
  background: linear-gradient(135deg, rgba(42, 255, 198, 0.08), rgba(77, 232, 255, 0.03)) !important;
  border-color: rgba(42, 255, 198, 0.14) !important;
}

/* Panels: hairline highlight on the top edge */
body.dashboard-shell:not([data-theme="light"]) .panel,
body.dashboard-shell:not([data-theme="light"]) .dashboard-item,
body.dashboard-shell:not([data-theme="light"]) .mini-stat,
body.dashboard-shell:not([data-theme="light"]) .ip-card,
body.dashboard-shell:not([data-theme="light"]) .ip-form {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 10px rgba(0, 0, 0, 0.22) !important;
}
body.dashboard-shell .mini-stat { transition: transform 0.2s ease, border-color 0.2s ease; }
body.dashboard-shell .mini-stat:hover { transform: translateY(-2px); }

/* Chart: shimmer placeholder until the canvas draws */
body.dashboard-shell #dashChart:empty {
  min-height: 300px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 200% 100%;
  animation: dashShimmer 1.4s linear infinite;
}
@keyframes dashShimmer { to { background-position: -200% 0; } }

/* Transactions: lift + coloured edge on hover */
body.dashboard-shell .dash-trx {
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
body.dashboard-shell .dash-trx:hover { transform: translateX(3px); }
body.dashboard-shell .dash-trx.is-in:hover { border-color: rgba(0, 230, 118, 0.2); }
body.dashboard-shell .dash-trx.is-out:hover { border-color: rgba(255, 93, 115, 0.2); }

/* Wallet cards → payment-card look (Revolut / Exodus) */
body.dashboard-shell .wlt-card {
  min-height: 250px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, 0.22), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(42, 255, 198, 0.14), transparent 60%),
    linear-gradient(145deg, #141a26 0%, #0c1018 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
body.dashboard-shell .wlt-card::after { /* guilloche rings */
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
body.dashboard-shell .wlt-card > * { position: relative; z-index: 1; }
body.dashboard-shell .wlt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 147, 26, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 26px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(247, 147, 26, 0.15);
}
body.dashboard-shell .wlt-card .wlt-bal-num {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
body.dashboard-shell .wlt-card .wlt-card-badge img { filter: drop-shadow(0 4px 10px rgba(247, 147, 26, 0.5)); }
body.dashboard-shell .wlt-card .wlt-addr-row { background: rgba(0, 0, 0, 0.28); border-color: rgba(255, 255, 255, 0.06); }
body.dashboard-shell[data-theme="light"] .wlt-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, 0.18), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(13, 148, 136, 0.12), transparent 60%),
    #ffffff;
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}
body.dashboard-shell[data-theme="light"] .wlt-card::after { background: repeating-radial-gradient(circle, rgba(17, 24, 39, 0.05) 0 1px, transparent 1px 14px); }
body.dashboard-shell[data-theme="light"] .wlt-card .wlt-addr-row { background: rgba(17, 24, 39, 0.04); }

/* Status pills with a dot */
body.dashboard-shell .badge.badge--warning,
body.dashboard-shell .badge.badge--success,
body.dashboard-shell .badge.badge--danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.dashboard-shell .badge.badge--warning::before,
body.dashboard-shell .badge.badge--success::before,
body.dashboard-shell .badge.badge--danger::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
body.dashboard-shell .badge.badge--warning::before { animation: pillPulse 1.6s ease-in-out infinite; }
@keyframes pillPulse { 50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25); } }

body.dashboard-shell[data-theme="light"] .badge.badge--warning:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-primary) { color: #b45309 !important; background: rgba(245, 158, 11, 0.14) !important; }
body.dashboard-shell[data-theme="light"] .badge.badge--success:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-primary) { color: #047857 !important; background: rgba(16, 185, 129, 0.14) !important; }
body.dashboard-shell[data-theme="light"] .badge.badge--danger:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-primary) { color: #b91c1c !important; background: rgba(239, 68, 68, 0.12) !important; }

/* Inputs: wallet-style focus ring */
body.dashboard-shell .form--control:focus,
body.dashboard-shell .form-control:focus,
body.auth-shell .form--control:focus,
body.auth-shell .form-control:focus {
  border-color: rgba(42, 255, 198, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(42, 255, 198, 0.12) !important;
}
body.frontend-shell .form--control:focus,
body.frontend-shell .form-control:focus {
  border-color: rgba(192, 132, 252, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15) !important;
}

/* Modals: rounded glass sheets (Phantom) */
body.dashboard-shell:not([data-theme="light"]) .modal-content {
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, #121823, #0b0f16) !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
}
body.dashboard-shell[data-theme="light"] .modal-content { border-radius: 24px !important; overflow: hidden; }
body.dashboard-shell .modal-header { border-bottom-color: rgba(255, 255, 255, 0.06) !important; padding: 18px 22px; }
body.dashboard-shell .modal-footer { border-top-color: rgba(255, 255, 255, 0.06) !important; }
body.dashboard-shell .modal.fade .modal-dialog { transform: translateY(24px) scale(0.98); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
body.dashboard-shell .modal.show .modal-dialog { transform: none; }

/* Toasts (iziToast): match the app */
.iziToast {
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
}
.iziToast > .iziToast-body .iziToast-title { font-weight: 700 !important; }

/* Mobile bottom tab bar */
.dash-tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  padding: 0 6px;
  border-radius: 22px;
  background: rgba(14, 18, 27, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.dash-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(240, 244, 255, 0.5);
  transition: color 0.2s ease;
}
.dash-tabbar a i { font-size: 1.35rem; transition: transform 0.2s ease; }
.dash-tabbar a.is-active { color: #2affc6; }
.dash-tabbar a:active i { transform: scale(0.9); }
.dash-tabbar .dash-tabbar__send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -26px;
  border-radius: 50%;
  color: #07111f !important;
  background: linear-gradient(135deg, #2affc6, #4de8ff);
  box-shadow: 0 10px 26px rgba(42, 255, 198, 0.45), 0 0 0 6px #05070b;
}
.dash-tabbar .dash-tabbar__send i { font-size: 1.5rem; }
@media (max-width: 1199px) {
  body.dashboard-shell .dashboard-main { padding-bottom: 110px !important; }
  body.dashboard-shell .scrollToTop { bottom: 96px !important; }
}
body.dashboard-shell[data-theme="light"] .dash-tabbar { background: rgba(255, 255, 255, 0.9); border-color: rgba(17, 24, 39, 0.08); box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12); }
body.dashboard-shell[data-theme="light"] .dash-tabbar a { color: #6b7280; }
body.dashboard-shell[data-theme="light"] .dash-tabbar a.is-active { color: #0d9488; }
body.dashboard-shell[data-theme="light"] .dash-tabbar .dash-tabbar__send { box-shadow: 0 10px 26px rgba(13, 148, 136, 0.35), 0 0 0 6px #f8fafc; }

@media (prefers-reduced-motion: reduce) {
  body.frontend-shell .cmn--btn::after, body.dashboard-shell .cmn--btn::after, body.auth-shell .cmn--btn::after { display: none; }
  body.dashboard-shell #dashChart:empty, body.dashboard-shell .badge.badge--warning::before { animation: none; }
  body.dashboard-shell .wlt-card:hover, body.dashboard-shell .dash-trx:hover, body.dashboard-shell .mini-stat:hover, body.dashboard-shell .dash-action:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   BENTO GRID (home) — Phantom / Rainbow style feature tiles
═══════════════════════════════════════════════════════════════ */
body.frontend-shell .bento-section { padding: 88px 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 16px;
  margin-top: 36px;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(168, 85, 247, 0.14), transparent 60%),
    rgba(20, 11, 40, 0.72);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.bento-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 24px 50px rgba(10, 4, 24, 0.5);
}
.bento-tile h3 { margin: 0 0 4px; font-size: 1.08rem; }
.bento-tile p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; max-width: 300px; }
.bento-copy { position: relative; z-index: 2; }
.bento-art { position: relative; z-index: 1; }

.bento-tile--qr { grid-column: span 2; grid-row: span 2; }
.bento-tile--2fa { grid-column: span 2; }
.bento-tile--fee, .bento-tile--usd { grid-column: span 1; }
.bento-tile--wallets { grid-column: span 2; }
.bento-tile--help { grid-column: span 2; }

/* QR tile */
.bento-tile--qr { background: radial-gradient(90% 70% at 50% 100%, rgba(247, 147, 26, 0.16), transparent 70%), radial-gradient(120% 80% at 100% 0%, rgba(168, 85, 247, 0.18), transparent 60%), rgba(20, 11, 40, 0.8); }
.bento-qr { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 6px; }
.bento-qr__code {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  width: 210px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.06);
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.bento-tile--qr:hover .bento-qr__code { transform: rotate(0deg) scale(1.03); }
.bento-qr__code i { aspect-ratio: 1; border-radius: 3px; background: #ede9fe; }
.bento-qr__code i.on { background: #1e1036; }
.bento-qr__coin {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center; border-radius: 12px; font-size: 1.7rem; color: #fff;
  background: #f7931a; box-shadow: 0 0 0 5px #fff; font-weight: 800; font-family: Inter, Arial, sans-serif;
}
.bento-qr__addr { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-family: ui-monospace, "Courier New", monospace; font-size: 0.86rem; }
.bento-qr__addr span { padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); color: rgba(245, 240, 255, 0.85); }
.bento-qr__addr span:first-child, .bento-qr__addr span:last-child { color: #fdba74; background: rgba(247, 147, 26, 0.12); }

/* 2FA tile */
.bento-tile--2fa { flex-direction: row; align-items: center; gap: 20px; }
.bento-tile--2fa .bento-copy { flex: 1; }
.bento-code { display: grid; grid-template-columns: repeat(6, 38px); gap: 7px; }
.bento-code i {
  display: grid; place-items: center; height: 50px; border-radius: 12px; font-style: normal; font-weight: 800; font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  animation: codeIn 6s ease-in-out infinite;
}
.bento-code i:nth-child(2) { animation-delay: .1s; } .bento-code i:nth-child(3) { animation-delay: .2s; }
.bento-code i:nth-child(4) { animation-delay: .3s; } .bento-code i:nth-child(5) { animation-delay: .4s; } .bento-code i:nth-child(6) { animation-delay: .5s; }
@keyframes codeIn {
  0%, 6% { color: transparent; border-color: rgba(255, 255, 255, 0.1); }
  12%, 90% { color: #f5f0ff; border-color: rgba(42, 255, 198, 0.45); }
  100% { color: transparent; border-color: rgba(255, 255, 255, 0.1); }
}
.bento-code__timer {
  grid-column: 1 / -1; height: 4px; border-radius: 4px; margin-top: 4px;
  background: linear-gradient(90deg, #2affc6, #60a5fa); transform-origin: left; animation: codeTimer 6s linear infinite;
}
@keyframes codeTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* receipt tile */
.bento-receipt {
  display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.14);
}
.bento-receipt div { display: flex; justify-content: space-between; color: var(--text-muted); }
.bento-receipt b { color: #f5f0ff; font-variant-numeric: tabular-nums; }
.bento-receipt .is-total { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bento-receipt .is-total b { color: #2affc6; }

/* USD tile */
.bento-usd strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bento-usd small { color: var(--text-muted); font-size: 0.78rem; }
.bento-usd svg { display: block; max-width: none; width: calc(100% + 48px); height: 56px; margin: 8px -24px -24px; }

/* stacked wallet cards */
.bento-tile--wallets { flex-direction: row; align-items: center; gap: 20px; }
.bento-tile--wallets .bento-copy { flex: 1; }
.bento-stack { position: relative; width: 230px; height: 150px; flex: none; }
.bento-card {
  position: absolute; left: 0; right: 0; height: 120px; padding: 16px; border-radius: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.bento-card span { font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.bento-card b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.bento-card--1 { top: 30px; z-index: 3; background: radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, 0.5), transparent 60%), linear-gradient(140deg, #3b1d6e, #1a0f35); }
.bento-card--2 { top: 14px; z-index: 2; transform: scale(0.94); background: linear-gradient(140deg, #0f4c4a, #0b2530); }
.bento-card--3 { top: 0; z-index: 1; transform: scale(0.88); background: linear-gradient(140deg, #2a1f4a, #15102a); opacity: 0.8; }
.bento-tile--wallets:hover .bento-card--1 { transform: translateY(10px) rotate(-3deg); }
.bento-tile--wallets:hover .bento-card--2 { transform: scale(0.94) translateY(-10px) rotate(3deg); }
.bento-tile--wallets:hover .bento-card--3 { transform: scale(0.88) translateY(-20px) rotate(6deg); }

/* chat */
.bento-tile--help { flex-direction: row; align-items: center; gap: 20px; }
.bento-tile--help .bento-copy { flex: 1; }
.bento-chat { display: flex; flex-direction: column; gap: 8px; width: 260px; flex: none; }
.bubble {
  max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 16px 5px; font-size: 0.8rem; line-height: 1.4;
  background: rgba(255, 255, 255, 0.07); color: rgba(245, 240, 255, 0.9);
}
.bubble.is-me { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.bubble.is-typing { display: inline-flex; gap: 4px; padding: 11px 13px; width: max-content; }
.bubble.is-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 240, 255, 0.6); animation: typing 1.2s ease-in-out infinite; }
.bubble.is-typing i:nth-child(2) { animation-delay: .15s; } .bubble.is-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 1199px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bento-tile { min-height: 220px; }
  .bento-tile--qr { grid-column: span 2; grid-row: span 1; flex-direction: row; align-items: center; gap: 24px; }
  .bento-tile--qr .bento-copy { flex: 1; }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile, .bento-tile--qr, .bento-tile--2fa, .bento-tile--wallets, .bento-tile--help { grid-column: auto; flex-direction: column; align-items: stretch; gap: 18px; }
  .bento-code { grid-template-columns: repeat(6, 1fr); }
  .bento-stack, .bento-chat { width: 100%; }
  .bento-qr__code { width: 190px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════════ */
body.frontend-shell .hiw-intro { padding: 72px 0 24px; }
.hiw-intro__copy { text-align: center; margin: 0 auto; }
.hiw-intro__copy p { margin-left: auto; margin-right: auto; }
.hiw-progress {
  list-style: none; margin: 36px auto 0; padding: 6px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  width: max-content; max-width: 100%; border-radius: 999px; background: rgba(24, 15, 46, 0.7); border: 1px solid rgba(168, 85, 247, 0.18);
}
.hiw-progress li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: rgba(245, 240, 255, 0.8); }
.hiw-progress span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.75rem; font-weight: 800; color: #1a0b38; background: linear-gradient(135deg, #c084fc, #60a5fa); }

body.frontend-shell .hiw-steps { position: relative; padding: 40px 0 72px; }
.hiw-steps .container { position: relative; }
.hiw-line { position: absolute; left: 50%; top: 40px; bottom: 40px; width: 2px; margin-left: -1px; background: rgba(168, 85, 247, 0.15); border-radius: 2px; }
.hiw-line__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, #c084fc, #60a5fa, #2affc6); border-radius: 2px; box-shadow: 0 0 16px rgba(168, 85, 247, 0.6); }
.hiw-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  padding: 48px 0;
}
.hiw-step::before { /* node on the line */
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #1a0f35; border: 2px solid rgba(168, 85, 247, 0.4); transition: all 0.4s ease; z-index: 1;
}
.hiw-step.is-reached::before { background: #c084fc; border-color: #fff; box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.25), 0 0 24px rgba(192, 132, 252, 0.8); }
.hiw-step--flip .hiw-step__copy { order: 2; }
.hiw-num {
  display: inline-block; font-size: 3.6rem; font-weight: 800; letter-spacing: -0.06em; line-height: 1;
  background: linear-gradient(135deg, #c084fc, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.hiw-step h3 { margin: 10px 0 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.hiw-step p { color: var(--text-muted); line-height: 1.7; max-width: 480px; }
.hiw-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hiw-ticks li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; color: rgba(245, 240, 255, 0.85); }
.hiw-ticks i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; color: #4ade80; background: rgba(74, 222, 128, 0.12); flex: none; }
.hiw-step__visual { display: flex; justify-content: center; perspective: 1400px; }
.phone.phone--static {
  position: relative; left: auto; right: auto; top: auto;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(3deg);
  animation: phoneFloatA 7s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.hiw-step--flip .phone.phone--static { transform: rotateY(14deg) rotateX(6deg) rotateZ(-3deg); }
.hiw-step:hover .phone.phone--static { transform: none; }
.hiw-step__visual::before { /* glow pad under each phone */
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.35), transparent); filter: blur(20px); z-index: -1;
}
.hiw-step__visual { position: relative; }
.ph-hero-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; }
.ph-check { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: 10px; color: rgba(240, 244, 255, 0.75); }
.ph-check i { color: #2affc6; font-size: 14px; }
.ph-chip-off { padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
.ph-qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 120px; margin: 10px auto 8px; padding: 10px; border-radius: 14px; background: #fff; }
.ph-qr i { aspect-ratio: 1; border-radius: 2px; background: #e5e7eb; }
.ph-qr i.on { background: #0a0e15; }
.ph-qr--lg { width: 140px; }
.ph-wallet-card { padding: 12px; border-radius: 16px; margin-bottom: 6px; background: radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, 0.35), transparent 60%), linear-gradient(140deg, #16202c, #0b1017); border: 1px solid rgba(255, 255, 255, 0.1); }
.ph-wallet-card > div { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.ph-wallet-card strong { display: block; margin-top: 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.ph-wallet-card strong span { font-size: 9px; color: #2affc6; }
.ph-wallet-card small { color: rgba(240, 244, 255, 0.55); font-size: 9.5px; }

@media (max-width: 991px) {
  .hiw-line { left: 22px; }
  .hiw-step { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 36px 52px; }
  .hiw-step::before { left: 22px; top: 52px; }
  .hiw-step--flip .hiw-step__copy { order: 0; }
  .phone.phone--static, .hiw-step--flip .phone.phone--static { transform: none; }
}
@media (max-width: 575px) {
  .hiw-step { padding-left: 40px; }
  .hiw-line, .hiw-step::before { left: 12px; }
  .hiw-step__visual .phone { width: 230px; height: 470px; }
  .hiw-progress li { padding-right: 10px; font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SECURITY
═══════════════════════════════════════════════════════════════ */
body.frontend-shell .sec-layers,
body.frontend-shell .sec-split,
body.frontend-shell .sec-phish,
body.frontend-shell .sec-compare { padding: 80px 0; }
.sec-layers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sec-legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.sec-legend li { position: relative; padding: 12px 16px 12px 44px; border-radius: 14px; background: rgba(24, 15, 46, 0.55); border: 1px solid rgba(168, 85, 247, 0.14); }
.sec-legend li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 3px solid var(--c); box-shadow: 0 0 12px var(--c); }
.sec-legend b { display: block; font-size: 0.98rem; }
.sec-legend span { color: var(--text-muted); font-size: 0.88rem; }

.sec-rings { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.sec-ring {
  position: absolute; border-radius: 50%; border: 2px solid var(--rc); display: flex; justify-content: center;
  box-shadow: 0 0 30px color-mix(in srgb, var(--rc) 35%, transparent), inset 0 0 30px color-mix(in srgb, var(--rc) 18%, transparent);
  animation: ringSpin var(--spd) linear infinite;
}
.sec-ring span {
  position: absolute; top: -13px; padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap;
  color: #fff; background: #1a0f35; border: 1px solid var(--rc);
  animation: ringSpin var(--spd) linear infinite reverse;
}
.sec-ring--1 { inset: 0; --rc: #c084fc; --spd: 60s; }
.sec-ring--2 { inset: 15%; --rc: #60a5fa; --spd: 45s; animation-direction: reverse; }
.sec-ring--2 span { animation-direction: normal; }
.sec-ring--3 { inset: 30%; --rc: #2affc6; --spd: 34s; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.sec-core {
  position: absolute; inset: 41%; display: grid; place-items: center; border-radius: 50%; font-size: clamp(2.4rem, 6vw, 3.4rem); color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffc266, #f7931a 55%, #b35f00);
  box-shadow: 0 0 0 8px rgba(247, 147, 26, 0.15), 0 0 60px rgba(247, 147, 26, 0.55);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse { 50% { box-shadow: 0 0 0 14px rgba(247, 147, 26, 0.08), 0 0 80px rgba(247, 147, 26, 0.7); } }
/* orbiting dots: a full-size rotating layer with one dot on its rim */
.sec-orbit { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.sec-orbit::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; }
.sec-orbit--a { animation: ringSpin 9s linear infinite; }
.sec-orbit--a::after { top: -5px; background: #fff; box-shadow: 0 0 14px #fff; }
.sec-orbit--b { inset: 15%; animation: ringSpin 6s linear infinite reverse; }
.sec-orbit--b::after { top: -5px; background: #2affc6; box-shadow: 0 0 14px #2affc6; }

.sec-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.sec-col { padding: 28px; border-radius: 26px; background: rgba(24, 15, 46, 0.65); border: 1px solid rgba(168, 85, 247, 0.18); }
.sec-col--you { background: radial-gradient(100% 80% at 100% 0%, rgba(42, 255, 198, 0.10), transparent 60%), rgba(24, 15, 46, 0.65); border-color: rgba(42, 255, 198, 0.2); }
.sec-col__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-col__head h3 { margin: 0; font-size: 1.2rem; }
.sec-col__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.4rem; color: #d8b4fe; background: rgba(168, 85, 247, 0.16); }
.sec-col--you .sec-col__ico { color: #2affc6; background: rgba(42, 255, 198, 0.12); }
.sec-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sec-col li { display: flex; gap: 12px; align-items: flex-start; }
.sec-col li > i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 1.05rem; color: rgba(245, 240, 255, 0.85); background: rgba(255, 255, 255, 0.05); }
.sec-col b { display: block; font-size: 0.96rem; }
.sec-col li span { color: var(--text-muted); font-size: 0.88rem; }

.sec-phish__card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 30px;
  background: radial-gradient(70% 90% at 100% 50%, rgba(248, 113, 113, 0.12), transparent 70%), rgba(24, 15, 46, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.18);
}
.sec-browser { display: grid; gap: 12px; }
.sec-browser__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #0d0a1c; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.sec-browser .dots { display: inline-flex; gap: 5px; }
.sec-browser .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.sec-url { flex: 1; min-width: 0; display: block; text-overflow: ellipsis; padding: 7px 12px; border-radius: 999px; font-size: 0.84rem; font-family: ui-monospace, "Courier New", monospace; background: rgba(255, 255, 255, 0.05); color: rgba(245, 240, 255, 0.6); overflow: hidden; white-space: nowrap; }
.sec-url b { color: #fff; font-weight: 700; }
.sec-url.is-good { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.45); }
.sec-url i { margin-right: 6px; vertical-align: -1px; }
.sec-url.is-good i { color: #4ade80; }
.sec-url.is-bad { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.45); text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, 0.7); }
.sec-url.is-bad i { color: #f87171; }
.sec-browser__labels { display: flex; gap: 16px; font-size: 0.84rem; font-weight: 700; }
.sec-browser__labels .ok { color: #4ade80; } .sec-browser__labels .bad { color: #f87171; }

.sec-compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.sec-card { position: relative; padding: 30px; border-radius: 26px; background: rgba(24, 15, 46, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); }
.sec-card.is-us { border-color: rgba(192, 132, 252, 0.4); box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.15), 0 24px 50px rgba(10, 4, 24, 0.4); background: radial-gradient(100% 70% at 0% 0%, rgba(168, 85, 247, 0.2), transparent 60%), rgba(24, 15, 46, 0.7); }
.sec-card__tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #d8b4fe; background: rgba(168, 85, 247, 0.14); }
.sec-card h3 { margin: 12px 0 16px; font-size: 1.4rem; }
.sec-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sec-card li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.sec-card li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; flex: none; }
.sec-card li.yes i { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.sec-card li.no { color: rgba(245, 240, 255, 0.65); }
.sec-card li.no i { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.sec-compare__note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.sec-compare__note i { color: #c084fc; font-size: 1.2rem; }

@media (max-width: 991px) {
  .sec-layers__grid, .sec-split__grid, .sec-phish__card, .sec-compare__grid { grid-template-columns: 1fr; }
  .sec-rings { width: min(100%, 360px); }
}
@media (prefers-reduced-motion: reduce) {
  .sec-ring, .sec-ring span, .sec-core, .sec-orbit, .bento-code i, .bento-code__timer, .bubble.is-typing i, .phone.phone--static { animation: none !important; }
  .bento-code i { color: #f5f0ff; }
}

/* light theme for new public sections */
body.frontend-shell[data-theme="light"] .bento-tile,
body.frontend-shell[data-theme="light"] .sec-legend li,
body.frontend-shell[data-theme="light"] .sec-col,
body.frontend-shell[data-theme="light"] .sec-card,
body.frontend-shell[data-theme="light"] .sec-phish__card,
body.frontend-shell[data-theme="light"] .hiw-progress {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
body.frontend-shell[data-theme="light"] .sec-card.is-us { border-color: rgba(124, 58, 237, 0.35); }
body.frontend-shell[data-theme="light"] .bento-receipt,
body.frontend-shell[data-theme="light"] .bento-code i { background: #f5f3ff; border-color: rgba(124, 58, 237, 0.16); }
body.frontend-shell[data-theme="light"] .bento-receipt b,
body.frontend-shell[data-theme="light"] .hiw-ticks li,
body.frontend-shell[data-theme="light"] .hiw-progress li { color: #1f2937; }
body.frontend-shell[data-theme="light"] .bubble { background: #f3f4f6; color: #1f2937; }
body.frontend-shell[data-theme="light"] .bubble.is-me { color: #fff; }
body.frontend-shell[data-theme="light"] .bento-qr__addr span { background: #f3f4f6; color: #374151; }
body.frontend-shell[data-theme="light"] .sec-ring span { background: #fff; color: #1f2937; }
body.frontend-shell[data-theme="light"] .sec-browser__bar { background: #f8fafc; border-color: rgba(17, 24, 39, 0.08); box-shadow: none; }
body.frontend-shell[data-theme="light"] .sec-url { color: #6b7280; background: #fff; }
body.frontend-shell[data-theme="light"] .sec-url b { color: #111827; }
body.frontend-shell[data-theme="light"] .sec-col li > i { background: #f3f4f6; color: #374151; }
body.frontend-shell[data-theme="light"] .sec-card li.no { color: #6b7280; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD: wallet allocation (Exodus portfolio style)
═══════════════════════════════════════════════════════════════ */
body.dashboard-shell .alloc-panel { padding: 20px; margin: 0 0 18px; }
.alloc-total { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.alloc-total small { font-size: 0.7rem; color: var(--text-muted); }
.alloc-bar { display: flex; gap: 4px; height: 14px; margin: 16px 0 18px; }
.alloc-bar span {
  flex: 0 0 var(--w); min-width: 6px; border-radius: 6px; background: var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent);
  transform-origin: left; animation: allocGrow 1s cubic-bezier(.2,.8,.2,1) both;
}
.alloc-bar span:nth-child(2) { animation-delay: .12s; } .alloc-bar span:nth-child(3) { animation-delay: .24s; } .alloc-bar span:nth-child(4) { animation-delay: .36s; }
@keyframes allocGrow { from { transform: scaleX(0); } }
.alloc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.alloc-legend li {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto 56px; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; font-size: 0.88rem; transition: background 0.2s ease;
}
.alloc-legend li:hover { background: rgba(255, 255, 255, 0.035); }
.alloc-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.alloc-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-amt { font-variant-numeric: tabular-nums; }
.alloc-usd { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.alloc-pct { text-align: right; color: var(--c); font-variant-numeric: tabular-nums; }
@media (max-width: 575px) {
  .alloc-legend li { grid-template-columns: 12px minmax(0, 1fr) 52px; row-gap: 2px; }
  .alloc-amt { grid-column: 2; grid-row: 2; font-size: 0.8rem; color: var(--text-muted); }
  .alloc-usd { display: none; }
  .alloc-pct { grid-column: 3; grid-row: 1; }
}
body.dashboard-shell[data-theme="light"] .alloc-legend li:hover { background: rgba(17, 24, 39, 0.03); }
@media (prefers-reduced-motion: reduce) { .alloc-bar span { animation: none; } }

/* fixes: centred intro heading; grid children may shrink below content width */
.hiw-intro__copy h2 { margin-left: auto; margin-right: auto; text-align: center; }
.sec-layers__grid > *, .sec-split__grid > *, .sec-phish__card > *, .sec-compare__grid > *, .hiw-step > * { min-width: 0; }
.sec-browser > * { min-width: 0; }
body.frontend-shell .sec-layers { overflow: hidden; }

/* Header with 6 links: compact between tablet and wide desktop */
body.frontend-shell .main-nav .menu a,
body.frontend-shell .header-auth-btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) {
  body.frontend-shell .site-header .brand-copy small { display: none; }
  body.frontend-shell .main-nav .menu { gap: 2px; }
  body.frontend-shell .main-nav .menu a { padding: 8px 10px; font-size: 0.9rem; }
  body.frontend-shell .main-nav .menu > li:first-child { display: none; }
  body.frontend-shell .header-actions { gap: 8px; }
  body.frontend-shell .header-actions .langSel { max-width: 104px; }
  body.frontend-shell .header-auth-btn { padding-left: 14px; padding-right: 14px; }
}

/* ═══════════════ FOOTER: 4 columns ═══════════════ */
body.frontend-shell .footer-wrapper { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 991px) { body.frontend-shell .footer-wrapper { grid-template-columns: 1fr 1fr; } body.frontend-shell .footer-wrapper > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { body.frontend-shell .footer-wrapper { grid-template-columns: 1fr; } }

/* ═══════════════ FEES ═══════════════ */
body.frontend-shell .fee-hero, body.frontend-shell .fee-calc-section, body.frontend-shell .fee-table-section { padding: 72px 0; }
body.frontend-shell .fee-calc-section { padding-top: 0; }
.fee-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.fee-formula { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.fee-formula__part {
  min-width: 130px; padding: 20px 18px; text-align: center; border-radius: 20px;
  background: rgba(24, 15, 46, 0.7); border: 1px solid rgba(168, 85, 247, 0.2);
}
.fee-formula__part small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.fee-formula__part strong { display: block; margin: 8px 0 4px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fee-formula__part span { font-size: 0.8rem; color: var(--text-muted); }
.fee-formula__part.is-result { background: radial-gradient(100% 100% at 50% 0%, rgba(42, 255, 198, 0.18), transparent 70%), rgba(24, 15, 46, 0.8); border-color: rgba(42, 255, 198, 0.35); }
.fee-formula__part.is-result strong { color: #2affc6; font-size: 1.9rem; }
.fee-formula__op { font-size: 1.8rem; font-weight: 300; color: #c084fc; }

.fee-calc {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; border-radius: 30px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: radial-gradient(80% 120% at 0% 0%, rgba(168, 85, 247, 0.22), transparent 60%), rgba(20, 11, 40, 0.8);
  box-shadow: 0 30px 70px rgba(10, 4, 24, 0.45);
}
.fee-calc__input { padding: clamp(28px, 4vw, 48px); }
.fee-calc__input label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.fee-calc__amount { margin-top: 10px; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fee-calc__amount small { font-size: 1rem; color: #c084fc; letter-spacing: 0; }
.fee-calc__usd { margin: 8px 0 28px; color: var(--text-muted); }
.fee-calc input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; outline: none;
  background: linear-gradient(90deg, #a855f7, #60a5fa var(--p), rgba(255, 255, 255, 0.1) var(--p));
}
.fee-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; cursor: grab;
  background: #fff; border: 6px solid #a855f7; box-shadow: 0 6px 18px rgba(168, 85, 247, 0.6);
}
.fee-calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid #a855f7; }
.fee-calc input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.35); }
.fee-calc__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); }
.fee-calc__receipt {
  position: relative; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: rgba(10, 6, 22, 0.55); border-left: 1px dashed rgba(255, 255, 255, 0.12);
}
.fee-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 0.95rem; color: var(--text-muted); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.fee-row b { color: #f5f0ff; font-variant-numeric: tabular-nums; }
.fee-row.is-total { border-bottom: 0; padding-top: 14px; font-size: 1.05rem; }
.fee-row.is-total b { color: #2affc6; }
.fee-meter { height: 8px; margin-top: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fee-meter span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #fbbf24, #f97316); transition: width 0.25s ease; }
.fee-meter__label { margin-top: 6px; color: var(--text-muted); font-size: 0.8rem; }

.fee-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.fee-card { padding: 24px; border-radius: 22px; background: rgba(24, 15, 46, 0.65); border: 1px solid rgba(168, 85, 247, 0.16); transition: transform 0.3s ease, border-color 0.3s ease; }
.fee-card:hover { transform: translateY(-4px); border-color: rgba(192, 132, 252, 0.4); }
.fee-card small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.fee-card > strong { display: block; margin-top: 6px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fee-card > strong span { font-size: 0.85rem; color: #c084fc; }
.fee-card em { font-style: normal; color: var(--text-muted); font-size: 0.86rem; }
.fee-card__rows { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.12); font-size: 0.86rem; }
.fee-card__rows div { display: flex; justify-content: space-between; color: var(--text-muted); }
.fee-card__rows b { color: #f5f0ff; font-variant-numeric: tabular-nums; }
.fee-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; color: var(--text-muted); font-size: 0.92rem; }
.fee-note i { color: #c084fc; font-size: 1.2rem; }
@media (max-width: 991px) {
  .fee-hero__grid, .fee-calc { grid-template-columns: 1fr; }
  .fee-calc__receipt { border-left: 0; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
  .fee-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .fee-cards { grid-template-columns: 1fr; }
  .fee-formula__part { min-width: 0; flex: 1 1 100px; }
  .fee-formula__op { display: none; }
}

/* ═══════════════ LEARN ═══════════════ */
body.frontend-shell .learn-intro { padding: 72px 0 24px; }
body.frontend-shell .learn-block { padding: 72px 0; scroll-margin-top: 90px; }
.learn-intro__copy { text-align: center; margin: 0 auto; }
.learn-intro__copy h2, .learn-intro__copy p { margin-left: auto; margin-right: auto; }
.learn-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.learn-toc a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  background: rgba(24, 15, 46, 0.7); border: 1px solid rgba(168, 85, 247, 0.18); transition: border-color 0.2s ease, transform 0.2s ease;
}
.learn-toc a:hover { border-color: rgba(192, 132, 252, 0.6); transform: translateY(-2px); color: #fff; }
.learn-toc span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.74rem; font-weight: 800; color: #1a0b38; background: linear-gradient(135deg, #c084fc, #60a5fa); }
.learn-num {
  display: block; font-size: 1rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 8px;
  background: linear-gradient(135deg, #c084fc, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.learn-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.learn-split--flip > .cb-open-copy { order: 2; }
.learn-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25); color: #fde68a; font-size: 0.94rem; }
.learn-tip i { font-size: 1.3rem; }

.addr-anatomy { padding: 28px; border-radius: 24px; background: rgba(10, 6, 22, 0.7); border: 1px solid rgba(168, 85, 247, 0.2); }
.addr-anatomy__string { font-family: ui-monospace, "Courier New", monospace; font-size: clamp(0.82rem, 1.6vw, 1.05rem); word-break: break-all; line-height: 2; }
.seg { padding: 4px 2px; border-radius: 6px; }
.seg--prefix { color: #c084fc; background: rgba(168, 85, 247, 0.16); box-shadow: inset 0 -2px 0 #c084fc; }
.seg--body { color: rgba(245, 240, 255, 0.85); }
.seg--check { color: #2affc6; background: rgba(42, 255, 198, 0.12); box-shadow: inset 0 -2px 0 #2affc6; }
.addr-anatomy__labels { display: grid; gap: 8px; margin-top: 18px; font-size: 0.86rem; color: var(--text-muted); }
.lbl { display: flex; align-items: center; gap: 8px; }
.lbl i { width: 12px; height: 12px; border-radius: 4px; }
.lbl--prefix i { background: #c084fc; } .lbl--body i { background: rgba(245, 240, 255, 0.4); } .lbl--check i { background: #2affc6; }

.addr-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.addr-type { padding: 20px; border-radius: 20px; background: rgba(24, 15, 46, 0.6); border: 1px solid rgba(168, 85, 247, 0.14); }
.addr-type code { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 0.95rem; color: #fdba74; background: rgba(247, 147, 26, 0.12); }
.addr-type h3 { margin: 12px 0 4px; font-size: 1.02rem; }
.addr-type p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

.units { display: grid; gap: 12px; padding: 26px; border-radius: 24px; background: rgba(10, 6, 22, 0.6); border: 1px solid rgba(168, 85, 247, 0.18); }
.unit { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.unit b, .unit span { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.unit span { color: var(--text-muted); font-size: 0.9rem; }
.unit i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, rgba(247, 147, 26, 0.35), rgba(247, 147, 26, 0.08)); border-right: 2px solid #f7931a; }
.units small { color: var(--text-muted); font-size: 0.76rem; }

.conf-chain { display: flex; align-items: center; gap: 0; margin-top: 36px; overflow-x: auto; padding: 10px 4px 18px; }
.conf-block {
  position: relative; flex: 0 0 150px; min-height: 140px; padding: 18px; border-radius: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(24, 15, 46, 0.75); border: 1px solid rgba(168, 85, 247, 0.25);
}
.conf-block small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.conf-block b { font-size: 1.6rem; font-weight: 800; }
.conf-block em { font-style: normal; font-size: 0.8rem; color: #c084fc; }
.conf-block--pending { border-style: dashed; background: rgba(24, 15, 46, 0.4); }
.conf-block.is-1 { border-color: rgba(96, 165, 250, 0.5); }
.conf-block.is-6 { border-color: rgba(42, 255, 198, 0.55); box-shadow: 0 0 30px rgba(42, 255, 198, 0.18); }
.conf-block.is-6 em { color: #2affc6; }
.conf-tx { position: absolute; top: 16px; right: 16px; width: 14px; height: 14px; border-radius: 4px; background: #f7931a; box-shadow: 0 0 14px rgba(247, 147, 26, 0.8); }
.conf-block--pending .conf-tx { animation: txHop 3s ease-in-out infinite; }
@keyframes txHop { 0%, 40% { transform: none; opacity: 1; } 60% { transform: translateX(80px); opacity: 0; } 61%, 100% { transform: none; opacity: 0; } }
.conf-block.is-1 .conf-tx { animation: txLand 3s ease-in-out infinite; }
@keyframes txLand { 0%, 55% { opacity: 0; transform: translateX(-30px); } 70%, 100% { opacity: 1; transform: none; } }
.conf-link { flex: 0 0 34px; height: 3px; background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), rgba(96, 165, 250, 0.6)); }

.final-card {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 30px;
  background: radial-gradient(70% 100% at 0% 50%, rgba(248, 113, 113, 0.14), transparent 70%), rgba(24, 15, 46, 0.7);
  border: 1px solid rgba(248, 113, 113, 0.22);
}
.final-card__icon { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; font-size: 4rem; color: rgba(245, 240, 255, 0.35); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.final-card__icon span { position: absolute; width: 120%; height: 6px; border-radius: 6px; background: #f87171; transform: rotate(-45deg); box-shadow: 0 0 20px rgba(248, 113, 113, 0.6); }
.final-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.final-list li { display: flex; align-items: center; gap: 10px; }
.final-list i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.8rem; color: #4ade80; background: rgba(74, 222, 128, 0.12); flex: none; }

.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 32px 0 0; }
.glossary > div { padding: 18px 20px; border-radius: 18px; background: rgba(24, 15, 46, 0.6); border: 1px solid rgba(168, 85, 247, 0.14); transition: border-color 0.2s ease; }
.glossary > div:hover { border-color: rgba(192, 132, 252, 0.45); }
.glossary dt { font-size: 1rem; margin-bottom: 4px; color: #e9d5ff; }
.glossary dd { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 991px) {
  .learn-split, .final-card { grid-template-columns: 1fr; }
  .learn-split--flip > .cb-open-copy { order: 0; }
  .addr-types, .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-card__icon { width: 110px; height: 110px; font-size: 3rem; }
}
@media (max-width: 480px) {
  .addr-types, .glossary { grid-template-columns: 1fr; }
}

/* ═══════════════ 404 ═══════════════ */
body.frontend-shell .nf-section { padding: 90px 0 110px; }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nf-art { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; }
.nf-digit {
  font-size: clamp(7rem, 16vw, 12rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em;
  background: linear-gradient(180deg, #f5f0ff 10%, #8b5cf6 120%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nf-coin {
  display: grid; place-items: center; width: clamp(6rem, 13vw, 9.5rem); height: clamp(6rem, 13vw, 9.5rem); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffc266, #f7931a 55%, #b35f00);
  box-shadow: inset 0 0 0 6px rgba(255, 236, 200, 0.45), 0 0 60px rgba(247, 147, 26, 0.5);
  animation: nfFlip 4s ease-in-out infinite;
}
.nf-coin span { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; color: #fff6e6; }
@keyframes nfFlip { 0%, 100% { transform: translateY(0) rotateY(0deg); } 50% { transform: translateY(-16px) rotateY(180deg); } }
.nf-shadow { position: absolute; bottom: 6px; left: 50%; width: 140px; height: 18px; margin-left: -70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); animation: nfShadow 4s ease-in-out infinite; }
@keyframes nfShadow { 50% { transform: scale(0.7); opacity: 0.6; } }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nf-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; background: rgba(24, 15, 46, 0.7); border: 1px solid rgba(168, 85, 247, 0.18); }
.nf-links a:hover { border-color: rgba(192, 132, 252, 0.6); color: #fff; }
@media (max-width: 991px) { .nf-grid { grid-template-columns: 1fr; text-align: center; } .nf-copy .hero-actions, .nf-links { justify-content: center; } .nf-copy p { margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .nf-coin, .nf-shadow, .conf-tx { animation: none !important; } }

/* light theme for these pages */
body.frontend-shell[data-theme="light"] .fee-formula__part,
body.frontend-shell[data-theme="light"] .fee-card,
body.frontend-shell[data-theme="light"] .addr-anatomy,
body.frontend-shell[data-theme="light"] .addr-type,
body.frontend-shell[data-theme="light"] .units,
body.frontend-shell[data-theme="light"] .conf-block,
body.frontend-shell[data-theme="light"] .final-card,
body.frontend-shell[data-theme="light"] .glossary > div,
body.frontend-shell[data-theme="light"] .learn-toc a,
body.frontend-shell[data-theme="light"] .nf-links a {
  background: #fff; border-color: rgba(17, 24, 39, 0.08); box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}
body.frontend-shell[data-theme="light"] .fee-calc { background: radial-gradient(80% 120% at 0% 0%, rgba(124, 58, 237, 0.10), transparent 60%), #fff; border-color: rgba(17, 24, 39, 0.08); box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08); }
body.frontend-shell[data-theme="light"] .fee-calc__receipt { background: #f8fafc; border-color: rgba(17, 24, 39, 0.1); }
body.frontend-shell[data-theme="light"] .fee-row b,
body.frontend-shell[data-theme="light"] .fee-card__rows b,
body.frontend-shell[data-theme="light"] .seg--body { color: #111827; }
body.frontend-shell[data-theme="light"] .glossary dt { color: #5b21b6; }
body.frontend-shell[data-theme="light"] .learn-tip { color: #92400e; }
body.frontend-shell[data-theme="light"] .unit { background: #f8fafc; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD MOTION (js/dash-motion.js)
═══════════════════════════════════════════════════════════════ */
@keyframes dmRise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
body.dashboard-shell .dm-enter {
  animation: dmRise 0.6s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--dm-i, 0) * 55ms);
}

/* wallet cards: 3D tilt + glare follows the pointer */
body.dashboard-shell .wlt-card,
body.dashboard-shell .wd-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
body.dashboard-shell .wlt-card.is-tilting,
body.dashboard-shell .wd-card.is-tilting { transition: transform 0.08s linear, box-shadow 0.3s ease, border-color 0.3s ease; }
body.dashboard-shell .wlt-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
body.dashboard-shell .wlt-card::before {
  /* reuse the existing top-line pseudo as a moving glare */
  top: 0; bottom: 0; height: auto; opacity: 0;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.14), transparent 60%) !important;
  transition: opacity 0.3s ease;
}
body.dashboard-shell .wlt-card.is-tilting::before { opacity: 1; }
.wlt-card-more {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; color: rgba(240, 244, 255, 0.75);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}
.wlt-card-more:hover { color: #07111f; background: #2affc6; }

/* ═══════════════ INSIGHTS ═══════════════ */
.ins-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ins-kpi {
  position: relative; padding: 20px; border-radius: 18px; overflow: hidden;
  background: #0e131b; border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ins-kpi small { display: block; margin-top: 14px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b98ab; }
.ins-kpi strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ins-kpi em { font-style: normal; margin-left: 4px; font-size: 0.72rem; color: var(--text-muted); }
.ins-kpi__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 1.15rem; color: #4de8ff; background: rgba(77, 232, 255, 0.1); flex: none; }
.ins-kpi__ico.is-in { color: var(--up); background: rgba(0, 230, 118, 0.12); }
.ins-kpi__ico.is-out { color: var(--down); background: rgba(255, 93, 115, 0.12); }
.ins-kpi__ico.is-fee { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }

.ins-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.ins-legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-muted); }
.ins-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ins-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.ins-legend .is-in::before { background: #2affc6; }
.ins-legend .is-out::before { background: #a78bfa; }
.ins-bars {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 260px; padding: 24px 24px 16px;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 25%);
  background-size: 100% calc(100% - 40px); background-repeat: no-repeat; background-position: 0 24px;
}
.ins-bar-group { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.ins-bar-group small { font-size: 0.74rem; color: var(--text-muted); }
.ins-bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.ins-bar {
  width: min(22px, 40%); height: max(var(--h), 3px); border-radius: 7px 7px 3px 3px;
  transform-origin: bottom; animation: barGrow 0.9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms);
  transition: filter 0.2s ease;
}
.ins-bar.is-in { background: linear-gradient(180deg, #2affc6, rgba(42, 255, 198, 0.35)); box-shadow: 0 0 18px rgba(42, 255, 198, 0.25); }
.ins-bar.is-out { background: linear-gradient(180deg, #a78bfa, rgba(167, 139, 250, 0.35)); box-shadow: 0 0 18px rgba(167, 139, 250, 0.22); }
.ins-bar:hover { filter: brightness(1.3); }
@keyframes barGrow { from { transform: scaleY(0); } }

.ins-donut-wrap { position: relative; width: 190px; margin: 22px auto 6px; }
.ins-donut { display: block; width: 100%; transform: rotate(-90deg); }
.ins-donut__track { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 16; }
.ins-donut__seg {
  fill: none; stroke-width: 16; stroke-linecap: butt;
  animation: donutDraw 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms);
  filter: drop-shadow(0 0 6px rgba(42, 255, 198, 0.25));
}
@keyframes donutDraw { from { stroke-dasharray: 0 400; } }
.ins-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ins-donut__center strong { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ins-donut__center small { font-size: 0.72rem; color: var(--text-muted); }
.ins-wallets { list-style: none; margin: 8px 0 0; padding: 8px 16px 16px; display: grid; gap: 2px; }
.ins-wallets a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 0.9rem; transition: background 0.2s ease; }
.ins-wallets a:hover { background: rgba(255, 255, 255, 0.04); }
.ins-wallets .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ins-wallets .name { flex: 1; font-weight: 600; }
.ins-wallets .pct { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ins-wallets i { color: var(--text-muted); }

.ins-top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.ins-top:last-child { border-bottom: 0; }
.ins-top__rank { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 0.78rem; font-weight: 800; color: #07111f; background: linear-gradient(135deg, #fbbf24, #f7931a); flex: none; }
.ins-top:nth-child(n+3) .ins-top__rank { background: rgba(255, 255, 255, 0.1); color: #f0f4ff; }
.ins-top__ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.ins-top__ico.is-in { color: var(--up); background: rgba(0, 230, 118, 0.12); }
.ins-top__ico.is-out { color: var(--down); background: rgba(255, 93, 115, 0.12); }
.ins-top__main { flex: 1; min-width: 0; }
.ins-top__main b { display: block; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-top__main small { color: var(--text-muted); font-size: 0.8rem; }
.ins-top strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 1199px) { .ins-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-grid { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
  .ins-bars { height: 200px; padding: 18px 12px 12px; gap: 6px; }
  .ins-top { padding: 12px 16px; flex-wrap: wrap; }
  .ins-top strong { width: 100%; padding-left: 76px; font-size: 0.88rem; }
}

/* ═══════════════ WALLET DETAIL ═══════════════ */
.wd-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.wd-back:hover { gap: 9px; color: var(--primary); }
.wd-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.wd-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  min-height: 250px; padding: 26px; border-radius: 26px; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, 0.35), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(42, 255, 198, 0.2), transparent 60%),
    linear-gradient(145deg, #182131 0%, #0b0f17 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.wd-card::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 16px);
}
.wd-card__glare {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
}
.wd-card.is-tilting .wd-card__glare { opacity: 1; }
.wd-card > * { position: relative; z-index: 1; }
.wd-card__row { display: flex; justify-content: space-between; align-items: center; }
.wd-card__brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.wd-chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #fde68a, #d4a017 60%, #fbbf24); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); position: relative; }
.wd-chip::after { content: ""; position: absolute; inset: 7px 9px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 3px; }
.wd-card__row img { filter: drop-shadow(0 4px 12px rgba(247, 147, 26, 0.5)); }
.wd-card__bal small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240, 244, 255, 0.6); }
.wd-card__bal strong { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.wd-card__bal span { font-size: 0.9rem; font-weight: 700; color: #2affc6; }
.wd-card__bal em { display: block; font-style: normal; color: rgba(240, 244, 255, 0.65); }
.wd-card__addr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.07); }
.wd-addr-text { flex: 1; min-width: 0; font-family: ui-monospace, "Courier New", monospace; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(240, 244, 255, 0.85); }
.wd-copy { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; color: #07111f; background: #2affc6; transition: transform 0.2s ease; }
.wd-copy:hover { transform: scale(1.06); }
.wd-copy.is-copied { background: #00e676; }
.wd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wd-stat { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 18px; background: #0e131b; border: 1px solid rgba(255, 255, 255, 0.07); }
.wd-stat small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b98ab; }
.wd-stat strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
@media (max-width: 991px) { .wd-top { grid-template-columns: 1fr; } }
@media (max-width: 340px) { .wd-stats { grid-template-columns: 1fr; } }

/* ═══════════════ SIGN-IN ACTIVITY ═══════════════ */
.lh-notice {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.10), rgba(251, 191, 36, 0.03)); border: 1px solid rgba(251, 191, 36, 0.25);
}
.lh-notice__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.5rem; color: #fbbf24; background: rgba(251, 191, 36, 0.14); flex: none; }
.lh-notice > div:nth-child(2) { flex: 1; min-width: 200px; }
.lh-notice strong { display: block; }
.lh-notice p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.lh-notice__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-list { list-style: none; margin: 0; padding: 8px 0; }
.lh-item { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.lh-item + .lh-item::before { content: ""; position: absolute; left: 47px; top: -14px; height: 28px; width: 2px; background: rgba(255, 255, 255, 0.06); }
.lh-device { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; color: #f0f4ff; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); flex: none; z-index: 1; }
.lh-browser { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.72rem; color: #07111f; background: #4de8ff; box-shadow: 0 0 0 3px #0e1117; }
.lh-item.is-latest .lh-device { border-color: rgba(42, 255, 198, 0.45); box-shadow: 0 0 0 4px rgba(42, 255, 198, 0.1); }
.lh-item.is-latest .lh-device::after { content: ""; position: absolute; inset: -6px; border-radius: 18px; border: 2px solid rgba(42, 255, 198, 0.5); animation: lhPing 2s ease-out infinite; }
@keyframes lhPing { from { opacity: 1; transform: scale(0.9); } to { opacity: 0; transform: scale(1.25); } }
.lh-main { flex: 1; min-width: 0; }
.lh-main b { display: block; font-size: 0.94rem; }
.lh-main small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.82rem; }
.lh-ip { font-family: ui-monospace, "Courier New", monospace; }
.lh-time { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.lh-badge { padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; color: #2affc6; background: rgba(42, 255, 198, 0.12); }
@media (max-width: 575px) {
  .lh-item { padding: 12px 16px; flex-wrap: wrap; }
  .lh-item + .lh-item::before { left: 39px; }
  .lh-time { width: 100%; flex-direction: row; justify-content: flex-start; padding-left: 62px; }
}

/* light theme */
body.dashboard-shell[data-theme="light"] .ins-kpi,
body.dashboard-shell[data-theme="light"] .wd-stat { background: #fff; border-color: rgba(17, 24, 39, 0.08); box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05); }
body.dashboard-shell[data-theme="light"] .ins-donut__track { stroke: rgba(17, 24, 39, 0.06); }
body.dashboard-shell[data-theme="light"] .ins-bars { background-image: repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.06) 0 1px, transparent 1px 25%); }
body.dashboard-shell[data-theme="light"] .ins-top { border-bottom-color: rgba(17, 24, 39, 0.05); }
body.dashboard-shell[data-theme="light"] .lh-device { color: #111827; background: #f3f4f6; border-color: rgba(17, 24, 39, 0.08); }
body.dashboard-shell[data-theme="light"] .lh-browser { box-shadow: 0 0 0 3px #fff; }
body.dashboard-shell[data-theme="light"] .lh-item + .lh-item::before { background: rgba(17, 24, 39, 0.08); }
body.dashboard-shell[data-theme="light"] .wlt-card-more { color: #374151; background: rgba(17, 24, 39, 0.05); border-color: rgba(17, 24, 39, 0.08); }
body.dashboard-shell[data-theme="light"] .ins-wallets a:hover { background: rgba(17, 24, 39, 0.03); }

@media (prefers-reduced-motion: reduce) {
  body.dashboard-shell .dm-enter, .ins-bar, .ins-donut__seg, .lh-item.is-latest .lh-device::after { animation: none !important; }
  body.dashboard-shell .wlt-card, body.dashboard-shell .wd-card { transform: none !important; }
}
.wd-back { display: flex; width: max-content; }
.ins-chart-card { display: flex; flex-direction: column; }
.ins-chart-card .ins-bars { flex: 1; min-height: 260px; height: auto; background-size: 100% calc(100% - 64px); }
.wd-top > *, .wd-stats > *, .ins-grid > *, .ins-kpis > * { min-width: 0; }
