/* Fonts are loaded via <link> tags in each page's <head> (faster than
   @import, which blocks CSS parsing until the remote stylesheet returns). */

:root {
  --ink: #0A0E24;
  --ink-2: #0D1330;
  --panel: #121A3E;
  --panel-2: #182452;
  --gold-shadow: #7A4048;
  --gold: #C97B72;
  --gold-light: #E9AFA0;
  --gold-shine: #FBDDC9;
  --gold-deep: var(--gold-shadow);
  --ivory: #F8EFE9;
  --muted: #ABB4D6;
  --muted-2: #747EA6;
  --line: rgba(233, 175, 160, .18);
  --line-strong: rgba(233, 175, 160, .4);
  --up: #7EC9A6;
  --down: #D4776B;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 30px 70px rgba(4, 6, 20, .55), 0 4px 14px rgba(0,0,0,.3);
  --shadow-soft: 0 12px 34px rgba(4, 6, 20, .38);
  --shadow-glow: 0 0 0 1px rgba(233,175,160,.15), 0 24px 60px rgba(201,123,114,.14);

  --serif: "Noto Serif Arabic", "Vazirmatn", serif;
  --sans: "Vazirmatn", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ivory);
  background:
    radial-gradient(circle at 14% -8%, rgba(233, 175, 160, .16), transparent 36%),
    radial-gradient(circle at 90% 4%, rgba(76, 100, 180, .22), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(201, 123, 114, .10), transparent 50%),
    linear-gradient(180deg, #090D22 0%, #0A0E24 45%, #0C1230 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
p { overflow-wrap: anywhere; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 3px; }
/* [hidden] must always win over component display rules (e.g. .admin-layout
   sets display:grid, which — being the same specificity and loaded later —
   was silently overriding [hidden]'s display:none and leaving "hidden"
   panels still occupying layout space off-screen). */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 86px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(9, 13, 34, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(233,175,160,.12);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; border: 1px solid var(--line-strong); box-shadow: 0 0 0 3px rgba(233,175,160,.08), 0 4px 14px rgba(0,0,0,.4); }
.brand strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand small { color: var(--muted-2); font-weight: 600; font-size: .74rem; }
.nav { display: flex; justify-content: center; gap: 30px; color: rgba(248, 239, 233, .78); font-weight: 700; font-size: .9rem; }
.nav a { position: relative; padding: 8px 0; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; right: 0; bottom: 0; height: 1px; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .3s ease; }
.nav a:hover { color: var(--gold-light); }
.nav a:hover::after { width: 100%; }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ivory);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn.primary {
  color: #2B171A;
  border-color: rgba(255, 226, 210, .55);
  background: linear-gradient(148deg, var(--gold-shine) 0%, var(--gold-light) 28%, var(--gold) 62%, var(--gold-shadow) 100%);
  box-shadow: 0 14px 32px rgba(122, 64, 72, .38), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(122, 64, 72, .48), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover::before { transform: translateX(120%); }
.btn.ghost { background: rgba(255,255,255,.04); }
.btn.ghost:hover { border-color: var(--line-strong); color: var(--gold-light); background: rgba(233,175,160,.06); }
.btn.mini { min-height: 40px; padding: 9px 16px; font-size: .82rem; width: 100%; }
.btn.full { width: 100%; }
.btn.active { background: rgba(201,123,114,.18); border-color: var(--line-strong); color: var(--gold-light); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  .btn.primary::before { display: none; }
}

/* ===== Hero ===== */
.hero { padding: 60px 0 0; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-shine) 50%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .05em;
  position: relative;
  padding-inline-start: 26px;
}
.eyebrow::before { content: ""; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 18px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--ivory); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.28; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.35; }
.hero-desc { max-width: 52ch; margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-mini-stats {
  display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 40px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.hero-mini-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-mini-stats strong { font-size: .92rem; color: var(--ivory); }
.hero-mini-stats span { font-size: .8rem; color: var(--muted-2); }

/* ---- Coin signature element ---- */
.hero-coin-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-coin-stage::before {
  content: "";
  position: absolute;
  top: 6%;
  width: min(420px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,175,160,.28), rgba(201,123,114,.10) 45%, transparent 72%);
  filter: blur(6px);
  z-index: 0;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.coin {
  position: relative;
  z-index: 1;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.5), transparent 34%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.45), transparent 55%),
    conic-gradient(from 180deg,
      var(--gold-shadow) 0deg, var(--gold) 55deg, var(--gold-shine) 100deg,
      var(--gold-light) 140deg, var(--gold-shadow) 190deg, var(--gold) 240deg,
      var(--gold-shine) 290deg, var(--gold-light) 330deg, var(--gold-shadow) 360deg);
  box-shadow:
    inset 0 0 0 7px rgba(10,14,36,.92),
    inset 0 0 34px rgba(0,0,0,.55),
    inset 0 2px 4px rgba(255,255,255,.25),
    var(--shadow), var(--shadow-glow);
  animation: coin-spin 26s linear infinite;
}
@keyframes coin-spin { to { transform: rotate(360deg); } }
.coin-edge { position: absolute; inset: 0; width: 100%; height: 100%; }
.coin-edge line { stroke: rgba(10,14,36,.7); stroke-width: 2.2; }

