/* =========================================================
   NOVA Card — Bybit-style design system
   Тёмная тема, фирменный жёлтый акцент, плотная сетка.
   Ребрендинг: поменяй --brand и текст логотипа.
   ========================================================= */

:root {
  /* Accent */
  --brand: #f7a600;
  --brand-hover: #ffbe1a;
  --brand-dim: rgba(247, 166, 0, 0.12);
  --brand-line: rgba(247, 166, 0, 0.45);

  /* Surfaces */
  --bg: #0b0e11;
  --bg-1: #16181d;
  --bg-2: #1c1f26;
  --bg-3: #23262f;
  --elev: #2b3139;

  /* Text */
  --text: #eaecef;
  --text-2: #c7ccd4;
  --text-3: #81858c;

  /* Lines & states */
  --border: #2b3139;
  --border-2: #383e47;
  --green: #20b26c;
  --green-dim: rgba(32, 178, 108, 0.12);
  --red: #ef454a;
  --red-dim: rgba(239, 69, 74, 0.12);

  /* Shape — Bybit использует небольшие радиусы */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --maxw: 1240px;
  --nav-h: 64px;

  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-2: 0 18px 48px rgba(0, 0, 0, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

::selection { background: var(--brand); color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.muted { color: var(--text-3); }
.gold { color: var(--brand); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ================= NAVBAR ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 14, 17, 0.94); backdrop-filter: blur(12px); }
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: 20px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo__image {
  display: block;
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.logo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo__text span:last-child {
  color: var(--brand);
}
.logo__mark {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--brand);
  display: grid; place-items: center;
  color: #000; font-weight: 700; font-size: 16px;
}
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--brand); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* Пользовательский чип в шапке кабинета */
.nav__user {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  color: var(--text-2); font-size: 13px; max-width: 240px;
}
.nav__user b {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-dim); color: var(--brand);
  display: grid; place-items: center; font-size: 12px; flex-shrink: 0;
}
.nav__user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: #16181d; }
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn--soft { background: var(--bg-3); color: var(--text); }
.btn--soft:hover:not(:disabled) { background: var(--elev); }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ================= HERO ================= */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; width: 760px; height: 760px;
  top: -340px; right: -200px;
  background: radial-gradient(circle, rgba(247, 166, 0, 0.16), transparent 62%);
}
.hero__bg::after {
  content: ""; position: absolute; width: 560px; height: 560px;
  bottom: -280px; left: -220px;
  background: radial-gradient(circle, rgba(32, 178, 108, 0.08), transparent 65%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; margin: 20px 0 18px; letter-spacing: -0.035em; }
.hero h1 span { color: var(--brand); }
.hero__sub { font-size: 17px; color: var(--text-2); max-width: 520px; margin-bottom: 30px; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 0; margin-top: 44px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
.hero__stats > div { flex: 1; min-width: 130px; padding: 18px 20px; border-right: 1px solid var(--border); }
.hero__stats > div:last-child { border-right: none; }
.stat__num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--bg-1); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
}
.badge-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(32, 178, 108, .16); }

