/* SPA-only styles (uses modern CSS nesting) — GSAP + Lenis powered */

/* Lenis base */
html.lenis, html.lenis body {
  height: auto;
}

html.spa-root {
  overflow-x: hidden;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body.spa {
  min-height: 100vh;
  --content-px: 240px;
  overflow-x: hidden;
}

@media (max-width: 1480px) {
  body.spa { --content-px: 40px; }
}

@media (max-width: 1024px) {
  body.spa { --content-px: 24px; }
}

.spa-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
}

/* ---------- Главная (Figma node 31:2) ---------- */

.home-wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--content-px);
  position: relative;
}

/* ---------- Биржа (Trade) fine-tuning ---------- */

.trade-wrap {
  position: relative;
}

.trade-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  z-index: 50;
  border-radius: 12px;
}

.trade-loader-active {
  display: flex;
}

.trade-loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: tradeSpin 0.9s linear infinite;
}

@keyframes tradeSpin {
  to {
    transform: rotate(360deg);
  }
}

.trade-input-el {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

/* home-wrap responsive padding handled by --content-px */

/* Header */
body.spa {
  & .app-header {
    height: 77px;
    background: #18181b;
  }

  & .header-inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--content-px);
  }
}

.home-nav-left {
  display: flex;
  align-items: center;
  gap: 60px;
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.home-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #155dfc 0%, #51a2ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  & img {
    width: 24px;
    height: 24px;
    display: block;
  }
}

.home-logo-text {
  font-weight: 700;
  font-size: 20px;
  color: #f4f4f5;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 34px;

  & a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
  }
}

.home-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.home-support-links {
  display: flex;
  align-items: center;
  gap: 30px;

  & a {
    font-size: 14px;
    font-weight: 500;
    color: #d4d4d8;
    text-decoration: none;
  }
}

.home-auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}

.home-btn-primary {
  width: 145px;
  background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
  color: #f4f4f5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(21, 93, 252, 0.35);
  }
  &:active { transform: translateY(0); }
}

.home-btn-outline {
  width: 77px;
  border-color: #155dfc;
  color: #d4d4d8;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;

  &:hover {
    background: rgba(21, 93, 252, 0.1);
    border-color: #2b7fff;
  }
}

/* Hide mobile-only elements on desktop */
.mobile-header-btn { display: none; }

/* Headings */
.home-h2 {
  font-size: 50px;
  line-height: 50px;
  font-weight: 600;
  color: #f4f4f5;
}

.home-subtitle {
  margin-top: 9px;
  font-size: 18px;
  line-height: 28px;
  color: #9f9fa9;
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  height: 724px;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(159.3393766998568deg, rgba(21, 93, 252, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(152, 16, 250, 0.2) 100%);
}

.home-hero-inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px var(--content-px) 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  .home-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Prevent horizontal overflow on tablet/mobile widths */
@media (max-width: 1024px) {
  body.spa {
    overflow-x: hidden;
  }

  .home-hero {
    height: auto;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .home-hero-right {
    justify-content: center;
  }

  .home-hero-art {
    width: 100%;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-conditions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-contacts-cards {
    flex-direction: column;
  }

  .home-contact-card {
    width: 100%;
    max-width: 720px;
  }

  .home-footer-inner {
    padding: 24px var(--content-px) 0;
  }

  .home-footer-cols {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  /* Header: match mobile intent (menu icon) and avoid overflow */
  .home-nav-links,
  .home-support-links,
  .home-auth-actions {
    display: none;
  }

  .home-menu-btn {
    display: inline-flex;
  }

  /* Steps: switch to vertical layout to avoid horizontal scroll */
  .home-steps-stage {
    width: 100%;
    height: auto;
  }

  .home-steps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
  }

  .home-steps-arrow {
    display: none;
  }

  .home-step-card {
    width: 100%;
    max-width: 292px;
    margin: 0 auto;
  }

  .home-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
  }

  .home-step-arrow img {
    width: 22px;
    height: 22px;
    transform: rotate(90deg);
    display: block;
  }

  /* Footer: single column */
  .home-footer-cols {
    grid-template-columns: 1fr;
  }
}

.home-menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  border: 0;
  padding: 0;
  align-items: center;
  justify-content: center;

  & img {
    width: 17px;
    height: 18px;
    display: block;
  }
}

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  background: rgba(37, 118, 254, 0.05);
  border: 1px solid rgba(43, 127, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
}

.home-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #0bcc6b;
}

.home-hero-title {
  margin-top: 9px;
  font-size: 50px;
  line-height: 75px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.home-hero-title-1 {
  color: #f4f4f5;
}

.home-hero-title-2 {
  background: linear-gradient(90deg, #51a2ff 0%, #155dfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-desc {
  margin-top: 10px;
  font-size: 18px;
  line-height: 29.25px;
  color: #b7b7b7;
  max-width: 560px;
}

.home-hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 17px;
}

.home-btn-hero {
  height: 58px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 33px;
  font-size: 16px;
  text-decoration: none;
  color: #f4f4f5;

  & img {
    width: 20px;
    height: 20px;
    display: block;
  }
}

.home-btn-hero-primary {
  width: 238px;
  background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(21, 93, 252, 0.4);
  }
  &:active { transform: translateY(0); }
}

.home-btn-hero-secondary {
  width: 234px;
  background: #18181b;
  border: 1px solid #27272a;
  transition: border-color 0.2s ease, background 0.2s ease;

  &:hover {
    border-color: #3f3f46;
    background: #1f1f23;
  }
}

.home-hero-stats {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-stat-val {
  font-size: 24px;
  line-height: 32px;
  color: #f4f4f5;
}

.home-stat-lbl {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #9f9fa9;
}

.home-stat-divider {
  width: 1px;
  height: 48px;
  background: #27272a;
}

.home-hero-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.home-hero-art {
  margin-top: -12px;
  width: 952px;
  height: 579px;
  border-radius: 16px;
  background: rgba(24, 24, 27, 0.8);
  position: relative;
  overflow: hidden;
}

.home-hero-art-payment {
  position: absolute;
  left: -40px;
  width: 1120px;
  transform: rotate(12.35deg);
  opacity: 1;
}

.home-hero-art-btc1 {
  position: absolute;
  right: -120px;
  top: -90px;
  width: 520px;
  transform: rotate(2.54deg);
}

.home-hero-art-btc2 {
  position: absolute;
  left: -60px;
  bottom: -220px;
  width: 520px;
  transform: rotate(2.5deg);
}

.home-hero-after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 707px;
  background: #18181b;
  transform: translateY(724px);
}

/* Features section */
.home-features {
  background: #18181b;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.home-features-wavy {
  position: absolute;
  pointer-events: none;
  opacity: 0.02;
  overflow: hidden;
}

.home-features-wavy img {
  display: block;
  max-width: none;
  width: 285%;
}

.home-features-wavy-tl {
  width: 369px;
  height: 508px;
  top: 0;
}

.home-features-wavy-tr {
  width: 347px;
  height: 483px;
  right: -100px;
  bottom: 0;
  transform: scaleY(-1);
}

