/* =====================================================================
   DnrKyc · Vital-inspired shell
   Warm gold / yellowish elegant accent (no purple)
   Fixed sidebar · push buttons · soft radial active states
   ===================================================================== */

@keyframes pageIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
body { animation: pageIn .45s ease; }
.wrap > *, .shell > *, .dash > * {
  animation: pageIn .5s ease both;
}
.wrap > *:nth-child(1), .shell > *:nth-child(1), .dash > *:nth-child(1) { animation-delay: .02s; }
.wrap > *:nth-child(2), .shell > *:nth-child(2), .dash > *:nth-child(2) { animation-delay: .07s; }
.wrap > *:nth-child(3), .shell > *:nth-child(3), .dash > *:nth-child(3) { animation-delay: .12s; }
.wrap > *:nth-child(4), .shell > *:nth-child(4), .dash > *:nth-child(4) { animation-delay: .17s; }
.wrap > *:nth-child(5), .shell > *:nth-child(5), .dash > *:nth-child(5) { animation-delay: .22s; }
@media (prefers-reduced-motion: reduce) {
  body, .wrap > *, .shell > *, .dash > * { animation: none; }
}

:root {
  --bg: #0a0b0f;
  --bg-side: #0c0e14;
  --surface: #12151c;
  --surface-2: #161a22;
  --text: #f0f2f6;
  --muted: #8b93a3;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --accent: #e8b429;
  --accent-dim: #c8961e;
  --accent-bright: #ffd873;
  --accent-soft: rgba(232,180,41,.14);
  --side-w: 248px;
}

/* ---- kill old glow / syringe effects for cleaner Vital look ---- */
.glow-spot, .syr-bg { display: none !important; }

/* ---- global shell: full-height Vital layout ---- */
html, body {
  min-height: 100%;
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
}

.wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar becomes a slim header inside the main column on desktop */
.topbar, .bar-wrap {
  position: sticky !important;
  top: 0;
  z-index: 80;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 !important;
  padding: .7rem 1.4rem !important;
  background: rgba(10,11,15,.85) !important;
  backdrop-filter: blur(12px);
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.brand span { color: var(--accent); }
/* logo in front of the "DnrKyc Escrow" name */
.brand-logo {
  height: 1.7em;
  width: 1.7em;
  margin: 0 .45em 0 0;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
  order: -1;
}
/* in the sidebar the name is a flex row: keep the logo first, tight to the text */
.side-brand .brand { justify-content: flex-start !important; }
.side-brand .brand .brand-logo { margin-right: -.1em; }

/* center nav hidden on dashboard shells */
body:has(.side) .topbar .nav { display: none !important; }

.nav-right {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
}

/* Bell — dark rounded square like Vital */
.bellbtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(160deg, #1e222b, #14171e) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 12px rgba(0,0,0,.35);
  cursor: pointer;
  transition: filter .15s ease, transform .16s cubic-bezier(.34,1.56,.64,1);
  font-size: 1.05rem;
}
.bellbtn:hover { filter: brightness(1.15); }
.bellbtn:active { transform: scale(.92); }

.belln {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent) !important;
  color: #111 !important;
  font-size: .65rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.bellwrap { position: relative; }

.bellpanel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  width: min(320px, 78vw);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  z-index: 90;
  padding: .4rem;
  max-height: 320px;
  overflow: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.bellpanel.on { display: block; }
.bell-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: .65rem .7rem;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}
.bell-item.seen { color: var(--muted); }
.bell-item:hover { background: rgba(255,255,255,.05); }
.bell-empty { color: var(--muted); padding: .7rem; font-size: .85rem; }

/* ---- Primary CTA: flat gold, white type, light lip on top. No glow, no grow. ---- */
.btn-main, .btn-deal, a.btn-main, a.btn-deal, .topbar-cta,
button.go, .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .62rem 1.2rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #946f00 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 52%) !important;
  color: #fff !important;
  font: inherit;
  font-weight: 700 !important;
  font-size: .9rem !important;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
  filter: none !important;
  transform: none !important;
  transition: background-image .16s ease, box-shadow .16s ease;
}
.btn-main:hover, .btn-deal:hover, a.btn-deal:hover, .topbar-cta:hover, .go:hover {
  background-color: #946f00 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 50%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
  filter: none !important;
  transform: none !important;
}
.btn-main:active, .btn-deal:active, a.btn-deal:active, .topbar-cta:active, .go:active {
  transform: none !important;
  filter: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
}