/* ---------- Логотипная лента ---------- */
.trust-strip {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 18px 22px; margin-top: 40px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-1);
}
.trust-strip__label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.trust-strip__items { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.trust-strip__items span { color: var(--text-2); font-weight: 600; font-size: 15px; }
.trust-strip__items img { height: 20px; width: auto; max-width: 96px; object-fit: contain; }

/* =========================================================
   CRYPTO CARD
   Flex-раскладка вместо absolute: элементы физически не могут
   наехать друг на друга ни при каком размере карты.

   Важно: собственные свойства контейнера (padding самой .ccard)
   нельзя задавать в cqw — эти единицы считаются от внешнего
   контейнера, а не от себя. Поэтому у карты padding в %, а
   у детей — cqw от контент-бокса карты.
   ========================================================= */
.card-hero { display: block; width: 100%; margin-inline: auto; }
.ccard {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 12px;
  padding: 6.4%;
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(247, 166, 0, 0.2), transparent 46%),
    linear-gradient(135deg, #272a34 0%, #16181d 58%, #0a0c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ccard > * { position: relative; z-index: 1; min-width: 0; }

.ccard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4cqw; }

/* Бренд-эмитент. Тёмные дизайны — светлый вариант логотипа, платиновый — фирменный тёмный. */
.ccard__brand {
  height: clamp(9px, 5.4cqw, 22px);
  width: min(34cqw, 128px);
  flex-shrink: 0;
  background: url("../img/exchanges/bybit.svg") left center / contain no-repeat;
}
.ccard--design-platinum .ccard__brand { background-image: url("../img/card-brand.png"); }

/* Бесконтактная оплата */
.ccard__nfc { width: 7cqw; max-width: 26px; color: rgba(255, 255, 255, .75); flex-shrink: 0; }
.ccard__nfc svg { display: block; width: 100%; height: auto; }
.ccard--design-platinum .ccard__nfc { color: rgba(14, 20, 34, .5); }

/* Чип — слева под брендом, как на настоящей карте */
.ccard__chip {
  width: 14cqw; max-width: 52px;
  aspect-ratio: 4 / 3;
  margin-top: 5.5cqw;
  border-radius: 1.6cqw;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8e6ad 0%, #d3a53c 38%, #f5d885 62%, #bf8c1e 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), 0 1px 2px rgba(0, 0, 0, .25);
}
/* Контактные дорожки чипа */
.ccard__chip::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, .3) 30%, rgba(0, 0, 0, .3) 33%, transparent 33%),
    linear-gradient(to bottom, transparent 67%, rgba(0, 0, 0, .3) 67%, rgba(0, 0, 0, .3) 70%, transparent 70%),
    linear-gradient(to right, transparent 33%, rgba(0, 0, 0, .3) 33%, rgba(0, 0, 0, .3) 35.5%, transparent 35.5%),
    linear-gradient(to right, transparent 64.5%, rgba(0, 0, 0, .3) 64.5%, rgba(0, 0, 0, .3) 67%, transparent 67%);
}
/* Центральная площадка */
.ccard__chip::after {
  content: ""; position: absolute; inset: 30% 33%;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent);
}

.ccard__num {
  margin-top: auto;
  padding-top: 4cqw;
  font-size: clamp(6px, 6.4cqw, 24px);
  letter-spacing: 0.02em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.ccard--design-platinum .ccard__num { text-shadow: 0 1px 1px rgba(255, 255, 255, .6); }

.ccard__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 7cqw; margin-top: 5cqw;
}
.ccard__bottom > div { min-width: 0; }
.ccard__label {
  font-size: clamp(4px, 2.5cqw, 9px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, .58);
  text-transform: uppercase;
  line-height: 1.5;
}
.ccard__val {
  font-size: clamp(5px, 3.9cqw, 14px);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Платёжная система МИР — справа внизу */
.ccard__logo {
  width: 16cqw; max-width: 58px;
  aspect-ratio: 88 / 30;
  flex-shrink: 0;
  margin-left: auto;
  background: url("../img/mir-white.svg") right bottom / contain no-repeat;
}
.ccard--design-platinum .ccard__logo { background-image: url("../img/mir-color.svg"); }

/* Блик и наклон — только на крупной презентационной карточке */
.card-hero--3d { perspective: 1400px; max-width: 420px; }
.card-hero--3d .ccard {
  transform: rotateY(-14deg) rotateX(6deg);
  transition: transform .6s var(--ease);
  animation: floaty 7s ease-in-out infinite;
  border-radius: 18px;
}
.card-hero--3d .ccard::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  animation: shine 6s ease-in-out infinite;
}
.card-hero--3d:hover .ccard { transform: rotateY(-5deg) rotateX(2deg); }
@keyframes shine { 0%, 100% { transform: translateX(-70%); } 45%, 55% { transform: translateX(70%); } }
@keyframes floaty {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-14deg) rotateX(6deg) translateY(-10px); }
}

