/* ============================================================================
 * TraPay — /western-union-services custom layout
 * Sibling of buy-utopia.css / pay-webmoney.css. Western Union brand: gold/yellow
 * (#f5b800) on a deep navy hero. Scoped wu- classes only.
 * Two flows: SEND (westernunion:send) + RECEIVE/cash-out (westernunion:sell).
 * ============================================================================ */

:root {
    --wu-gold: #f5b800;
    --wu-gold-2: #ffce2e;
    --wu-ink-gold: #7a5c00;   /* readable text on a gold fill */
    --wu-green: #1e9e5a;      /* the RECEIVE side accent */
    --wu-green-2: #2ec06f;
    --wu-bg-1: #14213a;
    --wu-bg-2: #0f172a;
}

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

.wu-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) { .wu-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }

/* minmax(0,1fr) TRACK + min-width:0 ITEM: a long LTR token (Western Union) sets
   the item's min-content; a bare 1fr track grows to it → column widens past the
   viewport and shifts left in RTL. */
.wu-hero__inner > * { min-width: 0; }
.wu-hero__copy { max-width: 36rem; min-width: 0; }
.wu-title, .wu-lead { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.wu-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(245, 184, 0, 0.16);
    color: #ffd968;
    border: 1px solid rgba(245, 184, 0, 0.4);
    border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600;
}
.wu-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wu-gold-2); box-shadow: 0 0 12px var(--wu-gold-2); animation: wu-pulse 2s ease-in-out infinite; }
@keyframes wu-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

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

/* ORDER CTA CARD (hero side — mark + note + button, NO price: WU is a variable
   transfer amount, so a single headline number would mislead). */
