/* ============================================================================
 * TraPay — /حواله-ریا-مانی custom landing
 * Sibling of buy-tether.css. Ria orange (#FF6100) + brand-blue palette.
 * ============================================================================ */

:root {
    --ria-orange: #FF6100;
    --ria-orange-2: #e2571a;
    --ria-bg-1: #1a0f06;
    --ria-bg-2: #0f172a;
}

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

.ria-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) { .ria-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }
.ria-hero__inner > * { min-width: 0; }
.ria-hero__copy { max-width: 36rem; min-width: 0; }
.ria-title, .ria-lead { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.ria-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 97, 0, 0.14);
    color: #ffb27a;
    border: 1px solid rgba(255, 97, 0, 0.35);
    border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600;
}
.ria-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ria-orange); box-shadow: 0 0 12px var(--ria-orange); animation: ria-pulse 2s ease-in-out infinite; }
@keyframes ria-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

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

/* ORDER CARD (send-money summary, not a live calculator) */
.ria-card {
    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);
}
.ria-card__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; }
.ria-card__mark {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    box-shadow: 0 8px 24px -8px rgba(255,97,0,0.6);
}
.ria-card__mark img { width: 100%; height: 100%; object-fit: contain; }
.ria-card__title { font-size: 1.0625rem; font-weight: 700; color: #f8fafc; }
.ria-card__sub { font-size: 0.8125rem; color: rgba(248,250,252,0.55); margin-top: 2px; }

.ria-card__rows { display: grid; gap: 0.85rem; margin-bottom: 1.5rem; }
.ria-card__row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; color: rgba(248,250,252,0.85); }
.ria-card__row svg { width: 20px; height: 20px; color: var(--ria-orange); flex-shrink: 0; }

.ria-card__cta {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    margin-top: 0.5rem; padding: 1rem 1.5rem;
    background: linear-gradient(120deg, var(--ria-orange) 0%, #ff8a3d 100%);
    color: white; border-radius: 0.875rem;
    font-weight: 700; font-size: 0.98rem; text-decoration: none;
    box-shadow: 0 12px 32px -8px rgba(255,97,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ria-card__cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -8px rgba(255,97,0,0.6); }
.ria-card__cta svg { width: 18px; height: 18px; }
.ria-card__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; }
.ria-card__meta strong { color: #f8fafc; font-weight: 600; }

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

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

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

/* CURRENCIES grid */
.ria-cur { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.ria-cur__sub { color: var(--muted, #6b7280); margin: -1rem 0 2rem; font-size: 0.9375rem; }
.ria-cur__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .ria-cur__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ria-cur__grid { grid-template-columns: repeat(6, 1fr); } }
.ria-cur__item {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    padding: 1.5rem 1rem; background: white; border: 1px solid #e2e8f0;
    border-radius: 1rem; text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dark .ria-cur__item { background: #1f2937; border-color: #374151; }
.ria-cur__item:hover { transform: translateY(-3px); border-color: var(--ria-orange); box-shadow: 0 12px 30px -14px rgba(255,97,0,0.3); }
.ria-cur__flag { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.2); }
.ria-cur__code { font-weight: 800; font-size: 0.95rem; color: var(--ink, #111827); font-family: 'Estedad','Vazirmatn',sans-serif; }
.dark .ria-cur__code { color: #f8fafc; }
.ria-cur__name { font-size: 0.8125rem; color: var(--muted, #6b7280); }

/* COMPARISON table (Ria vs WU) */
.ria-vs { max-width: 60rem; margin: 0 auto; padding: 5rem 1.5rem; }
.ria-vs__wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 1.25rem; }
.dark .ria-vs__wrap { border-color: #374151; }
.ria-vs table { width: 100%; border-collapse: collapse; min-width: 480px; }
.ria-vs th, .ria-vs td { padding: 1rem 1.25rem; text-align: start; font-size: 0.9375rem; border-bottom: 1px solid #e2e8f0; }
.dark .ria-vs th, .dark .ria-vs td { border-color: #374151; }
.ria-vs thead th { background: var(--brand-50, #eef4fc); font-weight: 800; color: var(--ink, #111827); font-family: 'Estedad','Vazirmatn',sans-serif; }
.dark .ria-vs thead th { background: #0b1220; color: #f8fafc; }
.ria-vs thead th.ria-vs__pick { background: color-mix(in srgb, var(--ria-orange) 12%, white); color: var(--ria-orange); }
.dark .ria-vs thead th.ria-vs__pick { background: color-mix(in srgb, var(--ria-orange) 20%, #1f2937); }
.ria-vs tbody td:first-child { font-weight: 700; color: var(--muted, #6b7280); }
.ria-vs tbody td { color: var(--ink, #111827); }
.dark .ria-vs tbody td { color: #e5e7eb; }
.ria-vs td.ria-vs__pick { font-weight: 700; color: var(--ria-orange); }
.ria-vs tbody tr:last-child td { border-bottom: none; }

/* DELIVERY methods */
.ria-deliver { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; background: var(--brand-50, #eef4fc); }
.dark .ria-deliver { background: #0b1220; }
.ria-deliver__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .ria-deliver__grid { grid-template-columns: repeat(3, 1fr); } }
.ria-deliver__card { padding: 1.75rem; background: white; border: 1px solid #e2e8f0; border-radius: 1.25rem; }
.dark .ria-deliver__card { background: #1f2937; border-color: #374151; }
.ria-deliver__icon { width: 44px; height: 44px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ria-orange) 12%, white); color: var(--ria-orange); margin-bottom: 1rem; }
.ria-deliver__icon svg { width: 22px; height: 22px; }
.ria-deliver__card h3 { margin: 0 0 0.5rem; font-weight: 700; font-size: 1rem; color: var(--ink, #111827); }
.dark .ria-deliver__card h3 { color: #f8fafc; }
.ria-deliver__card p { margin: 0; font-size: 0.9rem; line-height: 1.8; color: var(--muted, #6b7280); }

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

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

/* RELATED spokes */
.ria-related { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.ria-related__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .ria-related__grid { grid-template-columns: repeat(2, 1fr); } }
.ria-related__card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: white; border: 1px solid #e2e8f0; border-radius: 1rem; text-decoration: none; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.dark .ria-related__card { background: #1f2937; border-color: #374151; }
.ria-related__card:hover { transform: translateY(-3px); border-color: var(--ria-orange); box-shadow: 0 12px 30px -14px rgba(255,97,0,0.3); }
.ria-related__card span { font-weight: 700; font-size: 0.95rem; color: var(--ink, #111827); }
.dark .ria-related__card span { color: #f8fafc; }
.ria-related__card svg { width: 18px; height: 18px; color: var(--ria-orange); flex-shrink: 0; }

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

.tnum { font-variant-numeric: tabular-nums; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

@media (max-width: 820px) {
    .ria-hero { padding: 4rem 1.25rem 5rem; }
    .ria-why, .ria-flow, .ria-cur, .ria-vs, .ria-deliver { padding: 3.5rem 1.25rem; }
}