.ccard--flat { transform: none; animation: none; }

@media (prefers-reduced-motion: reduce) {
  .card-hero--3d .ccard, .card-hero--3d .ccard::after { animation: none; }
}

/* Дизайны карт */
.ccard--design-obsidian {
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(255, 255, 255, .16) 0%, transparent 45%),
    linear-gradient(135deg, #0f1117 0%, #1b2230 45%, #0e1523 100%);
}
.ccard--design-aurora {
  background:
    radial-gradient(420px 220px at 12% 18%, rgba(255, 255, 255, .4), transparent 50%),
    linear-gradient(135deg, #1d2e7d 0%, #6e3df7 42%, #0ec4c9 100%);
}
.ccard--design-platinum {
  background:
    radial-gradient(60% 80% at 12% 8%, rgba(255, 255, 255, .85), transparent 55%),
    linear-gradient(135deg, #f7f8fa 0%, #dde1e8 45%, #b4bcc7 100%);
  color: #0e1422;
}
.ccard--design-platinum .ccard__label { color: rgba(14, 20, 34, .58); }
.ccard--design-platinum .ccard__num,
.ccard--design-platinum .ccard__val { color: #0e1422; }

/* ================= SECTIONS ================= */
.section { padding: 80px 0; position: relative; }
.section--alt { background: var(--bg-1); border-block: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin: 12px 0 14px; letter-spacing: -0.03em; }
.section__head p { color: var(--text-3); font-size: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px;
  transition: border-color .2s, background .2s;
}
.feature:hover { border-color: var(--border-2); background: var(--bg-3); }
.feature__ic {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--brand-dim); color: var(--brand); margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-3); font-size: 14px; line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 26px 24px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
}
.step__n {
  counter-increment: step;
  width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: #16181d;
  background: var(--brand);
  margin-bottom: 16px;
}
.step__n::before { content: counter(step); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-3); font-size: 14px; line-height: 1.6; }
.step__line { position: absolute; top: 40px; right: -12px; color: var(--border-2); }

/* Exchanges */
.exchanges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.exchange {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
  min-width: 250px;
}
.exchange:hover { border-color: var(--brand); background: var(--bg-3); }
.exchange__logo { height: 24px; width: auto; max-width: 96px; object-fit: contain; flex-shrink: 0; }
.exchange__body { display: grid; gap: 2px; min-width: 0; }
.exchange__body strong { font-size: 15px; font-weight: 600; }
.exchange__body span { font-size: 12px; color: var(--text-3); }
.exchange__dot { width: 26px; height: 26px; border-radius: var(--r-xs); display: grid; place-items: center; font-weight: 700; color: #000; font-size: 13px; }

.feature__logos { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.feature__logos img { height: 18px; width: auto; max-width: 80px; object-fit: contain; opacity: .85; }

/* CTA */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 56px 40px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(247, 166, 0, 0.14), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--border);
  text-align: center;
}
.cta h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.03em; }
.cta p { color: var(--text-3); font-size: 16px; max-width: 520px; margin: 0 auto 26px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 22px; transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { margin-top: 12px; color: var(--text-3); font-size: 14px; line-height: 1.65; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--border); padding: 52px 0 28px; background: var(--bg-1); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; margin-bottom: 36px; }
.footer p { color: var(--text-3); font-size: 13px; max-width: 300px; margin-top: 12px; line-height: 1.6; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.footer ul a:hover { color: var(--brand); }
.footer__bar {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-3); font-size: 13px;
}