.coin-face {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 30%, #1B2454, var(--ink) 78%);
  border: 1px solid rgba(233,175,160,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: coin-spin-rev 26s linear infinite;
  overflow: hidden;
}
@keyframes coin-spin-rev { to { transform: rotate(-360deg); } }
.coin-emblem { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: .12; filter: grayscale(1) brightness(2.4); }
.coin-eyebrow { position: relative; font-size: .78rem; color: var(--muted); letter-spacing: .06em; font-weight: 700; }
.coin-price {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--gold-light), var(--gold-shine) 45%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  transition: opacity .35s ease;
}
.coin-unit { position: relative; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.coin-name {
  position: relative;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--gold);
  border-top: 1px solid var(--line);
  padding-top: 9px;
  width: 66%;
  font-weight: 700;
  transition: opacity .35s ease;
}
.coin-face.is-swapping .coin-price,
.coin-face.is-swapping .coin-name { opacity: .15; }
@media (prefers-reduced-motion: reduce) {
  .coin-face.is-swapping .coin-price,
  .coin-face.is-swapping .coin-name { opacity: 1; }
}
.coin-note { font-size: .78rem; color: var(--muted-2); text-align: center; max-width: 280px; }

/* ===== Trust strip ===== */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.trust-strip .trust-inner { display: contents; }
.trust-inner article { padding: 26px clamp(14px, 3vw, 34px); background: rgba(18, 26, 62, .55); text-align: center; transition: background .25s ease; }
.trust-inner article:hover { background: rgba(18, 26, 62, .85); }
.trust-inner strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.02rem; font-weight: 700; }
.trust-inner span { display: block; margin-top: 8px; color: var(--muted-2); font-size: .84rem; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head span { font-size: .86rem; color: var(--muted-2); }

/* Category tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tab {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: all .2s ease;
}
.tab:hover { border-color: var(--line-strong); color: var(--ivory); }
.tab.is-active { color: #2B171A; border-color: transparent; background: linear-gradient(135deg, var(--gold-shine), var(--gold) 60%, var(--gold-shadow)); box-shadow: 0 8px 22px rgba(122,64,72,.35); }

/* Rate table — compact, scannable */
.rate-table-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); position: relative; }
.rate-table-wrap::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,175,160,.5), transparent); z-index: 2; }
.rate-table { width: 100%; border-collapse: collapse; min-width: 620px; background: rgba(255,255,255,.015); }
.rate-table thead th {
  padding: 14px; text-align: right; font-size: .8rem; font-weight: 700;
  color: var(--gold-light); background: linear-gradient(180deg, rgba(233,175,160,.09), rgba(233,175,160,.02));
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rate-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; white-space: nowrap; transition: background .2s ease; }
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody tr:hover td { background: rgba(233,175,160,.05); }
.rate-coin-cell { display: flex; align-items: center; gap: 12px; white-space: normal; }
.rate-coin-cell img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-strong); flex: 0 0 auto; }
.rate-coin-cell .name { font-weight: 700; }
.rate-coin-cell .badges { display: flex; gap: 6px; margin-top: 3px; }
.pill { display: inline-flex; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-light); font-size: .64rem; font-weight: 700; }
.rate-table dd, .rate-table .price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.change { font-weight: 700; font-size: .84rem; }
.change.up { color: var(--up); }
.change.down { color: var(--down); }
.rate-table .btn.mini { width: auto; min-height: 34px; padding: 7px 14px; font-size: .78rem; }

/* Price comparison chart — real buy/sell bars per coin, no fabricated
   multi-day history (see the note under the chart for why). */
.price-chart-legend { display: flex; gap: 22px; margin-bottom: 18px; font-size: .84rem; color: var(--muted); }
.price-chart-legend .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 7px; vertical-align: -1px; }
.swatch.buy { background: linear-gradient(160deg, var(--gold-shine), var(--gold) 65%, var(--gold-shadow)); }
.swatch.sell { background: var(--panel-2); border: 1px solid var(--line-strong); }

