/* ===========================================================
   ISRI — public website theme (Bootstrap 5.3.8 + custom CSS)
   Inspired by esri.ie : editorial research-institute look
   =========================================================== */

:root {
  --brand:      #006d77;   /* deep teal */
  --brand-d:    #00525a;
  --brand-l:    #0a8a95;
  --brand-xl:   #e0f0f1;
  --accent:     #e29c2e;
  --ink:        #122a30;
  --body:       #ffffff;
  --soft:       #f3f6f7;
  --line:       #e3e9ea;
  --muted:      #5f7276;

  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { scroll-behavior: smooth; }
body { font-family: var(--bs-body-font-family); color: var(--ink); background: var(--body); }
a { text-decoration: none; color: var(--brand); }
a:hover { color: var(--brand-d); }
h1,h2,h3,h4,h5,h6 { font-weight: 800; letter-spacing: -0.015em; }
.text-muted-2 { color: var(--muted) !important; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.75rem 0; }

/* ---- Buttons ---- */
.btn { border-radius: 2px; font-weight: 600; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-light-brand { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light-brand:hover { background: var(--brand-xl); color: var(--brand-d); }

/* ---- Public menu / brand ---- */
.site-header {
  background: var(--brand-d);
  border-bottom: 0;
  box-shadow: 0 18px 36px -30px rgba(8, 18, 34, .75);
}
.public-utilbar {
  background: var(--brand-d);
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #dfe7f2;
  font-size: .78rem;
}
.public-utilbar-inner {
  min-height: 34px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.public-utilbar nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}
.public-utilbar a {
  color: #dfe7f2;
  font-weight: 700;
  letter-spacing: .01em;
}
.public-utilbar a:hover { color: #fff; }
.public-mainbar {
  background: var(--brand-d);
  color: #fff;
}
.public-mainbar-inner {
  min-height: 94px;
  display: flex;
  align-items: stretch;
  gap: 1.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  font-weight: 800;
}
.public-brand {
  min-width: 290px;
  padding: .8rem 0;
  margin-right: auto;
}
.public-brand:hover { color: #fff; }
.brand .logo-box {
  width: 78px;
  height: 58px;
  border-radius: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,.26);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand .b-name {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0;
}
.brand .b-tag {
  color: #c8d4e4;
  font-size: .72rem;
  font-weight: 700;
}
.public-primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.public-primary-nav a,
.public-menu-toggle {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.18);
  min-width: 128px;
  padding: 0 1.05rem;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.public-primary-nav a:hover,
.public-menu-toggle:hover,
.public-menu-toggle[aria-expanded="true"] {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.public-menu-toggle {
  display: none;
  border-top: 0;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 0;
  background: transparent;
  gap: .6rem;
  text-transform: uppercase;
}
.public-menu-toggle .bi { font-size: 1.55rem; line-height: 1; }
.public-mega-menu {
  background: var(--brand-d);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.16);
}
.public-mega-grid {
  min-height: 330px;
  padding: 2.4rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.public-mega-grid a {
  color: #fff;
  min-height: 92px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-size: 1.18rem;
  font-weight: 800;
}
.public-mega-grid a:nth-child(4n) { border-right: 0; }
.public-mega-grid a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.navbar-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: .5rem .9rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand); }
@media (max-width: 991.98px) {
  .public-utilbar-inner { justify-content: flex-start; overflow-x: auto; }
  .public-utilbar nav { gap: 1rem; white-space: nowrap; }
  .public-mainbar-inner { min-height: 78px; gap: .75rem; }
  .public-brand { min-width: 0; flex: 1 1 auto; }
  .brand .logo-box { width: 58px; height: 46px; }
  .brand .b-name { font-size: 1.15rem; }
  .brand .b-tag { display: none; }
  .public-primary-nav { display: none; }
  .public-menu-toggle { display: flex; min-width: 96px; padding: 0 .8rem; border-right: 0; }
  .public-mega-grid { grid-template-columns: 1fr; min-height: auto; padding: .4rem 0 1.2rem; }
  .public-mega-grid a { min-height: 58px; border-right: 0; font-size: 1rem; }
}

/* ---- Hero feature blocks ---- */
.hero { padding: 2rem 0 1rem; }
.feature {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 360px;
  display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(160deg, #0a8a95, #00525a);
}
.feature.alt { background: linear-gradient(160deg, #3a6073, #16222a); }
.feature .ph-icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; color: rgba(255,255,255,.16);
}
.feature .feature-body {
  position: relative; z-index: 2; padding: 1.8rem;
  background: linear-gradient(0deg, rgba(7,32,38,.82), rgba(7,32,38,0));
  width: 100%;
}
.feature.small { min-height: 172px; }
.cat-label {
  display: inline-block; background: var(--accent); color: #1a1200;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: .25rem .55rem; border-radius: 3px; margin-bottom: .6rem;
}
.feature h2, .feature h3 { color: #fff; }
.feature a.stretched-link { color: #fff; }

/* ---- Section headings ---- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--brand); padding-bottom: .6rem; margin-bottom: 1.6rem;
}
.section-head h2 { font-size: 1.5rem; margin: 0; }
.section-head .view-all { font-weight: 700; font-size: .9rem; }

/* ---- Publication / news list items ---- */
.pub-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pub-item:last-child { border-bottom: 0; }
.pub-date { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pub-item h3 { font-size: 1.06rem; margin: .35rem 0 .35rem; }
.pub-item h3 a { color: var(--ink); }
.pub-item h3 a:hover { color: var(--brand); }
.pub-tag {
  display: inline-block; background: var(--brand-xl); color: var(--brand);
  font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; margin-right: .4rem;
}

/* ---- News cards ---- */
.news-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 100%; background:#fff; transition: box-shadow .15s, transform .15s; }
.news-card:hover { box-shadow: 0 12px 30px -16px rgba(18,42,48,.35); transform: translateY(-3px); }
.news-card .thumb {
  height: 190px; background: linear-gradient(135deg,#dbe7e8,#eef3f3);
  display: grid; place-items: center; color: #9fb1b3; font-size: 2rem; position: relative;
}
.news-card .thumb img { width:100%; height:100%; object-fit: cover; }
.news-card .cat {
  position: absolute; top: .7rem; left: .7rem; background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .55rem; border-radius: 3px;
}
.news-card .body { padding: 1.1rem 1.15rem 1.3rem; }
.news-card h3 { font-size: 1.08rem; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand); }

/* ---- Research areas grid ---- */
.area-card {
  display: flex; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem;
  background: #fff; color: var(--ink); font-weight: 600; height: 100%;
  transition: border-color .15s, background .15s, color .15s;
}
.area-card:hover { border-color: var(--brand); background: var(--brand-xl); color: var(--brand-d); }
.area-card .ico {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-xl); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem;
}

/* ---- Stats band ---- */
.stats-band { background: var(--brand); color: #fff; }
.stats-band .num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stats-band .lbl { opacity: .85; font-size: .9rem; }

/* ---- Newsletter ---- */
.newsletter { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Page banner (interior pages) ---- */
.page-banner {
  background: linear-gradient(160deg, var(--brand-d), var(--brand)); color: #fff; padding: 3rem 0;
}
.page-banner .crumb { font-size: .82rem; opacity: .85; }
.page-banner .crumb a { color: #fff; text-decoration: underline; }
.page-banner h1 { font-size: 2.1rem; margin: .3rem 0 0; }

/* ---- Filter bar ---- */
.filter-bar { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }

/* ---- Agenda table ---- */
.agenda-table thead th { background: var(--brand); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border: none; }
.agenda-table td { vertical-align: top; }
.agenda-table .t-time { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ---- Event meta ---- */
.event-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.event-meta .m { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; }
.event-meta .m i { color: var(--brand); }

/* ---- Team ---- */
.team-card { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem 1rem; background:#fff; height:100%; }
.team-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--brand-xl); color: var(--brand); display: grid; place-items: center; font-size: 2rem;
}
.team-card .role { color: var(--brand); font-weight: 600; font-size: .85rem; }

/* ---- Logo strip (empty placeholders) ---- */
.logo-slot {
  height: 80px; border: 1px dashed #c4d0d1; border-radius: 8px; background: #fafcfc;
  display: grid; place-items: center; color: #9fb1b3; font-size: .82rem; font-weight: 600;
}

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #b6c6c8; padding: 3.5rem 0 0; font-size: .92rem; }
.site-footer h5 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.1rem; }
.site-footer a { color: #b6c6c8; }
.site-footer a:hover { color: #fff; }
.site-footer .f-links li { margin-bottom: .55rem; list-style: none; }
.site-footer .f-links { padding: 0; }
.social-ico {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-grid; place-items: center; color: #fff; margin-right: .4rem;
}
.social-ico:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.2rem 0; font-size: .82rem; color: #8ea0a2; }


.esri-home-hero {
  padding: 4.4rem 0 2.35rem;
  background: #fff;
}
.esri-home-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 6.6vw, 5.15rem);
  line-height: .98;
  font-weight: 800;
}
.esri-home-main,
.esri-home-digest {
  background: #fff;
  padding: 0 0 3rem;
}
.esri-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, .82fr);
  gap: 3rem;
  align-items: start;
}
.esri-digest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}
.esri-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--brand);
  padding-top: .85rem;
  margin-bottom: 1.15rem;
}
.esri-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.38rem;
  line-height: 1.2;
}
.esri-section-head a {
  color: var(--brand);
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
}
.esri-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.esri-feature-card h2 {
  margin: .8rem 0 .3rem;
  font-size: 1.12rem;
  line-height: 1.25;
}
.esri-feature-card h2 a,
.esri-link-item h3 a {
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.esri-feature-card h2 a { -webkit-line-clamp: 3; }
.esri-link-item h3 a { -webkit-line-clamp: 2; }
.esri-feature-card h2 a:hover,
.esri-link-item h3 a:hover {
  color: var(--brand);
}
.esri-feature-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
  color: #9fb1b3;
  font-size: 2.1rem;
}
.esri-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.esri-feature-card time,
.esri-link-item time {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.esri-list-block {
  min-width: 0;
}
.esri-link-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.esri-link-item:first-of-type {
  padding-top: 0;
}
.esri-link-item h3 {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  line-height: 1.36;
}
.esri-research-areas {
  padding: 3.25rem 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.esri-area-layout {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.35fr);
  gap: 2.25rem;
  align-items: start;
}
.esri-area-layout h2 {
  margin: 0 0 .8rem;
  color: var(--ink);
  font-size: 1.55rem;
}
.esri-area-layout p {
  margin: 0;
  color: #263d42;
  font-size: 1.04rem;
  line-height: 1.7;
}
.esri-area-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.4rem;
}
.esri-area-links a {
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: .45rem;
}
.esri-area-links a:hover {
  color: var(--brand);
  border-color: var(--brand);
}
@media (max-width: 991.98px) {
  .esri-home-grid,
  .esri-digest-grid,
  .esri-area-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .esri-home-hero {
    padding-top: 3rem;
  }
}
@media (max-width: 575.98px) {
  .esri-feature-grid,
  .esri-area-links {
    grid-template-columns: 1fr;
  }
  .esri-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }
}


.people-hero {
  padding: 3.5rem 0 2.25rem;
  background: #f3f6f7;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.people-hero h1 {
  margin: 0 0 .65rem;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1;
}
.people-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.people-directory {
  padding: 3rem 0 4rem;
  background: #f3f6f7;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}
.people-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  box-shadow: 0 8px 22px rgba(18,42,48,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.people-card:hover,
.people-card:focus-within {
  border-color: var(--brand);
  box-shadow: 0 18px 34px rgba(18,42,48,.12);
  transform: translateY(-2px);
}
.people-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.people-card-hit:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}
.people-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #dfe7e8;
  overflow: hidden;
}
.people-photo-wrap img,
.people-placeholder {
  width: 100%;
  height: 100%;
}
.people-photo-wrap img {
  display: block;
  object-fit: cover;
}
.people-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand);
  background: linear-gradient(135deg, #e0f0f1, #f8fbfb);
  font-size: 4rem;
}
.people-card-body {
  padding: 1rem 1rem 1.15rem;
}
.people-card-body h2 {
  margin: 0 0 .35rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}
.people-card-body p {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.people-card-body a {
  position: relative;
  z-index: 2;
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: .88rem;
  font-weight: 700;
}
.person-modal .modal-content {
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.person-modal-head {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem;
  background: var(--brand-d);
  color: #fff;
}
.person-modal-photo {
  width: 132px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.person-modal-photo img,
.person-modal-photo .people-placeholder {
  width: 100%;
  height: 100%;
}
.person-modal-photo img {
  display: block;
  object-fit: cover;
}
.person-modal-head h2 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.person-modal-head p {
  margin: 0 0 .45rem;
  color: #d9e3ee;
  font-weight: 700;
}
.person-modal-head a {
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.person-modal-body {
  padding: 1.6rem;
}
.person-modal-actions {
  margin-bottom: 1.35rem;
}
.service-image-wrap img,
.service-modal-photo img {
  object-fit: cover;
}
.service-card .people-card-body p {
  min-height: 3.8rem;
}
.person-modal-body h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.15rem;
}
@media (max-width: 1199.98px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people-directory {
    padding-top: 2rem;
  }
  .person-modal-head {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: .9rem;
    padding: 1rem;
  }
  .person-modal-photo {
    width: 88px;
  }
  .person-modal-body {
    padding: 1.15rem;
  }
}
@media (max-width: 480px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .feature { min-height: 280px; }
  .section { padding: 2.75rem 0; }
}
.page-hero { background: linear-gradient(160deg, var(--brand-d), var(--brand)); color: #fff; padding: 3rem 0; }
.page-hero p { max-width: 720px; opacity: .86; margin-bottom: 0; }
.page-hero .cat-label { background: rgba(255,255,255,.14); color: #fff; }
.pub-item h2 { font-size: 1.25rem; margin: .35rem 0; }
.pub-item h2 a { color: var(--ink); }
.pub-item h2 a:hover { color: var(--brand); }
.side-item { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.side-item h3 { font-size: 1rem; margin: 0 0 .25rem; }
.side-item h3 a { color: var(--ink); }
.area-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.area-pill { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .85rem; background: #fff; color: var(--ink); font-weight: 700; }
.area-card { flex-direction: column; align-items: flex-start; color: var(--ink); }
.area-card h2 { font-size: 1.1rem; margin: 0; }
.area-card p { color: var(--muted); font-weight: 400; margin: .35rem 0 0; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, .35fr) minmax(160px, .45fr) auto; gap: .65rem; margin-bottom: 1.5rem; }
.narrow { max-width: 820px; }
.person-card { border: 1px solid var(--line); border-radius: 8px; padding: 1.15rem; height: 100%; background: #fff; }
.avatar.lg { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-xl); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: .75rem; }
.person-card h2 { font-size: 1.08rem; margin: 0 0 .2rem; }
.footer {
  background: var(--brand-d);
  color: #d9e3ee;
}
.public-footer {
  padding: 4.75rem 0 0;
}
.public-footer-inner {
  max-width: 1040px;
}
.public-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 1fr));
  gap: 3rem;
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}
.footer-brand:hover { color: #fff; }
.footer-logo {
  width: 88px;
  height: 68px;
  border-radius: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.22);
}
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-site-name,
.footer-site-tagline {
  display: block;
}
.footer-site-name {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}
.footer-site-tagline {
  margin-top: .4rem;
  color: #bfd0e1;
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 700;
}
.public-footer-col h2 {
  margin: 0 0 1.05rem;
  color: #fff;
  font-size: .92rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}
.public-footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: .62rem;
  color: #d9e3ee;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 700;
}
.public-footer-col a:hover {
  color: #fff;
}
.public-footer-contact p {
  margin: 0 0 .9rem;
  color: #bfd0e1;
  font-size: .92rem;
  line-height: 1.7;
}
.public-footer-contact p a {
  display: inline;
  margin: 0;
}
.footer-contact-copy {
  color: #bfd0e1;
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: .9rem;
}
.footer-social-links {
  display: flex;
  gap: .65rem;
  margin-top: 1rem;
}
.footer-social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
}
.footer-social-links a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.public-footer-bottom {
  margin-top: 4.25rem;
  min-height: 64px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #bfd0e1;
  font-size: .82rem;
  font-weight: 700;
}
@media (max-width: 991.98px) {
  .filter-bar { grid-template-columns: 1fr; }
  .public-footer { padding-top: 3.5rem; }
  .public-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .public-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .public-footer-grid { grid-template-columns: 1fr; }
  .public-footer-bottom { align-items: center; justify-content: center; padding: 1rem 0; text-align: center; }
}
.publication-detail { padding: 2rem 0 4rem; }
.pub-breadcrumb { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .86rem; margin-bottom: 1.75rem; }
.pub-main h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: .7rem 0 1rem; max-width: 920px; }
.pub-date { color: var(--muted); font-weight: 700; margin-bottom: 1.25rem; }
.download-row { display: inline-flex; align-items: center; gap: .65rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 0; margin: .5rem 0 1.6rem; font-weight: 800; }
.download-row i { font-size: 1.35rem; color: #b3261e; }
.pub-content { font-size: 1.05rem; line-height: 1.75; color: #263d42; }
.pub-sidebar { border-left: 1px solid var(--line); }
.meta-panel { padding: 0 0 1.4rem 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.meta-panel h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.meta-panel ul { list-style: none; padding: 0; margin: 0; }
.meta-panel li { margin-bottom: .45rem; font-weight: 700; }
.meta-panel dl { margin: 0; }
.meta-panel dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .9rem; }
.meta-panel dd { margin: .2rem 0 0; font-weight: 700; }
@media (max-width: 991.98px) { .pub-sidebar { border-left: 0; } .meta-panel { padding-left: 0; } }
.brand .logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.contact-form { border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; background: #fff; }
.contact-form .form-control { border-radius: 6px; border-color: var(--line); }
.contact-form .form-control:focus { border-color: var(--brand-l); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); }
.navbar-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 34px -26px rgba(18,42,48,.45); padding: .45rem; }
.navbar-nav .dropdown-item { border-radius: 4px; color: var(--ink); font-weight: 700; font-size: .9rem; padding: .55rem .7rem; }
.navbar-nav .dropdown-item:hover, .navbar-nav .dropdown-item:focus { background: var(--brand-xl); color: var(--brand-d); }
@media (min-width: 992px) { .navbar-nav .dropdown:hover .dropdown-menu { display: block; margin-top: 0; } }

.feature.has-image {
  background-size: cover;
  background-position: center;
}
.feature.has-image::before,
.page-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,32,38,.72), rgba(7,32,38,.22));
  z-index: 1;
}
.feature.has-image .feature-body,
.page-hero.has-image .container {
  position: relative;
  z-index: 2;
}
.page-hero.has-image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: end;
}
.pub-item.with-media {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.pub-thumb,
.side-thumb {
  display: block;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}
.pub-thumb {
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}
.pub-thumb img,
.side-thumb img,
.detail-image img,
.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-item.with-media {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}
.side-thumb {
  width: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}
.detail-image {
  margin: 0 0 1.25rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft);
  border: 1px solid var(--line);
}
.person-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--soft);
}
@media (max-width: 575.98px) {
  .pub-item.with-media,
  .side-item.with-media {
    grid-template-columns: 1fr;
  }
  .pub-thumb,
  .side-thumb {
    width: 100%;
  }
}