/* ================= AUTH ================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__aside {
  position: relative; overflow: hidden;
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(90% 90% at 10% 0%, rgba(247, 166, 0, 0.12), transparent 55%),
    var(--bg-1);
  border-right: 1px solid var(--border);
}
.auth__aside .logo { position: absolute; top: 40px; left: 48px; }
.auth__aside h2 { font-size: 28px; margin: 20px 0 14px; max-width: 380px; font-weight: 700; letter-spacing: -0.03em; }
.auth__aside p { color: var(--text-3); max-width: 360px; }
.auth__points { display: grid; gap: 14px; margin-top: 28px; }
.auth__point { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.auth__point svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.auth__card-float { margin-top: 36px; max-width: 300px; }

.auth__card-num { letter-spacing: 0.06em; }

.auth__main { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 6vw, 88px); }
.auth__box { width: 100%; max-width: 420px; margin-inline: auto; }
.auth__box--wide { max-width: 540px; }
.auth__box h1 { font-size: 27px; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.03em; }
.auth__box > .muted { margin-bottom: 28px; }
.auth__foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-3); }
.auth__foot a { color: var(--brand); font-weight: 600; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; margin-bottom: 24px; transition: color .15s; }
.auth__back:hover { color: var(--text); }

/* Progress */
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.progress__step { display: flex; align-items: center; gap: 9px; }
.progress__num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border-2);
}
.progress__step.active .progress__num { background: var(--brand); color: #16181d; border-color: transparent; }
.progress__step.done .progress__num { background: var(--green-dim); color: var(--green); border-color: rgba(32, 178, 108, .4); }
.progress__label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.progress__step.active .progress__label { color: var(--text); }
.progress__bar { flex: 1; height: 1px; background: var(--border-2); }
.progress__step.done + .progress__bar { background: rgba(32, 178, 108, .4); }

/* ================= FORM CONTROLS ================= */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--text-2); }
.field .req { color: var(--brand); }
.control {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-size: 14px;
  transition: border-color .15s, background .15s;
}
textarea.control { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; line-height: 1.55; }
.control::placeholder { color: var(--text-3); }
.control:hover:not(:focus) { border-color: var(--border-2); }
.control:focus { outline: none; border-color: var(--brand); background: var(--bg-1); }
select.control {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2381858c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.control--padded { padding-right: 44px; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--compact { margin: 0; }

.input-wrap { position: relative; }
.input-wrap .toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3); cursor: pointer;
  padding: 6px; display: grid; place-items: center; border-radius: var(--r-xs);
}
.input-wrap .toggle:hover { color: var(--brand); }