.home-features .home-h2 {
  text-align: left;
}

.home-features-grid {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}

/* Override base feature cards to match 31:2 icon gradient */
.home-features {
  & .feature-card {
    height: 196px;
  }

  & .icon-box-gradient {
    background: linear-gradient(135deg, #155dfc 0%, #51a2ff 100%);
  }
}

/* Steps + Conditions shared wrapper */
.home-steps-conditions-wrap {
  background: linear-gradient(143.3023767921933deg, rgba(21, 93, 252, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(152, 16, 250, 0.2) 100%);
}

/* Steps */
.home-steps {
  padding: 66px 0 40px;
}

.home-steps-stage {
  position: relative;
  width: 1441px;
  height: 284px;
  margin-top: 63px;
}

@media (max-width: 1480px) {
  .home-steps .home-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.home-steps-row {
  margin-top: 0;
  display: flex;
  align-items: flex-end;
  gap: 63px;
  height: 284px;
}

.home-steps-arrow {
  position: absolute;
  top: 191px;
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);

  &::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    transform: rotate(45deg);
  }
}

/* Exact x positions from Figma (node 94:1423): Arrow 1/2/3 */
.home-steps-arrow-1 { left: 329px; }
.home-steps-arrow-2 { left: 705px; }
.home-steps-arrow-3 { left: 1080px; }

.home-step-card {
  width: 313px;
  height: 276px;
  position: relative;
}

.home-step-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 188px;
  background: #222;
  border-radius: 16px;
}

.home-step-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 63px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f4f5;
  font-size: 18px;
  font-weight: 500;
}

.home-step-img {
  position: absolute;
  top: 0;
  left: 58px;
  width: 195px;
  height: 195px;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.home-step-num {
  position: absolute;
  left: 23px;
  top: 121px;
  font-size: 50px;
  line-height: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
}

.home-step-arrow {
  display: none;
}

/* Conditions */
.home-conditions {
  padding: 60px 0 80px;
}

.home-conditions-line {
  margin-top: 0;
  width: 100%;
  height: 1px;
  opacity: 1;

  & img {
    width: 100%;
    height: 1px;
    display: block;
  }
}

.home-conditions-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 465px;
  gap: 160px;
  align-items: start;
}

.home-conditions-illustr {
  height: 636px;
  border-radius: 16px;
  background: rgba(24, 24, 27, 0.8);
  position: relative;
  overflow: hidden;

  & img {
    position: absolute;
    left: -180px;
    top: -220px;
    width: 900px;
    transform: rotate(90deg);
    display: block;
  }
}

.home-conditions-cards {
  position: relative;
  padding-top: 0;
}

.home-conditions-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Conditions cards in Figma are ~192px tall; match to align connector lines */
.home-conditions {
  & .feature-card {
    height: 192px;
    padding: 20px 25px;
  }
}

.home-conditions-vline {
  position: absolute;
  left: -121px;
  top: -10px;
  width: 1px;
  height: 656px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.50) 48.08%, rgba(255, 255, 255, 0.00) 100%);

  & img { display: none; }
}

.home-conditions-hline {
  position: absolute;
  left: -121px;
  width: 121px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.50) 48.08%, rgba(255, 255, 255, 0.00) 100%);

  & img { display: none; }
}

/* Exact y positions from Figma (node 31:2): Line 6/5/7 relative to cards stack */
.home-conditions-hline-1 { top: 87px; }
.home-conditions-hline-2 { top: 319px; }
.home-conditions-hline-3 { top: 529px; }

/* FAQ */
.home-faq {
  background: #141414;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.home-faq-list {
  margin-top: 29px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-faq-item {
  border-radius: 16px;
  background: #222;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.25s ease;

  &:hover {
    background: #282828;
  }
}

.home-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px 0 25px;
  height: 60px;
  user-select: none;
}

.home-faq-q {
  font-size: 16px;
  line-height: 15px;
  color: #ffffff;
}

.home-faq-ico {
  width: 24px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;

  & img {
    width: 12px;
    height: 24px;
    transform: rotate(90deg);
    display: block;
  }
}

.home-faq-item.open .home-faq-ico {
  transform: rotate(180deg);
}

.home-faq-answer {
  height: 0;
  overflow: hidden;
  /* GSAP controls height animation */
}

.home-faq-answer-inner {
  padding: 0 25px 20px;
  font-size: 14px;
  line-height: 22px;
  color: #9f9fa9;
}

/* CTA Section */
.home-cta {
  padding: 64px 95px;
}

.home-cta-inner {
  background: linear-gradient(167deg, #155dfc 0%, #2b7fff 100%);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  overflow: hidden;
}

.home-cta-title {
  font-size: 48px;
  line-height: 48px;
  color: #f4f4f5;
  font-weight: 400;
  font-family: Arial, sans-serif;
  margin-bottom: 16px;
}

.home-cta-desc {
  font-size: 18px;
  line-height: 28px;
  color: #eff6ff;
  margin-bottom: 32px;
}

.home-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.home-btn-glass {
  background: rgba(20, 71, 230, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 14px;
  padding: 17px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;

  &:hover {
    background: rgba(20, 71, 230, 0.7);
  }
}

/* GSAP will handle feature card animation — just set initial hidden state */
.home-features-grid .feature-card,
.home-conditions-stack .feature-card {
  will-change: opacity, transform;
}

/* Smooth transitions on interactive elements */
.home-btn,
.feature-card,
.home-contact-card,
.home-faq-item {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(43, 127, 255, 0.35);
  box-shadow: 0 4px 24px rgba(21, 93, 252, 0.1);
}

.home-faq-item:hover {
  border-color: rgba(43, 127, 255, 0.2);
}

/* Contact Modal */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* GSAP controls opacity */
}

.contact-modal {
  background: linear-gradient(167deg, #155dfc 0%, #2b7fff 100%);
  border-radius: 20px;
  padding: 30px;
  width: 670px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
  /* GSAP controls transform + opacity */
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 1;

  &:hover {
    transform: scale(1.05);
  }
}

.contact-modal-title {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  padding-right: 50px;
}

.contact-modal-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 22px;
  font-weight: 400;
}

.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;

  & input[type="text"],
  & input[type="tel"],
  & textarea {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    outline: none;
    box-sizing: border-box;

    &::placeholder {
      color: #999;
    }
  }

  & textarea {
    resize: vertical;
    min-height: 100px;
  }
}

.contact-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;

  & input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #155dfc;
    cursor: pointer;
  }
}

.contact-modal-submit {
  background: #fff;
  color: #4d4d4d;
  border: none;
  border-radius: 10px;
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  width: 171px;
  transition: transform 0.2s;

  &:hover {
    transform: translateY(-1px);
  }

  &:disabled {
    opacity: 0.7;
    cursor: default;
  }
}

/* Contacts */
.home-contacts {
  position: relative;
  padding: 45px 0 56px;
}

.home-contacts-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(158.89652839935968deg, rgba(21, 93, 252, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(152, 16, 250, 0.2) 100%);
}

.home-contacts .home-wrap {
  position: relative;
}

.home-contacts-cards {
  margin-top: 25px;
  display: flex;
  gap: 20px;
}

