/* ============ Tokens ============ */
:root{
  --ink: #e3e9f3;
  --surface: #ffffff;
  --surface-2: #e9edf6;
  --border: #c9d2e3;
  --text: #141a2c;
  --text-muted: #4f5c76;

  --brand: #3b5998;
  --brand-hover: #253c6b;
  --brand-dim: #dbe3f2;
  --brand-2: #6d5bd0;
  --brand-3: #22b8d6;

  --gradient-brand: linear-gradient(120deg, #3b82f6 0%, #6d5bd0 60%, #8b5cf6 100%);
  --gradient-hero: radial-gradient(1200px 700px at 15% -10%, #24345f 0%, #141d3d 45%, #0a1128 100%);
  --glow-brand: 0 10px 26px -10px rgba(93,92,222,.55);

  --mint: #128552;
  --mint-dim: #ddf1e6;
  --coral: #c93e44;
  --coral-dim: #f9dfe0;
  --amber: #c68a0d;

  --shadow-card: 0 1px 2px rgba(20,26,44,.06), 0 14px 30px -18px rgba(20,26,44,.24);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --maxw: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  animation: body-fade-in .32s ease both;
}
@keyframes body-fade-in{ from{ opacity: 0; } to{ opacity: 1; } }

h1,h2,h3{ font-family: var(--font-display); margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; color: var(--text-muted); }
a{ color: inherit; }
button, input, select, textarea{ font-family: inherit; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* subtle drifting background */
.bg-field{
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 480px at 8% 2%, rgba(59,89,152,0.20), transparent 60%),
    radial-gradient(820px 560px at 94% 92%, rgba(198,138,13,0.14), transparent 60%),
    radial-gradient(600px 420px at 60% 30%, rgba(110,64,196,0.08), transparent 65%);
  animation: bg-drift 26s ease-in-out infinite alternate;
}
@keyframes bg-drift{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 40px 30px, -30px -20px; }
}

/* ============ Icons ============ */
.icon{
  width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg{ width: 20px; height: 20px; }
.icon-row{ display: inline-flex; align-items: center; gap: 6px; }
a.icon-row{ text-decoration: none; }
.row-cta .icon{ transition: transform .18s ease; }
.row-cta:hover .icon-external{ transform: translate(2px,-2px); }
.row-cta:hover .icon-arrow{ transform: translateX(2px); }
.contact-item .icon-row{ color: var(--brand); }
.contact-item .icon-row span{ color: var(--text); }

/* ============ Scroll-reveal animation ============ */
[data-reveal]{
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible{ opacity: 1; transform: none; }
[data-reveal-group] > [data-reveal]:nth-child(1){ transition-delay: .02s; }
[data-reveal-group] > [data-reveal]:nth-child(2){ transition-delay: .08s; }
[data-reveal-group] > [data-reveal]:nth-child(3){ transition-delay: .14s; }
[data-reveal-group] > [data-reveal]:nth-child(4){ transition-delay: .20s; }
[data-reveal-group] > [data-reveal]:nth-child(5){ transition-delay: .26s; }
[data-reveal-group] > [data-reveal]:nth-child(6){ transition-delay: .32s; }
[data-reveal-group] > [data-reveal]:nth-child(7){ transition-delay: .38s; }
[data-reveal-group] > [data-reveal]:nth-child(8){ transition-delay: .44s; }

/* ============ Card elevation + signature notch shape ============ */
.controls, .exchange-calculator, .lb-card, .review-form, .contact-form,
.partners-pricing, .exch-contact-grid, .hero-rate-card, .reviews-list, .reserves-list,
.faq-list, .news-list, .exchanger-stats, .about-stats{
  box-shadow: var(--shadow-card);
}
.lb-card, .hero-rate-card{
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

/* ============ Header ============ */
.site-header{
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header::before{
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-brand);
}
.header-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo{
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  text-decoration: none; color: var(--text);
}
.logo b{ color: var(--brand); font-weight: 700; }
.logo-pulse{ width: 34px; height: 20px; overflow: visible; }
.logo-pulse polyline{
  fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.main-nav{ display: flex; gap: 4px; margin-right: auto; }
.main-nav a{
  padding: 8px 14px; border-radius: var(--radius-s); text-decoration: none;
  color: var(--text-muted); font-size: .95rem; transition: color .15s, background .15s;
}
.main-nav a:hover{ color: var(--text); background: var(--surface-2); }
.main-nav a{ position: relative; }
.main-nav a[aria-current="page"]{ color: var(--brand); background: var(--brand-dim); }
.main-nav a[aria-current="page"]::after{
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gradient-brand); border-radius: 2px;
}

.live-status{
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-muted); white-space: nowrap;
}
.live-dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(59,89,152,0.55);
  animation: dot-ping 2.4s ease-out infinite;
}
@keyframes dot-ping{
  0%{ box-shadow: 0 0 0 0 rgba(59,89,152,0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(59,89,152,0); }
  100%{ box-shadow: 0 0 0 0 rgba(59,89,152,0); }
}

/* ============ Page container ============ */
main{ display: block; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Headline highlight utility ============ */
.hl{ position: relative; display: inline-block; white-space: nowrap; }
.hl::after{
  content: ''; position: absolute; left: -3px; right: -3px; bottom: 3px; height: .38em;
  background: var(--brand-dim); z-index: -1; border-radius: 3px;
}

/* ============ Hero ============ */
.hero{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 44px 44px; margin-top: 20px;
  background: var(--gradient-hero); border-radius: 28px; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,17,40,.55);
}
.hero::before, .hero::after{
  content: ''; position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none;
}
.hero::before{ width: 320px; height: 320px; background: rgba(109,91,208,.35); top: -120px; right: 8%; }
.hero::after{ width: 260px; height: 260px; background: rgba(34,184,214,.28); bottom: -100px; left: 4%; }
.hero-spotlight{
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 20%), rgba(255,255,255,.14), transparent 62%);
}
.hero h1{ font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.16; max-width: 13ch; color: #fff; position: relative; z-index: 1; }
.hero-lede{ max-width: 46ch; font-size: 1.05rem; color: rgba(255,255,255,.72); position: relative; z-index: 1; }
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 1; }
.hero .btn-ghost{ border-color: rgba(255,255,255,.3); color: #fff; }
.hero .btn-ghost:hover{ border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.hero .hl{ color: #fff; }
.hero .hl::after{ display: none; }
.hero .hl{
  background: linear-gradient(100deg, #7dd3fc, #c4b5fd 60%, #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  position: relative; overflow: hidden;
}
.btn:hover{ transform: translateY(-1px); }
.btn-ripple{
  position: absolute; border-radius: 50%; background: var(--brand); opacity: .22;
  transform: scale(0); animation: btn-ripple-anim .5s ease-out; pointer-events: none;
}
@keyframes btn-ripple-anim{ to{ transform: scale(1); opacity: 0; } }
.btn-primary{
  background: var(--gradient-brand); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(93,92,222,.5); transition: transform .15s, box-shadow .25s;
}
.btn-primary:hover{ box-shadow: var(--glow-brand); transform: translateY(-2px); }
.btn-primary::after{
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn-primary:hover::after{ left: 120%; }
.btn-ghost{ border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover{ border-color: var(--brand); color: var(--brand); }

.hero-stats{
  display: flex; gap: 36px; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
  position: relative; z-index: 1;
}
.hero-stats dt{ font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.hero-stats dd{ margin: 0; font-family: var(--font-mono); font-size: 1.35rem; font-weight: 500; color: #fff; }

/* ---- Exchange-loop hero graphic (replaces a generic heartbeat motif) ---- */
.hero-visual{ position: relative; display: flex; align-items: center; justify-content: center; min-height: 230px; z-index: 1; }
.loop-graphic{ width: 72%; max-width: 270px; height: auto; display: block; }
.loop-track{ fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; stroke-dasharray: 3 9; }
.loop-group{ transform-origin: 110px 110px; animation: loop-spin 16s linear infinite; }
@keyframes loop-spin{ from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
.loop-arc{ fill: none; stroke-width: 7; stroke-linecap: round; }
.loop-arc-a{ stroke: #7dd3fc; filter: drop-shadow(0 0 6px rgba(125,211,252,.55)); }
.loop-arc-b{ stroke: #fbbf24; filter: drop-shadow(0 0 6px rgba(251,191,36,.5)); }
.loop-arrow{ fill: #7dd3fc; }
.loop-arrow-b{ fill: #fbbf24; }
.loop-center-value{ font-family: var(--font-mono); font-size: 22px; font-weight: 600; fill: #fff; text-anchor: middle; }
.loop-center-label{ font-family: var(--font-body); font-size: 10px; fill: rgba(255,255,255,.55); text-anchor: middle; letter-spacing: .02em; }

.hero-rate-card{
  position: absolute; right: 4%; bottom: 2%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-m);
  padding: 16px 20px; display: flex; flex-direction: column; gap: 2px;
  min-width: 170px; backdrop-filter: blur(14px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
}
.hero-rate-pair{ font-size: .78rem; color: rgba(255,255,255,.6); }
.hero-rate-value{ font-family: var(--font-mono); font-size: 1.8rem; font-weight: 500; color: #fff; }
.hero-rate-delta{ font-size: .78rem; color: #7dd3fc; }

/* ============ Ticker ============ */
.ticker{
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); overflow: hidden; position: relative;
  display: flex; padding: 12px 0;
}
.ticker-track{
  display: flex; gap: 40px; white-space: nowrap; flex-shrink: 0;
  padding-left: 40px;
  animation: ticker-scroll 38s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
@keyframes ticker-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-100%); } }
.ticker-item{ display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: .92rem; }
.ticker-item .t-pair{ color: var(--text-muted); }
.ticker-item .t-val{ color: var(--text); font-weight: 500; }
.ticker-item .t-delta.up{ color: var(--mint); }
.ticker-item .t-delta.down{ color: var(--coral); }

.rates-source{
  text-align: center; font-size: .78rem; color: var(--text-muted); margin: 10px 0 0; padding-bottom: 4px;
}
.rates-source.is-live::before{
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); margin-right: 6px; vertical-align: 1px;
}
.rates-source.is-estimate{ color: var(--coral); }

/* ============ Currency badges ============ */
.cur-badge{
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand-dim); color: var(--brand);
  font-size: .7rem; font-weight: 700; flex-shrink: 0; vertical-align: -3px; margin-right: 3px;
}

/* ============ Rate change pulse ============ */
.rate-pulse{ animation: rate-pulse .55s ease; display: inline-block; }
@keyframes rate-pulse{
  0%{ transform: scale(1); }
  35%{ transform: scale(1.08); color: var(--brand-3); }
  100%{ transform: scale(1); }
}

/* ============ Mini sticky ticker (slides in once you scroll past the hero) ============ */
.mini-ticker{
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease;
  border-top: 1px solid transparent;
}
.mini-ticker.is-shown{ max-height: 44px; opacity: 1; border-top-color: var(--border); }
.mini-ticker-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .88rem; font-family: var(--font-mono);
}
.mini-ticker-inner .live-dot{ margin-right: 2px; }
.mini-ticker-pair{ color: var(--text-muted); font-family: var(--font-body); }
.mini-ticker-val{ font-weight: 600; }

/* ============ 3D tilt on leaderboard cards ============ */
.leaderboard{ perspective: 1000px; }
.lb-card{ transform-style: preserve-3d; will-change: transform; }
.lb-card .lb-card-top, .lb-card .lb-rating-row, .lb-card .lb-review-count{ transform: translateZ(18px); }

/* ============ Section heading (shared) ============ */
.section-heading{ max-width: 60ch; margin-bottom: 32px; }
.section-heading h2{ font-size: 1.7rem; }

/* ============ Leaderboard ============ */
.leaderboard-section{ padding: 56px 0 8px; }
.leaderboard{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lb-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: var(--text); transition: border-color .18s, transform .18s;
}
.lb-card:hover{ border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-card), 0 16px 32px -18px rgba(93,92,222,.45); }
.lb-card-top{ display: flex; align-items: center; gap: 12px; }
.lb-rank{
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; color: var(--amber); flex-shrink: 0;
  font-weight: 600;
}
.lb-rank.medal-1{ background: linear-gradient(145deg, #ffe29a, #d9970f); color: #5c3d00; }
.lb-rank.medal-2{ background: linear-gradient(145deg, #e6ebf3, #a9b6cc); color: #33404f; }
.lb-rank.medal-3{ background: linear-gradient(145deg, #eac3a0, #b97a4a); color: #4a2c10; }
.lb-name{ font-weight: 600; font-size: 1.02rem; }
.lb-city{ font-size: .8rem; color: var(--text-muted); }
.lb-rating-row{ display: flex; align-items: center; gap: 8px; }
.lb-rating-num{ font-family: var(--font-mono); color: var(--amber); font-weight: 500; }
.lb-review-count{ font-size: .8rem; color: var(--text-muted); }

/* ============ Stars ============ */
.stars{ display: inline-flex; gap: 2px; }
.stars .star{ color: var(--border); font-size: 1rem; line-height: 1; }
.stars .star.on{ color: var(--amber); }

/* ============ Exchangers / table ============ */
.exchangers{ padding: 56px 0 80px; }

.controls{
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.control{ display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--text-muted); }
.control select, .control input{
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); padding: 9px 12px; font-size: .92rem; min-width: 170px;
}

.exchange-calculator{
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 22px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.calc-field{ display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.calc-label{ font-size: .78rem; color: var(--text-muted); }
.calc-input-row{ display: flex; gap: 8px; }
.calc-amount{
  flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); padding: 11px 12px; font-size: 1.05rem; font-family: var(--font-mono);
}
.calc-currency{
  flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); padding: 11px 12px; font-size: .95rem; min-width: 140px;
}
.calc-field:last-of-type .calc-input-row{ height: 100%; }
.calc-field:last-of-type .calc-currency{ width: 100%; flex: 1; }
.calc-swap{
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; margin-bottom: 11px;
  background: var(--brand-dim); border: 1px solid var(--border); color: var(--brand);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .3s ease, border-color .15s;
}
.calc-swap:hover{ border-color: var(--brand); }
.calc-swap.spin{ transform: rotate(180deg); }
.calc-swap svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.calc-sort{ flex: 0 0 auto; min-width: 170px; }
.calc-sort select{
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); padding: 11px 12px; font-size: .92rem; width: 100%;
}

.table-wrap{ overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow-card); }
.rate-table{ width: 100%; border-collapse: collapse; min-width: 760px; }
.rate-table thead th{
  text-align: left; font-size: .78rem; color: var(--text-muted); font-weight: 500;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.rate-table tbody td{
  padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: .95rem; vertical-align: middle;
}
.rate-table tbody tr:last-child td{ border-bottom: none; }
.rate-table tbody tr:nth-child(odd){ background: rgba(59,89,152,0.025); }
.rate-table tbody tr{ transition: background-color .15s ease; }
.rate-table tbody tr:hover{ background: var(--brand-dim); }

.exch-name-link{ display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 500; }
.exch-name-link:hover{ color: var(--brand); }
.exch-badge{
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .8rem; color: var(--brand);
  border: 1px solid var(--border); flex-shrink: 0;
}
.rate-table .num{ font-family: var(--font-mono); }
.rate-cell{ font-family: var(--font-mono); font-weight: 500; transition: color .3s, background-color .3s; border-radius: 4px; }
.rate-cell.flash-up{ color: var(--mint); background: var(--mint-dim); }
.rate-cell.flash-down{ color: var(--coral); background: var(--coral-dim); }

.rating-cell{ display: flex; flex-direction: column; gap: 2px; }
.rating-cell .rc-count{ font-size: .74rem; color: var(--text-muted); }

.row-cta{
  padding: 7px 14px; border-radius: 999px; background: transparent; border: 1px solid var(--border);
  color: var(--text); font-size: .84rem; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s;
}
.row-cta:hover{ border-color: var(--brand); color: var(--brand); }

.table-note{ font-size: .8rem; margin-top: 16px; color: var(--text-muted); max-width: 65ch; }

/* ============ Exchanger profile page ============ */
.back-link{
  display: inline-block; margin: 28px 0 8px; text-decoration: none; color: var(--text-muted);
  font-size: .88rem; transition: color .15s;
}
.back-link:hover{ color: var(--brand); }

.exchanger-header{
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: 24px 0 32px; border-bottom: 1px solid var(--border);
}
.exch-header-main{ display: flex; gap: 18px; align-items: center; }
.exch-badge-lg{
  width: 58px; height: 58px; border-radius: 14px; background: var(--brand-dim);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--brand); border: 1px solid var(--border);
}
.exch-title-row{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exch-title-row h1{ font-size: 1.6rem; margin: 0; }
.verified-badge{
  font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: var(--brand-dim); color: var(--brand);
  border: 1px solid rgba(59,89,152,0.3);
}
.unverified-badge{
  font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border);
}
.exch-meta{ font-size: .88rem; color: var(--text-muted); margin-top: 4px; }
.exch-overall-rating{ display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.exch-overall-num{ font-family: var(--font-mono); font-size: 1.7rem; color: var(--amber); font-weight: 500; }
.exch-overall-count{ font-size: .8rem; color: var(--text-muted); }
.btn-site{ margin-top: 8px; padding: 9px 18px; font-size: .88rem; }
.site-link{ color: var(--brand); text-decoration: none; }
.site-link:hover{ text-decoration: underline; }

.exchanger-stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m);
  overflow: hidden; margin: 28px 0 56px;
}
.exchanger-stats > div{ background: var(--surface); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.exchanger-stats strong{ font-family: var(--font-mono); font-size: 1.35rem; color: var(--text); font-weight: 500; }
.exchanger-stats span{ font-size: .8rem; color: var(--text-muted); }

.exchanger-rates{ margin-bottom: 56px; }
.exchanger-rates h2{ font-size: 1.3rem; }

.exchanger-contact{ margin-bottom: 56px; }
.exchanger-contact h2{ font-size: 1.3rem; }
.exch-contact-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
}
.exch-contact-grid dt{ font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.exch-contact-grid dd{ margin: 0; font-size: .95rem; }

.exchanger-reviews{ padding-bottom: 90px; }
.reviews-heading{ display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.reviews-heading h2{ font-size: 1.3rem; margin: 0; }
.reviews-heading span{ font-size: .88rem; color: var(--text-muted); }

.reviews-list{ display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; margin-bottom: 40px; }
.review-card{ background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.review-card-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-author{ font-weight: 500; }
.review-date{ font-size: .78rem; color: var(--text-muted); }
.review-text{ margin: 0; font-size: .92rem; color: var(--text); }
.reviews-empty{ padding: 24px 20px; background: var(--surface); color: var(--text-muted); font-size: .9rem; }

.review-form{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; max-width: 560px;
}
.form-row-pair{ display: flex; gap: 16px; flex-wrap: wrap; }
.form-row-pair .form-row{ flex: 1; min-width: 180px; }
.form-hint{ font-size: .74rem; color: var(--text-muted); }
.review-form h3{ font-size: 1.1rem; margin: 0; }
.star-label{ font-size: .82rem; color: var(--text-muted); }
.star-picker{ display: flex; gap: 6px; }
.star-btn{
  background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1;
  color: var(--border); padding: 2px; transition: color .12s, transform .12s;
}
.star-btn:hover{ transform: scale(1.1); }
.star-btn.on{ color: var(--amber); }
.star-picker.shake{ animation: star-shake .4s ease; }
@keyframes star-shake{
  10%, 90%{ transform: translateX(-2px); }
  20%, 80%{ transform: translateX(3px); }
  30%, 50%, 70%{ transform: translateX(-4px); }
  40%, 60%{ transform: translateX(4px); }
}
.review-form-note{ font-size: .88rem; color: var(--mint); margin: 0; }

.exchanger-not-found{ padding: 80px 0; text-align: center; }
.exchanger-not-found h1{ font-size: 1.6rem; }

/* ============ About page ============ */
.about-hero{ padding: 64px 0 20px; max-width: 70ch; }
.about-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.about-lede{ font-size: 1.05rem; }

.about-stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m);
  overflow: hidden; margin: 40px 0 64px;
}
.about-stats > div{ background: var(--surface); padding: 26px 20px; display: flex; flex-direction: column; gap: 6px; }
.about-stats strong{ font-family: var(--font-mono); font-size: 1.5rem; color: var(--brand); font-weight: 500; }
.about-stats span{ font-size: .82rem; color: var(--text-muted); }

.principles{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 40px; margin-bottom: 72px;
}
.principle{ padding-top: 20px; border-top: 1px solid var(--border); }
.principle h3{ font-size: 1.05rem; }
.principle p{ font-size: .9rem; }

.about-team{ max-width: 68ch; padding-bottom: 80px; }
.about-team h2{ font-size: 1.4rem; }

/* ============ Contacts ============ */
.contacts-hero{ padding: 64px 0 8px; max-width: 60ch; }
.contacts-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.contacts-grid{
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px;
  padding-bottom: 90px; align-items: start;
}
.contact-info{ display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.contact-item{ display: flex; flex-direction: column; gap: 4px; }
.contact-label{ font-size: .78rem; color: var(--text-muted); }
.contact-item a{ text-decoration: none; color: var(--brand); font-size: 1rem; }
.contact-item a:hover{ text-decoration: underline; }
.contact-item span:not(.contact-label){ font-size: .92rem; color: var(--text); }

.contact-form{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative;
}
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-size: .82rem; color: var(--text-muted); }
.form-row input, .form-row textarea{
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-s); padding: 11px 14px; font-size: .95rem; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{ border-color: var(--brand); }
.contact-form .btn{ align-self: flex-start; }

.form-success{
  position: absolute; inset: 0; background: var(--surface); border-radius: var(--radius-m);
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 20px;
}
.form-success:not([hidden]){ display: flex; }
.form-success svg{ width: 56px; height: 56px; }
.form-success circle{ fill: none; stroke: var(--mint); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: circle-draw .5s ease forwards; }
.form-success path{ fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: check-draw .35s ease .45s forwards; }
@keyframes circle-draw{ to{ stroke-dashoffset: 0; } }
@keyframes check-draw{ to{ stroke-dashoffset: 0; } }
.form-success span{ font-size: .95rem; max-width: 30ch; color: var(--text); }

/* ============ Footer ============ */
.site-footer{ border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 28px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: .82rem; color: var(--text-muted);
}
.footer-inner nav{ display: flex; gap: 18px; }
.footer-inner nav a{ text-decoration: none; color: var(--text-muted); }
.footer-inner nav a:hover{ color: var(--brand); }

/* ============ Directory (all exchangers) ============ */
.directory-hero{ padding: 56px 0 8px; max-width: 65ch; }
.directory-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.directory-empty{ padding: 40px 20px; text-align: center; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); margin-bottom: 90px; }

/* ============ Reserves page ============ */
.reserves-hero{ padding: 56px 0 8px; max-width: 65ch; }
.reserves-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.reserves-list{
  display: flex; flex-direction: column; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; margin: 32px 0 90px;
}
.reserve-row{ background: var(--surface); padding: 18px 22px; display: flex; align-items: center; gap: 18px; }
.reserve-rank{ font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted); width: 22px; flex-shrink: 0; }
.reserve-name-col{ width: 210px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.reserve-name-col:hover{ color: var(--brand); }
.reserve-city{ font-size: .76rem; color: var(--text-muted); display: block; }
.reserve-bar-track{
  flex: 1; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; min-width: 80px;
}
.reserve-bar-fill{
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #7d99c9);
  width: 0%; transition: width 1s cubic-bezier(.16,1,.3,1);
}
.reserve-value{ font-family: var(--font-mono); font-size: .9rem; width: 130px; text-align: right; flex-shrink: 0; }

/* ============ FAQ accordion ============ */
.faq-hero{ padding: 56px 0 8px; max-width: 65ch; }
.faq-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.faq-list{ margin: 32px 0 90px; display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.faq-item{ background: var(--surface); }
.faq-question{
  width: 100%; text-align: left; background: none; border: none; color: var(--text); cursor: pointer;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 1rem; font-weight: 500; font-family: var(--font-body);
}
.faq-icon{
  width: 20px; height: 20px; flex-shrink: 0; position: relative; transition: transform .3s ease;
}
.faq-icon::before, .faq-icon::after{
  content: ''; position: absolute; background: var(--brand); border-radius: 2px;
}
.faq-icon::before{ width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-icon::after{ width: 2px; height: 14px; top: 3px; left: 9px; transition: transform .3s ease; }
.faq-item.open .faq-icon::after{ transform: rotate(90deg); }
.faq-item.open .faq-icon{ transform: rotate(180deg); }
.faq-answer{
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-answer-inner{ padding: 0 22px 20px; font-size: .92rem; color: var(--text-muted); max-width: 68ch; }
.faq-answer-inner p{ margin: 0 0 .8em; }
.faq-answer-inner p:last-child{ margin-bottom: 0; }

/* ============ Partners page ============ */
.partners-hero{ padding: 56px 0 8px; max-width: 68ch; }
.partners-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.partners-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 40px 0 56px; }
.partners-requirements{ display: flex; flex-direction: column; gap: 22px; }
.req-item{ display: flex; gap: 14px; align-items: flex-start; }
.req-num{
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-dim); border: 1px solid var(--border);
  color: var(--brand); font-family: var(--font-mono); font-size: .82rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.req-item h3{ font-size: .98rem; margin: 0 0 4px; }
.req-item p{ font-size: .88rem; margin: 0; }
.partners-pricing{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 22px; margin-bottom: 56px; display: flex; gap: 32px; flex-wrap: wrap;
}
.pricing-tier{ flex: 1; min-width: 200px; }
.pricing-tier h3{ font-size: 1rem; margin-bottom: 6px; }
.pricing-tier .price{ font-family: var(--font-mono); font-size: 1.3rem; color: var(--brand); margin-bottom: 8px; display: block; }
.pricing-tier p{ font-size: .86rem; margin: 0; }

/* ============ News page ============ */
.news-hero{ padding: 56px 0 8px; max-width: 65ch; }
.news-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.news-list{ display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; margin: 32px 0 90px; }
.news-item{ background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.news-date{ font-size: .78rem; color: var(--text-muted); font-family: var(--font-mono); }
.news-item h2{ font-size: 1.1rem; margin: 0; }
.news-item p{ font-size: .92rem; margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 880px){
  .hero{ grid-template-columns: 1fr; padding: 40px 24px; margin-top: 12px; border-radius: 20px; }
  .hero-visual{ margin-top: 20px; min-height: 220px; }
  .hero-rate-card{ position: static; margin-top: 16px; width: fit-content; clip-path: none; }
  .hero-stats{ flex-wrap: wrap; gap: 20px 32px; }
  .leaderboard{ grid-template-columns: 1fr; }
  .about-stats{ grid-template-columns: repeat(2, 1fr); }
  .exchanger-stats{ grid-template-columns: repeat(2, 1fr); }
  .contacts-grid{ grid-template-columns: 1fr; }
  .exchanger-header{ flex-direction: column; }
  .exch-overall-rating{ align-items: flex-start; }
  .partners-grid{ grid-template-columns: 1fr; }
  .reserve-row{ flex-wrap: wrap; }
  .reserve-name-col{ width: 100%; }
  .reserve-value{ width: auto; text-align: left; }
  .main-nav{ display: none; }
  .header-inner{ gap: 16px; }
}
@media (max-width: 520px){
  .about-stats{ grid-template-columns: 1fr; }
  .exchanger-stats{ grid-template-columns: 1fr; }
  .live-status span:not(.live-dot){ display: none; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .bg-field{ animation: none; }
  body{ animation: none; }
  .loop-group{ animation: none; }
}