.error-text { color: var(--red); font-size: 12px; margin-top: 6px; display: none; }
.field.has-error .control { border-color: var(--red); }
.field.has-error .error-text { display: block; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.strength { display: flex; gap: 5px; margin-top: 8px; }
.strength span { flex: 1; height: 3px; border-radius: 2px; background: var(--border-2); transition: background .25s; }
.strength[data-level="1"] span:nth-child(1) { background: var(--red); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--brand); }
.strength[data-level="3"] span:nth-child(-n+3) { background: #ffd34d; }
.strength[data-level="4"] span { background: var(--green); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-3); margin: 6px 0 22px; cursor: pointer; }
.check input { display: none; }
.check__box {
  width: 18px; height: 18px; border-radius: var(--r-xs); border: 1px solid var(--border-2);
  flex-shrink: 0; display: grid; place-items: center; transition: all .15s; margin-top: 1px;
}
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); }
.check__box svg { opacity: 0; color: #16181d; transition: opacity .15s; }
.check input:checked + .check__box svg { opacity: 1; }
.check a { color: var(--brand); }

.notice {
  display: block; margin: 0 0 16px; padding: 11px 13px;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-2); font-size: 13px;
}
.notice[data-state="error"] { color: #ff9ba0; border-color: rgba(239, 69, 74, .4); background: var(--red-dim); }
.notice[data-state="success"] { color: #7ee2b0; border-color: rgba(32, 178, 108, .4); background: var(--green-dim); }
.notice[hidden] { display: none; }
[hidden] { display: none !important; }

.note {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--green-dim); border: 1px solid rgba(32, 178, 108, 0.25);
  margin-bottom: 22px;
}
.note svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.note p { font-size: 13px; color: var(--text-2); }
.note b { color: var(--text); }

/* Exchange picker */
.ex-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.ex-opt {
  position: relative; cursor: pointer;
  padding: 16px 12px; border-radius: var(--r-sm); text-align: center;
  background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.ex-opt:hover { border-color: var(--border-2); }
.ex-opt input { position: absolute; opacity: 0; }
.ex-opt__logo { height: 26px; margin: 0 auto 12px; display: grid; place-items: center; }
.ex-opt__logo img { height: 22px; width: auto; max-width: 88px; object-fit: contain; }
.ex-opt__name { font-size: 14px; font-weight: 600; }
.ex-opt__check {
  position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .15s;
}
.ex-opt input:checked ~ .ex-opt__check { opacity: 1; transform: scale(1); }
.ex-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-dim); }
.ex-opt__logo--binance { background: #f0b90b; }
.ex-opt__logo--bybit { background: #f7a600; }
.ex-opt__logo--mexc { background: #2354e6; color: #fff; }

/* ================= КАБИНЕТ / АДМИНКА ================= */
.panel-page { padding: 28px 0 72px; }

/* Оболочка кабинета: липкая боковая навигация + основная область */
.container.app-shell { max-width: 1480px; }
.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.app-main { min-width: 0; display: grid; gap: 20px; }

.side-nav {
  position: sticky; top: calc(var(--nav-h) + 16px);
  display: grid; gap: 16px; min-width: 0;
}
.side-nav__list {
  display: grid; gap: 2px;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 8px;
}
.side-nav__item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 11px 12px;
  border: none; background: none; border-radius: var(--r-sm);
  color: var(--text-3); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.side-nav__item svg { flex-shrink: 0; }
.side-nav__item:hover { background: var(--bg-2); color: var(--text-2); }
.side-nav__item.active { background: var(--brand-dim); color: var(--brand); font-weight: 600; }

.side-nav__help {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; font-size: 13px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: var(--r-md);
  transition: color .15s, border-color .15s;
}
.side-nav__help:hover { color: var(--brand); border-color: var(--border-2); }

/* Чек-лист настройки аккаунта */
.setup-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
}
.setup-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-3); margin-bottom: 10px;
}
.setup-card__head strong { color: var(--brand); font-size: 13px; font-variant-numeric: tabular-nums; }
.setup-card__bar { height: 4px; border-radius: var(--r-pill); background: var(--bg-3); overflow: hidden; }
.setup-card__bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .4s var(--ease); }

.setup-list { list-style: none; display: grid; gap: 2px; margin-top: 14px; }
.setup-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.setup-list__mark {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-2); display: grid; place-items: center;
}
.setup-list__mark svg { width: 10px; height: 10px; opacity: 0; }
.setup-list li.is-done .setup-list__mark { background: var(--green); border-color: var(--green); color: #0b0e11; }
.setup-list li.is-done .setup-list__mark svg { opacity: 1; }
.setup-list__text { display: grid; min-width: 0; flex: 1; }
.setup-list__text strong { font-size: 13px; font-weight: 500; color: var(--text-2); }
.setup-list li.is-done .setup-list__text strong { color: var(--text-3); }
.setup-list__text small { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-list__go {
  border: none; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); flex-shrink: 0;
}
.setup-list__go:hover { color: var(--brand-hover); }

/* Логотипы бирж */
.ex-logo { height: 16px; width: auto; max-width: 78px; object-fit: contain; display: block; }
.ex-logo--mark { height: 18px; max-width: 18px; }
.stat-card__exchange { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.stat-card__exchange .ex-logo { height: 17px; max-width: 86px; }
.stat-card__exchange .ex-logo--mark { height: 18px; max-width: 18px; }

/* Нумерованные подзаголовки шагов */
.step-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 22px 0 10px;
}
.step-label:first-child { margin-top: 0; }
.step-label i {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-3); color: var(--text-2);
  display: grid; place-items: center;
  font-size: 11px; font-style: normal; font-weight: 600;
}