/* Ghost / secondary buttons */
.btn-ghost, .btn-join, .back, a.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .62rem 1.15rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--border-strong) !important;
  background: transparent !important;
  color: var(--text) !important;
  font: inherit;
  font-weight: 700 !important;
  font-size: .9rem !important;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.btn-ghost:hover, .btn-join:hover, .back:hover, a.btn-ghost:hover {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.28) !important;
  transform: none !important;
}
.btn-ghost:active, .btn-join:active, .back:active, a.btn-ghost:active {
  transform: none !important;
}

/* ---- Hamburger (3 lines, rounded dark square) ---- */
.burger {
  display: none;
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(160deg, #22252d, #14161c) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px rgba(0,0,0,.4);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0 !important;
  transition: filter .15s ease, transform .16s cubic-bezier(.34,1.56,.64,1);
  overflow: visible !important;
}
.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #e7e9ee !important;
  border-radius: 2px;
}
.burger:hover { filter: brightness(1.18); }
.burger:active { transform: scale(.9); }

.menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: .4rem;
  z-index: 200 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  pointer-events: auto !important;
}
.menu a {
  display: block;
  padding: .65rem .8rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.menu a:hover { background: rgba(255,255,255,.06); }
.menu .auth { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--border); }
.menu a.login {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #1a1206 !important;
  margin-bottom: .35rem;
  text-align: center;
}

.mnav {
  display: none;
  position: fixed;
  top: 4.2rem;
  right: 1rem;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: .4rem;
  z-index: 99999;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.mnav.on { display: block; }
.mnav a {
  display: block;
  padding: .65rem .8rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  margin: 0;
}
.mnav a:hover { background: rgba(255,255,255,.06); }
.mnav .out {
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid var(--border);
  color: #f87171;
}

/* ---- Dashboard layout: fixed Vital sidebar flush left ---- */
body:has(.side) {
  --side-w: 248px;
}
body:has(.side) .wrap {
  padding-left: var(--side-w) !important;
  box-sizing: border-box;
}
/* brand lives in the sidebar; hide topbar brand on desktop */
body:has(.side) .topbar > .brand {
  display: none !important;
}

.dash {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  flex: 1;
  min-height: calc(100vh - 58px);
  width: 100%;
  overflow: visible;
}

.side {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--side-w) !important;
  max-width: var(--side-w) !important;
  min-width: var(--side-w) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 120;
  flex-shrink: 0 !important;
  background: var(--bg-side) !important;
  border: 0 !important;
  border-right: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 1.1rem .75rem 1rem !important;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.side-brand {
  padding: .35rem .55rem 1.1rem;
  margin-bottom: .25rem;
}
.side-brand .brand {
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.side-brand .brand span { color: var(--accent); }

/* push Account block + user to bottom of sidebar */
.side-foot {
  margin-top: auto;
  padding-top: 1rem;
}
.side-foot .who {
  margin-top: .85rem;
  padding: .65rem .4rem .35rem;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-bottom: .25rem;
}

.who {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .15rem .4rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
}
.ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a303a, #1a1e26);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  border: 1px solid var(--border);
}
.who strong { display: block; font-size: .9rem; }
.who span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Section labels — Vital group labels */
.side-lab {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  color: rgba(139,147,163,.55) !important;
  font-weight: 500 !important;
  margin: 14px 10px 6px !important;
  user-select: none;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  cursor: default;
  line-height: 1.2;
}
.side-lab:first-of-type { margin-top: 10px !important; }
.side-foot .side-lab { margin-top: 0 !important; }

/* Dotted divider between top links and groups */
.side-sep {
  border: 0;
  height: 1px;
  margin: 10px 6px;
  background-image: linear-gradient(90deg, rgba(42,42,70,.9) 1px, transparent 1px);
  background-size: 5px 1px;
  background-repeat: repeat-x;
  background-color: transparent;
}

/* Sidebar links — Vital metrics: h~30px, r6, 13px, soft hover, noise active */
.side a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 9px 10px !important;
  border-radius: 6px !important;
  color: rgba(139,147,163,.85) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.13px;
  line-height: 1 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 0 4px !important;
  text-decoration: none;
  transition: background-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out;
  transform: none !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
}
.side a .si {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  stroke: currentColor;
  color: inherit;
  margin-right: 0 !important;
  opacity: .9;
}
.side a:hover {
  background: rgba(255,255,255,.06) !important; /* surface-raised/60 approx */
  color: #e8eaef !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.side a:hover .si { opacity: 1; color: #e8eaef !important; stroke: #e8eaef; }

/* Active: soft control surface + fine noise (Vital noise-sidebar-active) */
.side a.on {
  background-color: rgba(255,255,255,.075) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%) !important;
  background-size: 120px 120px, 100% 100% !important;
  background-blend-mode: overlay, normal;
  color: #f0f2f6 !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  border: 0 !important;
}
.side a.on .si {
  color: var(--accent) !important;
  stroke: var(--accent);
  opacity: 1;
}