.price-chart {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  min-height: 300px;
  padding: 20px 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  position: relative;
}
.price-chart-group { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 64px; }
.price-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; }
.price-chart-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-value { font-size: .68rem; color: var(--muted-2); margin-bottom: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-chart-bar { width: 22px; border-radius: 5px 5px 0 0; transition: height .7s cubic-bezier(.2,.7,.3,1); position: relative; }
.price-chart-bar.buy {
  background: linear-gradient(180deg, var(--gold-shine), var(--gold) 55%, var(--gold-shadow));
  box-shadow: 0 -4px 16px rgba(201,123,114,.28), inset 0 1px 0 rgba(255,255,255,.4);
}
.price-chart-bar.sell {
  background: linear-gradient(180deg, var(--panel-2), var(--ink-2));
  border: 1px solid var(--line-strong);
  border-bottom: none;
}
.price-chart-label { font-size: .78rem; color: var(--ivory); text-align: center; line-height: 1.4; max-width: 90px; }
.price-chart-change { font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-chart-change.up { color: var(--up); }
.price-chart-change.down { color: var(--down); }
.chart-note { margin-top: 4px; font-size: .8rem; color: var(--muted-2); line-height: 1.9; max-width: 74ch; }
.chart-note b { color: var(--muted); }

/* Split / services */
.split-inner { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.feature-image { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.service-list article, .contact-box, .form-card, .side-card, .admin-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(233,175,160,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow-soft);
}
.service-list article::before, .form-card::before, .side-card::before, .admin-panel::before {
  content: "";
  position: absolute; top: 0; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,175,160,.45), transparent);
}
.service-list article { padding: 18px; }
.service-list b { display: block; color: var(--gold-light); margin-bottom: 8px; font-weight: 700; }
.service-list span { color: var(--muted); line-height: 1.9; font-size: .92rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps-grid li { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; background: linear-gradient(180deg, rgba(233,175,160,.05), rgba(255,255,255,.02)); box-shadow: var(--shadow-soft); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.steps-grid li:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { font-family: var(--serif); color: var(--gold-light); font-weight: 700; font-size: 1.2rem; }
.steps-grid h3 { font-size: 1.02rem; margin: 12px 0 8px; }
.steps-grid p { color: var(--muted); font-size: .9rem; line-height: 1.8; margin: 0; }

/* Contact */
.contact { display: grid; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; }
.contact-inner > div:first-child p { color: rgba(255,255,255,.8); font-size: 1.02rem; line-height: 2; margin-top: 14px; }
.contact-box { display: grid; gap: 10px; padding: 18px; }
.contact-box a { padding: 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); font-weight: 700; text-align: center; transition: background .2s ease, color .2s ease; }
.contact-box a:hover { background: rgba(201,123,114,.16); color: var(--gold-light); }

/* Footer */
.footer { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 26px; text-align: center; color: var(--muted-2); font-size: .88rem; border-top: 1px solid var(--line); }
.footer-admin { color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px; opacity: .7; font-weight: 700; }
.footer-admin:hover { color: var(--gold-light); opacity: 1; }

/* ===== Inner pages (order / track / admin) ===== */
.page { padding: 42px clamp(18px, 5vw, 72px) 72px; max-width: 1240px; margin: 0 auto; }
.page-title { text-align: center; margin: 18px auto 32px; max-width: 760px; }
.page-title h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.form-card, .side-card { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
input, textarea, select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; color: var(--ivory); background: rgba(0,0,0,.25);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.mode-row, .coin-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.mode-row { grid-template-columns: repeat(2, 1fr); }
.coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coin-option {
  display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.035);
  color: var(--ivory); text-align: right; cursor: pointer;
}
.coin-option.active { border-color: rgba(201,123,114,.7); background: rgba(201,123,114,.14); }
.coin-option img { width: 58px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.coin-option strong { display: block; font-size: .92rem; }
.coin-option small { color: var(--muted-2); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-line strong { color: var(--gold-light); }
.toast {
  position: fixed; left: 22px; bottom: 22px; z-index: 80; max-width: 360px; padding: 14px 16px;
  border-radius: var(--radius-sm); background: #16233A; border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateY(18px); opacity: 0; pointer-events: none; transition: .2s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { color: var(--gold-light); background: rgba(255,255,255,.04); }
.admin-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-nav { display: grid; gap: 10px; }
.admin-nav button.active { background: rgba(201,123,114,.16); color: var(--gold-light); }
.admin-panel { padding: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.toolbar input { max-width: 320px; }

/* ===== Responsive ===== */
@media (max-width: 1050px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .shell, .contact-inner { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-coin-stage { order: -1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr; justify-items: stretch; min-height: auto; padding: 16px clamp(20px,5vw,64px); gap: 14px; }
  .brand { justify-content: center; }
  .nav { overflow-x: auto; justify-content: start; padding-bottom: 6px; }
  .topbar .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 10px; }
  .coin-grid, .grid-2, .trust-strip, .steps-grid { grid-template-columns: 1fr; }
  .rate-table-wrap { overflow-x: auto; }
  .price-chart { gap: 16px; min-height: 240px; }
  .price-chart-bars { height: 170px; }
  .price-chart-bar { width: 16px; }
  .price-chart-group { min-width: 52px; }
  .hero-mini-stats { gap: 18px 26px; }
  .footer { flex-direction: column; gap: 8px; }
}

/* ===== Visual polish v19
   Keeps the existing navy / rose-gold identity and only improves hierarchy,
   spacing and touch comfort. ===== */
body {
  background-attachment: fixed;
}

.topbar {
  min-height: 78px;
  background: rgba(9, 13, 34, .94);
  box-shadow: 0 10px 32px rgba(4, 6, 20, .22), 0 1px 0 rgba(233,175,160,.12);
}
.brand img {
  width: 44px;
  height: 44px;
}
.nav {
  gap: clamp(18px, 2.2vw, 30px);
}

.hero {
  padding-top: 72px;
}
.hero-copy {
  position: relative;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -34px -40px -34px -80px;
  z-index: -1;
  border-radius: 42px;
  background: radial-gradient(circle at 72% 45%, rgba(233,175,160,.07), transparent 62%);
  pointer-events: none;
}
.hero-desc {
  color: #BBC3DF;
}

.trust-inner article {
  min-height: 118px;
  display: grid;
  align-content: center;
}

.section {
  position: relative;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: min(1120px, calc(100% - 40px));
  height: 1px;
  transform: translateX(50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-head {
  margin-bottom: 34px;
}
.section-head h2 {
  text-wrap: balance;
}

.tabs {
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(233,175,160,.1);
  border-radius: 999px;
  background: rgba(7, 10, 27, .32);
}
.tab {
  min-height: 39px;
  padding-inline: 18px;
}

.rate-table-wrap {
  border-color: rgba(233,175,160,.25);
  background: rgba(10, 14, 36, .7);
  box-shadow: 0 24px 60px rgba(4,6,20,.34), inset 0 1px 0 rgba(255,255,255,.025);
}
.rate-table thead th {
  height: 52px;
  padding-inline: 18px;
  letter-spacing: .01em;
}
.rate-table tbody td {
  height: 68px;
  padding-inline: 18px;
}
.rate-table tbody tr {
  transition: transform .18s ease;
}
.rate-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.012);
}
.rate-table tbody tr:hover td {
  background: rgba(233,175,160,.075);
}
.rate-coin-cell img {
  width: 46px;
  height: 46px;
  padding: 2px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 7px 18px rgba(0,0,0,.28);
}
.rate-table .price {
  font-size: .96rem;
  letter-spacing: .015em;
}
.rate-table .btn.mini {
  min-height: 38px;
  padding-inline: 16px;
}

.service-list article,
.steps-grid li,
.contact-box {
  background:
    linear-gradient(145deg, rgba(233,175,160,.065), rgba(255,255,255,.018));
}
.service-list article:hover,
.steps-grid li:hover {
  border-color: rgba(233,175,160,.36);
}
.feature-image {
  box-shadow: 0 22px 54px rgba(4,6,20,.42);
}

@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }
  .topbar {
    padding-block: 13px;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(4,6,20,.38);
  }
  .brand {
    justify-content: start;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .nav {
    margin-inline: -4px;
    padding: 4px 4px 9px;
    gap: 22px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
  }
  .hero {
    padding-top: 42px;
  }
  .hero-inner {
    gap: 38px;
    padding-bottom: 48px;
  }
  .hero-copy::before { display: none; }
  .hero-desc {
    font-size: .96rem;
    line-height: 1.95;
  }
  .hero .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 14px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .rate-table thead th,
  .rate-table tbody td {
    padding-inline: 14px;
  }
  .rate-table tbody td {
    height: 64px;
  }
  .rate-coin-cell img {
    width: 42px;
    height: 42px;
  }
}