/* Полоса распределения активов */
.alloc { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--bg-3); gap: 2px; }
.alloc i { display: block; height: 100%; }
.alloc__empty { width: 100%; background: var(--bg-3); }
.alloc-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin-top: 16px; }
.alloc-legend__item { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.alloc-legend__item i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.alloc-legend__item span { color: var(--text-2); font-weight: 500; }
.alloc-legend__item strong { font-variant-numeric: tabular-nums; }
.alloc-legend__item small { color: var(--text-3); margin-left: auto; font-variant-numeric: tabular-nums; }

/* Кнопка-иконка (скрытие баланса) */
.icon-btn {
  border: none; background: none; padding: 2px; cursor: pointer;
  color: var(--text-3); display: inline-grid; place-items: center; border-radius: var(--r-xs);
  transition: color .15s;
}
.icon-btn:hover { color: var(--brand); }
.icon-btn.is-off { color: var(--brand); }

/* Превью карты рядом с пояснением */
.card-preview-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.card-preview-note { flex: 1; min-width: 200px; display: grid; gap: 14px; justify-items: start; }
.card-preview-note .muted { font-size: 13px; }

/* Шапка баланса в стиле Bybit */
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 22px;
}
.panel-head__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.panel-head__sub { color: var(--text-3); font-size: 14px; margin-top: 4px; max-width: 560px; }
.panel-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.balance-hero {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: radial-gradient(90% 180% at 100% 0%, rgba(247, 166, 0, 0.1), transparent 55%), var(--bg-1);
  padding: 24px; margin-bottom: 20px;
}
.balance-hero__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.balance-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.balance-hero__label { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.balance-hero__value { font-size: clamp(30px, 4.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.balance-hero__meta { color: var(--text-3); font-size: 13px; max-width: 420px; }

.panel-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.panel-stats--four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.panel-stats--five { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.panel-stats--asset { margin-top: 12px; }
.stat-card {
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-2); padding: 16px;
}
.stat-card span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.stat-card strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; word-break: break-word; font-variant-numeric: tabular-nums; }

/* Вкладки в стиле Bybit — подчёркивание, не пилюли */
.dashboard-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border); overflow-x: auto;
}
.tab-chip {
  position: relative; border: none; background: none;
  color: var(--text-3); font: inherit; font-weight: 500; font-size: 15px;
  padding: 12px 16px; cursor: pointer; white-space: nowrap;
  transition: color .15s;
}
.tab-chip:hover { color: var(--text-2); }
.tab-chip.active { color: var(--text); font-weight: 600; }
.tab-chip.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--brand); border-radius: 2px 2px 0 0;
}
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; animation: fade-in .25s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.panel-grid--dashboard { grid-template-columns: minmax(0, 1fr) 340px; }
.panel-main { display: grid; gap: 16px; min-width: 0; }
.panel-sidebar { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); min-width: 0; }

.panel-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  min-width: 0;
}
.panel-card h1, .panel-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.panel-card > .muted { font-size: 13px; }
.panel-card--hero { margin-bottom: 20px; }
.panel-card__head {
  display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap;
}
.panel-card__head > .btn { margin-left: auto; }
.panel-card__head h2 { margin-bottom: 4px; }
.panel-card__head .muted { font-size: 13px; }

.panel-list { list-style: none; display: grid; gap: 10px; color: var(--text-3); font-size: 13px; }
.panel-list li { position: relative; padding-left: 16px; line-height: 1.6; }
.panel-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