.side a .ncount {
  margin-left: auto;
  background: var(--accent);
  color: #111;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  line-height: 1.3;
  display: none;
}
.side a.out {
  color: #f87171 !important;
  margin-top: 2px !important;
}
.side a.out:hover {
  background: rgba(248,113,113,.08) !important;
  color: #fca5a5 !important;
}

/* Kill old ghost pill overrides — same metrics as normal links */
.side a.ghost,
.side a.ghost.sub,
.side a.ghost.on,
.side a.ghost.sub.on {
  display: flex !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 9px 10px !important;
  border-radius: 6px !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  margin: 0 0 4px !important;
  transform: none !important;
}
.side a.ghost,
.side a.ghost.sub {
  background: transparent !important;
  color: rgba(139,147,163,.85) !important;
}
.side a.ghost:hover,
.side a.ghost.sub:hover {
  background: rgba(255,255,255,.06) !important;
  color: #e8eaef !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.side a.ghost.on,
.side a.ghost.sub.on {
  background-color: rgba(255,255,255,.075) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%) !important;
  background-size: 120px 120px, 100% 100% !important;
  color: #f0f2f6 !important;
}
.side a.ghost.on .si,
.side a.ghost.sub.on .si { color: var(--accent) !important; }

/* hide old details accordion leftovers */
details.side-drop { display: none !important; }

/* Tighter sidebar chrome */
.side {
  padding: 12px 10px 12px !important;
}
.side-brand {
  padding: 6px 8px 14px;
  margin-bottom: 2px;
}
.side-brand .brand {
  font-size: 15px;
}
.side-foot {
  margin-top: auto;
  padding-top: 8px;
}
.side-foot .who {
  margin-top: 10px;
  padding: 10px 6px 6px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-bottom: 2px;
}
.who {
  gap: .55rem;
  padding: 0;
  border-bottom: 0;
  margin-bottom: 0;
}
.ava {
  width: 28px;
  height: 28px;
  font-size: .78rem;
}
.who strong { font-size: 12px; font-weight: 600; }
.who span { font-size: 11px; max-width: 140px; }

/* ---- Main content column ---- */
.main {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 1.5rem 1.75rem 2.5rem !important;
  box-sizing: border-box;
}

.main h1 {
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}
.lead { color: var(--muted); margin-bottom: 1.25rem; }

.dealbtns {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.25rem;
}

