:root {
  --bg: #0b0d17;
  --bg-2: #11142280;
  --card: #141829;
  --card-2: #1b2036;
  --border: #262c47;
  --text: #eef0ff;
  --muted: #8f96b8;
  --primary: #7c5cff;
  --primary-2: #20d3c2;
  --danger: #ff5c7a;
  --warn: #ffb547;
  --ok: #2fd68a;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, var(--script-font, system-ui), system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(124, 92, 255, .25), transparent 70%),
    radial-gradient(500px 400px at 90% 30%, rgba(32, 211, 194, .15), transparent 70%);
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 23, .7);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font-weight: 700; font-size: 1.2rem; letter-spacing: -.025em; }
.logo-word span { color: #a996ff; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
/* LANGUAGE MENU */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 11px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--card-2); color: var(--text);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: rgba(124, 92, 255, .6); background: var(--card); }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang-globe { color: var(--muted); }
.lang-chev { width: 14px !important; height: 14px !important; color: var(--muted); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-cur { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-code { display: none; letter-spacing: .02em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; width: 288px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
  transform-origin: top right; animation: lang-in .14s ease-out;
}
[dir="rtl"] .lang-menu { transform-origin: top left; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.lang-search-wrap { position: relative; border-bottom: 1px solid var(--border); }
.lang-search-wrap svg {
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px;
  fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none;
}
.lang-search {
  width: 100%; height: 46px; padding-inline: 40px 16px; border: 0; background: none;
  color: var(--text); font: inherit; font-size: .9rem; outline: none;
}
.lang-search::placeholder { color: var(--muted); }
.lang-list {
  list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 1px;
  max-height: min(380px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.lang-list::-webkit-scrollbar { width: 8px; }
.lang-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 2px solid var(--card); }
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px;
  border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer;
}
.lang-opt:hover, .lang-opt:focus-visible { background: var(--card-2); outline: none; }
.lang-opt .ln { flex: 1; min-width: 0; font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-opt .le { flex: none; font-size: .78rem; color: var(--muted); }
.lang-check { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--primary-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang-opt.on .ln { font-weight: 600; color: var(--primary-2); }
.lang-opt.on .lang-check { visibility: visible; }
.lang-opt.busy { opacity: .55; cursor: progress; }
.lang-opt.failed .le::after { content: " · ⚠"; color: var(--bad, #ff6b6b); }
.lang-none { padding: 16px; color: var(--muted); text-align: center; font-size: .88rem; }
/* long words in other languages: wrap instead of spilling out; taller scripts get more line height */
h1 { overflow-wrap: break-word; }
html:is([lang="hi"], [lang="mr"], [lang="bn"], [lang="te"], [lang="ta"], [lang="ar"], [lang="ur"]) h1 {
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.3;
}
html:is([lang="hi"], [lang="mr"], [lang="bn"], [lang="te"], [lang="ta"], [lang="ar"], [lang="ur"]) body { line-height: 1.7; }
/* Korean breaks lines between words, not inside them */
html[lang="ko"] body { word-break: keep-all; }
.nav-links a { white-space: nowrap; }
/* when the menu links don't fit on one line (long translations), hide them like on phones */
.nav.compact .nav-links { display: none; }
.nav.compact .nav-right { margin-inline-start: auto; }
/* hide the page for a moment while a saved language loads, so it doesn't flash in English */
html.i18n-wait body { opacity: 0; }
body { transition: opacity .15s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  border-radius: 14px; padding: 14px 22px; transition: transform .1s, opacity .2s, background .2s;
  color: #fff;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #5b8cff); box-shadow: 0 8px 24px rgba(124, 92, 255, .35); }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: var(--card-2); border: 1px solid var(--border); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 11px; }
.btn-block { width: 100%; margin-top: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* HERO */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 72px;
}
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .35); color: #c9bcff;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 20px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 520px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points .ck {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(47, 214, 138, .15); color: var(--ok); font-size: .75rem; font-weight: 700;
}

/* CARD + WIDGET */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.widget { padding: 26px; box-shadow: var(--shadow); position: relative; }
.widget-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.widget-head h2 { margin: 0; font-size: 1.3rem; }
.widget-head > span { margin-inline-start: auto; }
.seg { margin-inline-start: auto; display: inline-flex; padding: 3px; gap: 2px; background: var(--card-2); border: 1px solid var(--border); border-radius: 11px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--primary); color: #fff; }
.lock { color: var(--ok); font-variant-numeric: tabular-nums; }
.lock.soon { color: var(--warn); }
.field-label { display: block; font-size: .85rem; color: var(--muted); margin: 14px 0 7px; font-weight: 500; }

.amount-box {
  display: flex; align-items: center; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px 6px 6px 16px; transition: border-color .2s;
}
.amount-box:focus-within { border-color: var(--primary); }
.amount-box input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: 1.45rem; font-weight: 600; padding: 8px 0;
}
.coin-btn {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 9px 12px; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 600;
  white-space: nowrap;
}
.coin-btn:hover { border-color: var(--primary); }
.coin-btn img, .coin-row img { width: 24px; height: 24px; border-radius: 50%; }
.coin-btn .chev { color: var(--muted); font-size: .8rem; }
.net { font-size: .68rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgba(32, 211, 194, .14); color: var(--primary-2); white-space: nowrap; }
.net-warn {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: .82rem; line-height: 1.45;
  background: rgba(32, 211, 194, .08); border: 1px solid rgba(32, 211, 194, .28); color: var(--text);
}
.net-warn p { margin: 0; }
.net-warn p + p { margin-top: 4px; }
.net-warn b { color: var(--primary-2); }
.net-hint b { color: var(--primary-2); }
.dep-net { font-size: .82rem; color: var(--primary-2); font-weight: 600; margin: 2px 0 6px; }
.dep-net:empty { display: none; }
.details dd a { color: var(--primary-2); }
.details dd a::after { content: " ↗"; font-size: .8em; }

.flip {
  display: grid; place-items: center; margin: 12px auto -4px; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text); font-size: 1.15rem; cursor: pointer;
  transition: transform .25s;
}
.flip:hover { transform: rotate(180deg); border-color: var(--primary); }

.hint { min-height: 1.2em; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.hint.error, .hint .error { color: var(--danger); }
.hint.warn { color: var(--warn); }
.hint.ok { color: var(--ok); }
.hint button.link { background: none; border: 0; color: var(--primary-2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.notice { display: flex; gap: 10px; margin-top: 10px; padding: 11px 13px; border-radius: 12px; font-size: .84rem; line-height: 1.45; background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .35); color: #ffd79a; }
.notice::before { content: "⚠"; color: var(--warn); }

.pairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pair-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: border-color .2s, transform .15s; }
.pair-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.pair-icons { display: flex; flex: none; }
.pair-icons img { width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); }
.pair-icons img + img { margin-inline-start: -8px; box-shadow: 0 0 0 2px var(--card); }
.pair-text { display: flex; flex-direction: column; min-width: 0; }
.pair-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quote-meta { display: grid; gap: 6px; margin-top: 10px; font-size: .86rem; }
.quote-meta div { display: flex; justify-content: space-between; color: var(--muted); }
.quote-meta b { color: var(--text); font-weight: 500; }

.input {
  width: 100%; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font: inherit; padding: 13px 14px; outline: 0; transition: border-color .2s;
}
.input:focus { border-color: var(--primary); }
.input.bad { border-color: var(--danger); }
.input.good { border-color: var(--ok); }

.back { background: var(--card-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.summary .arrow { color: var(--muted); }
.summary small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--primary); }

/* DEPOSIT */
.deposit { display: flex; gap: 20px; align-items: center; background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.qr { background: #fff; padding: 8px; border-radius: 10px; flex: none; width: 132px; height: 132px; }
.qr img, .qr canvas { width: 116px !important; height: 116px !important; }
.deposit-info { min-width: 0; flex: 1; }
.big { font-size: 1.35rem; font-weight: 700; margin: 2px 0 8px; }
.copy-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.copy-row code { flex: 1; min-width: 0; word-break: break-all; font-size: .82rem; background: var(--card); border: 1px solid var(--border); padding: 8px 10px; border-radius: 9px; }
.copy { background: var(--primary); color: #fff; border: 0; padding: 8px 12px; border-radius: 9px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; }

.progress { list-style: none; padding: 0; margin: 20px 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.progress li { position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 34px; }
.progress li::before {
  counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .75rem;
  background: var(--card-2); border: 1px solid var(--border);
}
.progress li.done { color: var(--text); }
.progress li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #062; }
.progress li.active { color: var(--text); font-weight: 600; }
.progress li.active::before { background: var(--primary); border-color: var(--primary); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,92,255,.6); } 50% { box-shadow: 0 0 0 7px rgba(124,92,255,0); } }

.status-banner { border-radius: 12px; padding: 0; font-size: .9rem; }
.status-banner:not(:empty) { padding: 12px 14px; margin-top: 6px; }
.status-banner.ok { background: rgba(47,214,138,.12); color: var(--ok); }
.status-banner.bad { background: rgba(255,92,122,.12); color: var(--danger); }
.status-banner.info { background: rgba(124,92,255,.12); color: #c9bcff; }

.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .82rem; margin: 16px 0 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; word-break: break-all; text-align: end; }

/* SECTIONS */
.section { padding: 72px 20px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.02em; text-align: center; margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.tile { padding: 28px; }
.tile h3 { margin: 16px 0 8px; }
.tile p, .feature p { color: var(--muted); margin: 0; }
.tile-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.feature { padding: 8px; }
.feature h4 { margin: 12px 0 6px; font-size: 1.05rem; }
.f-ico { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 36px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(124, 92, 255, .5); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 36px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.copyright { margin-top: 24px; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 12, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal-card { width: 100%; max-width: 440px; max-height: 80vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.modal-card.small-card { max-height: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.close { background: var(--card-2); border: 1px solid var(--border); color: var(--text); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; }
.coin-list { overflow-y: auto; margin-top: 12px; margin-inline-end: -8px; padding-inline-end: 8px; }
.coin-group { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 4px 6px; }
.coin-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 11px; background: none; border: 0; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.coin-row:hover, .coin-row:focus { background: var(--card-2); outline: 0; }
.coin-row .name { color: var(--muted); font-size: .85rem; }
.coin-row .tick { font-weight: 600; text-transform: uppercase; }
.coin-row .meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.coin-row .net { margin-inline-start: auto; }

.support-intro { margin: 0 0 4px; }
.support-options { display: grid; gap: 10px; margin: 16px 0 12px; }
.support-opt { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s; }
.support-opt:hover { border-color: var(--primary); text-decoration: none; }
.support-opt b { display: block; font-weight: 600; }
.support-opt small { display: block; color: var(--muted); font-size: .78rem; }
.s-ico { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: rgba(124, 92, 255, .15); fill: none; stroke: #c9bcff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-btn { margin-top: 12px; }
.help-btn.urgent { border-color: var(--warn); color: #ffd79a; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card-2); border: 1px solid var(--border); padding: 10px 18px; border-radius: 12px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ADMIN */
.admin { padding-top: 36px; padding-bottom: 60px; }
.admin-tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; }
.nav-inner #logout { margin-left: auto; }
.login-card { max-width: 400px; margin: 60px auto; padding: 28px; }
.login-card h2 { margin: 0 0 6px; }
.login-card .input { margin-top: 16px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat b { font-size: 1.6rem; }
.stat b.ok { color: var(--ok); } .stat b.info { color: #c9bcff; } .stat b.bad { color: var(--danger); }
.table-wrap { margin-top: 10px; overflow-x: auto; }
.tx-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tx-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tx-table td { padding: 12px 14px; border-bottom: 1px solid rgba(38, 44, 71, .6); white-space: nowrap; }
.tx-table tbody tr { cursor: pointer; }
.tx-table tbody tr:hover { background: var(--card-2); }
.tx-table code { font-size: .8rem; }
.pill-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: capitalize; }
.pill-status.ok { background: rgba(47,214,138,.14); color: var(--ok); }
.pill-status.bad { background: rgba(255,92,122,.14); color: var(--danger); }
.pill-status.info { background: rgba(124,92,255,.16); color: #c9bcff; }
.empty { padding: 28px; text-align: center; }
.detail-card { max-width: 560px; max-height: 85vh; overflow-y: auto; }
.detail-card .details dd { text-align: left; }

/* RESPONSIVE */
@media (max-width: 960px) {
  /* minmax(0, …): let the swap box shrink to the screen instead of its inputs' natural width */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 36px; }
  .hero-copy { text-align: center; }
  .lead { margin: 0 auto; }
  .hero-points { display: inline-grid; text-align: start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pairs, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-right { margin-inline-start: auto; gap: 8px; min-width: 0; }
  .nav-inner { gap: 12px; }
  /* long translations of "Exchange now" wrap instead of pushing the page wider */
  .nav-cta { max-width: 150px; white-space: normal; line-height: 1.15; text-align: center; padding: 7px 12px; }
  .lang-cur { display: none; }
  .lang-code { display: inline; }
  /* full-width sheet under the menu bar on phones */
  .lang-menu { position: fixed; top: 76px; inset-inline: 12px; width: auto; }
  .lang-list { max-height: calc(100vh - 170px); }
  .lang-opt { min-height: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 56px 16px; }
  .widget { padding: 20px 16px; }
  .deposit { flex-direction: column; text-align: center; }
  .copy-row { text-align: start; }
  .progress li { font-size: .62rem; }
}
@media (max-width: 440px) {
  .grid-4 { grid-template-columns: 1fr; }
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .amount-box input { font-size: 1.2rem; }
}

/* RIGHT-TO-LEFT (Arabic, Urdu): numbers, addresses and hashes stay left-to-right */
[dir="rtl"] .amount-box input, [dir="rtl"] .input, [dir="rtl"] code, [dir="rtl"] .details dd,
[dir="rtl"] .tx-id, [dir="rtl"] .quote-meta b, [dir="rtl"] .hint { unicode-bidi: plaintext; }
[dir="rtl"] #address, [dir="rtl"] #refund, [dir="rtl"] #extraId, [dir="rtl"] #trackId, [dir="rtl"] #supportId { direction: ltr; text-align: right; }
[dir="rtl"] .back, [dir="rtl"] .summary .arrow { transform: scaleX(-1); }
[dir="rtl"] .faq summary::after { margin-inline-start: auto; }