/* Таблицы */
.table-wrap { width: 100%; overflow-x: auto; margin-inline: -22px; padding-inline: 22px; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td {
  padding: 13px 12px; text-align: left; vertical-align: middle; font-size: 13px;
}
.table th {
  color: var(--text-3); font-weight: 500; font-size: 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--bg-2); }
.table__empty { text-align: center !important; color: var(--text-3); padding: 36px 12px !important; }
.user-cell { display: grid; gap: 2px; }
.user-cell span { color: var(--text-3); font-size: 12px; }
.asset-stack { display: grid; gap: 3px; }
.asset-stack span { color: var(--text-3); font-size: 12px; white-space: nowrap; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }

/* Профиль / мета */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px; }
.meta-tile { border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg-2); padding: 14px; min-width: 0; }
.meta-tile span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.meta-tile strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

.meta-list { display: grid; gap: 12px; }
.meta-list div { display: grid; gap: 3px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.meta-list div:last-child { border-bottom: none; padding-bottom: 0; }
.meta-list span { color: var(--text-3); font-size: 12px; }

.stack-list { display: grid; gap: 8px; margin-top: 16px; }
.status-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-chip {
  border-radius: var(--r-xs); padding: 7px 10px; font-size: 12px;
  border: 1px solid var(--border); color: var(--text-3); background: var(--bg-2);
}
.status-chip.is-success { border-color: rgba(32, 178, 108, .4); background: var(--green-dim); color: #7ee2b0; }

/* Кошелёк */
.wallet-asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.wallet-asset-card {
  border: 1px solid var(--border); background: var(--bg-2); border-radius: var(--r-sm);
  padding: 14px; text-align: left; color: var(--text); cursor: pointer; min-width: 0;
  transition: border-color .15s, background .15s;
  display: grid; gap: 4px;
}
.wallet-asset-card:hover { border-color: var(--border-2); }
.wallet-asset-card.active { border-color: var(--brand); background: var(--brand-dim); }
.wallet-asset-card span, .wallet-asset-card small, .wallet-asset-card strong { display: block; overflow-wrap: anywhere; }
.wallet-asset-card span { color: var(--text-3); font-size: 12px; }
.wallet-asset-card strong { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-asset-card small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

.network-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.network-chip {
  border-radius: var(--r-xs); border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); padding: 9px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.network-chip:hover { border-color: var(--border-2); }
.network-chip span { color: var(--text-3); font-size: 12px; margin-left: 6px; font-weight: 400; }
.network-chip.active { border-color: var(--brand); background: var(--brand-dim); }

.wallet-address-box {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-2);
}
.wallet-address-box > div { min-width: 0; }
.wallet-address-box__label { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 6px; }
.wallet-address-box strong {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.5;
  overflow-wrap: anywhere; margin-bottom: 5px; font-variant-numeric: tabular-nums;
}
.wallet-address-box small { color: var(--text-3); font-size: 12px; }

.api-keys { display: grid; gap: 12px; }
.api-key-row { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.api-key-row:last-child { border-bottom: none; padding-bottom: 0; }
.api-key-label { font-size: 12px; color: var(--text-3); }
.api-key-value { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 12px; word-break: break-all; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; user-select: all; }
.btn--icon { display: inline-flex; align-items: center; gap: 6px; }

.balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.balance-card { border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg-2); padding: 14px; min-width: 0; }
.balance-card span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.balance-card strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-card small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Выпуск карты */
.card-stepper { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.card-stepper__item {
  display: flex; align-items: center; gap: 8px;
  border-radius: var(--r-xs); padding: 9px 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: 13px; font-weight: 500;
}
.card-stepper__item i {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-3); color: var(--text-2);
  display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 600;
}
.card-stepper__item.active { background: var(--brand-dim); border-color: var(--brand-line); color: var(--text); }
.card-stepper__item.active i { background: var(--brand); color: #16181d; }

.card-design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.design-card {
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); text-align: left; padding: 12px; cursor: pointer; min-width: 0;
  display: grid; gap: 2px;
  transition: border-color .15s, background .15s;
  font: inherit;
}
.design-card:hover { border-color: var(--border-2); }
.design-card.active { border-color: var(--brand); background: var(--brand-dim); }
.design-card strong { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.design-card span { display: block; color: var(--text-3); font-size: 11px; line-height: 1.4; }
.design-card__preview {
  width: 100%;
  transform: none !important; animation: none !important;
  box-shadow: none; border-radius: 6px;
}

.type-switch { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.type-switch__item { position: relative; cursor: pointer; }
.type-switch__item input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.type-switch__item span {
  display: inline-flex; align-items: center; border-radius: var(--r-xs);
  padding: 9px 14px; border: 1px solid var(--border); background: var(--bg-2);
  font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s;
}
.type-switch__item input:checked + span { border-color: var(--brand); background: var(--brand-dim); }

.card-builder > .card-hero, .api-step > .card-hero { margin: 18px 0; }

.exchange-logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.exchange-card {
  position: relative; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-2); padding: 16px; display: grid; gap: 10px;
  justify-items: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.exchange-card:hover { border-color: var(--border-2); }
.exchange-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.exchange-card img { width: 86px; height: 24px; object-fit: contain; }
.exchange-card span { color: var(--text-3); font-size: 12px; }
.exchange-card:has(input:checked) { border-color: var(--brand); background: var(--brand-dim); }

.inline-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ================= SUCCESS ================= */
.success {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px; position: relative; overflow: hidden;
}
.success__glow {
  position: absolute; width: 700px; height: 700px; top: -30%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(247, 166, 0, 0.18), transparent 62%); pointer-events: none; z-index: -1;
}
.success__check {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--green-dim); border: 1px solid rgba(32, 178, 108, 0.4);
  color: var(--green); animation: pop .4s var(--ease) both;
}
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; font-weight: 700; }
.success > p { color: var(--text-3); font-size: 16px; max-width: 480px; margin-bottom: 36px; }
.success .card-hero { margin: 0 auto 36px; width: 100%; max-width: 380px; }
.success__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.success__meta { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.success__meta div { text-align: center; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }

/* ================= MOBILE MENU ================= */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  padding: 18px 20px; display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 12px; }

/* ================= UTILITY ================= */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1340px) {
  .app-shell { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .side-nav__list { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .side-nav__item { justify-content: center; }
  .side-nav__help { display: none; }
}

@media (max-width: 1140px) {
  .panel-grid, .panel-grid--dashboard { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; }
  .alloc-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero .card-hero { order: -1; max-width: 420px; }
  .features, .steps { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .panel-stats, .panel-stats--four, .panel-stats--five,
  .filters, .balance-grid, .meta-grid, .wallet-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav__right .btn--ghost { display: none; }
  .nav__user span { display: none; }
  .nav__user { padding: 5px; border: none; }
  .logo__image { height: 34px; }
  .logo__text { font-size: 18px; }
  .cta { padding: 36px 22px; }
  .side-nav__item span { font-size: 13px; }
  .balance-hero__actions { width: 100%; }
  .alloc-legend { grid-template-columns: 1fr; }
  .card-design-grid, .exchange-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-head { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .panel-page { padding-top: 18px; }
  .panel-card { padding: 16px; }
  .table-wrap { margin-inline: -16px; padding-inline: 16px; }
  .panel-stats, .panel-stats--four, .panel-stats--five,
  .filters, .balance-grid, .meta-grid, .wallet-asset-grid,
  .card-design-grid, .exchange-logo-grid, .field--half, .ex-picker {
    grid-template-columns: 1fr;
  }
  .wallet-address-box { flex-direction: column; align-items: stretch; }
  .inline-actions { flex-direction: column; }
  .hero__stats > div { border-right: none; border-bottom: 1px solid var(--border); }
  .hero__stats > div:last-child { border-bottom: none; }
}
