/* ============================================================================
 * TraPay — /خرید-تتر-از-تراپی custom layout
 * Sibling of buy-trx.css. Green/brand-blue palette (BNB identity — Binance gold).
 * ============================================================================ */

:root {
    --cx-gold: #F3BA2F;
    --cx-bg-1: #1a1400;
    --cx-bg-2: #0f172a;
}

/* HERO */
.cx-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cx-bg-1) 0%, var(--cx-bg-2) 100%);
    color: #f8fafc;
    padding: 5rem 1.5rem 6rem;
    isolation: isolate;
}
.cx-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cx-hero__glow { position: absolute; width: 40rem; height: 40rem; border-radius: 50%; filter: blur(120px); opacity: 0.35; }
.cx-hero__glow--green { background: var(--cx-gold); top: -10rem; right: -10rem; }
.cx-hero__glow--brand { background: var(--brand, #0d3e7e); bottom: -15rem; left: -10rem; opacity: 0.55; }
.cx-hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,0.08); }

.cx-hero__inner { position: relative; max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .cx-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }

/* minmax(0,1fr) on the TRACK + min-width:0 on the ITEM both needed: a long LTR
   token (USDT, TRC-20) sets the item's min-content, and a bare 1fr track grows to
   that min-content → column becomes wider than the viewport and shifts left in RTL. */
