/**
 * Load AFTER crypto3-theme.css. Overrides legacy my-assets (e.g. bare `header { position: fixed }`).
 */
 body.crypto3-body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  background: radial-gradient(1000px 600px at 15% -10%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
  color: #000000 !important;
  overflow-x: hidden;
}

body.crypto3-body .site-main {
  position: relative;
  z-index: 1;
}

/*
 * Lead popup: `.site-main` uses z-index:1, so a position:fixed overlay *inside* main was painted
 * under the header (z-index:1080). Popup is output after </main>; keep stacking above the bar.
 */
body.crypto3-body #popupForm.popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000000 !important;
  isolation: isolate;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(72px, 10vh, 100px) 16px 32px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.crypto3-body #popupForm.popup-overlay .popup-content {
  margin: auto;
  max-height: min(88vh, calc(100vh - clamp(100px, 14vh, 140px)));
  overflow-y: auto !important;
}

body.crypto3-body #popupForm.popup-overlay .close {
  z-index: 2;
}

/*
 * Legacy my-assets/style.css sets `.container { max-width: 1230px; }` with no breakpoints.
 * That overrides Bootstrap 5’s responsive max-widths, so between ~992px and ~1230px viewport
 * the bar becomes almost full-bleed (unlike crypto3/index.html). Restore BS5 container scale.
 */
body.crypto3-body .container {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 576px) {
  body.crypto3-body .container {
    max-width: 540px !important;
  }
}

@media (min-width: 768px) {
  body.crypto3-body .container {
    max-width: 720px !important;
  }
}

@media (min-width: 992px) {
  body.crypto3-body .container {
    max-width: 960px !important;
  }
}

@media (min-width: 1200px) {
  body.crypto3-body .container {
    max-width: 1140px !important;
  }
}

@media (min-width: 1400px) {
  body.crypto3-body .container {
    max-width: 1320px !important;
  }
}

/* my-assets/style.css: `header { position: fixed; z-index: 999; padding: 10px 0; }` breaks crypto3 */
body.crypto3-body header.site-header.crypto3-site-header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  z-index: 1080 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(14, 165, 233, 0.22) !important;
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(12px);
}

body.crypto3-body header.site-header.crypto3-site-header .navbar {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* Legacy `.footer { border-bottom; padding-bottom: 50px }` */
body.crypto3-body footer.footer.crypto3-footer {
  border-bottom: none !important;
  padding: 40px 0 28px !important;
  background: #ffffff !important;
  backdrop-filter: blur(10px);
}

body.crypto3-body footer.crypto3-footer .footer-premium-divider {
  height: 2px !important;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.55), rgba(37, 99, 235, 0.5), rgba(96, 165, 250, 0.55)) !important;
}

body.crypto3-body footer.crypto3-footer .footer-bottom-bar {
  border-top: 1px solid rgba(14, 165, 233, 0.28) !important;
}

/* Reduce legacy conflicts on nav / hero */
body.crypto3-body .site-header .navbar-nav .nav-link {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.crypto3-body .site-header .navbar-light .navbar-nav .nav-link.uppercase-link {
  color: #8c8c8c !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.5px !important;
}

body.crypto3-body .site-header .navbar-light .navbar-nav .nav-link.uppercase-link.active-cyan,
body.crypto3-body .site-header .navbar-light .navbar-nav .nav-link.uppercase-link:hover {
  color: #00d2ff !important;
}

body.crypto3-body .site-header .dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid rgba(37, 99, 235, 0.12) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12) !important;
  padding: 8px !important;
  margin-top: 8px !important;
}

body.crypto3-body .site-header .dropdown-item {
  border-radius: 10px;
  font-weight: 600;
}

/* `.reveal` defaults to opacity:0 until JS adds `.is-visible`; if IO never fires, the page looks blank */
body.crypto3-body section.hero .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.crypto3-body .crypto3-site-header .navbar-brand {
  margin-right: 0.5rem;
  /* Collapse stray text/whitespace next to logo (duplicate wordmark vs logo-with-text) */
  font-size: 0;
  line-height: 0;
}

body.crypto3-body .crypto3-site-header .navbar-brand .brand-mark {
  font-size: 1rem;
  line-height: normal;
}

body.crypto3-body .crypto3-footer .footer-brand-left > a.text-decoration-none {
  font-size: 0;
  line-height: 0;
}