.event-detail-hero {
  background: var(--brand);
  color: #fff;
  padding: 3.4rem 0 3.8rem;
}
.event-detail-hero nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.78);
  font-size: .86rem;
  font-weight: 700;
}
.event-detail-hero nav a {
  color: #fff;
}
.event-type {
  display: inline-block;
  margin-bottom: .85rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.event-detail-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1.05;
}
.event-detail-section {
  padding: 3.4rem 0 4rem;
  background: #fff;
}
.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 3rem;
  align-items: start;
}
.event-detail-main {
  min-width: 0;
  color: #263d42;
}
.event-intro {
  margin-bottom: 1.6rem;
  color: var(--ink);
  font-size: 1.17rem;
}
.event-detail-aside {
  display: grid;
  gap: 1.25rem;
}
.event-detail-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}
.event-detail-image img,
.event-image-placeholder {
  width: 100%;
  height: 100%;
}
.event-detail-image img {
  display: block;
  object-fit: cover;
}
.event-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand);
  background: linear-gradient(135deg, #e0f0f1, #f8fbfb);
  font-size: 4rem;
}
.event-info-card {
  border-top: 3px solid var(--brand);
  background: var(--soft);
  padding: 1.25rem;
}
.event-info-card h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.22rem;
}
.event-info-card dl {
  margin: 0;
}
.event-info-card dt {
  margin-top: .95rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.event-info-card dt:first-child {
  margin-top: 0;
}
.event-info-card dd {
  margin: .25rem 0 0;
  color: var(--ink);
  font-weight: 800;
}
@media (max-width: 991.98px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
  }
  .event-detail-aside {
    order: -1;
  }
}
@media (max-width: 575.98px) {
  .event-detail-hero {
    padding: 2.5rem 0 2.75rem;
  }
  .event-detail-section {
    padding: 2rem 0 3rem;
  }
}

.rich-content {
  line-height: 1.75;
}
.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content h2,
.rich-content h3,
.rich-content blockquote {
  margin: 0 0 1rem;
}
.rich-content h2 {
  font-size: 1.55rem;
}
.rich-content h3 {
  font-size: 1.25rem;
}
.rich-content ul,
.rich-content ol {
  padding-left: 1.35rem;
}
.rich-content a {
  font-weight: 700;
}
.rich-content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1rem;
  color: var(--muted);
}