.home-contact-card {
  width: 467px;
  height: 228px;
  background: #222;
  border-radius: 16px;
  padding: 20px 25px;

  & h3 {
    font-size: 18px;
    line-height: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
  }

  & p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.6);
  }

  & .muted {
    color: rgba(255, 255, 255, 0.6);
  }

  & .link {
    text-decoration: underline;
    font-weight: 500;
    color: #ffffff;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.75;
    }
  }

  & .home-btn {
    margin-top: 16px;
  }
}

.home-contacts-cta {
  margin-top: 31px;
  height: 295px;
  border-radius: 16px;
  background: linear-gradient(168.40684420266695deg, #155dfc 0%, #2b7fff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  & h3 {
    font-size: 48px;
    line-height: 48px;
    font-weight: 600;
    color: #f4f4f5;
    margin: 0;
  }

  & p {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: #eff6ff;
  }
}

.home-btn-white {
  margin-top: 24px;
  height: 58px;
  width: 268px;
  border-radius: 14px;
  background: #ffffff;
  color: #4d4d4d;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
}

/* Footer */
.home-footer {
  background: #1a1a1a;
  border-top: 1px solid #27272a;
}

.home-footer-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 25px var(--content-px) 0;
}

.home-footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 24px;
}

.home-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-footer-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #155dfc 0%, #51a2ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  & img {
    width: 20px;
    height: 20px;
    display: block;
  }
}

.home-footer-brandtext {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #f4f4f5;
}

.home-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 230px;
  gap: 32px;
  width: 100%;
  max-width: 1436px;
}

.home-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;

  & a {
    font-size: 14px;
    line-height: 20px;
    color: #9f9fa9;
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: #f4f4f5;
    }
  }
}

.home-footer-title {
  font-size: 16px;
  line-height: 24px;
  color: #f4f4f5;
}

.home-footer-bottom {
  height: 65px;
  border-top: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-footer-privacy {
  font-size: 14px;
  line-height: 20px;
  color: #71717b;
  text-decoration: underline;
}

.home-footer-copy {
  font-size: 14px;
  line-height: 20px;
  color: #71717b;
}

/* Home layout pieces missing from base stylesheet */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
}

.faq-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.faq-side {
  flex: 0 0 360px;
}

.faq-main {
  flex: 1;
}

@media (max-width: 1024px) {
  .faq-layout {
    flex-direction: column;
    gap: 30px;
  }

  .faq-side {
    flex: 1 1 auto;
  }
}

/* Auth pages */
.auth-page {
  min-height: 89vh;
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, rgba(21, 93, 252, 0.20) 0%, rgba(0, 0, 0, 0.00) 50%, rgba(152, 16, 250, 0.20) 100%);

  & .auth-modal {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-dark-2);
    border: 1px solid var(--bg-dark-5);
    border-radius: 16px;
    padding: 28px 28px 24px;
  }

  & .auth-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
  }

  & .auth-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.5;
  }

  & .auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;

    & label {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
    }
  }

  & .auth-input {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--bg-dark-5);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-white);
    padding: 0 14px;
    outline: none;

    &:focus {
      border-color: rgba(43, 127, 255, 0.6);
      box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.12);
    }
  }

  & .auth-field {
    position: relative;

    & .auth-field-icon {
      position: absolute;
      right: 14px;
      top: 13px;
      width: 24px;
      height: 24px;
      cursor: pointer;
      opacity: 0.9;
    }
  }

  & .auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 18px;

    & a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: underline;
      font-size: 14px;
      font-weight: 500;
    }
  }

  & .auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);

    & a {
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 500;
      text-decoration: none;
    }
  }

  & .auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;

    & .auth-title {
      margin-bottom: 0;
    }
  }

  & .auth-back {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.15s;

    path {
      stroke-width: 2px;
      stroke: var(--buttom, #155DFC);
    }

    &:hover { opacity: 1; }
  }

  & .auth-password-hint {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  & .auth-terms {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 18px;

    & input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      min-width: 16px;
      border-radius: 3px;
      background: var(--accent-gradient);
      position: relative;
      cursor: pointer;
      margin-top: 2px;

      &::after {
        content: '';
        position: absolute;
        left: 5.5px;
        top: 1px;
        width: 5px;
        height: 9px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity 0.15s;
      }

      &:checked::after {
        opacity: 1;
      }
    }

    & label {
      flex: 1;
      font-size: 12px;
      color: var(--text-gray);
      cursor: pointer;
      line-height: 1.4;

      & a {
        color: rgba(255, 255, 255, 0.95);
        text-decoration: underline;
      }
    }
  }
}