body.crypto3-body .crypto3-footer .footer-brand-left > a.text-decoration-none .footer-logo {
  font-size: 1rem;
  line-height: normal;
}

body.crypto3-body .crypto3-site-header .crypto3-nav-cta {
  font-size: 0.75rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

body.crypto3-body .site-header .dropdown-toggle::after {
  border-top-color: #9ca3af !important;
}

body.crypto3-body section.hero .hero-title,
body.crypto3-body section.hero .hero-subtitle,
body.crypto3-body section.hero .hero-point {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Converter output row: match template (no spinners on number) */
body.crypto3-body #converttocrypto::-webkit-outer-spin-button,
body.crypto3-body #converttocrypto::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.crypto3-body #converttocrypto {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Final CTA card: win over legacy my-assets heading/button rules */
body.crypto3-body .section-final-cta .section-cta {
  padding: 22px 24px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(37, 99, 235, 0.08)) !important;
  border: 1px solid rgba(37, 99, 235, 0.14) !important;
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.08) !important;
}
body.crypto3-body .section-final-cta .section-cta .section-kicker {
  color: rgba(37, 99, 235, 0.92) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.9rem !important;
}
body.crypto3-body .section-final-cta .section-cta .section-title {
  font-size: clamp(24px, 2.7vw, 36px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
}
body.crypto3-body .section-final-cta .section-cta .section-subtitle {
  color: rgba(71, 85, 105, 0.95) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Footer: circular social icons (match design mockups; template uses rounded squares in CSS — mockups show circles) */
body.crypto3-body .crypto3-footer .footer-social-link {
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
}
body.crypto3-body .crypto3-footer .footer-social-link svg {
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Header & footer only: my-assets global `.btn` / `.form-control` break these
   (they sit outside `.site-main`). Reset to match crypto3 template.
   ------------------------------------------------------------------------- */
body.crypto3-body header.site-header .btn,
body.crypto3-body footer.crypto3-footer .btn {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  position: relative !important;
  z-index: 1 !important;
}

body.crypto3-body header.site-header .btn::before,
body.crypto3-body footer.crypto3-footer .btn::before {
  display: none !important;
  content: none !important;
}

body.crypto3-body header.site-header .btn:hover,
body.crypto3-body footer.crypto3-footer .btn:hover {
  transform: translateY(-1px) !important;
}

body.crypto3-body header.site-header .btn.btn-cyan {
  background-color: #00d2ff !important;
  background-image: none !important;
  border: 1px solid #00d2ff !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 0.25rem !important;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.25) !important;
}

body.crypto3-body header.site-header .btn.btn-cyan:hover {
  background-color: #00baeb !important;
  border-color: #00baeb !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35) !important;
}

body.crypto3-body footer.crypto3-footer .btn.btn-glow {
  background: linear-gradient(135deg, rgba(14, 165, 233, 1), rgba(37, 99, 235, 1)) !important;
  border: none !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 0.5rem 1rem !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.18) !important;
}

body.crypto3-body footer.crypto3-footer .btn.btn-glow:hover {
  color: #fff !important;
  box-shadow: 0 16px 44px rgba(37, 99, 235, 0.22) !important;
}

body.crypto3-body footer.crypto3-footer .footer-newsletter .form-control,
body.crypto3-body footer.crypto3-footer .footer-lang .form-select,
body.crypto3-body footer.crypto3-footer .footer-lang select.lang-change {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 14px !important;
  padding: 0.375rem 0.75rem !important;
  box-shadow: none !important;
  height: auto !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  color: #0f172a !important;
}

body.crypto3-body footer.crypto3-footer .footer-newsletter .form-control:focus,
body.crypto3-body footer.crypto3-footer .footer-lang .form-select:focus,
body.crypto3-body footer.crypto3-footer .footer-lang select.lang-change:focus {
  border-color: rgba(37, 99, 235, 0.45) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

body.crypto3-body footer.crypto3-footer .footer-lang select.lang-change {
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

body.crypto3-body footer.crypto3-footer .footer-lang {
  margin-top: 1rem !important;
}

body.crypto3-body header.site-header .navbar-toggler {
  border-color: rgba(37, 99, 235, 0.25) !important;
  padding: 0.4rem 0.55rem !important;
}

body.crypto3-body header.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15) !important;
}

/* Login + register: panes sit in two columns (not direct children of .tab-content). Keep both forms visible. */
body.crypto3-body .reg-wrapper .tab-pane {
  display: block !important;
  opacity: 1 !important;
}
