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

:root {
    --usdt-green: #10b981;
    --usdt-bg-1: #0a1f1c;
    --usdt-bg-2: #0f172a;
}

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

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

.usdt-hero__copy { max-width: 36rem; }
.usdt-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600;
}
.usdt-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--usdt-green); box-shadow: 0 0 12px var(--usdt-green); animation: usdt-pulse 2s ease-in-out infinite; }
@keyframes usdt-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.usdt-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;
}
.usdt-title__accent {
    background: linear-gradient(120deg, var(--usdt-green) 0%, #06b6d4 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.usdt-lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.95; color: rgba(248, 250, 252, 0.75); max-width: 32rem; }

/* CALCULATOR */
.usdt-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);
}
.usdt-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; }
.usdt-calc__mark {
    width: 48px; height: 48px;
    background: var(--usdt-green);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px -8px rgba(16,185,129,0.6);
    color: white; font-size: 1.5rem; font-weight: 800;
}
.usdt-calc__title { font-size: 1.0625rem; font-weight: 700; color: #f8fafc; }
.usdt-calc__sub { font-size: 0.8125rem; color: rgba(248,250,252,0.55); margin-top: 2px; }

.usdt-calc__field { display: block; margin-bottom: 0; }
.usdt-calc__field + .usdt-calc__field { margin-top: 0.5rem; }
.usdt-calc__label { display: block; font-size: 0.8125rem; font-weight: 600; color: rgba(248,250,252,0.55); margin-bottom: 0.5rem; }
.usdt-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;
}
.usdt-calc__input:focus-within { border-color: rgba(16,185,129,0.5); background: rgba(255,255,255,0.08); }
.usdt-calc__input input, .usdt-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;
}
.usdt-calc__unit { flex-shrink: 0; font-size: 0.875rem; font-weight: 600; color: rgba(248,250,252,0.55); }
.usdt-calc__unit--brand { color: var(--usdt-green); }

.usdt-calc__swap {
    display: flex; align-items: center; justify-content: center;
    margin: 0.75rem auto; width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--usdt-green) 0%, #06b6d4 100%);
    border-radius: 50%; box-shadow: 0 4px 12px rgba(16,185,129,0.5); color: white;
}
.usdt-calc__swap svg { width: 16px; height: 16px; }

.usdt-calc__field--out .usdt-calc__input { border-color: rgba(16,185,129,0.3); }

.usdt-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(--usdt-green) 0%, #06b6d4 100%);
    color: white; border-radius: 0.875rem;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 12px 32px -8px rgba(16,185,129,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.usdt-calc__cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -8px rgba(16,185,129,0.6); }
.usdt-calc__cta svg { width: 18px; height: 18px; }

.usdt-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; }
.usdt-calc__meta strong { color: #f8fafc; font-weight: 600; }

/* SHARED H2 */
.usdt-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 .usdt-h2 { color: #f8fafc; }

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

/* FLOW (4 steps) */
.usdt-flow { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; background: var(--brand-50, #eef4fc); border-radius: 0; }
.dark .usdt-flow { background: #0b1220; }
.usdt-flow__steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .usdt-flow__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .usdt-flow__steps { grid-template-columns: repeat(4, 1fr); } }
.usdt-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 .usdt-flow__steps li { background: #1f2937; border-color: #374151; }
.usdt-flow__steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(16,185,129,0.25); border-color: var(--usdt-green); }
.usdt-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(--usdt-green); 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(16,185,129,0.45);
}
.usdt-flow__steps li h3 { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.0625rem; color: var(--ink, #111827); }
.dark .usdt-flow__steps li h3 { color: #f8fafc; }
.usdt-flow__steps li p { margin: 0; font-size: 0.9375rem; line-height: 1.75; color: var(--muted, #6b7280); }

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

/* FAQ */
.usdt-faq { max-width: 60rem; margin: 0 auto; padding: 4rem 1.5rem; }
.usdt-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 .usdt-faq details { background: #1f2937; border-color: #374151; }
.usdt-faq details[open] { border-color: var(--usdt-green); background: color-mix(in srgb, var(--usdt-green) 3%, white); }
.dark .usdt-faq details[open] { background: color-mix(in srgb, var(--usdt-green) 12%, #1f2937); }
.usdt-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 .usdt-faq summary { color: #f8fafc; }
.usdt-faq summary::-webkit-details-marker { display: none; }
.usdt-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(--usdt-green) 12%, white); color: var(--usdt-green); border-radius: 50%; transition: transform 0.25s, background 0.25s; }
.usdt-faq details[open] .usdt-faq__chev { transform: rotate(45deg); background: var(--usdt-green); color: white; }
.usdt-faq p { margin: 1rem 0 0; color: var(--muted, #6b7280); line-height: 2; font-size: 0.9375rem; }
.usdt-faq p a { color: var(--brand, #0d3e7e); font-weight: 600; text-decoration: none; }
.usdt-faq p a:hover { text-decoration: underline; }

/* ARTICLE (SEO long-form) */
.usdt-article { max-width: 60rem; margin: 0 auto; padding: 4rem 1.5rem; }
.usdt-article__inner h2.usdt-h2 { margin-bottom: 1.5rem; }
.usdt-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 .usdt-article__inner h3 { color: #f8fafc; }
.usdt-article__inner p { margin: 0 0 1rem; font-size: 1rem; line-height: 2; color: var(--ink, #111827); }
.dark .usdt-article__inner p { color: #e5e7eb; }
.usdt-article__inner ul { margin: 0 0 1.5rem; padding-inline-start: 1.5rem; list-style: disc; }
.usdt-article__inner li { margin: 0.5rem 0; font-size: 1rem; line-height: 1.95; color: var(--ink, #111827); }
.dark .usdt-article__inner li { color: #e5e7eb; }
.usdt-article__inner li strong { color: var(--usdt-green); }
.dark .usdt-article__inner li strong { color: #6ee7b7; }
.usdt-article__inner a { color: var(--brand, #0d3e7e); font-weight: 600; text-decoration: none; }
.usdt-article__inner a:hover { text-decoration: underline; }

/* FINAL CTA */
.usdt-cta-end { padding: 4rem 1.5rem 6rem; }
.usdt-cta-end__inner {
    max-width: 60rem; margin: 0 auto;
    background: linear-gradient(135deg, var(--usdt-green) 0%, #047857 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(16,185,129,0.45);
}
@media (min-width: 700px) { .usdt-cta-end__inner { grid-template-columns: auto 1fr auto; padding: 2rem 3rem; gap: 2rem; } }
.usdt-cta-end__coin {
    width: 64px; height: 64px;
    background: white; color: var(--usdt-green);
    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);
}
.usdt-cta-end__inner h2 { margin: 0; font-family: 'Estedad','Vazirmatn',sans-serif; font-weight: 800; font-size: 1.5rem; }
.usdt-cta-end__inner p { margin: 0.35rem 0 0; color: rgba(255,255,255,0.85); font-size: 0.9375rem; }
.usdt-cta-end__inner a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; color: var(--usdt-green);
    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;
}
.usdt-cta-end__inner a:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(0,0,0,0.3); }
.usdt-cta-end__inner a svg { width: 16px; height: 16px; }

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