/* ── Verify email code input ──────────────────────────────────────── */
.verify-code-input {
  text-align: center !important;
  letter-spacing: 0.35em !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace !important;
}
.verify-timer {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.verify-timer strong {
  color: rgba(255,255,255,0.7);
}
.verify-resend {
  font-size: 14px;
  color: #3B82F6;
  text-decoration: none;
  cursor: pointer;
}
.verify-resend:hover {
  text-decoration: underline;
}

/* Tiny helper for SPA header links */
.spa-link {
  cursor: pointer;

  path {
    stroke-width: 2px;
    stroke: var(--buttom, #155DFC);
  }
}

/* ---------- KYC Verification (Figma nodes 218:421, 218:700) ---------- */

.kyc-page {
  padding-top: 100px;
}

.kyc-modal {
  max-width: 571px !important;
  border-radius: 20px !important;
  padding: 30px !important;
}

.kyc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.kyc-back {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.kyc-back:hover {
  opacity: 1;
}

.kyc-title {
  font-size: 25px;
  font-weight: 600;
  color: #fff;
  line-height: normal;
}

.kyc-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.5;
}

.kyc-subtitle-long {
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Upload zone */
.kyc-upload-zone {
  background: #323232;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.15s;
  position: relative;
}
.kyc-upload-zone:hover {
  background: #3a3a3a;
}
.kyc-upload-zone.has-file {
  border: 1px solid rgba(21, 93, 252, 0.5);
}
.kyc-upload-zone.drag-over {
  background: #3a3a3a;
  border: 2px dashed rgba(21, 93, 252, 0.6);
}

.kyc-upload-label {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

.kyc-link {
  text-decoration: underline;
  cursor: pointer;
}

.kyc-hint-optional {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.kyc-upload-icon {
  margin: 0 auto 8px;
  width: 73px;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kyc-upload-icon svg {
  width: 100%;
  height: 100%;
}

.kyc-upload-action {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

.kyc-upload-hint {
  font-size: 12px;
  color: #fff;
  opacity: 0.7;
}

.kyc-upload-preview {
  margin-top: 10px;
}
.kyc-upload-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  object-fit: contain;
}
.kyc-upload-preview .kyc-file-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* Custom select dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger.auth-input {
  padding-right: 14px;
}

.custom-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 0;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.custom-select-option:hover {
  background: rgba(21, 93, 252, 0.15);
  color: #fff;
}

.custom-select-option.selected {
  color: #fff;
  background: rgba(21, 93, 252, 0.25);
}

/* Mobile overrides for custom select */
@media (max-width: 600px) {
  .custom-select-options {
    background: #1a1a20;
  }
  .custom-select-trigger.auth-input {
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Submit button */
.kyc-submit {
  width: 100%;
  height: 50px;
  font-size: 14px;
  border-radius: 10px;
  background: linear-gradient(to right, #155dfc, #2b7fff);
  border: none;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.kyc-submit:hover {
  opacity: 0.9;
}

/* Pending page */
.kyc-pending {
  text-align: center;
}
.kyc-pending-icon {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
}
.kyc-pending-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.kyc-link-back {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  text-decoration: underline;
}

/* ---------- Биржа (Figma node 94:2675) ---------- */

.trade-page {
  background: #141414;
  padding-bottom: 0;
}

.trade-wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px var(--content-px) 2%;
}

.trade-breadcrumb {
  font-size: 14px;
  line-height: 29.25px;
  color: #b7b7b7;
}

.trade-breadcrumb span {
  color: #ffffff;
}

.trade-title {
  margin: 4px 0 14px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  color: #f4f4f5;
}

.trade-h2 {
  margin: 22px 0 14px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: #f4f4f5;
}

.trade-card {
  background: #222;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 23px;
}

.trade-pairs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trade-pair-btn {
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid #155dfc;
  background: transparent;
  color: #d4d4d8;
}

.trade-pair-btn-active {
  height: 41px;
  border: 0;
  background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
  color: #f4f4f5;
}

/* Side toggle (buy/sell) — hidden on desktop */
.trade-side-toggle {
  display: none;
}

.trade-modes {
  margin-top: 16px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.trade-mode {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  line-height: 28px;
  color: #b7b7b7;
  cursor: pointer;
}

.trade-mode-active {
  color: #f4f4f5;
  position: relative;
}

.trade-mode-active::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -2px;
  height: 2px;
  background: #ff9f43;
}

.trade-panels {
  margin-top: 13px;
  display: flex;
  gap: 25px;
}

.trade-panel {
  width: 682px;
  max-width: 100%;
}

.trade-panel-inner {
  background: #323232;
  border-radius: 12px;
  padding: 21px 23px 23px;
}

.trade-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trade-panel-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: #ffffff;
}

.trade-panel-balance {
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #ffffff;
}

.trade-panel-balance span {
  color: #b7b7b7;
}

.trade-panel-sep {
  margin-top: 17px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.trade-fields {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trade-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 0;
}

.trade-label {
  font-size: 14px;
  line-height: 28px;
  color: #ffffff;
}

.trade-input-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
}

.trade-fee-row {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 15px;
}

.trade-input {
  height: 49px;
  border-radius: 5px;
  background: #404040;
  display: flex;
  align-items: center;
  padding: 0 17px;
  justify-content: space-between;
}

.trade-input-wide {
  grid-column: 2;
}

.trade-muted {
  font-size: 14px;
  line-height: 28px;
  color: #b7b7b7;
}

.trade-sfx {
  font-size: 14px;
  line-height: 28px;
  color: #b7b7b7;
}

.trade-max {
  height: 49px;
  border-radius: 5px;
  background: #555353;
  border: 0;
  font-size: 14px;
  line-height: 28px;
  color: #ffffff;
  cursor: pointer;
}

.trade-action {
  margin-top: 20px;
  height: 50px;
  width: 145px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #f4f4f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trade-action-buy {
  background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
}

.trade-action-sell {
  background: transparent;
  border-color: #155dfc;
}

.trade-book {
  margin-top: 12px;
}

.trade-book-grid {
  display: flex;
  gap: 25px;
}

.trade-book-col {
  width: 682px;
  max-width: 100%;
  background: #323232;
  border-radius: 12px;
  padding: 13px 11px;
}

.trade-book-title {
  font-size: 14px;
  line-height: 28px;
  font-weight: 500;
  color: #f4f4f5;
  margin: 0 0 10px 12px;
}

.trade-table {
  border-radius: 12px;
  overflow: hidden;
}

.trade-thead {
  background: #404040;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trade-th {
  height: 41px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #ffffff;
}

.trade-tbody {
  max-height: 384px;
  overflow: auto;
}

.trade-trow {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-row-sell {
  background: rgba(255, 0, 0, 0.05);
}

.trade-row-buy {
  background: rgba(0, 255, 0, 0.05);
}

.trade-td {
  padding: 0 16px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-td-price {
  width: 200px;
}

.trade-td-amt {
  width: 190px;
  text-align: left;
}

.trade-td-total {
  flex: 1;
}

.trade-td-time {
  width: 220px;
}

.trade-price-sell {
  color: #ff6767;
}

.trade-price-buy {
  color: #62ffa9;
}

.trade-last {
  margin-top: 36px;
}

.trade-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trade-tab-btn {
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid #155dfc;
  background: transparent;
  color: #d4d4d8;
}

.trade-tab-btn-active {
  height: 41px;
  border: 0;
  background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
  color: #f4f4f5;
}

.trade-table-big {
  margin-top: 16px;
  background: #323232;
  border-radius: 12px;
  overflow: hidden;
}

.trade-table-big .trade-tbody {
  max-height: 360px;
}

@media (max-width: 1480px) {
  .trade-wrap {
    padding: 24px var(--content-px) 0;
  }

  .trade-panels,
  .trade-book-grid {
    flex-direction: column;
  }

  .trade-panel,
  .trade-book-col {
    width: 100%;
  }
}

/* ---------- Главная (Figma node 112:2, mobile) ---------- */

@media (max-width: 1024px) {
  /* Container to match full width + padding */
  .home-wrap,
  body.spa .header-inner,
  .home-hero-inner,
  .home-footer-inner {
    max-width: 100%;
    margin: 0 auto;
  }

  .home-wrap {
    overflow: visible;
  }

  body.spa {
    & .app-header {
      height: 61px;
    }

    & .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 61px;
    }
  }

  .home-nav-left {
    gap: 8px;
  }

  .home-logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;

    & img {
      width: 16px;
      height: 16px;
    }
  }

  .home-logo-text {
    font-size: 16px;
    line-height: 28px;
  }

  /* Hide Desktop Nav */
  .home-nav-links,
  .home-support-links,
  .home-auth-actions {
    display: none;
  }

  /* Hamburger / Close Button */
  .mobile-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    border-radius: 6px;
    position: relative;
    transition: background 0.2s;
  }
  .mobile-header-btn span {
    display: block;
    position: absolute;
    width: 20px;
    height: 2px;
    background: #f4f4f5;
    border-radius: 2px;
    transition: 0.3s;
  }
  .mobile-header-btn span:nth-child(1) { transform: translateY(-6px); }
  .mobile-header-btn span:nth-child(3) { transform: translateY(6px); }

  .mobile-header-btn.active {
    background: white;
  }
  .mobile-header-btn.active span {
    background: #18181b;
  }
  .mobile-header-btn.active span:nth-child(1) { transform: rotate(45deg); }
  .mobile-header-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-header-btn.active span:nth-child(3) { transform: rotate(-45deg); }

  /* Mobile Menu — backdrop + dropdown panel */
  .mobile-menu {
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    height: calc(100vh - 61px);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4.55px);
    -webkit-backdrop-filter: blur(4.55px);
    display: none;
    flex-direction: column;
    z-index: 999;
    transform: none;        /* override style.css translateX(100%) */
    transition: none;       /* override style.css transition */
    padding: 0;
    overflow-y: auto;
  }
  .mobile-menu.active { display: flex; }

  .mobile-menu-inner {
    background: #18181b;
    border-radius: 0 0 12px 12px;
    padding: 15px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    border-top: 1px solid #27272a;
  }
  .mobile-menu-inner .spa-link {
    font-size: 12px;
    color: #d4d4d8;
    text-decoration: none;
    font-weight: 500;
    line-height: 24px;
  }
  .mobile-menu-inner hr {
    border: 0;
    border-top: 1px solid #27272a;
    margin: 6px 0 2px;
  }
  .mobile-auth-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 16px;
  }
  .mobile-auth-actions .home-btn {
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
  }
  .mobile-auth-actions .home-btn-primary { width: 145px; }
  .mobile-auth-actions .home-btn-outline { width: 133px; }

  .home-menu-btn {
    display: none; /* Hide old implementation if exists */
  }

  /* Headings */
  .home-h2 {
    font-size: 24px;
    line-height: 28px;
  }

  .home-subtitle {
    margin-top: 7px;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }

  /* Hero */
  .home-hero {
    height: auto;
    overflow: hidden;
  }

  .home-hero-bg {
    background-image: linear-gradient(113.20731000521276deg, rgba(21, 93, 252, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(152, 16, 250, 0.2) 100%);
  }

  .home-hero-inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }

  .home-hero-right {
    order: 1;
    width: 100%;
    justify-content: center;
    margin-top: 90px;
    padding: 0 24px;
    display: flex;
  }

  .home-hero-left {
    order: 2;
    padding: 0 24px;
    margin-top: 40px;
  }

  .home-pill {
    position: absolute;
    left: 24px;
    top: 20px;
    width: auto;
    max-width: calc(100% - 48px);
    height: auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
    line-height: 16px;
    white-space: normal;
  }

  /* Hero Art - compact for mobile (Figma: 292x333) */
  .home-hero-art {
    width: 100%;
    height: auto;
    aspect-ratio: 292 / 300;
    margin: 0 auto;
  }

  /* Rescale art elements inside based on % */
  .home-hero-art-payment {
    left: -10%;
    top: 20%;
    width: 120%;
    transform: rotate(12.35deg);
  }

  .home-hero-art-btc1 {
    right: -15%;
    top: -5%;
    width: 38%;
  }

  .home-hero-art-btc2 {
    left: -8%;
    bottom: -15%;
    width: 45%;
  }

  .home-hero-title {
    margin-top: 0;
    font-size: 30px;
    line-height: 38px;
    word-break: break-word; /* Prevent overflow */
  }
  
  .home-hero-title br {
    display: none;
  }

  .home-hero-desc {
    margin-top: 15px;
    font-size: 14px;
    line-height: 22px;
    max-width: 100%;
  }

  .home-hero-actions {
    margin-top: 35px;
    flex-direction: column;
    gap: 17px;
  }

  .home-btn-hero {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    font-size: 14px;
    padding: 0 20px;
    justify-content: center;
  }

  .home-btn-hero-primary,
  .home-btn-hero-secondary {
    width: 100%;
  }

  .home-hero-stats {
    margin: 24px 0;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-stat-divider {
    display: none;
  }

  .home-stat-val {
    font-size: 20px;
    line-height: 28px;
  }

  .home-stat-lbl {
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
  }

  .home-hero-after {
    display: none; /* Often causes issues on mobile, hide it */
  }

  /* Features */
  .home-features {
    background: #1a1a1a;
    padding: 40px 0;
  }

  .home-features-grid {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-features .feature-card {
    height: auto;
    min-height: 154px;
    padding: 20px;
    border-color: #2b2b2b;
  }

  .feature-title {
    margin-top: 10px;
    font-size: 18px;
    line-height: 24px;
  }

  /* Steps */
  .home-steps {
    padding: 40px 0;
    background-image: linear-gradient(100.39733352243636deg, rgba(21, 93, 252, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(152, 16, 250, 0.2) 100%);

    & .home-wrap {
      overflow-x: visible;
    }
  }

  .home-steps-stage {
    width: 100%;
    height: auto;
    margin-top: 40px;
  }

  .home-steps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    height: auto;
  }

  .home-steps-arrow {
    display: none;
  }

  .home-step {
      width: 100%;
      display: flex;
      justify-content: center;
  }

  .home-step-card {
    width: 100%;
    max-width: 320px; /* Limit width */
    height: auto;
    min-height: 183px;
    padding-bottom: 20px; /* Space for arrow if needed */
  }

  .home-step-bg {
    height: 144px;
    position: relative;
    margin-bottom: 20px;
  }

  .home-step-bar {
    top: auto; 
    bottom: -46px; /* Position below */
    height: 46px;
    font-size: 14px;
    border-radius: 0 0 16px 16px; /* Reset radius */
    background: linear-gradient(90deg, #155dfc 0%, #2b7fff 100%);
    position: relative; /* Change from absolute to stack */
    margin-top: -46px; /* Pull back up */
  }
  
  /* Retarget structural assumptions for cards */
   .home-step-card {
       display: flex;
       flex-direction: column;
   }
   .home-step-bg {
       height: 144px;
       margin-bottom: 0;
       border-bottom-left-radius: 0;
       border-bottom-right-radius: 0;
   }
   .home-step-bar {
        position: relative;
        bottom: auto;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
   }
   .home-step-num {
    top: 60px;
    left: 20px;
   }
   .home-step-img {
       left: auto;
       right: 20px;
       top: -20px;
       width: 120px;
       height: 120px;
   }

  /* Conditions */
  .home-conditions {
    padding: 40px 0;
  }

  .home-conditions-line,
  .home-conditions-vline,
  .home-conditions-hline {
    display: none;
  }

  .home-conditions-grid {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-conditions-illustr {
    width: 100%;
    max-width: 100%;
    height: 268px;
    background: rgba(24, 24, 27, 0.8);
    position: relative;
    overflow: hidden;
  }

  .home-conditions-illustr img {
    left: 50%;
    top: 50%;
    width: 80%;
    max-width: 250px;
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .home-conditions-stack {
    gap: 16px;
  }

  .home-conditions .feature-card {
    height: auto;
    min-height: 154px;
    padding: 20px;
  }

  /* FAQ */
  .home-faq {
    background: #1a1a1a;
    padding: 40px 0;
  }

  .home-faq-list {
    margin-top: 30px;
    gap: 16px;
  }

  .home-faq-item {
    width: 100%;
  }

  .home-faq-header {
    min-height: 60px;
    padding: 12px 20px;
  }

  .home-faq-q {
    font-size: 14px;
    line-height: 20px;
    padding-right: 10px;
  }

  .home-faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 13px;
    line-height: 20px;
  }

  /* CTA */
  .home-cta {
    padding: 40px 16px;
  }

  .home-cta-inner {
    padding: 40px 24px;
  }

  .home-cta-title {
    font-size: 28px;
    line-height: 34px;
  }

  .home-cta-desc {
    font-size: 15px;
  }

  .home-cta-actions {
    flex-direction: column;
  }

  /* Contact modal */
  .contact-modal {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 20px;
    margin: 0 16px;
  }

  .contact-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 50%;
    z-index: 1;
  }

  .contact-modal-title {
    font-size: 20px;
    padding-right: 40px;
  }

  .contact-modal-subtitle {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 18px;
  }

  .contact-modal-form input[type="text"],
  .contact-modal-form input[type="tel"],
  .contact-modal-form textarea {
    font-size: 13px;
    padding: 12px;
  }

  .contact-modal-checkbox {
    font-size: 12px;
  }

  .contact-modal-submit {
    width: 100%;
    padding: 12px;
  }

  /* Contacts */
  .home-contacts {
    padding: 20px 0 20px;
  }

  .home-contacts-cards {
    margin-top: 40px;
    flex-direction: column;
    gap: 20px;
  }

  .home-contact-card {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .home-contact-card .home-btn {
    width: 100%;
    max-width: 150px;
  }

  .home-contacts-cta {
    margin-top: 20px;
    width: 100%;
    height: auto;
    padding: 60px 20px;
    background: linear-gradient(144.31359890930503deg, #155dfc 0%, #2b7fff 100%);
  }

  .home-contacts-cta h3 {
    font-size: 28px;
    line-height: 36px;
  }

  .home-contacts-cta p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .home-btn-white {
    width: 100%;
  }

  /* Footer */
  .home-footer-inner {
    padding: 25px var(--content-px) 0;
  }

  .home-footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .home-footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: none;
  }

  .home-footer-col {
    gap: 6px;
  }

  .home-footer-bottom {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 17px;
    padding: 20px 0;
  }

  /* Trade page */
  .trade-wrap {
    padding: 16px var(--content-px) 0;
  }

  .trade-breadcrumb {
    font-size: 12px;
    line-height: 29.25px;
  }

  .trade-title {
    font-size: 18px;
    line-height: 22px;
    margin: 2px 0 10px;
  }

  .trade-h2 {
    font-size: 18px;
    line-height: 22px;
    margin: 18px 0 10px;
  }

  /* Side toggle (buy/sell) — visible only on mobile */
  .trade-side-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
  }

  .trade-side-btn {
    flex: 1;
    height: 41px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #656565;
    background: transparent;
    color: #b7b7b7;
  }

  .trade-side-btn-active {
    border-color: transparent;
    background: #fff;
    color: #1963fc;
  }

  /* Chart on mobile — show but reduce height */
  .trade-chart-wrap {
    display: block;
    margin: 12px 0;
  }

  .trade-chart-container {
    min-height: 300px;
  }

  /* The trade card container */
  .trade-card {
    padding: 20px 11px;
    margin: 0 -12px;
    width: calc(100% + 24px);
  }

  /* Pair buttons compact */
  .trade-pairs {
    gap: 7px;
  }

  .trade-pair-btn {
    height: 41px;
    font-size: 10px;
    padding: 0 12px;
  }

  .trade-pair-btn-active {
    height: 41px;
  }

  /* Mode tabs compact */
  .trade-modes {
    margin-top: 12px;
    gap: 16px;
  }

  .trade-mode {
    font-size: 12px;
    line-height: 28px;
  }

  /* Panels stacked, only active one shown */
  .trade-panels {
    margin-top: 10px;
    gap: 0;
  }

  .trade-card[data-active-side="buy"] .trade-panel[data-panel-side="sell"] {
    display: none;
  }

  .trade-card[data-active-side="sell"] .trade-panel[data-panel-side="buy"] {
    display: none;
  }

  .trade-panel {
    width: 100%;
  }

  .trade-panel-inner {
    padding: 15px 10px 12px;
  }

  .trade-panel-head {
    gap: 8px;
  }

  .trade-panel-title {
    font-size: 14px;
    line-height: 28px;
  }

  .trade-panel-balance {
    font-size: 12px;
    line-height: 28px;
  }

  .trade-panel-sep {
    margin-top: 8px;
  }

  /* Compact form fields — inline layout */
  .trade-fields {
    margin-top: 12px;
    gap: 10px;
  }

  .trade-field {
    grid-template-columns: 74px 1fr;
    gap: 0;
    align-items: center;
  }

  .trade-label {
    font-size: 10px;
    line-height: 28px;
  }

  .trade-input-row {
    grid-template-columns: 1fr 43px;
    gap: 0;
  }

  .trade-fee-row {
    grid-template-columns: 94px 1fr;
    gap: 7px;
  }

  .trade-input {
    height: 35px;
    border-radius: 5px;
    padding: 0 9px;
  }

  .trade-muted {
    font-size: 10px;
    line-height: 8px;
  }

  .trade-sfx {
    font-size: 10px;
    line-height: 8px;
  }

  .trade-max {
    height: 35px;
    font-size: 10px;
    line-height: 8px;
    padding: 0 6px;
  }

  /* Buy button gradient full width, sell button outline */
  .trade-action {
    margin-top: 14px;
    height: 40px;
    width: 100%;
    font-size: 14px;
  }

  .trade-action-buy {
    border-radius: 10px;
  }

  .trade-action-sell {
    border-radius: 10px;
  }

  /* Order book mobile */
  .trade-book {
    margin-top: 8px;
    padding: 12px 9px;
    margin: 8px -12px 0;
    width: calc(100% + 24px);
  }

  .trade-book-grid {
    gap: 16px;
  }

  .trade-book-col {
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .trade-book-title {
    display: none;
  }

  /* Compact table rows */
  .trade-th {
    height: 41px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 16px;
  }

  .trade-tbody {
    max-height: 400px;
  }

  .trade-trow {
    height: 40px;
  }

  .trade-td {
    padding: 0 8px;
    font-size: 10px;
    line-height: 20px;
  }

  .trade-td-price { flex: 1; }
  .trade-td-amt { flex: 1; }
  .trade-td-total { flex: 1; }

  /* Last trades section */
  .trade-last {
    margin: 16px -12px 0;
    width: calc(100% + 24px);
    padding: 20px 9px;
  }

  .trade-tabs {
    gap: 7px;
  }

  .trade-tab-btn {
    height: 40px;
    font-size: 10px;
    padding: 0 10px;
    line-height: 14px;
  }

  .trade-tab-btn-active {
    height: 41px;
  }

  .trade-table-big {
    margin-top: 12px;
  }

  .trade-table-big .trade-tbody {
    max-height: 360px;
  }

  .trade-td-time {
    width: 116px;
    font-size: 10px;
    line-height: 14px;
    white-space: normal;
    text-align: left;
  }
}

/* Small phones */
@media (max-width: 390px) {
  .home-hero-title {
    font-size: 26px;
    line-height: 34px;
  }

  .home-hero-stats {
    gap: 16px;
  }

  .home-stat-val {
    font-size: 18px;
    line-height: 24px;
  }

  .home-stat-lbl {
    font-size: 11px;
  }

  .home-h2 {
    font-size: 22px;
    line-height: 26px;
  }

  .home-faq-q {
    font-size: 13px;
  }

  .home-contacts-cta h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .contact-modal {
    padding: 14px;
  }

  .contact-modal-title {
    font-size: 18px;
  }
}

/* ====================================================================
   Plugin overrides & new component styles
   ==================================================================== */

/* ---- NProgress customization ---- */
#nprogress .bar {
  background: linear-gradient(90deg, #7B61FF, #A78BFA) !important;
  height: 3px !important;
}
#nprogress .peg {
  box-shadow: 0 0 10px #7B61FF, 0 0 5px #7B61FF !important;
}
#nprogress .spinner {
  display: none !important;
}

/* ---- Notyf toast overrides ---- */
.notyf__toast {
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', 'Montserrat', sans-serif;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px 14px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #f0f0f5;
  line-height: 1.45;
  max-width: 380px;
  min-height: 0;
}
.notyf__toast--success {
  border-left: 3px solid #22c55e;
}
.notyf__toast--error {
  border-left: 3px solid #ef4444;
}
.notyf__toast [class*="vld-notyf-info"] ~ .notyf__wrapper {
  border-left: 3px solid #7B61FF;
}
.notyf__toast [class*="vld-notyf-warning"] ~ .notyf__wrapper {
  border-left: 3px solid #f59e0b;
}
.notyf__wrapper {
  padding: 0;
  align-items: center;
}
.notyf__message {
  color: #f0f0f5;
}
.notyf__icon {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  min-width: 20px;
}
.notyf__icon .vld-notyf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.notyf__dismiss-btn {
  opacity: 0.5;
  transition: opacity 0.2s;
}
.notyf__dismiss-btn:hover {
  opacity: 1;
}
.notyf__dismiss-btn::before,
.notyf__dismiss-btn::after {
  background: rgba(255, 255, 255, 0.7) !important;
}

/* ---- Tippy.js VeltEx theme ---- */
.tippy-box[data-theme~='veltex'] {
  background: rgba(13, 13, 20, 0.95);
  border: 1px solid rgba(123, 97, 255, 0.25);
  border-radius: 8px;
  color: #E5E7EB;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.tippy-box[data-theme~='veltex'] .tippy-arrow::before {
  color: rgba(13, 13, 20, 0.95);
}
.tippy-box[data-theme~='veltex'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: rgba(13, 13, 20, 0.95);
}
.tippy-box[data-theme~='veltex'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: rgba(13, 13, 20, 0.95);
}
.tippy-box[data-theme~='veltex'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: rgba(13, 13, 20, 0.95);
}
.tippy-box[data-theme~='veltex'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: rgba(13, 13, 20, 0.95);
}

/* ---- TradingView Lightweight Chart container ---- */
.trade-chart-wrap {
  margin: 15px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #131722;
  border: 1px solid rgba(42,46,57,0.8);
}
.trade-chart-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(42,46,57,0.8);
}
.trade-chart-symbol {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.trade-chart-price {
  font-size: 16px;
  font-weight: 500;
}
.trade-chart-container {
  width: 100%;
  min-height: 460px;
  position: relative;
}

/* ---- Chart floating OHLC + MA legend ---- */
.chart-legend {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 10;
  pointer-events: none;
  font-size: 11px;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  color: rgba(156,163,175,0.85);
}
.chart-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.chart-legend-pair {
  color: #fff;
  font-weight: 600;
  margin-right: 6px;
}
.chart-legend-ohlc b {
  color: #d1d5db;
  margin: 0 2px;
}
.chart-legend-ma-row {
  margin-top: 1px;
}
.chart-legend-ma {
  margin-right: 10px;
  font-size: 10.5px;
}
.chart-legend-ma b {
  margin-left: 2px;
}

/* ---- IMask styled phone input ---- */
.contact-modal-form input[name="phone"] {
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .trade-chart-container {
    min-height: 300px;
  }
  .trade-chart-header {
    padding: 12px 14px;
  }
  .trade-chart-symbol {
    font-size: 15px;
  }
  .trade-chart-price {
    font-size: 14px;
  }
  .chart-legend {
    font-size: 10px;
    top: 4px;
    left: 6px;
  }
  .chart-legend-ma {
    font-size: 9.5px;
  }
}

/* =================================================================
   WIP / Under Construction placeholder page
   ================================================================ */
.wip-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.wip-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(21,93,252,0.2) 0%, rgba(0,0,0,0) 50%, rgba(152,16,250,0.2) 100%);
  pointer-events: none;
  z-index: 0;
}

.wip-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1920px;
  margin: 0 auto;
  padding: 30px var(--content-px) 60px;
}

.wip-content {
  flex: 0 1 560px;
  min-width: 0;
}

.wip-breadcrumb {
  font-size: 14px;
  line-height: 29px;
  color: #b7b7b7;
  margin: 0 0 4px;
}

.wip-breadcrumb a {
  color: #b7b7b7;
  text-decoration: none;
  transition: color 0.2s;
}

.wip-breadcrumb a:hover {
  color: #fff;
}

.wip-breadcrumb span {
  color: #fff;
}

.wip-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.wip-back:hover {
  opacity: 0.7;
}

.wip-back svg {
  flex-shrink: 0;

  path {
    stroke-width: 2px;
    stroke: var(--buttom, #155DFC);
  }
}

.wip-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 75px;
  color: #f4f4f5;
  margin: 0 0 16px;
}

.wip-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 29px;
  color: #b7b7b7;
  margin: 0 0 12px;
  max-width: 548px;
}

.wip-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.wip-actions .home-btn {
  padding: 13px 5px;
  font-size: 13px;
  min-width: 161px;
  text-align: center;
}

.wip-illustration {
  flex: 0 0 auto;
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}

.wip-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* WIP responsive — padding handled by --content-px */
@media (max-width: 1024px) {
  .wip-wrap {
    flex-direction: column;
    align-items: center;
    padding: 24px var(--content-px) 40px;
    gap: 24px;
  }

  .wip-content {
    flex: none;
    width: 100%;
  }

  .wip-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .wip-breadcrumb {
    font-size: 12px;
  }

  .wip-back {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .wip-desc {
    font-size: 12px;
    line-height: 16px;
  }

  .wip-illustration {
    width: 100%;
    max-width: 320px;
    margin-top: 0;
  }

  .wip-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
  }

  .wip-actions .home-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

/* ─── Terms / Legal page ─────────────────────────────────────────── */
.terms-page {
  position: relative;
  padding: 100px var(--content-px) 60px;
  background: linear-gradient(135deg, rgba(21, 93, 252, 0.20) 0%, rgba(0, 0, 0, 0.00) 50%, rgba(152, 16, 250, 0.20) 100%);
}

.terms-container {
  max-width: 860px;
  margin: 0 auto;
}

.terms-breadcrumb {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;

  & a {
    color: var(--text-gray-light);
    text-decoration: none;

    &:hover { text-decoration: underline; }
  }

  & span {
    color: rgba(255, 255, 255, 0.5);
  }
}

.terms-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray-light);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;

  &:hover { color: #fff; }
}

.terms-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.terms-updated {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 32px;
}

.terms-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;

  & h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
  }

  & ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  & li {
    font-size: 14px;
    color: var(--text-gray-light);
  }

  & a {
    color: var(--text-gray-light);
    text-decoration: none;
    transition: color 0.15s;

    &:hover { color: #fff; text-decoration: underline; }
  }
}

.terms-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  scroll-margin-top: 90px;

  & h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-card);
  }

  & h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    margin: 20px 0 10px;
  }

  & p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
  }

  & ul {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  & li {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.65;
  }

  & strong {
    color: var(--text-gray-light);
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .terms-page {
    padding-top: 80px;
  }

  .terms-main-title {
    font-size: 24px;
  }

  .terms-section {
    padding: 20px 18px 18px;

    & h2 { font-size: 18px; }
    & h3 { font-size: 14px; }
    & p, & li { font-size: 12px; }
  }

  .terms-toc {
    padding: 16px 18px;

    & h3 { font-size: 14px; }
    & li { font-size: 13px; }
  }
}

@media (max-width: 480px) {
  .terms-section {
    padding: 16px 14px;
    scroll-margin-top: 70px;
  }

  .terms-breadcrumb {
    font-size: 11px;
  }

  .terms-back {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .terms-main-title {
    font-size: 20px;
  }
}

/* ─── FAQ standalone page ────────────────────────────────────────── */
.faq-standalone {
  position: relative;
  padding: 100px var(--content-px) 60px;
  background: linear-gradient(135deg, rgba(21, 93, 252, 0.20) 0%, rgba(0, 0, 0, 0.00) 50%, rgba(152, 16, 250, 0.20) 100%);
}

.faq-standalone-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-standalone .home-faq-list {
  margin-top: 32px;
}

@media (max-width: 768px) {
  .faq-standalone {
    padding-top: 80px;
  }
}

/* ─── Features standalone page ───────────────────────────────────── */
.features-standalone {
  position: relative;
  padding: 100px var(--content-px) 60px;
  background: linear-gradient(135deg, rgba(21, 93, 252, 0.20) 0%, rgba(0, 0, 0, 0.00) 50%, rgba(152, 16, 250, 0.20) 100%);
}

.features-standalone-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-standalone .home-features-grid {
  margin-top: 40px;
}

.standalone-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .features-standalone {
    padding-top: 80px;
  }
}

/* ─── How it works standalone page ───────────────────────────────── */
.howitworks-standalone {
  position: relative;
  padding: 100px var(--content-px) 60px;
  background: linear-gradient(135deg, rgba(21, 93, 252, 0.20) 0%, rgba(0, 0, 0, 0.00) 50%, rgba(152, 16, 250, 0.20) 100%);
}

.howitworks-standalone-container {
  max-width: 1200px;
  margin: 0 auto;
}

.howitworks-standalone .home-steps-stage {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .howitworks-standalone {
    padding-top: 80px;
  }
}

/* Auth responsive (mobile) */
@media (max-width: 600px) {
  .auth-page {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-page .auth-modal {
    max-width: 100%;
    padding: 16px;
    border-radius: 20px;
    border-color: transparent;
  }

  .auth-page .auth-header {
    margin-bottom: 16px;
  }

  .auth-page .auth-title {
    font-size: 18px;
  }

  .auth-page .auth-subtitle {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .auth-page .auth-input {
    background: #fff;
    color: #333;
    border-color: transparent;
  }

  .auth-page .auth-input::placeholder {
    color: #898989;
  }

  .auth-page .auth-input:focus {
    border-color: rgba(43, 127, 255, 0.6);
  }

  .auth-page .auth-field .auth-field-icon {
    filter: invert(0.45);
  }

  .auth-page .auth-input-group label {
    font-size: 11px;
  }

  .auth-page .auth-password-hint {
    font-size: 10px;
    padding: 10px 12px;
  }

  .auth-page .auth-terms label {
    font-size: 10px;
  }

  .auth-page .auth-terms input[type="checkbox"] {
    width: 15px;
    height: 15px;
    min-width: 15px;
  }

  .auth-page .auth-links a {
    font-size: 12px;
  }

  .auth-page .auth-footer {
    font-size: 12px;
  }

  .auth-page .btn {
    border-radius: 10px;
  }
}

/* KYC responsive */
@media (max-width: 600px) {
  .kyc-page {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .kyc-modal {
    padding: 20px !important;
    max-width: 100% !important;
  }
  .kyc-title {
    font-size: 20px;
  }
  .kyc-upload-icon {
    width: 56px;
    height: 56px;
  }
  .kyc-upload-label {
    font-size: 14px;
  }
  .kyc-upload-action {
    font-size: 14px;
  }
}

/* ================================================================== */
/*  Form Validation (validator.js)                                    */
/* ================================================================== */

/* ── Shake animation ───────────────────────────────────────────── */
@keyframes vldShake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(5px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}

@keyframes vldSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vldSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}

.vld-shake {
  animation: vldShake 0.45s ease;
}

/* ── Error message ─────────────────────────────────────────────── */
.vld-error {
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  padding-left: 2px;
  line-height: 1.3;
  animation: vldSlideIn 0.2s ease forwards;
}
.vld-error-out {
  animation: vldSlideOut 0.2s ease forwards;
}

/* ── Invalid field styling ─────────────────────────────────────── */
.vld-invalid {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
.vld-invalid:focus {
  border-color: rgba(239, 68, 68, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* ── Valid field styling (subtle green check) ──────────────────── */
.vld-valid {
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08) !important;
}
.vld-valid:focus {
  border-color: rgba(34, 197, 94, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

/* ── Upload zone error ─────────────────────────────────────────── */
.kyc-upload-zone.vld-has-error {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.04) !important;
}
.kyc-upload-zone.vld-has-error .vld-error {
  text-align: center;
  margin-top: 10px;
}

/* ── Checkbox error ────────────────────────────────────────────── */
.contact-modal-checkbox.vld-has-error span {
  color: #ef4444;
}
.auth-terms .vld-error {
  width: 100%;
  padding-left: 26px;
  margin-top: -4px;
}
.contact-modal-checkbox .vld-error {
  width: 100%;
  padding-left: 26px;
  margin-top: -4px;
}

/* ── Password strength meter ───────────────────────────────────── */
.vld-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.vld-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.vld-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.35s ease, background 0.35s ease;
}
.vld-strength-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 70px;
  text-align: right;
  transition: color 0.35s ease;
}

/* ── Contact modal validation (white inputs) ───────────────────── */
.contact-modal-form .vld-invalid {
  border: 2px solid rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
.contact-modal-form .vld-valid {
  border: 2px solid rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08) !important;
}
.contact-modal-form .vld-error {
  color: #ef4444;
  margin-top: 4px;
}

/* ── Mobile tweaks ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .vld-strength-label {
    font-size: 10px;
    min-width: 60px;
  }
  .vld-error {
    font-size: 11px;
  }
}

