/* ============================================================================
 * TraPay — /خرید-ووچر-psvoucher custom layout
 * PremiumMoney PSVoucher. Navy + gold palette (PremiumMoney brand).
 * Digital-dollar voucher, the Perfect Money replacement, auto-minted.
 * ============================================================================ */

:root {
    --psv-navy: #1e2a4a;
    --psv-navy-2: #2b3d68;
    --psv-gold: #f5b301;
    --psv-gold-2: #ffcf3f;
    --psv-bg-1: #0d1631;
    --psv-bg-2: #0f172a;
}

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

.psv-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) { .psv-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }
.psv-hero__inner > * { min-width: 0; }
.psv-hero__copy { max-width: 36rem; min-width: 0; }
.psv-title, .psv-lead { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.psv-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem; background: rgba(245, 179, 1, 0.14); color: #ffdb7a; border: 1px solid rgba(245, 179, 1, 0.4); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.psv-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--psv-gold); box-shadow: 0 0 12px var(--psv-gold); animation: psv-pulse 2s ease-in-out infinite; }
@keyframes psv-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.psv-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; }
.psv-title__accent { background: linear-gradient(120deg, var(--psv-gold-2) 0%, var(--psv-gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.psv-lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.95; color: rgba(248, 250, 252, 0.75); max-width: 32rem; }

.psv-hero__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(--psv-gold) 0%, var(--psv-gold-2) 100%); color: #1e2a4a; border-radius: 0.875rem; font-weight: 800; font-size: 0.95rem; text-decoration: none; box-shadow: 0 12px 32px -8px rgba(245,179,1,0.55); transition: transform 0.2s, box-shadow 0.2s; }
.psv-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -8px rgba(245,179,1,0.7); }
.psv-hero__cta svg { width: 18px; height: 18px; }

/* HERO BRAND CARD (real PremiumMoney logo) */
.psv-brand { position: relative; max-width: 24rem; margin-inline: auto; background: rgba(255,255,255,0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: 1.75rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); padding: 2.5rem 2rem; text-align: center; }
.psv-brand__logo { background: transparent; padding: 0.25rem 0; display: inline-flex; }
.psv-brand__logo img { height: 68px; width: auto; display: block; }
.psv-brand__tag { margin: 1.25rem 0 0; font-size: 0.95rem; color: rgba(248,250,252,0.72); line-height: 1.8; }
.psv-brand__chip { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 700; color: #ffdb7a; background: rgba(245,179,1,0.12); border: 1px solid rgba(245,179,1,0.3); border-radius: 999px; padding: 0.35rem 0.85rem; }

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

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

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

/* USES */
.psv-uses { max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem; }
.psv-uses__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .psv-uses__grid { grid-template-columns: repeat(2, 1fr); } }
.psv-use { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; background: white; border: 1px solid #e2e8f0; border-radius: 1rem; }
.dark .psv-use { background: #1f2937; border-color: #374151; }
.psv-use__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--psv-gold) 16%, white); color: #b45309; }
.psv-use__ic svg { width: 22px; height: 22px; }
.psv-use h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; color: var(--ink, #111827); }
.dark .psv-use h3 { color: #f8fafc; }
.psv-use p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--muted, #6b7280); }

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

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

/* RELATED */
.psv-related { max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.psv-related__grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 700px) { .psv-related__grid { grid-template-columns: repeat(2, 1fr); } }
.psv-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 .psv-related__grid a { background: #1f2937; border-color: #374151; color: #f8fafc; }
.psv-related__grid a::before { content: "←"; color: #b45309; font-weight: 800; }
.psv-related__grid a:hover { border-color: var(--psv-gold); transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(245,179,1,0.4); }

/* FINAL CTA */
.psv-cta-end { padding: 4rem 1.5rem 6rem; }
.psv-cta-end__inner { max-width: 60rem; margin: 0 auto; background: linear-gradient(135deg, var(--psv-navy) 0%, var(--psv-navy-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(30,42,74,0.6); }
@media (min-width: 700px) { .psv-cta-end__inner { grid-template-columns: auto 1fr auto; padding: 2rem 3rem; gap: 2rem; } }
.psv-cta-end__ic { background: white; border-radius: 1rem; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,0.3); }
.psv-cta-end__ic img { height: 34px; width: auto; }
.psv-cta-end__inner h2 { margin: 0; font-family: 'Estedad','Vazirmatn',sans-serif; font-weight: 800; font-size: 1.5rem; }
.psv-cta-end__inner p { margin: 0.35rem 0 0; color: rgba(255,255,255,0.85); font-size: 0.9375rem; }
.psv-cta-end__inner > a { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--psv-gold); color: #1e2a4a; padding: 0.85rem 1.5rem; border-radius: 0.875rem; font-weight: 800; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s; }
.psv-cta-end__inner > a:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(245,179,1,0.5); }
.psv-cta-end__inner > a svg { width: 16px; height: 16px; }

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