/* ============================================================================
 * TraPay — /خرید-شماره-مجازی custom layout
 * Communication / connectivity aesthetic. Teal/cyan palette + phone mockup.
 * ============================================================================ */

:root {
    --vs-teal: #0d9488;
    --vs-teal-dark: #0f766e;
    --vs-teal-50: #f0fdfa;
    --vs-teal-100: #ccfbf1;
    --vs-cyan: #06b6d4;
    --vs-ink: #0a1f2f;
    --vs-cool: #f8fafc;
    --vs-cool-dark: #e2e8f0;
}

/* HERO */
.vs-hero {
    background: linear-gradient(135deg, #0a1f2f 0%, #0f766e 100%);
    color: white;
    padding: 5rem 1.5rem 6rem;
    overflow: hidden;
    position: relative;
}
.vs-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: auto, auto, 32px 32px;
    pointer-events: none;
}
.vs-hero__inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 900px) {
    .vs-hero__inner { grid-template-columns: 1.2fr 0.8fr; }
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(6, 182, 212, 0.45);
    color: #67e8f9;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.vs-badge svg { width: 14px; height: 14px; }

.vs-title {
    margin: 1.5rem 0 0;
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
    line-height: 1.25;
    color: white;
    letter-spacing: -0.01em;
}
.vs-title__sm {
    display: block;
    font-size: 0.65em;
    color: #67e8f9;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.vs-lead {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.95;
    color: rgba(255,255,255,0.85);
    max-width: 34rem;
}

.vs-features {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.vs-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
}
.vs-features__icon {
    width: 24px; height: 24px;
    background: rgba(6, 182, 212, 0.25);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem;
    flex-shrink: 0;
}

.vs-hero__ctas {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.vs-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vs-cta svg { width: 16px; height: 16px; }
.vs-cta--primary {
    background: linear-gradient(120deg, var(--vs-teal) 0%, var(--vs-cyan) 100%);
    color: white;
    box-shadow: 0 12px 28px -8px rgba(6, 182, 212, 0.55);
}
.vs-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(6, 182, 212, 0.7);
}
.vs-cta--ghost {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.vs-cta--ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }
.vs-cta--big { padding: 1.15rem 2.5rem; font-size: 1.0625rem; }

/* Phone mockup */
.vs-hero__visual {
    display: flex;
    justify-content: center;
    perspective: 1500px;
}
.vs-phone {
    width: 100%;
    max-width: 17rem;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border-radius: 2.5rem;
    padding: 0.45rem;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255,255,255,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    transform: rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.vs-phone:hover { transform: rotateY(0) rotateX(0); }

.vs-phone__notch {
    position: absolute;
    top: 0.8rem; left: 50%;
    transform: translateX(-50%);
    width: 5rem; height: 1.1rem;
    background: #0f172a;
    border-radius: 999px;
    z-index: 2;
}

.vs-phone__screen {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 2.1rem;
    padding: 2.5rem 1rem 1.5rem;
    min-height: 26rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--vs-ink);
}

.vs-phone__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--vs-ink);
}
.vs-phone__signal svg { width: 14px; height: 12px; }

.vs-phone__app {
    background: white;
    border-radius: 1rem;
    padding: 0.9rem;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
}
.vs-phone__app-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.vs-phone__app-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
}
.vs-phone__app-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    line-height: 1.3;
}
.vs-phone__app-meta strong { font-size: 0.85rem; color: var(--vs-ink); }
.vs-phone__app-meta small { font-size: 0.7rem; color: #6b7280; }
.vs-phone__app-time {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
}
.vs-phone__app-body strong { font-size: 0.85rem; color: var(--vs-ink); display: block; margin-bottom: 0.5rem; }
.vs-phone__app-body small { font-size: 0.7rem; color: #6b7280; display: block; margin-top: 0.5rem; }
.vs-phone__code {
    background: linear-gradient(135deg, var(--vs-teal) 0%, var(--vs-cyan) 100%);
    color: white;
    padding: 0.65rem;
    border-radius: 0.6rem;
    text-align: center;
    font-family: 'Estedad','Vazirmatn',monospace;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 12px -2px rgba(6, 182, 212, 0.4);
}

.vs-phone__num {
    background: rgba(0,0,0,0.04);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}
.vs-phone__flag { font-size: 1.15rem; }
.vs-phone__digits {
    font-family: 'Estedad','Vazirmatn',monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vs-ink);
    font-variant-numeric: tabular-nums;
}

/* SHARED H2 */
.vs-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(--vs-ink);
    margin: 0 0 1.5rem;
}
.vs-h2--center { text-align: center; margin-bottom: 2rem; }

/* GRID — countries + services */
.vs-grid { padding: 5rem 1.5rem; background: white; }
.vs-grid__inner { max-width: 64rem; margin: 0 auto; }

.vs-flags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.vs-flags span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: var(--vs-teal-50);
    border: 1px solid var(--vs-teal-100);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vs-ink);
}
.vs-flags .flag { font-size: 1.2rem; }

.vs-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
}
.vs-svc {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.vs-svc:hover {
    transform: translateY(-3px);
    border-color: var(--vs-teal);
    box-shadow: 0 12px 24px -8px rgba(13, 148, 136, 0.2);
}
.vs-svc__ic {
    width: 48px; height: 48px;
    border-radius: 50%;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 auto 0.75rem;
}
.vs-svc strong {
    display: block;
    font-size: 0.95rem;
    color: var(--vs-ink);
    font-weight: 700;
}
.vs-svc span {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.vs-services__note {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* HOW */
.vs-how { padding: 5rem 1.5rem; background: var(--vs-cool); }
.vs-how__inner { max-width: 64rem; margin: 0 auto; }

.vs-how__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
}
.vs-step {
    background: white;
    border: 1px solid var(--vs-cool-dark);
    border-radius: 1rem;
    padding: 1.75rem;
    position: relative;
}
.vs-step__num {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--vs-teal) 0%, var(--vs-cyan) 100%);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    font-family: 'Estedad','Vazirmatn',sans-serif;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px -6px rgba(6, 182, 212, 0.45);
}
.vs-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vs-ink);
    margin: 0 0 0.5rem;
}
.vs-step p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