/* Cards */
.card, .dcard, .stat {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.card:hover, .dcard:hover, .row:hover {
  border-color: rgba(232,180,41,.35) !important;
  transform: none !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .9rem;
}
.card h2 {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.card p {
  font-family: Unbounded, sans-serif;
  font-size: 1.1rem;
}

/* Filter tabs (All | Active | Completed) */
.filter-tabs {
  display: flex;
  width: 100%;
  max-width: 420px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.filter-tabs button {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  border-radius: 999px !important;
  padding: .48rem .75rem !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transform: none !important;
  transition: background .16s ease, color .16s ease;
}
.filter-tabs button.on {
  background: #2a303a !important;
  color: #f3f4f6 !important;
}
.filter-tabs button:hover:not(.on) {
  background: rgba(255,255,255,.04) !important;
  color: #e5e7eb !important;
  transform: none !important;
}

/* Total Volume widget */
.volwrap { margin: 0 0 1.5rem; }
.volh {
  font-family: Unbounded, sans-serif;
  font-size: 1.05rem;
  margin-bottom: .7rem;
  letter-spacing: -.01em;
}
.volrow {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .85rem;
  align-items: center;
}
.volsel {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .55rem .8rem;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  min-width: 9rem;
  cursor: pointer;
  outline: none;
}
.volsel:focus { border-color: rgba(232,180,41,.45); }
.voltabs {
  display: inline-flex;
  gap: .25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.voltabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: .8rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.voltabs button.on {
  background: #2a303a;
  color: #fff;
}
.voltabs button:hover:not(.on) { color: #e5e7eb; }
.volbig {
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.volsub {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .2rem;
}

/* Stats strip */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1rem;
}
.stat {
  padding: .85rem 1.1rem;
  min-width: 100px;
}
.stat b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 1.15rem;
}
.stat span {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .08em;
  font-weight: 700;
}

.search {
  width: 100%;
  max-width: 360px;
  padding: .6rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  margin-bottom: .9rem;
  outline: none;
}
.search:focus { border-color: rgba(232,180,41,.4); }

.dcards {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.dcard {
  display: block;
  padding: .95rem 1.05rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, background .16s ease;
}
.dcard:hover {
  background: var(--surface-2) !important;
  border-color: rgba(232,180,41,.3) !important;
}
.dcard .top {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.dcard .st { font-weight: 700; font-size: .88rem; }
.dcard .tag, .dcard .coinb {
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.dcard .coinb {
  background: var(--accent-soft);
  color: var(--accent);
}
.dcard p { color: var(--muted); font-size: .85rem; margin: 0; }

/* Footer */
.dashfoot {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 1rem 1.75rem;
  color: var(--muted);
  font-size: .78rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  justify-content: space-between;
  background: transparent;
}
.dashfoot a { color: var(--muted); }
.dashfoot a:hover { color: var(--text); }

/* Modals */
.modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 1rem; }
.modal.on { display: flex; }
.modal .bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.box {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.2rem;
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.box h2 { font-family: Unbounded, sans-serif; font-size: 1.1rem; margin-bottom: .7rem; }
.box label {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin: .7rem 0 .3rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.box select, .box input {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0e1016;
  color: var(--text);
  font: inherit;
  outline: none;
}
.box select:focus, .box input:focus { border-color: rgba(232,180,41,.4); }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  body:has(.side) .wrap {
    padding-left: 0 !important;
  }
  body:has(.side) .topbar > .brand {
    display: block !important;
  }
  .side {
    display: none !important;
  }
  .burger { display: flex !important; }
  .nav-right .topbar-cta { display: none; }
  .main {
    padding: 1.15rem 1rem 2rem !important;
  }
  .dash {
    flex-direction: column !important;
    min-height: auto;
  }
  .topbar, .bar-wrap {
    padding: .55rem .85rem !important;
  }
}

@media (min-width: 901px) {
  .burger { display: none !important; }
  .mnav { display: none !important; }
  .menu { display: none !important; }
}

/* Soften generic transitions that conflicted */
a, button, .btn, .card, .nav a, .nav-right a, .row {
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), background .16s ease, border-color .16s ease, color .16s ease, filter .16s ease, box-shadow .16s ease;
}
.side a, .side a:hover, .side a:active {
  transform: none !important;
}


/* === HARD: Vital flush-left sidebar (wins over page inline) === */
html body:has(aside.side) {
  --side-w: 240px !important;
}
html body:has(aside.side) .wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 0 var(--side-w) !important;
  box-sizing: border-box !important;
}
html body:has(aside.side) .topbar,
html body:has(aside.side) .bar-wrap {
  margin: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
html body:has(aside.side) .topbar > .brand {
  display: none !important;
}
html body:has(aside.side) .dash {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}
html body aside.side,
html body .side {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: var(--side-w) !important;
  min-width: var(--side-w) !important;
  max-width: var(--side-w) !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 0 !important;
  background: #0c0e14 !important;
  box-shadow: none !important;
  z-index: 200 !important;
  transform: none !important;
  inset: 0 auto 0 0 !important;
}
html body aside.side + .main,
html body .dash > .main,
html body .main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  html body:has(aside.side) .wrap {
    padding-left: 0 !important;
  }
  html body aside.side,
  html body .side {
    display: none !important;
  }
  html body:has(aside.side) .topbar > .brand {
    display: block !important;
  }
}

/* ===== Vital dashboard canvas ===== */
.crumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.crumb .si { width: 16px; height: 16px; color: var(--accent); }
body:has(.side) .topbar > .brand { display: none !important; }
@media (max-width: 900px) {
  .crumb { display: none; }
}

.side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.side-collapse {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2c303a, #17191f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  cursor: pointer;
  padding: 0;
}
.side-collapse::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}
.side-collapse:hover { background: linear-gradient(180deg, #343844, #1c1e26); }
.side-collapse:active { transform: none; }

.plan-label {
  font-size: .78rem;
  color: var(--muted);
  margin: .15rem 0 .7rem;
}
.v-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.v-plan {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: .2rem 1rem .15rem 1.1rem;
  border-left: 2px solid transparent;
  cursor: pointer;
  font: inherit;
}
.v-plan + .v-plan { border-left: 1px solid var(--border); }
.v-plan.on {
  color: var(--text);
  border-left-color: var(--accent);
}
.v-plan b { display: block; font-size: .95rem; color: inherit; }
.v-plan span { display: block; font-size: .78rem; margin-top: .25rem; color: var(--muted); }
@media (max-width: 720px) {
  .v-plans { grid-template-columns: 1fr; gap: .6rem; }
  .v-plan + .v-plan { border-left: 0; }
}

.v-panel {
  background: #10131a;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.4rem;
}
.v-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.v-seg {
  display: inline-flex;
  background: #0c0e14;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.v-seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: .82rem;
  padding: .42rem .9rem;
  border-radius: 999px;
  cursor: pointer;
}
.v-seg button.on {
  background: #1b1f28;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.v-seg button:hover:not(.on) { color: #e8eaef; }
.v-profile {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  color: var(--muted);
}
.v-profile span {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.v-pane { display: none; }
.v-pane.on { display: block; }

.v-general {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 800px) { .v-general { grid-template-columns: 1fr; } }
.v-k { font-size: .95rem; font-weight: 600; margin-bottom: .55rem; }
.v-hero {
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.v-hero small { font-family: Syne, sans-serif; font-size: .9rem; color: var(--muted); font-weight: 500; }
.v-sub { color: var(--muted); font-size: .86rem; margin: .45rem 0 .55rem; }
.v-bar {
  height: 6px;
  border-radius: 999px;
  background: #1c212b;
  overflow: hidden;
  max-width: 28rem;
}
.v-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffd873, #e8b429);
  border-radius: 999px;
}
.v-hint { color: var(--muted); font-size: .78rem; margin-top: .4rem; }
.v-meta { display: grid; gap: .85rem; align-content: start; }
.v-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
}
.v-meta span { color: var(--muted); }
.v-meta b { font-weight: 600; }

.v-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}
.v-table-head h2 { font-size: .95rem; font-weight: 600; }
.v-search {
  background: #0c0e14;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: .45rem .75rem;
  font: inherit;
  min-width: 160px;
}
.v-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.v-tr {
  display: grid;
  grid-template-columns: .7fr 1.4fr .6fr .7fr;
  gap: .5rem;
  padding: .7rem .9rem;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.v-tr.head {
  border-top: 0;
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
}
a.v-tr { color: var(--text); }
a.v-tr:hover { background: rgba(255,255,255,.04); }
.v-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .88rem;
}

.dashfoot { padding: 1rem 1.75rem 1.4rem; }

/* Logged-in shell matches account.html (vital canvas) */
body:has(aside.side) {
  background: #08090d !important;
  background-image: none !important;
  color: #e8eaef !important;
  font-family: Syne, system-ui, sans-serif !important;
}
body:has(aside.side) .wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 0 248px !important;
  min-height: 100vh !important;
}
body:has(aside.side) .topbar,
body:has(aside.side) .bar-wrap {
  position: sticky !important;
  top: 0 !important;
  margin: 0 !important;
  padding: .75rem 1.4rem !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(8,9,13,.92) !important;
  width: 100% !important;
  backdrop-filter: blur(10px);
}
body:has(aside.side) .nav-right { display: flex !important; margin-left: auto; align-items: center; gap: .45rem; }
body:has(aside.side) .dash { display: block !important; padding: 0 !important; width: 100% !important; }
body:has(aside.side) .main {
  padding: 1.35rem 1.6rem 2.5rem !important;
  width: 100% !important;
  max-width: none !important;
}
body:has(aside.side) aside.side,
body:has(aside.side) .side {
  width: 248px !important;
  min-width: 248px !important;
  max-width: 248px !important;
  background: #0b0c12 !important;
  padding: 14px 12px !important;
  border-right: 1px solid rgba(255,255,255,.07) !important;
}
body:has(aside.side) .side a {
  min-height: 36px !important;
  height: auto !important;
  max-height: none !important;
  padding: 8px 12px !important;
  margin: 0 0 2px !important;
  border-radius: 10px !important;
  color: #8b90a8 !important;
  font-size: 13.5px !important;
}
body:has(aside.side) .side-brand .brand {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #f4f5f8 !important;
  font-size: 15px !important;
  overflow: visible !important;
}
body:has(aside.side) .side a:hover {
  background: rgba(255,255,255,.05) !important;
  color: #eceef4 !important;
}
body:has(aside.side) .side a.on {
  color: #f4f5f8 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 rgba(0,0,0,.25) !important;
}
body:has(aside.side) .side a.on .si { color: #e8b429 !important; stroke: #e8b429 !important; }
body:has(aside.side) .side a.out { color: #f87171 !important; }
body:has(aside.side) .btn-deal,
body:has(aside.side) .topbar-cta,
body:has(aside.side) .go,
body:has(aside.side) .box .btn {
  background-color: #946f00 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 52%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: .58rem 1.15rem !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
  filter: none !important;
  transform: none !important;
  text-decoration: none;
}
body:has(aside.side) .btn-deal:hover,
body:has(aside.side) .topbar-cta:hover,
body:has(aside.side) .go:hover,
body:has(aside.side) .box .btn:hover {
  background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 50%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
  transform: none !important;
  filter: none !important;
}
body:has(aside.side) .btn-deal:active,
body:has(aside.side) .topbar-cta:active,
body:has(aside.side) .go:active {
  transform: none !important;
  filter: none !important;
}
body:has(aside.side) .btn-join {
  background: #1a1d26 !important;
  color: #eee !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 12px !important;
}
body:has(aside.side) .bellbtn {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg,#222632,#14161d) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px rgba(0,0,0,.35) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body:has(aside.side) .burger {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg,#222632,#14161d) !important;
}
body:has(aside.side) .v-tr.wallet {
  grid-template-columns: 88px minmax(0,1fr) auto !important;
  align-items: center;
}
body:has(aside.side) .v-tr.wallet code {
  color: #c5cad3;
  font-size: .8rem;
  word-break: break-all;
}
body:has(aside.side) .mini {
  padding: .32rem .6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #e8eaef;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}
body:has(aside.side) .mini.del { color: #f87171; border-color: rgba(248,113,113,.45); }
body:has(aside.side) .wacts { display: flex; gap: .35rem; justify-content: flex-end; }
body:has(aside.side) .wacts form { margin: 0; }
@media (max-width: 900px) {
  body:has(aside.side) .wrap { padding-left: 0 !important; }
  body:has(aside.side) aside.side,
  body:has(aside.side) .side { display: none !important; }
  body:has(aside.side) .topbar > .brand { display: block !important; }
  body:has(aside.side) .v-plans { grid-template-columns: 1fr !important; }
}
@media (min-width: 901px) {
  body:has(aside.side) .burger { display: none !important; }
  body:has(aside.side) .topbar > .brand { display: none !important; }
}

/* Folded sidebar: icons only */
html body.side-min:has(aside.side) { --side-w: 76px !important; }
html body.side-min:has(aside.side) .wrap { padding-left: 76px !important; }
html body.side-min aside.side,
html body.side-min .side {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
html body.side-min .side-brand { justify-content: center !important; }
html body.side-min .side-brand .brand { display: none !important; }
html body.side-min .side-lab,
html body.side-min .ncount,
html body.side-min .who strong,
html body.side-min .who span { display: none !important; }
html body.side-min .side a {
  justify-content: center !important;
  gap: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 0 !important;
}
html body.side-min .side a .si {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}
html body.side-min .who {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (max-width: 900px) {
  html body.side-min:has(aside.side) .wrap { padding-left: 0 !important; }
}


/* =====================================================================
   Secondary buttons: dark glass with a soft blue glow from below and a
   small arrow (e.g. "Read reviews", "Join the Community", "Join Deal").
   The html:root body:not(:has(aside.side)) prefix makes this win over page styles and ui.css.
   ===================================================================== */
html:root body:not(:has(aside.side)) .btn-ghost,
html:root body:not(:has(aside.side)) a.btn-ghost,
html:root body:not(:has(aside.side)) .btn-join,
html:root body:not(:has(aside.side)) .back,
html:root body:not(:has(aside.side)) .rowbtns .back {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  background:
    radial-gradient(120% 95% at 50% 135%, rgba(98,104,196,.28) 0%, rgba(98,104,196,0) 60%),
    #1d1f2c !important;
  color: #eceef8 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html:root body:not(:has(aside.side)) .btn-ghost:hover,
html:root body:not(:has(aside.side)) a.btn-ghost:hover,
html:root body:not(:has(aside.side)) .btn-join:hover,
html:root body:not(:has(aside.side)) .back:hover,
html:root body:not(:has(aside.side)) .rowbtns .back:hover {
  border-color: rgba(255,255,255,.16) !important;
  background:
    radial-gradient(120% 95% at 50% 135%, rgba(112,118,215,.4) 0%, rgba(112,118,215,0) 62%),
    #222434 !important;
  transform: none !important;
}
/* the little ">" arrow after link-style secondary buttons */
html:root body:not(:has(aside.side)) a.btn-ghost::after {
  content: "";
  width: .42em;
  height: .42em;
  margin-left: .2rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .2s ease;
}
html:root body:not(:has(aside.side)) a.btn-ghost:hover::after {
  transform: translateX(4px) rotate(45deg);
}

/* =====================================================================
   Public pages (Home, Services, Marketplace, Deal History …):
   bigger navbar, and every gold button uses the same corner shape.
   ===================================================================== */
/* full-width flat bar (Vital style): logo + links on the left, button on the right,
   content lined up with the page content (1080px) */
html:root body:not(:has(aside.side)) { overflow-x: clip; }
html:root body:not(:has(aside.side)) .topbar {
  position: sticky !important;
  top: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 0 calc(50% - 50vw) !important;
  padding: .7rem max(1.1rem, calc((100vw - 1080px) / 2)) !important;
  min-height: 0;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 0 !important;
  background: rgba(7,8,14,.88) !important;
  backdrop-filter: blur(14px);
  box-shadow: none !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
html:root body:not(:has(aside.side)) .topbar .brand {
  font-size: 1.22rem !important;
  padding-right: 0 !important;
  display: inline-flex !important;
  align-items: center;
}
html:root body:not(:has(aside.side)) .topbar .brand-logo { height: 1.85em; width: 1.85em; }
html:root body:not(:has(aside.side)) .topbar .brand span { margin-left: .32em; }
html:root body:not(:has(aside.side)) .topbar .nav {
  flex: 1 !important;
  justify-content: flex-start !important;
  gap: .35rem !important;
  margin-left: 2.4rem;
}
html:root body:not(:has(aside.side)) .topbar .nav a {
  font-size: 1.02rem !important;
  font-weight: 500 !important;
  padding: .45rem .8rem !important;
  color: #b7bac9 !important;
  background: transparent !important;
  border-radius: 8px !important;
}
html:root body:not(:has(aside.side)) .topbar .nav a:hover,
html:root body:not(:has(aside.side)) .topbar .nav a.active {
  color: #ffffff !important;
  background: transparent !important;
  transform: none !important;
}
html:root body:not(:has(aside.side)) .topbar .nav-right { margin-left: auto; gap: .6rem !important; }
/* smaller bell and Dashboard button (no glow on buttons) */
html:root body:not(:has(aside.side)) .topbar .bellbtn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  font-size: .95rem;
}
html:root body:not(:has(aside.side)) .topbar .nav-right a {
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  font-size: .92rem !important;
  padding: 0 1.15rem !important;
}
@media (max-width: 800px) {
  html:root body:not(:has(aside.side)) .topbar { padding: .6rem 1rem !important; justify-content: space-between !important; }
}
html:root body:not(:has(aside.side)) .btn-main,
html:root body:not(:has(aside.side)) a.btn-main,
html:root body:not(:has(aside.side)) .topbar-cta,
html:root body:not(:has(aside.side)) .nav-right a {
  border-radius: 12px !important;
}

/* =====================================================================
   Account pages (with the sidebar): secondary buttons are plain and
   calm - dark navy, soft border, no glow, no arrow
   (e.g. "Join Deal", "Back", Wallet "Edit" / "Delete").
   ===================================================================== */
html:root body:has(aside.side) .btn-ghost,
html:root body:has(aside.side) .btn-join,
html:root body:has(aside.side) .back,
html:root body:has(aside.side) .rowbtns .back,
html:root body:has(aside.side) .mini {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: .66rem 1.25rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(180deg, #24263a 0%, #1b1d2c 100%) !important;
  color: #eef0fa !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 14px rgba(0,0,0,.3) !important;
  transform: none !important;
  transition: background .18s ease, border-color .18s ease;
}
html:root body:has(aside.side) .mini {
  padding: .34rem .75rem !important;
  border-radius: 9px !important;
  font-size: .78rem !important;
}
html:root body:has(aside.side) .mini.del { color: #f87171 !important; }
html:root body:has(aside.side) .btn-ghost:hover,
html:root body:has(aside.side) .btn-join:hover,
html:root body:has(aside.side) .back:hover,
html:root body:has(aside.side) .rowbtns .back:hover,
html:root body:has(aside.side) .mini:hover {
  background: linear-gradient(180deg, #2a2d42 0%, #202233 100%) !important;
  border-color: rgba(255,255,255,.14) !important;
  transform: none !important;
}


/* ---- Phone menu: icon on every link, a line, then the account buttons ---- */
.mnav { max-height: calc(100dvh - 5.5rem); overflow-y: auto; }
.mnav a { display: flex; align-items: center; gap: .65rem; }
.mnav a .mi { width: 18px; height: 18px; flex-shrink: 0; color: #8b90a8; }
.mnav a:hover .mi { color: var(--text); }
.mnav .m-sep { height: 1px; background: rgba(255,255,255,.1); margin: .45rem .3rem; }
.mnav .m-auth { display: flex; flex-direction: column; gap: .45rem; padding: .2rem .15rem .15rem; }
.mnav .m-auth a { justify-content: center; width: 100%; margin: 0; }
.mnav a.btn-main, .mnav a.btn-deal { display: flex; }
.mnav a.btn-main .mi, .mnav a.btn-deal .mi { color: #fff; }
.mnav a.m-ghost { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .58rem 1.2rem; }
/* square-ish buttons in the phone menu (not pills) */
.mnav .m-auth a.btn-main, .mnav .m-auth a.btn-deal { border-radius: 10px !important; }
.mnav a.m-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }
.mnav a.m-out, .mnav a.m-out .mi { color: #f87171; }

/* ---- FAQ (homepage + Services): full-width cards like the marketplace listings, stacked ---- */
.faq.grid { display: flex; flex-direction: column; gap: .8rem; max-width: none; padding-bottom: 3.5rem; }
.faq details.card {
  padding: 0; background: #0b0c12 !important; border: 2px solid rgba(255,255,255,.28) !important; border-radius: 16px !important;
  box-shadow: none !important; transition: border-color .25s ease;
}
/* white outline (the general card rule above would turn it gold on hover) */
.faq details.card:hover, .faq details.card[open]:not(.closing) { border-color: rgba(255,255,255,.75) !important; }
.faq details.card summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; font: 700 1.02rem Syne, system-ui, sans-serif; color: var(--text);
}
.faq details.card summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #e8b429; font-size: 1.05rem; font-weight: 600;
  transition: transform .34s cubic-bezier(.2,.7,.2,1), border-color .25s ease;
}
.faq details.card[open]:not(.closing) summary::after { content: "–"; transform: rotate(180deg); border-color: rgba(255,255,255,.4); }
.faq details.card p {
  margin: 0 1.25rem; padding: .8rem 0 1.1rem; border-top: 1px solid rgba(255,255,255,.07);
  color: #8b90a8; font-size: .98rem; line-height: 1.55;
}
