/* Cryptonic Get-the-App banner — mobile top bar */

:root {
  --cnh-get-app-h: 0px;
}

.cnh-get-app {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 58%, #2dd4bf 100%);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
  font-family: inherit;
  box-sizing: border-box;
}

body.cnh-get-app-visible {
  --cnh-get-app-h: calc(52px + env(safe-area-inset-top, 0px));
}

@media (max-width: 900px) {
  body.cnh-get-app-visible .cnh-get-app {
    display: flex;
  }

  html body.cnh-get-app-visible .top-nav,
  html body.cnh-get-app-visible.cnh-trading-active .top-nav,
  html body.cnh-get-app-visible .top-nav:has(#logo[data-logged-in="true"]) {
    top: var(--cnh-get-app-h) !important;
  }

  html body.cnh-get-app-visible .nav-hamburger-stack,
  html body.cnh-get-app-visible.cnh-trading-active .nav-hamburger-stack {
    top: calc(8px + var(--cnh-get-app-h)) !important;
  }

  html body.cnh-get-app-visible .cnh-logo,
  html body.cnh-get-app-visible .top-nav .cnh-logo,
  html body.cnh-get-app-visible .cnh-logo[data-logged-in="true"],
  html body.cnh-get-app-visible.cnh-trading-active .cnh-logo[data-logged-in="true"] {
    top: calc(8px + var(--cnh-get-app-h)) !important;
    z-index: 1205 !important;
  }

  html body.cnh-get-app-visible .top-nav:has(.cnh-logo--guest) .cnh-logo,
  html body.cnh-get-app-visible .top-nav:has(.cnh-logo--guest) .cnh-logo.cnh-logo--guest {
    top: auto !important;
  }

  html body.cnh-get-app-visible .top-nav__right,
  html body.cnh-get-app-visible.cnh-trading-active .top-nav__right {
    top: calc(8px + var(--cnh-get-app-h)) !important;
    z-index: 1205 !important;
  }

  html body.cnh-get-app-visible .top-nav:has(.cnh-logo--guest) .top-nav__right {
    top: auto !important;
    right: auto !important;
  }

  body.cnh-get-app-visible:not(.cnh-trading-active) {
    padding-top: var(--cnh-get-app-h);
  }

  body.cnh-get-app-visible #tradingPage .trading-content,
  body.cnh-get-app-visible.cnh-trading-active #tradingPage .trading-content {
    padding-top: calc(56px + var(--cnh-get-app-h)) !important;
  }
}

@media (min-width: 901px) {
  body.cnh-get-app-visible .cnh-get-app {
    display: none;
  }
}

.cnh-get-app__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cnh-get-app__icon svg {
  width: 20px;
  height: 20px;
}

.cnh-get-app__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cnh-get-app__title {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-get-app__sub {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnh-get-app__download {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  background: #ffffff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.cnh-get-app__download:hover {
  background: #f0fdfa;
}

.cnh-get-app__close {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 360px) {
  .cnh-get-app {
    gap: 6px;
    padding-left: 8px;
    padding-right: 6px;
  }

  .cnh-get-app__icon {
    display: none;
  }

  .cnh-get-app__sub {
    display: none;
  }

  .cnh-get-app__download {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.cnh-download-body {
  margin: 0;
  min-height: 100vh;
  background: #0b1220;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cnh-download {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 18px 20px 32px;
  box-sizing: border-box;
}

.cnh-download__back {
  display: inline-block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.cnh-download__back:hover {
  color: #14b8a6;
}

.cnh-download__brand {
  text-align: center;
  margin: 36px 0 28px;
}

.cnh-download__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(145deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 100%);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.35);
}

.cnh-download__name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cnh-download__ver {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.cnh-download__platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.cnh-download__os {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  min-height: 52px;
  min-width: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #111827;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.cnh-download__os:hover {
  border-color: #14b8a6;
}

.cnh-download__os.is-preferred {
  border-color: #14b8a6;
  background: #13211f;
  color: #14b8a6;
}

.cnh-download__os.is-preferred svg {
  color: #14b8a6;
}

.cnh-download__os svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.cnh-download__panel {
  margin-top: 16px;
}

.cnh-download__panel[hidden],
.cnh-download__howto[hidden] {
  display: none !important;
}

.cnh-download__cta {
  width: 100%;
  height: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
  border: none;
  border-radius: 14px;
  background: #14b8a6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.32);
}

.cnh-download__cta svg {
  width: 20px;
  height: 20px;
}

.cnh-download__cta:hover {
  background: #0d9488;
}

.cnh-download__cta--soon,
.cnh-download__cta:disabled {
  background: #334155;
  color: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
}

.cnh-download__meta {
  margin: 12px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.cnh-download__howto {
  margin-top: 28px;
}

.cnh-download__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cnh-step;
}

.cnh-download__steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 2px 0 2px 40px;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.45;
  counter-increment: cnh-step;
}

.cnh-download__steps li::before {
  content: counter(cnh-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #14b8a6;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cnh-download__unavailable {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}

.cnh-download__hint {
  margin: 14px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.cnh-download__hint.is-alert {
  color: #d1d5db;
}

.cnh-download__features {
  margin-top: 36px;
}

.cnh-download__eyebrow {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cnh-download__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #1e293b;
}

.cnh-download__ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.18);
  color: #14b8a6;
}

.cnh-download__ico svg {
  width: 20px;
  height: 20px;
}

.cnh-download__card h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.cnh-download__card p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.cnh-download__foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

html[data-cnh-theme="light"] .cnh-download-body {
  background: #ffffff;
  color: #111827;
}

html[data-cnh-theme="light"] .cnh-download__os {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #111827;
}

html[data-cnh-theme="light"] .cnh-download__card {
  background: #f8fafc;
}

html[data-cnh-theme="light"] .cnh-download__name,
html[data-cnh-theme="light"] .cnh-download__card h3 {
  color: #111827;
}

html[data-cnh-theme="light"] .cnh-download__os.is-preferred {
  background: #f0fdfa;
  border-color: #14b8a6;
  color: #0f766e;
}

html[data-cnh-theme="light"] .cnh-download__unavailable {
  background: #f8fafc;
}

html[data-cnh-theme="light"] .cnh-download__steps li {
  color: #374151;
}