.wu-order {
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
    text-align: center;
}
.wu-order__mark {
    width: 100%; margin: 0 auto 1.25rem;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    padding: 0.25rem 0;
}
.wu-order__mark img { height: 112px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 600px) { .wu-order__mark img { height: 88px; } }
.wu-order__note { margin-bottom: 1.5rem; }
.wu-order__note-label { display: block; font-size: 0.8125rem; color: var(--wu-gold-2); font-weight: 600; margin-bottom: 0.5rem; }
.wu-order__note strong { font-size: 0.95rem; font-weight: 600; color: #f8fafc; line-height: 1.7; }
.wu-order__cta {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: 100%; padding: 1.05rem 1.5rem;
    background: linear-gradient(120deg, var(--wu-gold) 0%, var(--wu-gold-2) 100%);
    color: var(--wu-ink-gold); border-radius: 0.875rem;
    font-weight: 800; font-size: 1rem; text-decoration: none;
    box-shadow: 0 14px 34px -8px rgba(245,184,0,0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wu-order__cta:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -8px rgba(245,184,0,0.75); }
.wu-order__cta svg { width: 18px; height: 18px; }
.wu-order__hint { display: block; margin-top: 1rem; font-size: 0.8rem; color: rgba(248,250,252,0.5); }

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

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

/* SEND vs RECEIVE — two compare cards */
.wu-kinds { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.wu-kinds__sub { color: var(--muted, #6b7280); margin: -1rem 0 2rem; font-size: 0.9375rem; }
.wu-kinds__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 800px) { .wu-kinds__grid { grid-template-columns: repeat(2, 1fr); } }
.wu-kind { background: white; border: 1px solid #e2e8f0; border-radius: 1.25rem; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.dark .wu-kind { background: #1f2937; border-color: #374151; }
.wu-kind:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -16px rgba(0,0,0,0.15); }
.wu-kind--send { border-color: var(--wu-gold); box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.1); }
.wu-kind__head { display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.dark .wu-kind__head { border-color: #374151; }
.wu-kind--send .wu-kind__head { background: color-mix(in srgb, var(--wu-gold) 12%, white); border-bottom-color: color-mix(in srgb, var(--wu-gold) 22%, transparent); }
.dark .wu-kind--send .wu-kind__head { background: color-mix(in srgb, var(--wu-gold) 20%, #1f2937); }
.wu-kind--receive .wu-kind__head { background: color-mix(in srgb, var(--wu-green) 8%, white); border-bottom-color: color-mix(in srgb, var(--wu-green) 15%, transparent); }
.dark .wu-kind--receive .wu-kind__head { background: color-mix(in srgb, var(--wu-green) 16%, #1f2937); }
.wu-kind__icon { width: 40px; height: 40px; color: white; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; }
.wu-kind--send .wu-kind__icon { background: var(--wu-gold); color: var(--wu-ink-gold); box-shadow: 0 6px 16px -6px rgba(245,184,0,0.6); }
.wu-kind--receive .wu-kind__icon { background: var(--wu-green); box-shadow: 0 6px 16px -6px rgba(30,158,90,0.6); }
.wu-kind__icon svg { width: 22px; height: 22px; }
.wu-kind__head strong { font-size: 1rem; font-weight: 800; color: var(--ink, #111827); }
.dark .wu-kind__head strong { color: #f8fafc; }
.wu-kind__head small { display: block; font-size: 0.8125rem; color: var(--muted, #6b7280); margin-top: 2px; }
.wu-kind__star { font-size: 0.75rem; font-weight: 700; color: var(--wu-ink-gold); background: var(--wu-gold); padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.wu-kind__body { padding: 1.25rem 1.5rem; }
.wu-kind__body ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.wu-kind__body li { position: relative; padding-inline-start: 1.6rem; font-size: 0.9375rem; line-height: 1.8; color: var(--ink, #111827); }
.dark .wu-kind__body li { color: #e5e7eb; }
.wu-kind--send .wu-kind__body li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: #b98a00; font-weight: 800; }
.wu-kind--receive .wu-kind__body li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--wu-green); font-weight: 800; }
.wu-kind__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.85rem 1.25rem; border-radius: 0.75rem;
    font-weight: 800; font-size: 0.9375rem; text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.wu-kind--send .wu-kind__cta { background: linear-gradient(120deg, var(--wu-gold) 0%, var(--wu-gold-2) 100%); color: var(--wu-ink-gold); box-shadow: 0 10px 26px -10px rgba(245,184,0,0.6); }
.wu-kind--receive .wu-kind__cta { background: linear-gradient(120deg, var(--wu-green) 0%, var(--wu-green-2) 100%); color: white; box-shadow: 0 10px 26px -10px rgba(30,158,90,0.6); }
.wu-kind__cta:hover { transform: translateY(-2px); }
.wu-kind--send .wu-kind__cta:hover { box-shadow: 0 16px 32px -10px rgba(245,184,0,0.7); }
.wu-kind--receive .wu-kind__cta:hover { box-shadow: 0 16px 32px -10px rgba(30,158,90,0.7); }
.wu-kind__cta svg { width: 16px; height: 16px; }
.wu-kind__price { display: block; margin-bottom: 1rem; font-size: 0.8125rem; color: var(--muted, #6b7280); }
.wu-kind__price strong { color: var(--ink, #111827); font-weight: 800; font-size: 1.05rem; }
.dark .wu-kind__price strong { color: #f8fafc; }

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

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

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

/* RELATED */
.wu-related { max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.wu-related__grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 700px) { .wu-related__grid { grid-template-columns: repeat(2, 1fr); } }
.wu-related__grid a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 1rem 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.875rem;
    background: white; color: var(--ink, #111827); text-decoration: none; font-weight: 600;
    font-size: 0.95rem; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dark .wu-related__grid a { background: #1f2937; border-color: #374151; color: #f8fafc; }
.wu-related__grid a::before { content: "←"; color: #b98a00; font-weight: 800; }
.wu-related__grid a:hover { border-color: var(--wu-gold); transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(245,184,0,0.4); }

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

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