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

:root {
  --bg: #0A0B0F;
  --bg2: #111318;
  --bg3: #181A22;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #F0F0F8;
  --text2: rgba(240,240,248,0.55);
  --text3: rgba(240,240,248,0.32);
  --green: #00D4AA;
  --purple: #7B6FFF;
  --amber: #F5A623;
  --red: #FF5A5A;
  --card-bg: rgba(255,255,255,0.035);
  --card-border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }

body {
  font-family: 'Syne', 'Noto Sans', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(123,111,255,0.12) 0%, rgba(0,212,170,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: flex; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.07); }
.header-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 20px;
  padding: 5px 12px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,212,170,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(0,212,170,0); }
}

/* MAIN */
.main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  position: relative;
  z-index: 1;
}

/* HERO */
.hero { text-align: center; margin-bottom: 40px; }
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 16px; color: var(--text2); font-weight: 400; }

/* EXCHANGE CARD */
.exchange-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2px;
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.exchange-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(123,111,255,0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.exchange-card-inner { padding: 36px 40px; }

/* RATE BAR */
.rate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.rate-info { display: flex; flex-direction: column; gap: 3px; }
.rate-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.rate-value { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; color: var(--green); }
.rate-pair { display: flex; align-items: center; gap: 10px; }
.token {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
}
.token.usdt { background: rgba(0,212,170,0.1); color: var(--green); border: 1px solid rgba(0,212,170,0.2); }
.token.eur { background: rgba(123,111,255,0.1); color: var(--purple); border: 1px solid rgba(123,111,255,0.2); }
.token-icon {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  max-width: 3.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: -0.02em;
}

.token-icon, .token-icon-sm {
  font-family: 'Noto Sans', 'Syne', system-ui, sans-serif;
}
.token-net { font-size: 10px; opacity: 0.6; }
.arrow-swap { color: var(--text3); }

/* FIELDS */
.fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.field-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.field-wrap:focus-within { border-color: rgba(0,212,170,0.4); }
.field-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 52px;
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.usdt-color { color: var(--green); }
.eur-color { color: var(--purple); }
.token-icon-sm {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  max-width: 3em;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -0.02em;
}
.field-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0 16px;
  height: 52px;
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
}
.field-input::placeholder { color: var(--text3); }
.field-result {
  flex: 1;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--purple);
}
.swap-icon {
  display: flex;
  justify-content: center;
  color: var(--text3);
  margin: 4px 0;
}

/* FEE */
.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 24px;
  padding: 0 2px;
}
.fee-val { font-family: 'DM Mono', monospace; }

/* BUTTON */
.btn-create {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green), #00b894);
  color: #0A0B0F;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-create::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn-create:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(0,212,170,0.3); }
.btn-create:hover::after { background: rgba(255,255,255,0.1); }
.btn-create:active { transform: translateY(0); }

/* RESULT */
.result-box {
  margin-top: 16px;
  padding: 16px;
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--green);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}
.result-box.error { background: rgba(255,90,90,0.06); border-color: rgba(255,90,90,0.2); color: var(--red); }

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 13px; font-weight: 700; }
.feature-desc { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.footer-sep { opacity: 0.3; }

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .rate-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .header-badge { display: none; }
}