.cx-hero__inner > * { min-width: 0; }
.cx-hero__copy { max-width: 36rem; min-width: 0; }
.cx-title, .cx-lead { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.cx-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(243, 186, 47, 0.14);
    color: #fcd34d;
    border: 1px solid rgba(243, 186, 47, 0.35);
    border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600;
}
.cx-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cx-gold); box-shadow: 0 0 12px var(--cx-gold); animation: cx-pulse 2s ease-in-out infinite; }
@keyframes cx-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.cx-title {
    margin: 1.5rem 0 0;
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.cx-title__accent {
    background: linear-gradient(120deg, var(--cx-gold) 0%, #B88A00 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.cx-lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.95; color: rgba(248, 250, 252, 0.75); max-width: 32rem; }

/* CALCULATOR */
.cx-calc {
    position: relative;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.cx-calc__header { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.cx-calc__mark {
    width: 48px; height: 48px;
    background: var(--cx-gold);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px -8px rgba(243,186,47,0.6);
    color: white; font-size: 1.5rem; font-weight: 800;
}
.cx-calc__title { font-size: 1.0625rem; font-weight: 700; color: #f8fafc; }
.cx-calc__sub { font-size: 0.8125rem; color: rgba(248,250,252,0.55); margin-top: 2px; }

.cx-calc__field { display: block; margin-bottom: 0; }
.cx-calc__field + .cx-calc__field { margin-top: 0.5rem; }
.cx-calc__field--out { margin-top: 1.25rem; }
.cx-calc__label { display: block; font-size: 0.8125rem; font-weight: 600; color: rgba(248,250,252,0.55); margin-bottom: 0.5rem; }
.cx-calc__input {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.875rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s, background 0.2s;
}
.cx-calc__input:focus-within { border-color: rgba(243,186,47,0.65); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(243,186,47,0.15); }
.cx-calc__input input, .cx-calc__input output {
    flex: 1; min-width: 0; background: transparent; border: none; outline: none;
    color: #f8fafc;
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-size: 1.5rem; font-weight: 700;
    direction: ltr; text-align: end;
    font-variant-numeric: tabular-nums;
}
.cx-calc__unit { flex-shrink: 0; font-size: 0.875rem; font-weight: 600; color: rgba(248,250,252,0.55); }
.cx-calc__unit--brand { color: var(--cx-gold); }

/* quick-amount preset chips */
.cx-calc__chips { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.cx-chip {
    flex: 1; padding: 0.5rem 0; min-height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.625rem;
    color: rgba(248,250,252,0.8);
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-size: 0.8125rem; font-weight: 600; cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.1s;
}
.cx-chip:hover { background: rgba(243,186,47,0.12); border-color: rgba(243,186,47,0.4); color: #fcd34d; }
.cx-chip:active { transform: scale(0.96); }
.cx-chip.is-active { background: rgba(243,186,47,0.18); border-color: var(--cx-gold); color: #fcd34d; }

.cx-calc__field--out .cx-calc__input {
    border-color: rgba(243,186,47,0.3);
    background: linear-gradient(180deg, rgba(243,186,47,0.06) 0%, rgba(255,255,255,0.04) 100%);
}
.cx-calc__field--out .cx-calc__label { color: var(--cx-gold); }

.cx-calc__cta {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    margin-top: 1.5rem; padding: 1rem 1.5rem;
    background: linear-gradient(120deg, var(--cx-gold) 0%, #B88A00 100%);
    color: white; border-radius: 0.875rem;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 12px 32px -8px rgba(243,186,47,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cx-calc__cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -8px rgba(243,186,47,0.6); }
.cx-calc__cta:active { transform: translateY(0) scale(0.99); box-shadow: 0 8px 20px -8px rgba(243,186,47,0.5); }
.cx-calc__cta svg { width: 18px; height: 18px; }

/* respect reduced-motion: kill transforms/spins for users who ask */
@media (prefers-reduced-motion: reduce) {
    .cx-calc__cta, .cx-chip, .cx-calc__input { transition: none; }
    .cx-calc__cta:hover { transform: none; }
}

.cx-calc__meta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8125rem; color: rgba(248,250,252,0.55); text-align: center; }
.cx-calc__meta strong { color: #f8fafc; font-weight: 600; }

/* SHARED H2 */
.cx-h2 {
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    line-height: 1.4;
    color: var(--ink, #111827);
    margin: 0 0 1.5rem;
}
.dark .cx-h2 { color: #f8fafc; }

/* WHY */
.cx-why { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.cx-why__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .cx-why__grid { grid-template-columns: repeat(3, 1fr); } }
.cx-why__card {
    padding: 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.dark .cx-why__card { background: #1f2937; border-color: #374151; }
.cx-why__card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.15); }
.cx-why__icon {
    width: 48px; height: 48px; border-radius: 0.875rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.cx-why__icon svg { width: 24px; height: 24px; }
.cx-why__icon--green { background: color-mix(in srgb, var(--cx-gold) 12%, white); color: var(--cx-gold); }
.cx-why__icon--brand { background: color-mix(in srgb, var(--brand, #0d3e7e) 10%, white); color: var(--brand, #0d3e7e); }
.cx-why__icon--amber { background: color-mix(in srgb, var(--accent, #f59e0b) 14%, white); color: var(--accent, #f59e0b); }
.cx-why__card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 700; color: var(--ink, #111827); }
.dark .cx-why__card h3 { color: #f8fafc; }
.cx-why__card p { margin: 0; font-size: 0.9375rem; line-height: 1.85; color: var(--muted, #6b7280); }

/* FLOW (4 steps) */
.cx-flow { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; background: var(--brand-50, #eef4fc); border-radius: 0; }
.dark .cx-flow { background: #0b1220; }
.cx-flow__steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .cx-flow__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cx-flow__steps { grid-template-columns: repeat(4, 1fr); } }
.cx-flow__steps li {
    position: relative; padding: 2.5rem 1.5rem 1.75rem;
    background: white; border: 1px solid #e2e8f0; border-radius: 1.25rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.dark .cx-flow__steps li { background: #1f2937; border-color: #374151; }
.cx-flow__steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(243,186,47,0.25); border-color: var(--cx-gold); }
.cx-flow__steps li span {
    position: absolute; top: -1rem; right: 1.5rem;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cx-gold); color: white;
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-weight: 800; font-size: 0.95rem;
    border-radius: 50%; box-shadow: 0 6px 18px -4px rgba(243,186,47,0.45);
}
.cx-flow__steps li h3 { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.0625rem; color: var(--ink, #111827); }
.dark .cx-flow__steps li h3 { color: #f8fafc; }
.cx-flow__steps li p { margin: 0; font-size: 0.9375rem; line-height: 1.75; color: var(--muted, #6b7280); }

/* NETWORKS */
.cx-networks { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.cx-networks__sub { color: var(--muted, #6b7280); margin: -1rem 0 2rem; font-size: 0.9375rem; }
.cx-networks__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .cx-networks__grid { grid-template-columns: repeat(3, 1fr); } }
.cx-net { background: white; border: 1px solid #e2e8f0; border-radius: 1.25rem; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.dark .cx-net { background: #1f2937; border-color: #374151; }
.cx-net:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -16px rgba(0,0,0,0.15); }
.cx-net--pick { border-color: #F3BA2F; box-shadow: 0 0 0 4px rgba(243, 186, 47, 0.10); }
.cx-net__head { display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem; align-items: center; padding: 1.25rem 1.5rem; background: color-mix(in srgb, var(--c) 8%, white); border-bottom: 1px solid color-mix(in srgb, var(--c) 15%, transparent); }
.dark .cx-net__head { background: color-mix(in srgb, var(--c) 18%, #1f2937); }
.cx-net__head img, .cx-net__icon { width: 36px; height: 36px; background: white; border-radius: 0.5rem; padding: 4px; display: flex; align-items: center; justify-content: center; color: var(--c); font-size: 1.4rem; font-weight: 800; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--c) 50%, transparent); }
.cx-net__head strong { font-size: 1rem; font-weight: 800; color: var(--ink, #111827); }
.dark .cx-net__head strong { color: #f8fafc; }
.cx-net__head small { display: block; font-size: 0.8125rem; color: var(--muted, #6b7280); margin-top: 2px; }
.cx-net__star { font-size: 0.75rem; font-weight: 700; color: #1a1400; background: #F3BA2F; padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.cx-net__spec { margin: 0; padding: 1rem 1.5rem; }
.cx-net__spec > div { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px dashed #e2e8f0; }
.dark .cx-net__spec > div { border-color: #374151; }
.cx-net__spec > div:last-child { border-bottom: none; }
.cx-net__spec dt { font-size: 0.8125rem; color: var(--muted, #6b7280); }
.cx-net__spec dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink, #111827); }
.dark .cx-net__spec dd { color: #f8fafc; }
.cx-net__spec dd a { color: var(--brand, #0d3e7e); text-decoration: none; font-weight: 700; }
.cx-net__spec dd a:hover { text-decoration: underline; }
.cx-net__highlight { color: var(--cx-gold) !important; font-size: 1.0625rem !important; font-weight: 800 !important; }

/* FAQ */
.cx-faq { max-width: 60rem; margin: 0 auto; padding: 4rem 1.5rem; }
.cx-faq details { background: white; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; transition: border-color 0.2s, background 0.2s; }
.dark .cx-faq details { background: #1f2937; border-color: #374151; }
.cx-faq details[open] { border-color: var(--cx-gold); background: color-mix(in srgb, var(--cx-gold) 3%, white); }
.dark .cx-faq details[open] { background: color-mix(in srgb, var(--cx-gold) 12%, #1f2937); }
.cx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem; color: var(--ink, #111827); }
.dark .cx-faq summary { color: #f8fafc; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq__chev { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 300; background: color-mix(in srgb, var(--cx-gold) 12%, white); color: var(--cx-gold); border-radius: 50%; transition: transform 0.25s, background 0.25s; }
.cx-faq details[open] .cx-faq__chev { transform: rotate(45deg); background: var(--cx-gold); color: white; }
.cx-faq p { margin: 1rem 0 0; color: var(--muted, #6b7280); line-height: 2; font-size: 0.9375rem; }
.cx-faq p a { color: var(--brand, #0d3e7e); font-weight: 600; text-decoration: none; }
.cx-faq p a:hover { text-decoration: underline; }

/* ARTICLE (SEO long-form) */
.cx-article { max-width: 60rem; margin: 0 auto; padding: 4rem 1.5rem; }
.cx-article__inner h2.cx-h2 { margin-bottom: 1.5rem; }
.cx-article__inner h3 {
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-weight: 700; font-size: 1.25rem; line-height: 1.5;
    color: var(--ink, #111827);
    margin: 2.5rem 0 1rem;
}
.dark .cx-article__inner h3 { color: #f8fafc; }
.cx-article__inner p { margin: 0 0 1rem; font-size: 1rem; line-height: 2; color: var(--ink, #111827); }
.dark .cx-article__inner p { color: #e5e7eb; }
.cx-article__inner ul { margin: 0 0 1.5rem; padding-inline-start: 1.5rem; list-style: disc; }
.cx-article__inner li { margin: 0.5rem 0; font-size: 1rem; line-height: 1.95; color: var(--ink, #111827); }
.dark .cx-article__inner li { color: #e5e7eb; }
.cx-article__inner li strong { color: var(--cx-gold); }
.dark .cx-article__inner li strong { color: #fcd34d; }
.cx-article__inner a { color: var(--brand, #0d3e7e); font-weight: 600; text-decoration: none; }
.cx-article__inner a:hover { text-decoration: underline; }
.cx-article__inner ol { margin: 0 0 1.5rem; padding-inline-start: 1.5rem; list-style: decimal; }
.cx-compare { width: 100%; border-collapse: collapse; margin: 0 0 1.75rem; font-size: .9rem; }
.cx-compare th { background: #0b1120; color: #fcd34d; font-weight: 700; text-align: start; padding: .7rem .8rem; white-space: nowrap; }
.cx-compare td { padding: .7rem .8rem; border-bottom: 1px solid #e2e8f0; line-height: 1.9; color: var(--ink, #111827); vertical-align: top; }
.dark .cx-compare td { border-color: #374151; color: #e5e7eb; }
.cx-compare tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--cx-gold) 4%, transparent); }
.cx-compare td strong { color: var(--brand, #0d3e7e); }
.dark .cx-compare td strong { color: #fcd34d; }
@media (max-width: 680px) { .cx-compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* FINAL CTA */
.cx-cta-end { padding: 4rem 1.5rem 6rem; }
.cx-cta-end__inner {
    max-width: 60rem; margin: 0 auto;
    background: linear-gradient(135deg, var(--cx-gold) 0%, #B88A00 100%);
    border-radius: 1.75rem; padding: 2.5rem;
    display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
    color: white;
    box-shadow: 0 30px 70px -20px rgba(243,186,47,0.45);
}
@media (min-width: 700px) { .cx-cta-end__inner { grid-template-columns: auto 1fr auto; padding: 2rem 3rem; gap: 2rem; } }
.cx-cta-end__coin {
    width: 64px; height: 64px;
    background: white; color: var(--cx-gold);
    border-radius: 1rem; padding: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.3);
}
.cx-cta-end__inner h2 { margin: 0; font-family: 'Estedad','Vazirmatn',sans-serif; font-weight: 800; font-size: 1.5rem; }
.cx-cta-end__inner p { margin: 0.35rem 0 0; color: rgba(255,255,255,0.85); font-size: 0.9375rem; }
.cx-cta-end__inner a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; color: var(--cx-gold);
    padding: 0.85rem 1.5rem; border-radius: 0.875rem;
    font-weight: 700; font-size: 0.9375rem; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.cx-cta-end__inner a:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(0,0,0,0.3); }
.cx-cta-end__inner a svg { width: 16px; height: 16px; }

[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* ── live coin price grid (real crypto:swap quotes) ───────────────────────── */
/* Full-bleed dark market band — the dark trading cards sit on a matching dark
   surface (they used to float on the white page = color mismatch). Top color
   matches the ticker tape above so the two read as one exchange zone. */
.cx-prices{background:linear-gradient(180deg,#080c16 0%,#0b1120 70%,#0d1526 100%);padding:52px 20px 64px}
.cx-prices__inner{max-width:1180px;margin:0 auto}
.cx-prices__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:22px}
.cx-coin{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:16px;
  background:#fff;border:1px solid color-mix(in srgb,var(--ink) 8%,transparent);
  box-shadow:0 10px 26px -20px color-mix(in srgb,var(--ink) 45%,transparent);text-decoration:none;color:inherit;
  transition:transform .22s var(--tp-ease,cubic-bezier(.2,.7,.2,1)),box-shadow .22s,border-color .22s}
.cx-coin:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--green) 40%,transparent);
  box-shadow:0 18px 40px -22px color-mix(in srgb,var(--green) 55%,transparent)}
.cx-coin__sym{flex:0 0 auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.07);padding:7px}
.cx-coin__sym img{width:100%;height:100%;display:block}
.cx-coin__body{min-width:0;flex:1}
.cx-coin__name{font-weight:700;font-size:.98rem;line-height:1.2}
.cx-coin__ticker{font-size:.78rem;color:var(--muted);font-variant-numeric:tabular-nums}
.cx-coin__price{margin-inline-start:auto;text-align:end;font-weight:800;font-size:.95rem;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.cx-coin__price small{display:block;font-weight:500;font-size:.7rem;color:var(--muted)}
.cx-prices__note{margin-top:16px;font-size:.82rem;color:var(--muted);text-align:center}
.dark .cx-coin{background:#0f1729;border-color:color-mix(in srgb,#fff 10%,transparent)}

/* ══════════════════════════════════════════════════════════════════════════
 * "زندهٔ بازار" — living-market redesign (2026-09-26)
 * Additive layer: overrides + new components. Concept: the page feels like a
 * live trading floor — orbiting coin constellation, ticker tape, trading cards
 * with count-up prices. All on TraPay tokens + Binance-gold accent. RTL-safe,
 * reduced-motion-safe, focus-visible rings, 44px targets.
 * ════════════════════════════════════════════════════════════════════════ */

/* deeper, richer hero backdrop + breathing auroras */
.cx-hero{padding:6rem 1.5rem 7rem;background:radial-gradient(1200px 600px at 80% -10%,#241a00 0%,transparent 60%),radial-gradient(900px 500px at 10% 110%,#0a1b3a 0%,transparent 55%),linear-gradient(160deg,#120d00 0%,#0a1020 55%,#070b16 100%)}
.cx-hero__glow{opacity:.4;animation:cx-breathe 9s ease-in-out infinite}
.cx-hero__glow--green{background:radial-gradient(circle,#F3BA2F 0%,#b8860b 70%);animation-delay:0s}
.cx-hero__glow--brand{background:radial-gradient(circle,#2563eb 0%,#0d3e7e 70%);opacity:.5;animation-delay:-4.5s}
@keyframes cx-breathe{0%,100%{transform:translate3d(0,0,0) scale(1);opacity:.32}50%{transform:translate3d(2rem,-1.5rem,0) scale(1.12);opacity:.5}}

/* orbiting coin constellation behind the hero copy */
.cx-constellation{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.cx-orb{position:absolute;display:grid;place-items:center;width:var(--s,46px);height:var(--s,46px);border-radius:50%;
  font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:800;font-size:calc(var(--s,46px)*.42);
  color:#fde9b0;background:radial-gradient(circle at 30% 25%,rgba(243,186,47,.28),rgba(243,186,47,.05));
  border:1px solid rgba(243,186,47,.28);backdrop-filter:blur(4px);
  box-shadow:0 0 26px -6px rgba(243,186,47,.5),inset 0 0 18px -8px rgba(243,186,47,.4);
  opacity:.0;animation:cx-float var(--d,22s) ease-in-out infinite,cx-orb-in .9s ease both;animation-delay:0s,var(--in,0s)}
.cx-orb--b{color:#bcd0ff;background:radial-gradient(circle at 30% 25%,rgba(59,130,246,.28),rgba(59,130,246,.05));border-color:rgba(59,130,246,.3);box-shadow:0 0 26px -6px rgba(59,130,246,.5),inset 0 0 18px -8px rgba(59,130,246,.4)}
@keyframes cx-orb-in{from{opacity:0;transform:scale(.4)}to{opacity:.9}}
@keyframes cx-float{0%,100%{transform:translate3d(0,0,0)}25%{transform:translate3d(1.2rem,-1.6rem,0)}50%{transform:translate3d(-.8rem,1.2rem,0)}75%{transform:translate3d(-1.4rem,-.7rem,0)}}

/* shimmer sweep across the gradient headline accent */
.cx-title__accent{background:linear-gradient(100deg,#F3BA2F 0%,#fff3c4 40%,#F3BA2F 60%,#B88A00 100%);background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:cx-shine 6s linear infinite}
@keyframes cx-shine{0%{background-position:180% 0}100%{background-position:-80% 0}}

/* live "market open" chip with animated bars */
.cx-badge{background:rgba(16,185,129,.12);color:#6ee7b7;border-color:rgba(16,185,129,.4)}
.cx-badge__dot{background:#10b981;box-shadow:0 0 12px #10b981}

/* ── TICKER TAPE ─────────────────────────────────────────────────────────── */
.cx-ticker{position:relative;z-index:1;margin-top:-2.5rem;margin-bottom:0;background:rgba(8,12,22,.92);
  border-block:1px solid rgba(243,186,47,.18);overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.cx-ticker__track{display:flex;gap:2.5rem;width:max-content;padding:.85rem 0;animation:cx-marquee 40s linear infinite}
.cx-ticker:hover .cx-ticker__track{animation-play-state:paused}
@keyframes cx-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}} /* RTL: content duplicated, slide left */
.cx-tick{display:inline-flex;align-items:baseline;gap:.5rem;font-family:'JetBrains Mono',ui-monospace,monospace;white-space:nowrap}
.cx-tick__sym{color:#fcd34d;font-weight:700;font-size:.8rem}
.cx-tick__val{color:#e5e7eb;font-weight:600;font-size:.82rem;font-variant-numeric:tabular-nums}
.cx-tick__val[data-loading]{color:#64748b}

/* ── PRICES: trading cards ───────────────────────────────────────────────── */
.cx-prices .cx-h2{text-align:center;color:#f8fafc}
.cx-prices__sub{text-align:center;color:#8fa0bd;margin:10px 0 0;font-size:.95rem}
.dark .cx-prices__sub{color:rgba(248,250,252,.6)}
.cx-prices__grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px;margin-top:34px}
.cx-coin{position:relative;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;border-radius:18px;
  background:linear-gradient(180deg,#0f1729 0%,#0b1120 100%);border:1px solid rgba(255,255,255,.07);color:#e5e7eb;
  box-shadow:0 14px 34px -24px rgba(0,0,0,.8);
  transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s,border-color .3s,opacity .3s}
/* visible by default (no-JS / observer-miss safe). Only when JS marks the grid (.cx-js) do cards
   start hidden and reveal with a staggered .cx-in — progressive enhancement, never traps content. */
.cx-js .cx-coin{opacity:0;transform:translateY(14px)}
.cx-js .cx-coin.cx-in{opacity:1;transform:none}
.cx-coin::before{content:"";position:absolute;inset:0;background:radial-gradient(120px 80px at 85% 0%,rgba(243,186,47,.14),transparent 70%);opacity:0;transition:opacity .3s}
.cx-coin:hover{transform:translateY(-6px);border-color:rgba(243,186,47,.5);box-shadow:0 26px 50px -22px rgba(243,186,47,.35)}
.cx-coin:hover::before{opacity:1}
.cx-coin:focus-visible{outline:3px solid rgba(243,186,47,.6);outline-offset:2px}
.cx-coin__top{display:flex;align-items:center;gap:12px;padding:18px 18px 12px}
.cx-coin__sym{flex:0 0 auto;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);padding:6px;box-shadow:none}
.cx-coin__name{font-weight:700;font-size:.98rem;line-height:1.2;color:#f8fafc}
.cx-coin__ticker{font-size:.72rem;color:#7c8aa5;font-family:'JetBrains Mono',ui-monospace,monospace;letter-spacing:.04em}
.cx-coin__trend{margin-inline-start:auto;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.cx-coin__spark{width:56px;height:22px;opacity:.9}
.cx-coin__spark path{stroke:#64748b;stroke-width:2;fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.cx-coin__spark.is-up path{stroke:#10b981}
.cx-coin__spark.is-down path{stroke:#f87171}
.cx-coin__chg{font-size:.68rem;font-weight:700;font-family:'JetBrains Mono',ui-monospace,monospace;direction:ltr;line-height:1}
.cx-coin__chg.is-up{color:#34d399}
.cx-coin__chg.is-down{color:#f87171}
.cx-coin__foot{margin-top:auto;padding:14px 18px 16px;border-top:1px solid rgba(255,255,255,.06);
  display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.cx-coin__price{font-weight:800;font-size:1.02rem;font-variant-numeric:tabular-nums;color:#fde9b0;line-height:1.15;direction:ltr;text-align:start}
.cx-coin__price small{display:block;font-weight:500;font-size:.66rem;color:#7c8aa5;margin-top:2px}
.cx-coin__price[data-loading]{color:transparent;position:relative;min-width:96px;border-radius:6px;
  background:linear-gradient(90deg,#1a2438 25%,#26324c 50%,#1a2438 75%);background-size:200% 100%;animation:cx-shimmer 1.3s ease-in-out infinite}
.cx-coin__price[data-loading] small{visibility:hidden}
@keyframes cx-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.cx-coin__go{flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:rgba(243,186,47,.12);border:1px solid rgba(243,186,47,.3);color:#fcd34d;transition:background .2s,transform .2s}
.cx-coin:hover .cx-coin__go{background:var(--cx-gold);color:#0b1120;transform:translateX(-3px)}
.cx-coin__go svg{width:16px;height:16px}
.cx-prices__note{max-width:640px;margin-inline:auto;margin-top:30px;color:#7c8aa5;line-height:1.9}
.cx-prices__note a{color:#fcd34d;text-decoration:none;border-bottom:1px solid rgba(252,211,77,.35)}
.cx-prices__note a:hover{color:#fde9b0}

@media (prefers-reduced-motion:reduce){
  .cx-hero__glow,.cx-orb,.cx-title__accent,.cx-ticker__track,.cx-coin__price[data-loading],
  .cx-hero__mesh,.cx-console__live i,.cx-badge__dot{animation:none!important}
  .cx-orb{opacity:.7}
  .cx-coin{opacity:1;transform:none;transition:none}
  .cx-coin:hover{transform:none}
  .cx-pick:active,.cx-quick__btn:active,.cx-coin:hover{transform:none}
}
/* keyboard focus rings on the two big tappables (mouse users unaffected) */
.cx-coin:focus-visible,.cx-console__cta:focus-visible,.cx-cta-end a:focus-visible{
  outline:3px solid rgba(243,186,47,.65);outline-offset:3px}

/* ══════════════════════════════════════════════════════════════════════════
 * HERO v2 — "میز معاملهٔ زنده" live swap console (2026-09-26)
 * Replaces the static hero card with an interactive toman→coin converter that
 * quotes real prices. All on TraPay tokens + gold accent. RTL, a11y, reduce-safe.
 * ════════════════════════════════════════════════════════════════════════ */

/* animated gradient-mesh + faint candlestick motif behind everything */
.cx-hero{padding-top:5.5rem}
.cx-hero__mesh{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background:
    radial-gradient(600px 300px at 15% 20%,rgba(243,186,47,.18),transparent 60%),
    radial-gradient(500px 260px at 85% 80%,rgba(37,99,235,.20),transparent 60%),
    radial-gradient(400px 400px at 60% 10%,rgba(16,185,129,.10),transparent 60%);
  animation:cx-mesh 16s ease-in-out infinite}
@keyframes cx-mesh{0%,100%{transform:translate3d(0,0,0)}33%{transform:translate3d(-2%,2%,0)}66%{transform:translate3d(2%,-1%,0)}}

/* hero stat row (count-up) under the copy */
.cx-stats{display:flex;flex-wrap:wrap;gap:1.5rem 2.25rem;margin-top:1.75rem}
.cx-stat{min-width:0}
.cx-stat__n{font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:800;font-size:1.5rem;line-height:1;
  color:#fde9b0;font-variant-numeric:tabular-nums}
.cx-stat__l{margin-top:.35rem;font-size:.78rem;color:rgba(248,250,252,.6)}

/* ── LIVE SWAP CONSOLE ──────────────────────────────────────────────────── */
.cx-console{position:relative;border-radius:1.5rem;padding:1.5rem;
  background:linear-gradient(180deg,rgba(20,27,45,.9),rgba(9,13,24,.92));
  border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(22px);
  box-shadow:0 40px 100px -30px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.05)}
.cx-console::after{content:"";position:absolute;inset:-1px;border-radius:1.5rem;padding:1px;pointer-events:none;
  background:linear-gradient(135deg,rgba(243,186,47,.5),transparent 40%,transparent 60%,rgba(37,99,235,.4));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.cx-console__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.1rem}
.cx-console__title{display:flex;align-items:center;gap:.55rem;font-weight:700;font-size:1rem;color:#f8fafc}
.cx-console__live{display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;color:#6ee7b7;
  font-family:'JetBrains Mono',ui-monospace,monospace}
.cx-console__live i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 10px #10b981;animation:cx-pulse 1.6s ease-in-out infinite;font-style:normal}

/* coin picker chip row (horizontal scroll on small) */
.cx-picker{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.4rem;margin-bottom:1rem;scrollbar-width:none}
.cx-picker::-webkit-scrollbar{display:none}
.cx-pick{flex:0 0 auto;display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.5rem .8rem;
  border-radius:.7rem;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  color:rgba(248,250,252,.8);font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:700;font-size:.8rem;
  cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .1s;touch-action:manipulation}
.cx-pick:hover{background:rgba(243,186,47,.1);border-color:rgba(243,186,47,.35);color:#fcd34d}
.cx-pick:active{transform:scale(.95)}
.cx-pick:focus-visible{outline:3px solid rgba(243,186,47,.65);outline-offset:2px}
.cx-pick.is-active{background:rgba(243,186,47,.18);border-color:var(--cx-gold);color:#fde9b0;box-shadow:0 0 0 3px rgba(243,186,47,.12)}
/* quick-amount chips — one-tap fill common toman values */
.cx-quick{display:flex;flex-wrap:wrap;gap:.4rem;margin:.75rem 0 0}
.cx-quick__btn{flex:1 1 auto;min-height:40px;padding:.4rem .5rem;border-radius:.6rem;cursor:pointer;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);color:rgba(248,250,252,.75);
  font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:700;font-size:.78rem;font-variant-numeric:tabular-nums;
  transition:background .16s,border-color .16s,color .16s,transform .1s;touch-action:manipulation}
.cx-quick__btn:hover{background:rgba(243,186,47,.1);border-color:rgba(243,186,47,.35);color:#fcd34d}
.cx-quick__btn:active{transform:scale(.96)}
.cx-quick__btn:focus-visible{outline:3px solid rgba(243,186,47,.65);outline-offset:2px}
.cx-quick__btn.is-active{background:rgba(243,186,47,.16);border-color:var(--cx-gold);color:#fde9b0}
.cx-pick__g{width:20px;height:20px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.08)}
.cx-pick__g img{width:100%;height:100%;display:block}

/* converter fields */
.cx-cv__field{display:block}
.cx-cv__field + .cx-cv__field{margin-top:.65rem}
.cx-cv__label{display:block;font-size:.78rem;font-weight:600;color:rgba(248,250,252,.55);margin-bottom:.45rem}
.cx-cv__box{display:flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);border-radius:.85rem;padding:.8rem 1rem;transition:border-color .2s,box-shadow .2s}
.cx-cv__box:focus-within{border-color:rgba(243,186,47,.6);box-shadow:0 0 0 3px rgba(243,186,47,.14)}
.cx-cv__box input{flex:1;min-width:0;background:transparent;border:none;outline:none;color:#f8fafc;
  font-family:'JetBrains Mono',ui-monospace,monospace;font-weight:700;font-size:1.35rem;direction:ltr;text-align:end;font-variant-numeric:tabular-nums}
.cx-cv__unit{flex-shrink:0;font-size:.85rem;font-weight:600;color:rgba(248,250,252,.55)}
.cx-cv__field--out .cx-cv__box{border-color:rgba(243,186,47,.3);background:linear-gradient(180deg,rgba(243,186,47,.07),rgba(255,255,255,.04))}
.cx-cv__field--out .cx-cv__unit{color:var(--cx-gold)}
.cx-cv__swap{display:flex;justify-content:center;margin:.35rem 0 -.25rem}
.cx-cv__swap span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:rgba(248,250,252,.5);font-size:.9rem}
.cx-console__rate{margin:.9rem 0 1rem;font-size:.78rem;color:rgba(248,250,252,.55);text-align:center;font-family:'JetBrains Mono',ui-monospace,monospace}
.cx-console__rate strong{color:#fde9b0;font-weight:700}
.cx-console__cta{display:flex;align-items:center;justify-content:center;gap:.6rem;padding:1rem;border-radius:.9rem;
  background:linear-gradient(120deg,var(--cx-gold),#B88A00);color:#0b1120;font-weight:800;font-size:.95rem;text-decoration:none;
  box-shadow:0 14px 34px -10px rgba(243,186,47,.55);transition:transform .2s,box-shadow .2s}
.cx-console__cta:hover{transform:translateY(-2px);box-shadow:0 22px 44px -10px rgba(243,186,47,.65)}
.cx-console__cta:active{transform:translateY(0) scale(.99)}
.cx-console__cta svg{width:18px;height:18px}

@media (prefers-reduced-motion:reduce){
  .cx-hero__mesh,.cx-console__live i{animation:none!important}
}

/* ── per-coin landing links under the price grid ──────────────────────────── */
.cx-coinpages{max-width:1180px;margin:26px auto 0;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;padding:0 4px}
.cx-coinpages__lbl{font-size:.85rem;font-weight:700;color:#8fa0bd;margin-inline-end:.3rem}
.cx-coinpages__link{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border-radius:.7rem;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#dbe2ee;font-size:.82rem;font-weight:600;
  text-decoration:none;transition:background .16s,border-color .16s,transform .12s}
.cx-coinpages__link img{width:18px;height:18px}
.cx-coinpages__link:hover{background:rgba(243,186,47,.12);border-color:rgba(243,186,47,.4);color:#fde9b0;transform:translateY(-2px)}
.cx-coinpages__link:focus-visible{outline:3px solid rgba(243,186,47,.6);outline-offset:2px}

/* ── related guides block (pillar → spokes) ──────────────────────────────── */
.cx-related{max-width:1180px;margin:0 auto;padding:1rem 1.5rem 4rem}
.cx-related__title{font-family:'Estedad','Vazirmatn',sans-serif;font-weight:800;font-size:1.35rem;color:#0f172a;margin:0 0 1.1rem}
.dark .cx-related__title{color:#e8eefb}
.cx-related__grid{display:grid;grid-template-columns:1fr;gap:.7rem}
@media (min-width:640px){.cx-related__grid{grid-template-columns:1fr 1fr}}
@media (min-width:980px){.cx-related__grid{grid-template-columns:1fr 1fr 1fr}}
.cx-related__grid a{display:flex;align-items:center;gap:.55rem;padding:.85rem 1rem;border-radius:.8rem;
  background:#f6f8fc;border:1px solid #e6ebf3;color:#0d3e7e;font-size:.92rem;font-weight:600;
  text-decoration:none;transition:background .16s,border-color .16s,transform .12s}
.cx-related__grid a::before{content:"›";color:var(--cx-gold);font-weight:800;font-size:1.1rem;line-height:1}
.cx-related__grid a:hover{background:#eef3fb;border-color:rgba(243,186,47,.5);transform:translateY(-2px)}
.dark .cx-related__grid a{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1);color:#dbe2ee}
.dark .cx-related__grid a:hover{background:rgba(243,186,47,.1);border-color:rgba(243,186,47,.4);color:#fde9b0}