/* PRICE */
.vs-price { padding: 5rem 1.5rem; background: white; }
.vs-price__inner { max-width: 64rem; margin: 0 auto; text-align: center; }
.vs-price__lead {
    color: #6b7280;
    font-size: 1rem;
    margin: -0.75rem 0 2.5rem;
}

.vs-price__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    text-align: right;
    margin-bottom: 2.5rem;
}
.vs-price__card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
}
.vs-price__card--featured {
    border: 2px solid var(--vs-teal);
    box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.25);
}
.vs-price__badge {
    position: absolute;
    top: -0.65rem; right: 1rem;
    background: linear-gradient(120deg, var(--vs-teal) 0%, var(--vs-cyan) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.vs-price__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e5e7eb;
}
.vs-price__head .flag { font-size: 1.4rem; }
.vs-price__head strong {
    font-size: 1.05rem;
    color: var(--vs-ink);
    font-weight: 700;
}
.vs-price__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vs-price__card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}
.vs-price__card li span {
    font-weight: 700;
    color: var(--vs-ink);
    font-variant-numeric: tabular-nums;
}

.vs-price__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(120deg, var(--vs-teal) 0%, var(--vs-cyan) 100%);
    color: white;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 12px 28px -8px rgba(6, 182, 212, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.vs-price__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(6, 182, 212, 0.65);
}

/* TRUST */
.vs-trust { padding: 4rem 1.5rem; background: var(--vs-teal-50); }
.vs-trust__inner {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.vs-trust__stat strong {
    display: block;
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
    font-weight: 800;
    color: var(--vs-teal);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.25rem;
}
.vs-trust__stat span {
    font-size: 0.875rem;
    color: var(--vs-ink);
    font-weight: 600;
}

/* FAQ */
.vs-faq { padding: 5rem 1.5rem; background: white; }
.vs-faq__inner { max-width: 48rem; margin: 0 auto; }
.vs-faq__item {
    background: var(--vs-cool);
    border: 1px solid var(--vs-cool-dark);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
}
.vs-faq__item:hover { border-color: var(--vs-teal-100); }
.vs-faq__item[open] {
    background: var(--vs-teal-50);
    border-color: var(--vs-teal-100);
}
.vs-faq__item summary {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vs-ink);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 2rem;
}
.vs-faq__item summary::-webkit-details-marker { display: none; }
.vs-faq__item summary::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem; height: 1.25rem;
    background: var(--vs-teal);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
}
.vs-faq__item[open] summary::before {
    content: '−';
    background: var(--vs-cyan);
}
.vs-faq__item p {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    line-height: 1.95;
    color: #4b5563;
}
.vs-faq__item a {
    color: var(--vs-teal);
    text-decoration: underline;
    font-weight: 600;
}

/* ARTICLE */
.vs-article {
    padding: 5rem 1.5rem;
    background: var(--vs-cool);
}
.vs-article__inner {
    max-width: 48rem;
    margin: 0 auto;
}
.vs-article p {
    font-size: 1rem;
    line-height: 2.1;
    color: #374151;
    margin: 0 0 1.5rem;
}
.vs-article .vs-h2 {
    margin-top: 3rem;
}
.vs-article .vs-h2:first-of-type {
    margin-top: 0;
}
.vs-article__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.vs-article__list li {
    font-size: 1rem;
    line-height: 1.95;
    color: #374151;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}
.vs-article__list li::before {
    content: '';
    position: absolute;
    right: 0; top: 1rem;
    width: 6px; height: 6px;
    background: var(--vs-teal);
    border-radius: 50%;
}
.vs-article__list li strong { color: var(--vs-ink); }
.vs-article a {
    color: var(--vs-teal-dark);
    text-decoration: underline;
    font-weight: 600;
}

/* BOTTOM CTA */
.vs-bottom-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--vs-teal-dark) 0%, var(--vs-cyan) 100%);
    text-align: center;
    color: white;
}
.vs-bottom-cta__inner { max-width: 36rem; margin: 0 auto; }
.vs-bottom-cta h2 {
    font-family: 'Estedad','Vazirmatn',sans-serif;
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1rem;
}
.vs-bottom-cta p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin: 0 0 2rem;
    color: rgba(255,255,255,0.92);
}
.vs-bottom-cta .vs-cta--primary {
    background: white;
    color: var(--vs-teal-dark);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.3);
}
.vs-bottom-cta .vs-cta--primary:hover {
    background: var(--vs-teal-50);
    box-shadow: 0 18px 40px -10px rgba(0,0,0,0.35);
}

/* RTL icon flip */
.rtl-flip { transform: rotate(180deg); }

/* Mobile */
@media (max-width: 768px) {
    .vs-hero { padding: 3rem 1rem 4rem; }
    .vs-hero__inner { gap: 3rem; }
    .vs-phone { max-width: 14rem; transform: rotate(-2deg); }
    .vs-grid, .vs-how, .vs-price, .vs-faq, .vs-article, .vs-bottom-cta { padding: 3.5rem 1rem; }
    .vs-trust { padding: 3rem 1rem; }
}