/* ORDER FIELDS */
.order-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 20px;
}
.order-field-group { display: flex; flex-direction: column; gap: 8px; }
.order-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  outline: none;
  padding: 0 16px;
  height: 48px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
}
.order-input::placeholder { color: var(--text3); }
.order-input:focus { border-color: rgba(0,212,170,0.4); }
.order-select { appearance: none; cursor: pointer; }
.order-select option { background: #181A22; color: var(--text); }

/* RESULT BOX REDESIGN */
.result-box {
  margin-top: 16px;
  padding: 20px;
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.result-box.success {}
.result-box.error {
  background: rgba(255,90,90,0.06);
  border-color: rgba(255,90,90,0.2);
  color: var(--red);
}
.result-icon { font-size: 22px; margin-bottom: 8px; }
.result-title { font-size: 17px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.result-msg { color: var(--text2); margin-bottom: 16px; }
.result-msg strong { color: var(--green); }
.result-details { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.result-row { display: flex; justify-content: space-between; font-size: 13px; }
.result-row span:first-child { color: var(--text3); }
.result-row span:last-child { font-weight: 600; }
.mono { font-family: 'DM Mono', monospace; }

/* SECTIONS */
.section { margin-top: 48px; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.faq-q { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.faq-a { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* CONTACTS */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.contact-card:hover { border-color: rgba(0,212,170,0.3); background: rgba(0,212,170,0.04); }
.contact-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-icon.tg { background: rgba(123,111,255,0.1); border-color: rgba(123,111,255,0.2); color: var(--purple); }
.contact-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.contact-value { font-size: 13px; font-weight: 700; word-break: break-all; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-link { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--green); }
.footer-sep { opacity: 0.3; }

@media (max-width: 480px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

/* ================================
   MOBILE RESPONSIVE FIX
   Added for TrustyCash production
   ================================ */

@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .bg-grid {
    background-size: 32px 32px;
  }

  .bg-glow {
    width: 420px;
    height: 420px;
    top: -120px;
    opacity: 0.75;
  }

  .header-inner {
    height: auto;
    min-height: 58px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo-text {
    font-size: 17px;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-link {
    font-size: 13px;
    padding: 7px 10px;
  }

  .header-badge {
    display: none;
  }

  .main {
    width: 100%;
    max-width: 100%;
    padding: 34px 14px 34px;
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero-label {
    font-size: 10px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
  }

  .exchange-card {
    max-width: 100%;
    border-radius: 18px;
  }

  .exchange-card::before {
    border-radius: 18px;
  }

  .exchange-card-inner {
    padding: 20px 14px;
  }

  .rate-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    margin-bottom: 20px;
  }

  .rate-info {
    text-align: center;
  }

  .rate-value {
    font-size: 16px;
    word-break: break-word;
  }

  .rate-pair {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .token {
    font-size: 12px;
    padding: 7px 9px;
  }

  .field-wrap {
    min-width: 0;
  }

  .field-currency {
    height: 50px;
    padding: 0 10px;
    min-width: 92px;
    font-size: 12px;
  }

  .field-input,
  .field-result {
    height: 50px;
    min-width: 0;
    padding: 0 12px;
    font-size: 18px;
  }

  .field-input {
    width: 100%;
  }

  .fee-row {
    gap: 10px;
    line-height: 1.4;
  }

  .order-fields {
    gap: 12px;
    margin-bottom: 18px;
    padding-top: 16px;
  }

  .order-input {
    height: 48px;
    font-size: 14px;
    padding: 0 13px;
  }

  .btn-create {
    height: 52px;
    font-size: 15px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .feature {
    padding: 14px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .section {
    margin-top: 34px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .faq-item {
    padding: 15px 14px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 14px;
    align-items: flex-start;
  }

  .contact-icon {
    width: 46px;
    height: 46px;
  }

  .result-box {
    padding: 16px;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .result-details {
    gap: 10px;
  }

  .result-row {
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
  }

  .footer {
    padding: 22px 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 390px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .exchange-card-inner {
    padding: 18px 10px;
  }

  .hero-title {
    font-size: 27px;
  }

  .field-currency {
    min-width: 82px;
    padding: 0 8px;
  }

  .field-input,
  .field-result {
    font-size: 16px;
    padding: 0 10px;
  }

  .token-net {
    display: none;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 8px;
  }
}


/* =====================================================
   TRUSTYCASH MOBILE FIX V2 — force responsive layout
   ===================================================== */

@media screen and (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    display: block !important;
  }

  .header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .logo {
    width: 100% !important;
    justify-content: center !important;
  }

  .logo-mark svg {
    width: 30px !important;
    height: 30px !important;
  }

  .logo-text {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  .nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 4px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .nav::-webkit-scrollbar {
    display: none !important;
  }

  .nav-link {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    padding: 10px 13px !important;
    border-radius: 12px !important;
  }

  .header-badge {
    display: none !important;
  }

  .main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 34px 14px 36px !important;
    overflow: hidden !important;
  }

  .hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 26px !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  .hero-label {
    max-width: calc(100vw - 28px) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    padding: 8px 14px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    margin-bottom: 18px !important;
  }

  .hero-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
    margin: 0 auto 16px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .hero-sub {
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding: 0 8px !important;
    overflow-wrap: break-word !important;
  }

  .exchange-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  .exchange-card::before {
    border-radius: 22px !important;
  }

  .exchange-card-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 12px !important;
    overflow: hidden !important;
  }

  .rate-bar {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 14px !important;
    margin-bottom: 22px !important;
    overflow: hidden !important;
  }

  .rate-info {
    width: 100% !important;
    text-align: center !important;
    min-width: 0 !important;
  }

  .rate-value {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .rate-pair {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .token {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    overflow: hidden !important;
  }

  .token span {
    min-width: 0 !important;
  }

  .token-net {
    font-size: 9px !important;
  }

  .order-fields,
  .fields {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .order-field-group,
  .field-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .order-input,
  .field-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .order-input {
    height: 50px !important;
    padding: 0 13px !important;
    font-size: 15px !important;
  }

  .field-wrap {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .field-currency {
    min-width: 88px !important;
    height: 52px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  .field-input,
  .field-result {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 12px !important;
    font-size: 19px !important;
    overflow: hidden !important;
  }

  .fee-row {
    width: 100% !important;
    gap: 8px !important;
    line-height: 1.35 !important;
  }

  .btn-create {
    width: 100% !important;
    height: 54px !important;
    font-size: 15px !important;
  }

  .features {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 22px !important;
  }

  .feature {
    width: 100% !important;
    padding: 15px !important;
  }

  .contacts-grid {
    grid-template-columns: 1fr !important;
  }

  .result-box {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .footer {
    width: 100% !important;
    flex-wrap: wrap !important;
    padding: 22px 14px !important;
  }
}

@media screen and (max-width: 430px) {
  .main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .exchange-card-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .logo-text {
    font-size: 22px !important;
  }

  .hero-title {
    font-size: clamp(28px, 8.5vw, 36px) !important;
  }

  .hero-sub {
    font-size: 15px !important;
  }

  .rate-value {
    font-size: 16px !important;
  }

  .token {
    font-size: 12px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .token-net {
    display: none !important;
  }

  .field-currency {
    min-width: 78px !important;
    font-size: 12px !important;
  }

  .field-input,
  .field-result {
    font-size: 17px !important;
  }
}


/* =====================================================
   TRUSTYCASH GLOBAL MOBILE HEADER FIX
   Applied to all public pages
   ===================================================== */

@media screen and (max-width: 900px) {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    min-width: 0 !important;
  }

  .header,
  header {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .logo {
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .logo-text {
    max-width: calc(100vw - 90px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 2px 2px 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .nav::-webkit-scrollbar {
    display: none !important;
  }

  .nav-link,
  .nav a,
  header a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .header-badge {
    display: none !important;
  }

  .main,
  main,
  .page,
  .page-content,
  .content,
  .section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100% !important;
  }

  table {
    max-width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
  }
}

@media screen and (max-width: 430px) {
  .header-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .nav-link,
  .nav a {
    font-size: 13px !important;
    padding: 9px 11px !important;
  }
}