/* Smartsarif exchange public app */
.exchange-app-shell { background: #070a12; color: #f6f7fb; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding-bottom: 0; }
.exchange-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.exchange-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 10, 18, .92); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.exchange-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.exchange-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.exchange-brand strong { display: block; font-size: 1rem; line-height: 1.1; }
.exchange-brand small { display: block; color: #9aa6b8; font-size: .78rem; margin-top: 3px; }
.exchange-logo { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #f7d857); color: #071018; font-weight: 800; overflow: hidden; }
.exchange-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.exchange-nav, .exchange-actions { display: flex; align-items: center; gap: 10px; }
.exchange-nav a, .exchange-footer a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: .94rem; }
.exchange-nav a:hover, .exchange-footer a:hover { color: #fff; }
.lang-link { border: 1px solid rgba(255,255,255,.12); color: #cbd5e1; text-decoration: none; border-radius: 8px; padding: 7px 9px; font-weight: 800; font-size: .76rem; }
.lang-link.active { background: #fff; color: #0b1020; }
.exchange-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 8px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.12); background: #f7d857; color: #0b1020; text-decoration: none; font-weight: 800; }
.exchange-btn.ghost { background: transparent; color: #f6f7fb; }
.exchange-hero { padding: 64px 0 28px; background: radial-gradient(circle at 18% 10%, rgba(40, 191, 123, .18), transparent 28%), #070a12; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: end; }
.eyebrow { color: #8fe388; text-transform: uppercase; letter-spacing: 0; font-size: .78rem; font-weight: 800; margin-bottom: 10px; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: 1; margin: 0 0 18px; max-width: 780px; }
.hero-copy p { color: #b7c0cf; font-size: 1.08rem; max-width: 660px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.status-panel, .client-panel, .side-panel { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); border-radius: 8px; padding: 18px; }
.status-panel span { display: block; color: #b7c0cf; margin-top: 8px; }
.rates-section { padding: 28px 0 42px; }
.xchange_type_table_ins, .xchange_div { background: #fff; color: #101827; border-radius: 8px; box-shadow: 0 22px 60px rgba(0,0,0,.22); overflow: hidden; }
.xtt_icon_wrap { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e5e7eb; }
.xtt_left_col_icon, .xtt_right_col_icon { padding: 14px; min-width: 0; }
.xtt_left_col_icon { border-right: 1px solid #e5e7eb; }
.xtt_left_col_icon_ins, .xtt_right_col_icon_ins { display: flex; gap: 8px; flex-wrap: wrap; }
.tbl_icon { border: 1px solid #d9dee8; background: #f8fafc; border-radius: 999px; padding: 8px 12px; font-weight: 800; color: #334155; font-size: .85rem; }
.tbl_icon.active { background: #101827; color: #fff; border-color: #101827; }
.xtt_table_wrap { display: grid; grid-template-columns: .9fr 1.35fr; min-height: 420px; }
.xtt_left_col_table { border-right: 1px solid #e5e7eb; }
.xtt_left_incol_title, .xtt_right_incol_title { min-height: 48px; display: grid; align-items: center; padding: 0 16px; border-bottom: 1px solid #e5e7eb; color: #64748b; font-weight: 900; text-transform: uppercase; font-size: .76rem; }
.xtt_right_incol_title { grid-template-columns: 1fr 170px 130px; }
#xtt_left_col_html, #xtt_right_col_html { max-height: 520px; overflow: auto; }
.xtt_one_line_left, .xtt_one_line_right { display: grid; align-items: center; gap: 12px; min-height: 62px; padding: 10px 16px; border-bottom: 1px solid #eef2f7; }
.xtt_one_line_left { grid-template-columns: 42px 1fr; cursor: pointer; }
.xtt_one_line_right { grid-template-columns: 42px 1fr 170px 130px; color: #101827; }
.js_exchange_link { color: inherit; text-decoration: none; display: block; }
.js_item_left.active .xtt_one_line_left, .js_exchange_link:hover .xtt_one_line_right { background: #f8fbef; }
.currency_logo { width: 36px; height: 36px; display: block; border-radius: 999px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #f1f5f9; border: 1px solid #e5e7eb; }
.xtt_one_line_name { font-weight: 800; }
.xtt_one_line_curs, .xtt_one_line_reserv { color: #475569; font-weight: 700; font-size: .9rem; }
.empty-rates { padding: 24px; color: #64748b; }
.exchange-section { padding: 72px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.section-head h2, .faq-grid h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 12px; }
.section-head p, .feature-list p, .step-grid p, .faq-list p { color: #bac4d5; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-grid article { border: 2px solid rgba(255,255,255,.85); border-radius: 8px; padding: 24px; min-height: 260px; display: flex; flex-direction: column; gap: 12px; }
.step-grid h3, .feature-list h3 { font-size: 1.1rem; }
.step-grid a { color: #f7d857; font-weight: 800; margin-top: auto; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; border: 2px solid #fff; }
.why-section { background: #0b1020; }
.feature-list { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
.feature-list article { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 20px; background: rgba(255,255,255,.04); }
.feature-list i { width: 42px; height: 42px; display: grid; place-items: center; color: #0b1020; background: #f7d857; border-radius: 8px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 18px; background: rgba(255,255,255,.04); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.exchange-footer { padding: 42px 0 34px; border-top: 1px solid rgba(255,255,255,.08); background: #050811; }
.exchange-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.exchange-footer h2 { font-size: .9rem; text-transform: uppercase; color: #7f8ba0; }
.exchange-footer nav a { display: block; margin: 8px 0; }
.footer-contact-copy { color: #cbd5e1; }
.exchange-page, .client-page { padding: 38px 0 76px; }
.exchange-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.xchange_div { padding: 0; }
.notice_message { padding: 14px 18px; background: #f8fbef; border-bottom: 1px solid #e5e7eb; color: #475569; }
.notice_message p { margin: 0; }
.xchange_div_cols { display: grid; grid-template-columns: 1fr 1fr; }
.xchange_div_col_give { border-right: 1px solid #e5e7eb; }
.xchange_data_title { padding: 16px 18px; font-size: 1.1rem; font-weight: 900; border-bottom: 1px solid #e5e7eb; }
.xchange_data_title.get { background: #f8fafc; }
.xchange_data_div { padding: 18px; display: grid; gap: 12px; }
.xchange_info_grid { display: grid; gap: 6px; color: #64748b; font-size: .9rem; }
.exchange-select-label, .exchange-input-label { color: #334155; font-weight: 800; font-size: .84rem; }
.fee-line { font-size: .86rem; color: #64748b; }
.terms-line { display: flex; gap: 10px; padding: 18px; color: #334155; border-top: 1px solid #e5e7eb; }
.xchange_submit { width: calc(100% - 36px); margin: 0 18px 18px; border: 0; border-radius: 8px; min-height: 48px; font-weight: 900; background: #101827; color: #fff; }
.auth-required { margin: 18px; padding: 18px; border-radius: 8px; background: #fff7ed; color: #7c2d12; display: grid; gap: 8px; }
.auth-required p { margin: 0; }
.exchange-sidebar { display: grid; gap: 16px; }
.side-panel h2, .client-panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.other-direction { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 800; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.auth-exchange-page { min-height: 100vh; display: grid; place-items: center; background: #070a12; color: #fff; padding: 24px; font-family: Inter, system-ui, sans-serif; }
.auth-exchange-card { width: min(520px, 100%); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.045); padding: 26px; }
.auth-exchange-card h1 { margin: 22px 0 8px; }
.auth-exchange-card p { color: #b7c0cf; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-weight: 800; color: #dbe3ef; }
.auth-form input, .auth-form select { min-height: 46px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); padding: 10px 12px; background: #fff; color: #101827; }
.auth-switch { text-align: center; color: #b7c0cf; }
.auth-switch a { color: #f7d857; font-weight: 800; }
.client-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.client-header h1 { margin: 0; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inline-form label { color: #f1f5f9; }
.status-stack { display: grid; align-content: start; gap: 12px; }
.status-row, .client-list-row, .transaction-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 0; }
.status-row strong.good { color: #8fe388; }
.status-row strong.warn { color: #f7d857; }
.client-list-row span, .transaction-row span { display: block; color: #9aa6b8; font-size: .86rem; }
.pill { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; padding: 4px 10px; font-weight: 900; font-size: .74rem; color: #0b1020; background: #e2e8f0; }
.pill.approved, .pill.completed { background: #8fe388; }
.pill.pending, .pill.processing { background: #f7d857; }
.pill.rejected, .pill.cancelled { background: #fb7185; }
.transaction-list { display: grid; gap: 12px; }
.transaction-row { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr auto; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 16px; }
.mobile-tabbar { display: none; }

@media (max-width: 860px) {
  .exchange-app-shell { padding-bottom: 78px; }
  .exchange-container { width: min(100% - 20px, 720px); }
  .exchange-header-inner { min-height: 66px; }
  .exchange-nav { display: none; }
  .exchange-actions .exchange-btn, .exchange-actions .lang-link { display: none; }
  .hero-grid, .xtt_icon_wrap, .xtt_table_wrap, .xchange_div_cols, .exchange-layout, .client-grid, .faq-grid, .exchange-footer-grid { grid-template-columns: 1fr; }
  .exchange-hero { padding: 22px 0 12px; }
  .hero-copy h1 { font-size: 2rem; }
  .status-panel { display: none; }
  .rates-section { padding-top: 10px; }
  .xtt_left_col_icon, .xtt_left_col_table, .xchange_div_col_give { border-right: 0; border-bottom: 1px solid #e5e7eb; }
  .xtt_right_incol_title, .xtt_one_line_right { grid-template-columns: 38px 1fr 92px 78px; gap: 8px; padding-left: 10px; padding-right: 10px; }
  .xtt_one_line_curs, .xtt_one_line_reserv { font-size: .76rem; }
  .xtt_one_line_name { font-size: .88rem; }
  .step-grid { grid-template-columns: 1fr; }
  .exchange-section { padding: 48px 0; }
  .exchange-sidebar { display: none; }
  .client-header { align-items: flex-start; flex-direction: column; }
  .transaction-row { grid-template-columns: 1fr; align-items: start; }
  .mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(7, 10, 18, .96); border-top: 1px solid rgba(255,255,255,.12); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-tabbar a { min-height: 54px; display: grid; place-items: center; gap: 2px; color: #94a3b8; text-decoration: none; font-size: .72rem; font-weight: 800; }
  .mobile-tabbar i { font-size: 1.25rem; }
  .mobile-tabbar a.active { color: #f7d857; }
}


/* Smartsarif mockup alignment overrides */
:root {
  --sx-primary: var(--brand, #4f22e8);
  --sx-primary-dark: #22006d;
  --sx-primary-soft: #f1edff;
  --sx-bg: #f7f8fc;
  --sx-card: #ffffff;
  --sx-text: #111827;
  --sx-muted: #667085;
  --sx-line: #eaecf0;
  --sx-shadow: 0 18px 46px rgba(31, 41, 55, .08);
}
html[data-theme="dark"] {
  --sx-bg: #070a12;
  --sx-card: #101827;
  --sx-text: #f8fafc;
  --sx-muted: #a7b0c0;
  --sx-line: rgba(255,255,255,.1);
  --sx-primary-soft: rgba(116, 80, 255, .18);
  --sx-shadow: 0 18px 52px rgba(0, 0, 0, .34);
}
.exchange-app-shell,
.auth-exchange-page { background: var(--sx-bg); color: var(--sx-text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.exchange-header { background: color-mix(in srgb, var(--sx-card) 92%, transparent); border-bottom: 1px solid var(--sx-line); box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.exchange-header-inner { min-height: 70px; }
.exchange-brand { color: var(--sx-text); }
.exchange-brand small { color: var(--sx-muted); }
.exchange-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--sx-primary), #7c3aed); color: #fff; }
.exchange-nav a { color: #111827; font-size: .86rem; font-weight: 700; }
html[data-theme="dark"] .exchange-nav a { color: #e5e7eb; }
.exchange-nav a:hover { color: var(--sx-primary); }
.exchange-actions { gap: 8px; }
.lang-link,
.theme-btn { min-width: 36px; min-height: 36px; border: 1px solid var(--sx-line); background: var(--sx-card); color: var(--sx-muted); text-decoration: none; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; font-size: .75rem; }
.lang-link.active,
.theme-btn.active { background: var(--sx-primary); color: #fff; border-color: var(--sx-primary); }
.exchange-btn { border: 0; background: var(--sx-primary); color: #fff; border-radius: 7px; box-shadow: 0 9px 18px rgba(79, 34, 232, .18); font-size: .86rem; }
.exchange-btn:hover { background: color-mix(in srgb, var(--sx-primary) 88%, #000); color: #fff; }
.exchange-btn.ghost { background: var(--sx-card); color: var(--sx-primary); border: 1px solid var(--sx-line); box-shadow: none; }
.exchange-container { width: min(1180px, calc(100% - 44px)); }
.sx-hero { padding: 54px 0 0; background: linear-gradient(180deg, #fff 0%, var(--sx-bg) 100%); }
html[data-theme="dark"] .sx-hero { background: linear-gradient(180deg, #0b1020 0%, var(--sx-bg) 100%); }
.sx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 48px; align-items: center; }
.sx-hero-copy h1 { max-width: 560px; margin: 0 0 16px; color: var(--sx-text); font-size: clamp(2.35rem, 5vw, 4.1rem); line-height: 1.05; font-weight: 800; letter-spacing: 0; }
.sx-hero-copy h1 span { color: var(--sx-primary); }
.sx-hero-copy p { max-width: 520px; color: var(--sx-muted); font-size: 1rem; line-height: 1.7; }
.sx-trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; color: #475467; font-size: .8rem; font-weight: 700; }
html[data-theme="dark"] .sx-trust-row { color: #d0d5dd; }
.sx-trust-row span { display: inline-flex; gap: 6px; align-items: center; }
.sx-trust-row i { color: var(--sx-primary); }
.sx-quick-card,
.xchange_type_table_ins,
.xchange_div,
.client-panel,
.side-panel,
.auth-exchange-card,
.dashboard-stat-grid article { background: var(--sx-card); color: var(--sx-text); border: 1px solid var(--sx-line); border-radius: 8px; box-shadow: var(--sx-shadow); }
.sx-quick-card { padding: 18px; }
.sx-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -18px -18px 16px; border-bottom: 1px solid var(--sx-line); }
.sx-tabs span { min-height: 48px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--sx-muted); }
.sx-tabs span:first-child { color: var(--sx-text); background: var(--sx-card); border-top-left-radius: 8px; }
.sx-card-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--sx-line); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.sx-currency { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sx-currency strong { display: block; color: var(--sx-text); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-currency small,
.sx-card-row small { display: block; color: var(--sx-muted); font-size: .72rem; margin-top: 2px; }
.sx-card-row > strong { color: var(--sx-text); text-align: right; }
.sx-swap { width: 32px; height: 32px; display: grid; place-items: center; margin: -6px auto 6px; border-radius: 999px; background: var(--sx-primary-soft); color: var(--sx-primary); }
.sx-rate-lines { display: grid; gap: 8px; margin: 12px 0 16px; }
.sx-rate-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: .82rem; }
.sx-rate-lines dt { color: var(--sx-muted); font-weight: 700; }
.sx-rate-lines dd { margin: 0; color: var(--sx-text); font-weight: 800; text-align: right; }
.sx-stats { margin-top: 42px; background: #17005d; color: #fff; }
.sx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sx-stats-grid div { padding: 26px 18px; text-align: center; }
.sx-stats-grid strong { display: block; font-size: 1.75rem; line-height: 1; }
.sx-stats-grid span { color: rgba(255,255,255,.78); font-size: .82rem; }
.sx-supported,
.sx-steps,
.rates-section { padding: 38px 0; }
.section-head.compact { margin-bottom: 24px; }
.section-head.compact h2 { color: var(--sx-text); font-size: clamp(1.55rem, 3vw, 2.25rem); }
.section-head.compact p { color: var(--sx-muted); }
.sx-pills { display: inline-flex; gap: 8px; padding: 4px; border-radius: 999px; background: var(--sx-primary-soft); }
.sx-pills span { padding: 7px 14px; border-radius: 999px; background: var(--sx-card); color: var(--sx-primary); font-weight: 800; font-size: .76rem; }
.sx-currency-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sx-currency-grid article { display: flex; gap: 12px; align-items: center; min-height: 72px; background: var(--sx-card); border: 1px solid var(--sx-line); border-radius: 8px; padding: 14px; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.sx-currency-grid strong { display: block; color: var(--sx-text); font-size: .88rem; }
.sx-currency-grid small { color: var(--sx-muted); font-size: .74rem; }
.sx-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.sx-step-grid article { position: relative; text-align: center; padding: 0 22px; }
.sx-step-grid article:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 26px); right: calc(-50% + 26px); top: 22px; height: 1px; background: var(--sx-line); }
.sx-step-grid article > span { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 999px; color: #fff; background: var(--sx-primary); font-weight: 900; box-shadow: 0 0 0 8px var(--sx-primary-soft); }
.sx-step-grid h3 { color: var(--sx-text); font-size: .95rem; margin-bottom: 8px; }
.sx-step-grid p { color: var(--sx-muted); font-size: .82rem; line-height: 1.55; }
.sx-feature-strip { background: var(--sx-primary); color: #fff; margin-top: 34px; }
.sx-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sx-feature-grid article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 24px 0; align-items: start; }
.sx-feature-grid i { font-size: 1.35rem; }
.sx-feature-grid strong { display: block; font-size: .92rem; }
.sx-feature-grid span { color: rgba(255,255,255,.75); font-size: .78rem; }
.xtt_icon_wrap,
.xtt_left_col_icon,
.xtt_left_incol_title,
.xtt_right_incol_title,
.xtt_one_line_left,
.xtt_one_line_right,
.xchange_div_col_give,
.xchange_data_title,
.notice_message,
.terms-line { border-color: var(--sx-line); }
.tbl_icon { background: color-mix(in srgb, var(--sx-card) 86%, #f5f6fb); border-color: var(--sx-line); color: var(--sx-muted); }
.tbl_icon.active { background: var(--sx-primary); border-color: var(--sx-primary); color: #fff; }
.xtt_one_line_right,
.xtt_one_line_name,
.xchange_data_title,
.exchange-select-label,
.exchange-input-label { color: var(--sx-text); }
.xtt_left_incol_title,
.xtt_right_incol_title,
.xtt_one_line_curs,
.xtt_one_line_reserv,
.xchange_info_grid,
.fee-line { color: var(--sx-muted); }
.js_item_left.active .xtt_one_line_left,
.js_exchange_link:hover .xtt_one_line_right { background: var(--sx-primary-soft); }
.xchange_data_title.get { background: color-mix(in srgb, var(--sx-card) 86%, #f5f6fb); }
.notice_message { background: var(--sx-primary-soft); color: var(--sx-text); }
.xchange_submit { background: var(--sx-primary); box-shadow: 0 9px 18px rgba(79, 34, 232, .18); }
.auth-required { background: #fff7ed; color: #7c2d12; }
.exchange-footer { background: #13004d; border-top: 0; }
.exchange-footer .exchange-brand,
.exchange-footer a { color: #fff; }
.exchange-footer h2 { color: rgba(255,255,255,.72); }
.footer-contact-copy { color: rgba(255,255,255,.78); }
.auth-exchange-page { padding: 28px; }
.auth-exchange-card { width: min(430px, 100%); padding: 30px; }
.auth-exchange-card h1 { color: var(--sx-text); text-align: center; font-size: 1.45rem; }
.auth-exchange-card p { text-align: center; color: var(--sx-muted); }
.auth-form label { color: var(--sx-text); font-size: .82rem; }
.auth-form input,
.auth-form select { border-color: var(--sx-line); background: var(--sx-card); color: var(--sx-text); }

.file-picker-label { gap: 8px; }
.file-picker { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 46px; border: 1px solid var(--sx-line); border-radius: 8px; background: var(--sx-card); overflow: hidden; }
.file-picker input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-picker-text { min-width: 0; padding: 10px 12px; color: var(--sx-muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-picker-button { align-self: stretch; display: inline-flex; align-items: center; padding: 0 14px; background: var(--sx-primary-soft); color: var(--sx-primary); border-left: 1px solid var(--sx-line); font-weight: 900; }
.auth-row-links { text-align: right; font-size: .8rem; }
.auth-row-links a,
.auth-switch a { color: var(--sx-primary); text-decoration: none; font-weight: 800; }
.auth-switch { color: var(--sx-muted); }
.client-dashboard,
.client-page { padding: 34px 0 82px; }
.client-dashboard-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.client-dashboard-head h1,
.client-header h1 { color: var(--sx-text); margin: 0; }
.client-dashboard-head span { color: var(--sx-muted); }
.dashboard-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dashboard-stat-grid article { padding: 18px; }
.dashboard-stat-grid span { display: block; color: var(--sx-muted); font-size: .78rem; font-weight: 800; margin-bottom: 8px; }
.dashboard-stat-grid strong { color: var(--sx-text); font-size: 1.55rem; }
.dashboard-panels { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action-grid a { min-height: 84px; display: grid; place-items: center; gap: 8px; border: 1px solid var(--sx-line); border-radius: 8px; color: var(--sx-text); text-decoration: none; font-weight: 800; }
.quick-action-grid i { color: var(--sx-primary); font-size: 1.35rem; }
.panel-headline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-headline a { color: var(--sx-primary); text-decoration: none; font-weight: 800; }
.dashboard-order-list { display: grid; gap: 8px; }
.dashboard-order-list article { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sx-line); }
.dashboard-order-list span { display: block; color: var(--sx-muted); font-size: .78rem; }
.client-panel h2,
.side-panel h2 { color: var(--sx-text); }
.inline-form label { color: var(--sx-text); }
.status-row,
.client-list-row,
.transaction-row { border-color: var(--sx-line); }
.transaction-row { background: var(--sx-card); color: var(--sx-text); }
.other-direction { color: var(--sx-text); border-color: var(--sx-line); }
.mobile-tabbar { box-shadow: 0 -12px 24px rgba(15,23,42,.08); }

@media (max-width: 920px) {
  .exchange-container { width: min(100% - 24px, 720px); }
  .sx-hero-grid,
  .xtt_icon_wrap,
  .xtt_table_wrap,
  .xchange_div_cols,
  .exchange-layout,
  .client-grid,
  .dashboard-panels,
  .exchange-footer-grid { grid-template-columns: 1fr; }
  .sx-quick-card { order: -1; }
  .sx-hero { padding-top: 18px; }
  .sx-hero-copy h1 { font-size: 2rem; }
  .sx-trust-row { display: none; }
  .sx-stats-grid,
  .sx-currency-grid,
  .sx-step-grid,
  .sx-feature-grid,
  .dashboard-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sx-step-grid { gap: 18px; }
  .sx-step-grid article:not(:last-child)::after { display: none; }
  .exchange-actions .exchange-btn { display: none; }
  .theme-btn,
  .lang-link { min-width: 34px; min-height: 34px; }
  .exchange-nav { display: none; }
  .mobile-tabbar { background: var(--sx-card); border-top: 1px solid var(--sx-line); }
  .mobile-tabbar a { color: var(--sx-muted); }
  .mobile-tabbar a.active { color: var(--sx-primary); }
  html[data-theme="dark"] .mobile-tabbar { background: #0b1020; }
}
@media (max-width: 560px) {
  .exchange-app-shell { padding-bottom: 76px; }
  .exchange-header-inner { min-height: 62px; }
  .exchange-brand small { display: none; }
  .sx-stats-grid,
  .sx-currency-grid,
  .sx-feature-grid,
  .dashboard-stat-grid,
  .quick-action-grid { grid-template-columns: 1fr; }
  .sx-stats-grid div { padding: 18px 12px; }
  .xtt_right_incol_title,
  .xtt_one_line_right { grid-template-columns: 34px minmax(0, 1fr) 78px; }
  .xtt_table_title4,
  .xtt_one_line_reserv { display: none; }
  .sx-hero-copy { padding-bottom: 8px; }
  .hero-cta .exchange-btn { width: 100%; }
}

/* Keep the mobile tabbar reserve inside the footer instead of after it. */
@media (max-width: 920px) {
  .exchange-app-shell { padding-bottom: 0; }
  .exchange-footer { padding-bottom: calc(24px + 76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .exchange-app-shell { padding-bottom: 0; }
  .client-dashboard,
  .client-page { padding-bottom: 34px; }
}

.conversion-editor { border-top: 1px solid var(--line); padding-top: 1rem; }
.conversion-editor-head h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.conversion-editor-head p { color: #667085; margin-bottom: 1rem; }
.conversion-table th { white-space: nowrap; font-size: .78rem; color: #667085; }
.conversion-table td { min-width: 130px; vertical-align: top; }
.conversion-table td:first-child { min-width: 190px; }
.conversion-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.conversion-tags span { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: rgba(79, 34, 232, .1); color: #4f22e8; font-size: .76rem; font-weight: 800; }
.client-shell .exchange-footer { display: none; }
.client-shell.exchange-app-shell { padding-bottom: 0; }
@media (max-width: 920px) {
  .client-shell main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Admin-managed mobile application downloads */
.sx-apps {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 8% 14%, color-mix(in srgb, var(--sx-primary) 20%, transparent) 0, transparent 30%),
    radial-gradient(circle at 92% 86%, color-mix(in srgb, #7c3aed 16%, transparent) 0, transparent 32%),
    color-mix(in srgb, var(--sx-card) 93%, var(--sx-primary-soft));
  border-block: 1px solid var(--sx-line);
}
.sx-apps::before,
.sx-apps::after { content: ""; position: absolute; z-index: -1; border: 1px solid color-mix(in srgb, var(--sx-primary) 18%, transparent); border-radius: 999px; }
.sx-apps::before { width: 360px; height: 360px; left: -210px; top: -170px; }
.sx-apps::after { width: 460px; height: 460px; right: -300px; bottom: -260px; }
.sx-apps-head { max-width: 700px; margin: 0 auto 38px; text-align: center; }
.sx-apps-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--sx-primary); font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.sx-apps-head h2 { margin: 0; color: var(--sx-text); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.sx-apps-head p { max-width: 620px; margin: 16px auto 0; color: var(--sx-muted); font-size: 1rem; line-height: 1.75; }
.sx-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sx-app-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--sx-line); border-radius: 24px; background: color-mix(in srgb, var(--sx-card) 94%, transparent); box-shadow: 0 24px 70px rgba(15, 23, 42, .1); backdrop-filter: blur(14px); }
.sx-app-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; top: -100px; border-radius: 999px; background: color-mix(in srgb, var(--sx-primary) 10%, transparent); pointer-events: none; }
.sx-app-card--ios::after { background: color-mix(in srgb, #7c3aed 10%, transparent); }
.sx-app-card-top { position: relative; z-index: 1; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 18px; align-items: center; }
.sx-app-logo { width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--sx-line); border-radius: 22px; background: var(--sx-primary-soft); color: var(--sx-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.sx-app-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.sx-app-logo i { font-size: 2.4rem; }
.sx-app-official { display: inline-flex; align-items: center; gap: 6px; color: var(--sx-primary); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.sx-app-card h3 { margin: 6px 0 3px; color: var(--sx-text); font-size: 1.45rem; font-weight: 900; }
.sx-app-card-top p { margin: 0; color: var(--sx-muted); font-size: .85rem; }
.sx-app-download { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 24px 0; padding: 0 18px; border-radius: 14px; background: linear-gradient(135deg, var(--sx-primary), color-mix(in srgb, var(--sx-primary) 72%, #7c3aed)); color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 14px 28px color-mix(in srgb, var(--sx-primary) 24%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.sx-app-download span { display: inline-flex; align-items: center; gap: 10px; }
.sx-app-download:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px color-mix(in srgb, var(--sx-primary) 32%, transparent); }
.sx-app-download.is-disabled { justify-content: center; background: color-mix(in srgb, var(--sx-muted) 12%, var(--sx-card)); color: var(--sx-muted); box-shadow: none; }
.sx-install-guide { padding-top: 22px; border-top: 1px solid var(--sx-line); }
.sx-install-guide h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--sx-text); font-size: .9rem; font-weight: 900; }
.sx-install-guide h4 i { color: var(--sx-primary); }
.sx-install-guide ol { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.sx-install-guide li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; }
.sx-install-guide li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--sx-primary-soft); color: var(--sx-primary); font-size: .72rem; font-weight: 900; }
.sx-install-guide li p { margin: 3px 0 0; color: var(--sx-muted); font-size: .82rem; line-height: 1.55; }

@media (max-width: 820px) {
  .sx-apps { padding: 56px 0; }
  .sx-app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sx-app-card { padding: 20px; border-radius: 18px; }
  .sx-app-card-top { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .sx-app-logo { width: 62px; height: 62px; border-radius: 17px; }
  .sx-app-logo i { font-size: 2rem; }
}

/* Modernized classic exchange rates table */
html { background: var(--sx-bg); }
.exchange-app-shell { min-height: 100vh; }
.exchange-app-shell main { min-height: calc(100vh - 70px); }
.exchange-footer { margin-bottom: 0; }

.classic-rates-table { overflow: hidden; }
.rates-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--sx-line);
  background: color-mix(in srgb, var(--sx-card) 92%, var(--sx-primary-soft));
}
.rates-classic-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1.25fr);
  min-height: 430px;
}
.rates-send-table { border-right: 1px solid var(--sx-line); }
.rates-classic-title {
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--sx-line);
  background: color-mix(in srgb, var(--sx-card) 96%, var(--sx-primary-soft));
  color: var(--sx-muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .74rem;
}
.rates-classic-title > div:first-child {
  min-width: 0;
}
.rates-title-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  line-height: 1.15;
}
.rates-classic-title span {
  color: var(--sx-text);
  font-size: .9rem;
}
.rates-classic-title small {
  color: var(--sx-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: none;
}
.rates-classic-head { grid-template-columns: minmax(0, 1fr) minmax(116px, .34fr) minmax(108px, .28fr); gap: 12px; }
.rates-classic-list {
  max-height: 520px;
  overflow: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--sx-primary) 46%, var(--sx-line)) transparent;
}
.rates-classic-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.rates-classic-list::-webkit-scrollbar-track {
  background: transparent;
}
.rates-classic-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--sx-primary) 42%, var(--sx-line));
  border: 2px solid var(--sx-card);
  border-radius: 999px;
}
.rates-classic-list::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--sx-primary) 62%, var(--sx-line));
}
.classic-send-row,
.classic-receive-row {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.classic-table-row .xtt_one_line_right,
.classic-receive-row .xtt_one_line_right {
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid var(--sx-line);
  border-radius: 0;
  padding: 10px 16px;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.classic-table-row .xtt_one_line_right {
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  cursor: pointer;
}
.send-selected-mark {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.send-selected-mark i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: transparent;
}
.classic-table-row:hover .xtt_one_line_right,
.classic-receive-row:hover .xtt_one_line_right {
  background: color-mix(in srgb, var(--sx-primary-soft) 62%, transparent);
  border-bottom-color: color-mix(in srgb, var(--sx-primary) 30%, var(--sx-line));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--sx-primary) 45%, transparent);
}
.classic-send-row.active .xtt_one_line_right {
  background: color-mix(in srgb, var(--sx-primary-soft) 86%, var(--sx-card));
  border-bottom-color: color-mix(in srgb, var(--sx-primary) 52%, var(--sx-line));
  box-shadow: inset 4px 0 0 var(--sx-primary);
}
.classic-send-row.active .send-selected-mark i {
  color: #fff;
  background: var(--sx-primary);
}

.classic-receive-row .xtt_one_line_right {
  grid-template-columns: 38px minmax(0, 1fr) minmax(116px, .34fr) minmax(108px, .28fr);
}
.classic-table-row .xtt_one_line_name,
.classic-receive-row .xtt_one_line_name {
  min-width: 0;
  overflow: hidden;
  color: var(--sx-text);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}
.classic-receive-row .xtt_one_line_curs,
.classic-receive-row .xtt_one_line_reserv {
  color: var(--sx-muted);
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}
.classic-receive-row .xtt_one_line_curs { color: var(--sx-text); }
.rates-receive-panel.is-disabled {
  background: linear-gradient(135deg, color-mix(in srgb, var(--sx-card) 92%, var(--sx-primary-soft)), var(--sx-card));
}
.rates-receive-panel.is-disabled .rates-classic-head,
.rates-receive-panel.is-disabled .rates-list-receive { opacity: .74; }
.receive-placeholder,
.receive-empty {
  margin: 16px;
  border: 1px dashed var(--sx-line);
  border-radius: 8px;
  color: var(--sx-muted);
  text-align: center;
}

@media (max-width: 920px) {
  .rates-classic-grid { grid-template-columns: 1fr; }
  .rates-send-table { border-right: 0; border-bottom: 1px solid var(--sx-line); }
  .rates-classic-list { max-height: 390px; }
}

@media (max-width: 560px) {
  .rates-filter-bar { padding: 18px 12px; gap: 8px; }
  .tbl_icon { padding: 7px 10px; font-size: .76rem; }
  .rates-classic-head { grid-template-columns: minmax(0, 1fr) minmax(84px, auto); }
  .rates-classic-head > div:last-child { display: none; }
  .classic-receive-row .xtt_one_line_right { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 10px; }
  .classic-receive-row .xtt_one_line_curs,
  .classic-receive-row .xtt_one_line_reserv { grid-column: 2; }
  .classic-receive-row .xtt_one_line_reserv::before { content: 'Reserve: '; color: var(--sx-muted); }
}


.exchange-page-actions { display: flex; margin-bottom: 16px; }
.exchange-back-btn { min-height: 38px; padding: 8px 12px; }

/* Brand logo refresh */
.exchange-brand {
  gap: 14px;
}
.exchange-brand > span:last-child {
  min-width: 0;
}
.exchange-logo {
  width: 72px;
  height: 48px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  overflow: visible;
}
.exchange-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 0;
}
.exchange-header .exchange-logo {
  width: 78px;
  height: 50px;
  flex-basis: 78px;
}
.footer-brand .exchange-logo,
.auth-exchange-card .exchange-logo {
  width: 82px;
  height: 54px;
  flex-basis: 82px;
}
.auth-exchange-card .exchange-brand {
  align-items: center;
}
html[data-theme="dark"] .exchange-logo,
.auth-exchange-page .exchange-logo {
  background: transparent;
}
@media (max-width: 860px) {
  .exchange-header-inner {
    min-height: 74px;
  }
  .exchange-header .exchange-logo {
    width: 68px;
    height: 44px;
    flex-basis: 68px;
  }
}
@media (max-width: 420px) {
  .exchange-brand {
    gap: 10px;
  }
  .exchange-header .exchange-logo {
    width: 60px;
    height: 40px;
    flex-basis: 60px;
  }
  .exchange-brand strong {
    font-size: .94rem;
  }
  .exchange-brand small {
    font-size: .7rem;
  }
}

/* Theme-aware brand logo */
.exchange-logo .brand-logo-dark {
  display: none;
}
.exchange-logo .brand-logo-light,
.exchange-logo .brand-logo-fallback {
  display: block;
}
.exchange-logo .brand-logo-fallback {
  font-weight: 900;
  color: var(--sx-primary);
  font-size: 1.05rem;
}
html[data-theme="dark"] .exchange-logo .brand-logo-light,
html[data-theme="dark"] .exchange-logo .brand-logo-fallback,
.auth-exchange-page[data-theme="dark"] .exchange-logo .brand-logo-light,
.auth-exchange-page[data-theme="dark"] .exchange-logo .brand-logo-fallback {
  display: none;
}
html[data-theme="dark"] .exchange-logo .brand-logo-dark,
.auth-exchange-page[data-theme="dark"] .exchange-logo .brand-logo-dark {
  display: block;
}

/* Mobile logo-only brand */
@media (max-width: 860px) {
  .exchange-header .exchange-brand > span:last-child {
    display: none;
  }
  .exchange-header .exchange-brand {
    gap: 0;
  }
}
@media (max-width: 520px) {
  .auth-exchange-card .exchange-brand > span:last-child {
    display: none;
  }
  .auth-exchange-card .exchange-brand {
    justify-content: center;
  }
}

/* Minimal theme-aware footer */
.exchange-footer {
  padding: 34px 0 30px;
  border-top: 1px solid var(--sx-line);
  background: var(--sx-card);
  color: var(--sx-text);
}
.exchange-footer-grid {
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, .8fr) minmax(160px, .55fr);
  gap: 36px;
  align-items: start;
}
.exchange-footer .exchange-brand,
.exchange-footer a {
  color: var(--sx-text);
}
.exchange-footer .exchange-brand {
  align-items: center;
}
.exchange-footer .exchange-brand strong {
  font-size: .98rem;
}
.exchange-footer .exchange-brand small,
.exchange-footer h2,
.footer-contact-copy,
.exchange-footer nav a {
  color: var(--sx-muted);
}
.exchange-footer h2 {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.footer-contact-copy {
  max-width: 360px;
  font-size: .88rem;
  line-height: 1.65;
}
.exchange-footer nav a {
  width: max-content;
  margin: 7px 0;
  font-size: .88rem;
  font-weight: 750;
  transition: color .18s ease, transform .18s ease;
}
.exchange-footer nav a:hover {
  color: var(--sx-primary);
  transform: translateX(2px);
}
html[data-theme="dark"] .exchange-footer {
  background: #070a12;
  border-top-color: rgba(255,255,255,.1);
}
html[data-theme="dark"] .exchange-footer .exchange-brand,
html[data-theme="dark"] .exchange-footer a {
  color: #f8fafc;
}
html[data-theme="dark"] .exchange-footer .exchange-brand small,
html[data-theme="dark"] .exchange-footer h2,
html[data-theme="dark"] .footer-contact-copy,
html[data-theme="dark"] .exchange-footer nav a {
  color: #98a2b3;
}
html[data-theme="dark"] .exchange-footer nav a:hover {
  color: #fff;
}
@media (max-width: 920px) {
  .exchange-footer {
    padding: 28px 0 calc(24px + 76px + env(safe-area-inset-bottom));
  }
  .exchange-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .exchange-footer,
  .exchange-footer * {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .exchange-footer .exchange-brand > span:last-child {
    display: none;
  }
  .exchange-footer .footer-brand {
    justify-content: flex-start;
  }
  .footer-contact-copy,
  .exchange-footer nav a {
    font-size: .84rem;
  }
  .exchange-footer nav a {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Floating WhatsApp support */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(37, 211, 102, .3);
  border-radius: 999px;
  background: #25d366;
  color: #071018;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(18, 140, 126, .25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.whatsapp-float i {
  font-size: 1.2rem;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #1fbd5a;
  color: #071018;
  box-shadow: 0 20px 40px rgba(18, 140, 126, .32);
}
html[data-theme="dark"] .whatsapp-float {
  border-color: rgba(37, 211, 102, .45);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
}
@media (max-width: 860px) {
  .whatsapp-float {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    min-height: 54px;
    justify-content: center;
    padding: 0;
  }
  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .whatsapp-float i {
    font-size: 1.45rem;
  }
}


/* Mobile overflow guard */
@media (max-width: 920px) {
  html,
  body,
  .exchange-app-shell {
    max-width: 100%;
    overflow-x: hidden;
  }
  .exchange-container {
    min-width: 0;
  }
}

.transaction-card { grid-template-columns: 1fr; align-items: stretch; gap: 16px; }
.transaction-summary { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr auto; gap: 14px; align-items: center; }
.order-timeline { display: grid; gap: 0; padding-top: 14px; border-top: 1px solid var(--sx-line, rgba(255,255,255,.1)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 0 0 16px; }
.timeline-item::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: -2px; width: 2px; background: var(--sx-line, rgba(255,255,255,.12)); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 16px; height: 16px; border-radius: 999px; margin-top: 3px; background: #cbd5e1; border: 3px solid var(--sx-card, #fff); box-shadow: 0 0 0 1px var(--sx-line, rgba(255,255,255,.14)); }
.timeline-item.pending .timeline-dot,
.timeline-item.processing .timeline-dot { background: #f7d857; }
.timeline-item.completed .timeline-dot { background: #8fe388; }
.timeline-item.cancelled .timeline-dot { background: #fb7185; }
.timeline-item.current .timeline-dot { box-shadow: 0 0 0 4px rgba(79,34,232,.12); }
.timeline-body { display: grid; gap: 6px; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.timeline-head strong { color: var(--sx-text, #fff); font-size: .92rem; }
.timeline-head span { color: var(--sx-muted, #9aa6b8); font-size: .78rem; white-space: nowrap; }
.timeline-body p { margin: 0; color: var(--sx-muted, #9aa6b8); font-size: .88rem; line-height: 1.45; }

@media (max-width: 860px) {
  .transaction-summary { grid-template-columns: 1fr; align-items: start; }
  .timeline-head { display: grid; gap: 2px; }
  .timeline-head span { white-space: normal; }
}

/* Premium public homepage and WebView shell */
html { scroll-padding-top: 92px; }
body { -webkit-tap-highlight-color: transparent; }
.exchange-app-shell { background: var(--sx-bg); overscroll-behavior-y: auto; }
.exchange-app-shell main { overflow: visible; }
#rates-list, #how, #mobile-apps, #rates { scroll-margin-top: 88px; }

/* Desktop navigation */
.exchange-header {
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--sx-card) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sx-line) 78%, transparent);
  box-shadow: 0 10px 40px rgba(15, 23, 42, .06);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}
.exchange-header-wide { width: min(1420px, calc(100% - 48px)); margin: 0 auto; }
.exchange-header-inner { min-height: 78px; gap: 22px; }
.exchange-header .exchange-brand { flex: 0 0 auto; gap: 11px; }
.exchange-header .exchange-logo { width: 58px; height: 42px; flex-basis: 58px; }
.exchange-header .exchange-brand strong { font-size: .96rem; letter-spacing: -.02em; }
.exchange-header .exchange-brand small { max-width: 150px; margin-top: 1px; font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exchange-nav {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--sx-card) 84%, var(--sx-primary-soft));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.exchange-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--sx-muted);
  font-size: .77rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.exchange-nav a:hover,
.exchange-nav a.active { color: var(--sx-text); background: var(--sx-card); box-shadow: 0 5px 14px rgba(15,23,42,.08); }
.exchange-nav a.active { color: var(--sx-primary); }
.exchange-actions { flex: 0 0 auto; gap: 8px; }
.locale-switch,
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--sx-line); border-radius: 11px; background: var(--sx-card); }
.locale-switch .lang-link,
.theme-switch .theme-btn { min-width: 31px; min-height: 31px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.locale-switch .lang-link.active,
.theme-switch .theme-btn.active { background: var(--sx-primary-soft); color: var(--sx-primary); }
.desktop-account-actions { display: inline-flex; align-items: center; gap: 7px; margin-left: 2px; padding-left: 9px; border-left: 1px solid var(--sx-line); }
.desktop-account-actions .desktop-logout-action { min-height: 40px; padding: 0 13px; border: 1px solid color-mix(in srgb, #e11d48 28%, var(--sx-line)); border-radius: 11px; background: color-mix(in srgb, #e11d48 8%, var(--sx-card)); color: #be123c; box-shadow: none; }
.desktop-account-actions .desktop-logout-action:hover { border-color: color-mix(in srgb, #e11d48 48%, var(--sx-line)); background: color-mix(in srgb, #e11d48 14%, var(--sx-card)); color: #9f1239; }
.sx-login-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--sx-text); text-decoration: none; font-size: .8rem; font-weight: 850; }
.sx-login-link:hover { color: var(--sx-primary); }
.exchange-actions .sx-signup-link { min-height: 40px; padding: 0 15px; border-radius: 11px; box-shadow: 0 9px 22px color-mix(in srgb, var(--sx-primary) 22%, transparent); }

/* Shared section language */
.sx-section-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--sx-primary); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sx-section-head { align-items: end; gap: 28px; }
.sx-section-head > div:first-child { max-width: 680px; }
.section-head.compact.sx-section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.section-head.compact.sx-section-head p { max-width: 620px; margin: 14px 0 0; font-size: .96rem; line-height: 1.72; }
.sx-section-head--center { justify-content: center; text-align: center; }
.sx-section-head--center > div:first-child { margin: 0 auto; }
.sx-section-head--center p { margin-inline: auto !important; }

/* Hero */
.sx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 94px 0 112px;
  background:
    radial-gradient(circle at 12% 22%, color-mix(in srgb, var(--sx-primary) 17%, transparent) 0, transparent 33%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, #7c3aed 12%, transparent) 0, transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--sx-card) 96%, var(--sx-primary-soft)), var(--sx-bg));
}
.sx-hero-orb { position: absolute; z-index: -1; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sx-primary) 18%, transparent); pointer-events: none; }
.sx-hero-orb--one { width: 420px; height: 420px; left: -280px; bottom: -240px; }
.sx-hero-orb--two { width: 310px; height: 310px; right: -170px; top: -170px; }
.sx-hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(390px, .86fr); gap: clamp(48px, 7vw, 96px); }
.sx-hero-copy { position: relative; z-index: 1; }
.sx-hero-copy h1 { max-width: 690px; margin-bottom: 21px; font-size: clamp(3.05rem, 5.6vw, 5.25rem); line-height: .99; letter-spacing: -.055em; }
.sx-hero-copy h1 span { position: relative; display: inline; color: var(--sx-primary); }
.sx-hero-copy h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em; border-radius: 99px; background: color-mix(in srgb, var(--sx-primary) 28%, transparent); }
.sx-hero-copy > p { max-width: 610px; margin: 0; font-size: 1.06rem; line-height: 1.8; }
.sx-trust-row { gap: 9px; margin-top: 25px; }
.sx-trust-row span { min-height: 34px; padding: 0 11px; border: 1px solid var(--sx-line); border-radius: 999px; background: color-mix(in srgb, var(--sx-card) 84%, transparent); color: var(--sx-muted); font-size: .72rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.hero-cta { gap: 11px; margin-top: 29px; }
.hero-cta .exchange-btn { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border-radius: 14px; font-size: .88rem; }
.sx-primary-cta i { transition: transform .18s ease; }
.sx-primary-cta:hover i { transform: translateX(3px); }
.sx-secondary-cta { color: var(--sx-text) !important; }
.sx-quick-card { position: relative; overflow: hidden; padding: 25px; border-radius: 28px; box-shadow: 0 30px 80px rgba(15,23,42,.14); }
.sx-quick-card::before { content: ""; position: absolute; width: 190px; height: 190px; right: -105px; top: -115px; border-radius: 999px; background: color-mix(in srgb, var(--sx-primary) 10%, transparent); }
.sx-quick-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sx-quick-head > div { display: flex; align-items: center; gap: 11px; }
.sx-quick-head > div > span:last-child { display: grid; }
.sx-quick-head strong { color: var(--sx-text); font-size: .92rem; }
.sx-quick-head small { color: var(--sx-muted); font-size: .69rem; }
.sx-quick-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--sx-primary-soft); color: var(--sx-primary); }
.sx-online { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(22,163,74,.1); color: #15803d; font-size: .68rem; font-weight: 900; }
.sx-online i { width: 7px; height: 7px; border-radius: 99px; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
html[data-theme="dark"] .sx-online { color: #86efac; }
.sx-field-label { display: block; margin: 0 0 7px 2px; color: var(--sx-muted); font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.sx-card-row { min-height: 79px; margin-bottom: 10px; padding: 13px 15px; border-radius: 17px; background: color-mix(in srgb, var(--sx-card) 82%, var(--sx-primary-soft)); }
.sx-card-row .currency_logo { width: 43px; height: 43px; border-radius: 13px; }
.sx-swap { position: relative; z-index: 2; width: 36px; height: 36px; margin: -4px auto -2px; border: 5px solid var(--sx-card); }
.sx-rate-lines { gap: 0; margin: 16px 0 18px; padding: 4px 0; border-block: 1px solid var(--sx-line); }
.sx-rate-lines div { padding: 8px 2px; }
.sx-card-cta { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 14px; }
.sx-empty-state { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--sx-muted); text-align: center; }
.sx-empty-state i { font-size: 2rem; color: var(--sx-primary); }

/* Statistics */
.sx-stats { position: relative; z-index: 3; margin: -52px 0 0; background: transparent; color: var(--sx-text); }
.sx-stats-grid { gap: 14px; }
.sx-stats-grid article { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 20px; border: 1px solid var(--sx-line); border-radius: 18px; background: color-mix(in srgb, var(--sx-card) 92%, transparent); box-shadow: 0 16px 44px rgba(15,23,42,.09); backdrop-filter: blur(14px); }
.sx-stat-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; background: var(--sx-primary-soft); color: var(--sx-primary); }
.sx-stats-grid article div { min-width: 0; padding: 0; text-align: left; }
.sx-stats-grid strong { font-size: 1.38rem; color: var(--sx-text); }
.sx-stats-grid article div span { display: block; margin-top: 4px; color: var(--sx-muted); font-size: .7rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Supported currencies */
.sx-supported { padding: 108px 0 94px; }
.sx-supported .sx-section-head { margin-bottom: 34px; }
.sx-pills { flex-wrap: wrap; border: 1px solid var(--sx-line); background: var(--sx-card); }
.sx-pills span { background: var(--sx-primary-soft); }
.sx-currency-grid { gap: 15px; }
.sx-currency-grid article { min-height: 82px; display: grid; grid-template-columns: 45px minmax(0, 1fr) 18px; gap: 13px; padding: 15px; border-radius: 18px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sx-currency-grid article > i { color: color-mix(in srgb, var(--sx-primary) 72%, #22c55e); font-size: .9rem; }
.sx-currency-grid .currency_logo { width: 45px; height: 45px; border-radius: 14px; }
.sx-currency-grid strong { font-size: .9rem; }
.sx-currency-grid .sx-currency-empty { grid-column: 1 / -1; grid-template-columns: 1fr; text-align: center; }

/* Process */
.sx-process { padding: 94px 0; border-block: 1px solid var(--sx-line); background: color-mix(in srgb, var(--sx-card) 93%, var(--sx-primary-soft)); }
.sx-steps { padding: 0; }
.sx-steps .sx-section-head { margin-bottom: 43px; }
.sx-step-grid { gap: 17px; }
.sx-step-grid article { min-width: 0; padding: 25px 22px 23px; border: 1px solid var(--sx-line); border-radius: 21px; background: var(--sx-card); text-align: left; box-shadow: 0 16px 45px rgba(15,23,42,.06); }
.sx-step-grid article:not(:last-child)::after { left: auto; right: -18px; top: 48px; width: 18px; background: color-mix(in srgb, var(--sx-primary) 34%, var(--sx-line)); }
.sx-step-number { position: absolute; top: 20px; right: 20px; width: auto !important; height: auto !important; margin: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: color-mix(in srgb, var(--sx-muted) 30%, transparent) !important; font-size: 2rem; letter-spacing: -.05em; }
.sx-step-icon { width: 48px !important; height: 48px !important; margin: 0 0 22px !important; border-radius: 15px !important; background: var(--sx-primary-soft) !important; box-shadow: none !important; color: var(--sx-primary) !important; }
.sx-step-icon i { font-size: 1.15rem; }
.sx-step-grid h3 { font-size: 1rem; }
.sx-step-grid p { margin: 0; font-size: .82rem; line-height: 1.65; }

/* Apps, rates and benefits */
.sx-apps { padding-block: 94px; }
.sx-app-card { border-radius: 25px; }
.sx-rates-section { padding: 98px 0; background: var(--sx-bg); }
.rates-section { padding: 0; }
.sx-rates-section .sx-section-head { margin-bottom: 34px; }
.classic-rates-table { border-radius: 26px; box-shadow: 0 24px 70px rgba(15,23,42,.09); }
.rates-filter-bar { gap: 8px; padding: 18px; }
.tbl_icon { min-height: 38px; padding: 0 13px; border-radius: 999px; font-weight: 850; }
.rates-classic-title { min-height: 70px; padding-inline: 18px; }
.classic-table-row .xtt_one_line_right,
.classic-receive-row .xtt_one_line_right { min-height: 68px; padding: 11px 18px; }
.receive-placeholder,
.receive-empty { min-height: 170px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; margin: 18px; border-radius: 16px; }
.receive-placeholder i,
.receive-empty i { font-size: 1.5rem; color: var(--sx-primary); }
.sx-benefits { padding: 94px 0; border-top: 1px solid var(--sx-line); background: color-mix(in srgb, var(--sx-card) 94%, var(--sx-primary-soft)); }
.sx-benefits .sx-section-head { margin-bottom: 40px; }
.sx-benefits .sx-feature-grid { gap: 16px; }
.sx-benefits .sx-feature-grid article { min-height: 205px; display: block; padding: 25px; border: 1px solid var(--sx-line); border-radius: 21px; background: var(--sx-card); color: var(--sx-text); box-shadow: 0 16px 42px rgba(15,23,42,.06); }
.sx-feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 15px; background: var(--sx-primary-soft); color: var(--sx-primary); }
.sx-benefits .sx-feature-grid i { font-size: 1.25rem; }
.sx-benefits .sx-feature-grid strong { margin-bottom: 9px; color: var(--sx-text); font-size: .98rem; }
.sx-benefits .sx-feature-grid article div > span { color: var(--sx-muted); font-size: .81rem; line-height: 1.65; }

/* Footer refinement */
.exchange-footer { padding: 60px 0 24px; background: color-mix(in srgb, var(--sx-card) 96%, var(--sx-primary-soft)); }
.exchange-footer-grid { padding-bottom: 38px; }
.footer-intro { max-width: 380px; margin: 18px 0 0; color: var(--sx-muted); font-size: .84rem; line-height: 1.7; }
.exchange-footer h2 { margin-bottom: 16px; color: var(--sx-text); font-size: .76rem; letter-spacing: .12em; }
.exchange-footer nav a { min-height: 30px; display: flex; align-items: center; }
.exchange-footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--sx-line); color: var(--sx-muted); font-size: .75rem; }
.exchange-footer-bottom span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.exchange-footer-bottom i { color: var(--sx-primary); }

@media (hover: hover) and (pointer: fine) {
  .sx-currency-grid article:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sx-primary) 30%, var(--sx-line)); box-shadow: 0 18px 38px rgba(15,23,42,.09); }
  .sx-step-grid article:hover,
  .sx-benefits .sx-feature-grid article:hover { border-color: color-mix(in srgb, var(--sx-primary) 30%, var(--sx-line)); }
}

.exchange-nav a:focus-visible,
.exchange-actions a:focus-visible,
.exchange-actions button:focus-visible,
.mobile-tabbar a:focus-visible,
.exchange-btn:focus-visible,
.tbl_icon:focus-visible { outline: 3px solid color-mix(in srgb, var(--sx-primary) 34%, transparent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1240px) {
  .exchange-header-wide { width: min(1180px, calc(100% - 32px)); }
  .exchange-nav a { padding-inline: 9px; font-size: .73rem; }
  .exchange-header .exchange-brand > span:last-child { display: none; }
}

@media (max-width: 1080px) {
  .exchange-nav { display: none; }
  .exchange-header .exchange-brand > span:last-child { display: block; }
  .exchange-actions { margin-left: auto; }
}

/* WebView and narrow screens */
@media (max-width: 920px) {
  html { scroll-padding-top: calc(76px + env(safe-area-inset-top)); }
  .exchange-container { width: min(100% - 28px, 720px); }
  .exchange-header-wide { width: calc(100% - 24px); }
  .exchange-header-inner { min-height: 68px; gap: 12px; }
  .exchange-header .exchange-logo { width: 62px; height: 42px; flex-basis: 62px; }
  .desktop-account-actions { display: none; }
  .exchange-header .exchange-brand > span:last-child { display: none; }
  .locale-switch .lang-link,
  .theme-switch .theme-btn { min-width: 34px; min-height: 34px; }
  .sx-hero { padding: 54px 0 88px; }
  .sx-hero-grid { gap: 38px; }
  .sx-quick-card { order: 0; }
  .sx-hero-copy { text-align: center; }
  .sx-hero-copy h1 { max-width: 620px; margin-inline: auto; font-size: clamp(2.45rem, 10vw, 4rem); }
  .sx-hero-copy > p { margin-inline: auto; font-size: .98rem; }
  .sx-trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 530px; margin-inline: auto; }
  .sx-trust-row span { justify-content: flex-start; }
  .hero-cta { justify-content: center; }
  .sx-quick-card { width: min(100%, 560px); margin-inline: auto; }
  .sx-stats { margin-top: -45px; }
  .sx-stats-grid { gap: 10px; }
  .sx-stats-grid article { padding: 16px; }
  .sx-supported,
  .sx-process,
  .sx-apps,
  .sx-rates-section,
  .sx-benefits { padding-block: 68px; }
  .sx-section-head { align-items: start; }
  .sx-pills { margin-top: 4px; }
  .sx-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-step-grid article:not(:last-child)::after { display: none; }
  .sx-benefits .sx-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates-filter-bar { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rates-filter-bar::-webkit-scrollbar { display: none; }
  .tbl_icon { flex: 0 0 auto; min-height: 44px; }
  .classic-table-row .xtt_one_line_right,
  .classic-receive-row .xtt_one_line_right { min-height: 72px; }
  .mobile-tabbar {
    z-index: 90;
    gap: 6px;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid color-mix(in srgb, var(--sx-line) 82%, transparent);
    border-radius: 22px 22px 0 0;
    background: color-mix(in srgb, var(--sx-card) 94%, transparent);
    box-shadow: 0 -14px 36px rgba(15,23,42,.12);
    backdrop-filter: saturate(150%) blur(20px);
    -webkit-backdrop-filter: saturate(150%) blur(20px);
  }
  .mobile-tabbar a {
    position: relative;
    min-height: 59px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 16px;
    color: var(--sx-muted);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background-color .2s ease;
  }
  .mobile-tabbar a.active { background: transparent; color: var(--sx-primary); }
  .mobile-tab-icon {
    width: 38px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    background: color-mix(in srgb, var(--sx-muted) 7%, transparent);
    transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .mobile-tab-icon i { font-size: 1.17rem; line-height: 1; }
  .mobile-tabbar a.active .mobile-tab-icon {
    color: #fff;
    border-color: color-mix(in srgb, var(--sx-primary) 70%, #fff);
    background: linear-gradient(135deg, var(--sx-primary), color-mix(in srgb, var(--sx-primary) 68%, #7c3aed));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--sx-primary) 30%, transparent);
    transform: translateY(-2px);
  }
  .mobile-tabbar a.active .mobile-tab-icon i { color: #fff; opacity: 1; }
  .mobile-tabbar a.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--sx-primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--sx-primary) 58%, transparent);
  }
  .mobile-tab-label {
    font-size: .66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
  }
  .mobile-tabbar a:active .mobile-tab-icon { transform: scale(.92); }
  .mobile-tabbar a.active:active .mobile-tab-icon { transform: translateY(-1px) scale(.92); }
  .whatsapp-float { z-index: 89; }
  .exchange-footer { padding: 44px 0 calc(84px + env(safe-area-inset-bottom)); }
  .exchange-footer-grid { padding-bottom: 28px; }
  .exchange-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .section-head.compact.sx-section-head h2 { font-size: 2.15rem; }
  .sx-section-head { display: block; }
  .sx-pills { width: 100%; margin-top: 22px; justify-content: center; }
  .sx-currency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sx-currency-grid article { min-height: 76px; grid-template-columns: 38px minmax(0, 1fr); padding: 12px; border-radius: 16px; }
  .sx-currency-grid article > i { display: none; }
  .sx-currency-grid .currency_logo { width: 38px; height: 38px; border-radius: 12px; }
  .sx-currency-grid strong { font-size: .78rem; overflow-wrap: anywhere; }
  .sx-currency-grid small { font-size: .67rem; }
  .sx-step-grid,
  .sx-benefits .sx-feature-grid { grid-template-columns: 1fr; }
  .sx-step-grid article,
  .sx-benefits .sx-feature-grid article { min-height: 0; }
  .sx-feature-icon { margin-bottom: 18px; }
  .rates-classic-list { max-height: 330px; }
  .rates-title-stack small { white-space: normal; }
}

@media (max-width: 480px) {
  .exchange-container { width: calc(100% - 24px); }
  .exchange-header-wide { width: calc(100% - 18px); }
  .exchange-header .exchange-logo { width: 54px; height: 38px; flex-basis: 54px; }
  .exchange-actions { gap: 5px; }
  .locale-switch,
  .theme-switch { padding: 2px; }
  .locale-switch .lang-link,
  .theme-switch .theme-btn { min-width: 31px; min-height: 31px; }
  .sx-hero { padding-top: 42px; }
  .sx-section-kicker { font-size: .65rem; letter-spacing: .1em; }
  .sx-hero-copy h1 { font-size: clamp(2.2rem, 12vw, 3rem); }
  .sx-trust-row { gap: 7px; }
  .sx-trust-row span { min-height: 36px; padding-inline: 9px; font-size: .65rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero-cta .exchange-btn { width: 100%; }
  .sx-quick-card { padding: 18px; border-radius: 22px; }
  .sx-quick-head { align-items: flex-start; }
  .sx-online { margin-top: 4px; }
  .sx-card-row { padding-inline: 12px; }
  .sx-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-stats-grid article { display: block; padding: 14px; }
  .sx-stat-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .sx-stats-grid article div span { white-space: normal; }
  .sx-supported,
  .sx-process,
  .sx-apps,
  .sx-rates-section,
  .sx-benefits { padding-block: 58px; }
  .section-head.compact.sx-section-head h2 { font-size: 1.9rem; }
  .sx-step-grid article { padding: 21px 18px; }
  .sx-apps-head { margin-bottom: 28px; }
  .sx-apps-head h2 { font-size: 2rem; }
  .classic-rates-table { border-radius: 19px; }
  .rates-filter-bar { padding: 12px; }
  .rates-classic-title { min-height: 64px; padding-inline: 13px; }
  .classic-table-row .xtt_one_line_right,
  .classic-receive-row .xtt_one_line_right { padding-inline: 12px; }
  .exchange-footer .footer-brand { justify-content: flex-start; }
}

@media (max-width: 350px) {
  .exchange-header .exchange-logo { width: 48px; height: 34px; flex-basis: 48px; }
  .theme-switch .theme-btn { min-width: 28px; }
  .locale-switch .lang-link { min-width: 29px; }
  .sx-trust-row { grid-template-columns: 1fr; }
}

/* Mobile navigation drawer and mobile hero correction */
.mobile-header-controls { display: none; align-items: center; gap: 8px; }
.mobile-menu-trigger,
.mobile-history-back {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--sx-line);
  border-radius: 13px;
  background: var(--sx-card);
  color: var(--sx-text);
  box-shadow: 0 7px 20px rgba(15,23,42,.07);
}
.mobile-menu-trigger i { font-size: 1.45rem; }
.mobile-history-back i { font-size: 1.18rem; }
.mobile-drawer-layer { position: fixed; inset: 0; z-index: 140; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
.mobile-drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(7,10,18,.54); opacity: 0; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .24s ease; }
.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, calc(100% - 22px));
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--sx-line);
  border-radius: 24px 0 0 24px;
  background: var(--sx-card);
  color: var(--sx-text);
  box-shadow: -30px 0 90px rgba(7,10,18,.24);
  transform: translate3d(104%, 0, 0);
  transition: transform .3s cubic-bezier(.22,.8,.3,1);
}
.mobile-drawer-layer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mobile-drawer-layer.is-open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-layer.is-open .mobile-drawer { transform: translate3d(0, 0, 0); }
html.mobile-menu-open,
body.mobile-menu-open { overflow: hidden !important; overscroll-behavior: none; }
.mobile-drawer-head {
  min-height: calc(78px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 17px 14px;
  border-bottom: 1px solid var(--sx-line);
  background: color-mix(in srgb, var(--sx-card) 92%, var(--sx-primary-soft));
}
.mobile-drawer-head .exchange-brand { min-width: 0; gap: 10px; }
.mobile-drawer-head .exchange-logo { width: 57px; height: 40px; flex-basis: 57px; }
.mobile-drawer-head .exchange-brand > span:last-child { min-width: 0; display: block; }
.mobile-drawer-head .exchange-brand strong,
.mobile-drawer-head .exchange-brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-drawer-head .exchange-brand strong { font-size: .9rem; }
.mobile-drawer-head .exchange-brand small { max-width: 190px; font-size: .64rem; }
.mobile-drawer-close { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid var(--sx-line); border-radius: 12px; background: var(--sx-card); color: var(--sx-text); }
.mobile-drawer-close i { font-size: 1.05rem; }
.mobile-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 20px 15px calc(24px + env(safe-area-inset-bottom)); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mobile-drawer-label { margin: 0 5px 9px; color: var(--sx-muted); font-size: .65rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.mobile-drawer-label:not(:first-child) { margin-top: 24px; }
.mobile-drawer-nav { display: grid; gap: 7px; }
.mobile-drawer-nav > a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 18px;
  gap: 11px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--sx-text);
  text-decoration: none;
  touch-action: manipulation;
}
.mobile-drawer-nav > a > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--sx-primary-soft); color: var(--sx-primary); }
.mobile-drawer-nav > a > div { min-width: 0; display: grid; gap: 2px; }
.mobile-drawer-nav strong { font-size: .82rem; }
.mobile-drawer-nav small { color: var(--sx-muted); font-size: .67rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-drawer-nav > a > i { color: var(--sx-muted); font-size: .72rem; }
.mobile-drawer-nav > a.active { border-color: color-mix(in srgb, var(--sx-primary) 22%, var(--sx-line)); background: color-mix(in srgb, var(--sx-primary-soft) 72%, var(--sx-card)); }
.mobile-drawer-preferences { padding: 13px; border: 1px solid var(--sx-line); border-radius: 17px; background: color-mix(in srgb, var(--sx-card) 88%, var(--sx-primary-soft)); }
.mobile-preference-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--sx-line); }
.mobile-preference-row > div:first-child,
.mobile-theme-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.mobile-preference-row > div:first-child > i,
.mobile-theme-title > i { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 11px; background: var(--sx-primary-soft); color: var(--sx-primary); }
.mobile-preference-row span,
.mobile-theme-title span { min-width: 0; display: grid; gap: 1px; }
.mobile-preference-row strong,
.mobile-theme-title strong { color: var(--sx-text); font-size: .78rem; }
.mobile-preference-row small,
.mobile-theme-title small { color: var(--sx-muted); font-size: .64rem; }
.mobile-language-switch { flex: 0 0 auto; display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--sx-line); border-radius: 10px; background: var(--sx-card); }
.mobile-language-switch a { min-width: 35px; min-height: 32px; display: grid; place-items: center; border-radius: 7px; color: var(--sx-muted); text-decoration: none; font-size: .7rem; font-weight: 900; }
.mobile-language-switch a.active { background: var(--sx-primary); color: #fff; }
.mobile-theme-title { margin: 13px 0 10px; }
.mobile-theme-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.mobile-theme-options button { min-height: 68px; display: grid; grid-template-columns: 34px minmax(0,1fr) 17px; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--sx-line); border-radius: 13px; background: var(--sx-card); color: var(--sx-text); text-align: left; }
.mobile-theme-options button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff6d8; color: #b7791f; }
.mobile-theme-options button[data-theme-choice="dark"] > span { background: #131a2b; color: #c4b5fd; }
.mobile-theme-options button strong { font-size: .75rem; }
.mobile-theme-options button > i:last-child { color: transparent; font-size: .83rem; }
.mobile-theme-options button.active { border-color: color-mix(in srgb, var(--sx-primary) 48%, var(--sx-line)); background: var(--sx-primary-soft); }
.mobile-theme-options button.active > i:last-child { color: var(--sx-primary); }
.mobile-account-actions { display: grid; gap: 8px; }
.mobile-account-actions > a { min-height: 62px; display: grid; grid-template-columns: 39px minmax(0,1fr) 18px; gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid var(--sx-line); border-radius: 15px; background: var(--sx-card); color: var(--sx-text); text-decoration: none; }
.mobile-account-actions > a > i:first-child { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--sx-primary-soft); color: var(--sx-primary); font-size: 1rem; }
.mobile-account-actions > a > span { min-width: 0; display: grid; gap: 2px; }
.mobile-account-actions strong { font-size: .8rem; }
.mobile-account-actions small { color: var(--sx-muted); font-size: .65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-account-actions > a > i:last-child { color: var(--sx-muted); font-size: .72rem; }
.mobile-account-actions > a.is-primary { border-color: var(--sx-primary); background: var(--sx-primary); color: #fff; }
.mobile-account-actions > a.is-primary > i:first-child { background: rgba(255,255,255,.16); color: #fff; }
.mobile-account-actions > a.is-primary small,
.mobile-account-actions > a.is-primary > i:last-child { color: rgba(255,255,255,.74); }
.mobile-account-actions > a.is-danger { color: #be123c; }
.mobile-account-actions > a.is-danger > i:first-child { background: rgba(225,29,72,.09); color: #e11d48; }

@media (max-width: 1080px) {
  .mobile-header-controls { display: flex; margin-left: auto; }
  .mobile-menu-trigger,
  .mobile-history-back { display: grid; }
  .exchange-header .exchange-actions { display: none; }
}

@media (max-width: 920px) {
  html { height: auto !important; min-height: 100%; overflow-x: clip !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  body.exchange-app-shell { position: relative; height: auto !important; min-height: 100%; overflow: visible !important; overscroll-behavior-y: auto; touch-action: manipulation; }
  body.exchange-app-shell.mobile-menu-open { overflow: hidden !important; touch-action: none; }
  .exchange-app-shell main { position: relative; min-height: 0; overflow: visible !important; touch-action: manipulation; }
  .mobile-header-controls { margin-left: auto; }
  .sx-hero { min-height: 0; overflow: hidden; padding: 46px 0 86px; }
  .sx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 34px; align-items: start; }
  .sx-hero-copy,
  .sx-quick-card { min-width: 0; width: 100%; max-width: 100%; }
  .sx-hero-copy { order: 1; }
  .sx-quick-card { order: 2; }
  .sx-hero-copy .sx-section-kicker { justify-content: center; max-width: 100%; }
  .sx-hero-copy h1 { max-width: 680px; overflow-wrap: normal; word-break: normal; }
  .sx-hero-copy > p { max-width: 580px; }
  .sx-hero-orb--one { left: -330px; }
  .sx-hero-orb--two { right: -230px; opacity: .65; }
}

@media (max-width: 480px) {
  .exchange-header-inner { min-height: 64px; }
  .mobile-menu-trigger { width: 42px; height: 42px; flex-basis: 42px; }
  .sx-hero { padding-top: 38px; }
  .sx-hero-copy h1 { margin-bottom: 17px; font-size: clamp(2.35rem, 11.8vw, 3.25rem); line-height: 1.02; letter-spacing: -.045em; }
  .sx-hero-copy > p { font-size: .91rem; line-height: 1.68; }
  .sx-trust-row { margin-top: 21px; }
  .hero-cta { margin-top: 23px; }
  .sx-quick-card { margin-top: 2px; }
  .mobile-drawer { width: calc(100% - 14px); border-radius: 20px 0 0 20px; }
  .mobile-drawer-head { padding-inline: 14px; }
  .mobile-drawer-body { padding-inline: 12px; }
}

@media (max-width: 360px) {
  .sx-hero-copy h1 { font-size: 2.25rem; }
  .sx-trust-row { grid-template-columns: 1fr; }
  .mobile-drawer-head .exchange-brand small { max-width: 145px; }
}

/* Sending-currency deposit details */
.deposit-details-card {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--sx-primary) 24%, var(--sx-line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--sx-primary-soft) 62%, var(--sx-card));
  color: var(--sx-text);
}
.deposit-details-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; align-items: center; }
.deposit-details-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--sx-primary); color: #fff; }
.deposit-details-head h2 { margin: 0; color: var(--sx-text); font-size: .88rem; }
.deposit-details-head p { margin: 3px 0 0; color: var(--sx-muted); font-size: .69rem; line-height: 1.45; }
.deposit-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.deposit-summary > div { min-width: 0; padding: 10px; border: 1px solid var(--sx-line); border-radius: 11px; background: var(--sx-card); }
.deposit-summary dt,
.order-deposit-grid dt { color: var(--sx-muted); font-size: .64rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.deposit-summary dd,
.order-deposit-grid dd { margin: 3px 0 0; color: var(--sx-text); font-size: .82rem; font-weight: 850; overflow-wrap: anywhere; }
.deposit-network { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--sx-primary-soft); color: var(--sx-primary); font-size: .72rem; }
.deposit-account-block { padding: 11px; border: 1px solid var(--sx-line); border-radius: 12px; background: var(--sx-card); }
.deposit-account-block > span,
.order-deposit-account > span { display: block; margin-bottom: 6px; color: var(--sx-muted); font-size: .65rem; font-weight: 850; }
.deposit-copy-row,
.order-deposit-account > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.deposit-copy-row code,
.order-deposit-account code { min-width: 0; color: var(--sx-text); font-size: .78rem; font-weight: 800; overflow-wrap: anywhere; word-break: break-word; }
.deposit-copy-row button,
.order-deposit-account button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--sx-primary) 24%, var(--sx-line)); border-radius: 9px; background: var(--sx-primary-soft); color: var(--sx-primary); font-size: .7rem; font-weight: 900; }
.deposit-copy-row button.is-copied,
.order-deposit-account button.is-copied { border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.1); color: #15803d; }
.deposit-account-name { display: flex; justify-content: space-between; gap: 12px; margin: 9px 2px 0; color: var(--sx-text); font-size: .73rem; }
.deposit-account-name span { color: var(--sx-muted); }
.deposit-instructions,
.order-deposit-instructions { margin-top: 10px; padding: 10px 11px; border-left: 3px solid var(--sx-primary); border-radius: 0 9px 9px 0; background: color-mix(in srgb, var(--sx-card) 76%, transparent); color: var(--sx-muted); font-size: .72rem; line-height: 1.55; }
.deposit-instructions p,
.order-deposit-instructions p { margin: 0; }
.deposit-instructions p + p,
.order-deposit-instructions p + p { margin-top: 4px; }
.deposit-warning,
.deposit-missing-message { display: flex; gap: 8px; align-items: flex-start; margin: 11px 0 0; color: #9a3412; font-size: .7rem; line-height: 1.5; }
.deposit-warning i,
.deposit-missing-message i { margin-top: 2px; }
.deposit-details-card.is-missing { border-color: rgba(234,88,12,.24); background: color-mix(in srgb, #fff7ed 78%, var(--sx-card)); }
html[data-theme="dark"] .deposit-warning,
html[data-theme="dark"] .deposit-missing-message { color: #fdba74; }
html[data-theme="dark"] .deposit-details-card.is-missing { background: color-mix(in srgb, #7c2d12 18%, var(--sx-card)); }

.order-deposit-card { padding: 15px; border: 1px solid color-mix(in srgb, var(--sx-primary) 23%, var(--sx-line)); border-radius: 14px; background: color-mix(in srgb, var(--sx-primary-soft) 44%, var(--sx-card)); }
.order-deposit-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.order-deposit-head > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.order-deposit-head > div > i { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 10px; background: var(--sx-primary); color: #fff; }
.order-deposit-head span { min-width: 0; display: grid; gap: 2px; }
.order-deposit-head span strong { color: var(--sx-text); font-size: .82rem; }
.order-deposit-head span small { color: var(--sx-muted); font-size: .66rem; }
.order-deposit-head > strong { flex: 0 0 auto; color: var(--sx-primary); font-size: .88rem; }
.order-deposit-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(110px, .6fr)); gap: 9px; }
.order-deposit-account,
.order-deposit-grid dl { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--sx-line); border-radius: 10px; background: var(--sx-card); }
.order-deposit-reference { display: flex; gap: 7px; align-items: flex-start; margin: 10px 1px 0; color: var(--sx-muted); font-size: .7rem; line-height: 1.5; }
.order-deposit-reference i { margin-top: 2px; color: var(--sx-primary); }
.order-deposit-reference strong { color: var(--sx-text); }

@media (max-width: 680px) {
  .order-deposit-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .order-deposit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .deposit-summary { grid-template-columns: 1fr; }
  .deposit-copy-row,
  .order-deposit-account > div { grid-template-columns: 1fr; }
  .deposit-copy-row button,
  .order-deposit-account button { width: 100%; }
  .deposit-account-name { align-items: flex-start; flex-direction: column; gap: 3px; }
}
