/* =========================================
   Saitima — Pricing / Tariff Page (v2)
   بر اساس طرح آماده: گرادیان بنفش/صورتی، پرسپکتیو سه‌بعدی، بلاب‌های محو
========================================= */

@keyframes tar2-floaty { 0%,100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); } 50% { transform: translateY(-22px) rotateX(18deg) rotateY(24deg); } }
@keyframes tar2-spin3d { from { transform: rotateX(0deg) rotateY(0deg); } to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes tar2-fadeUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tar2-gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes tar2-glowPulse { 0%,100% { box-shadow: 0 22px 44px rgba(229,18,125,.30); } 50% { box-shadow: 0 26px 60px rgba(229,18,125,.52); } }
@keyframes tar2-badgeBob { 0%,100% { transform: translateX(50%) translateY(0); } 50% { transform: translateX(50%) translateY(-6px); } }
@keyframes tar2-drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,26px) scale(1.08); } }

.tar2 {
    position: relative;
    overflow-x: hidden;
    padding-top: 118px;
    background: linear-gradient(180deg, #f4e9fd 0%, #fbf7fe 40%, #fbf7fe 100%);
}

/* ---- تزئینات پس‌زمینه ---- */
.tar2-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.tar2-blob-1 { top: -90px; inset-inline-end: -130px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(216,120,255,.34), rgba(216,120,255,0) 70%); animation: tar2-drift 18s ease-in-out infinite; }
.tar2-blob-2 { top: 260px; inset-inline-start: -150px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(255,120,200,.26), rgba(255,120,200,0) 70%); animation: tar2-drift 23s ease-in-out infinite reverse; }

.tar2-cube { position: absolute; transform-style: preserve-3d; pointer-events: none; z-index: 0; }
.tar2-cube i { position: absolute; inset: 0; border: 2px solid rgba(168,85,247,.5); }
.tar2-cube i:nth-child(2) { transform: translateZ(-48px); }
.tar2-cube i:nth-child(3) { border-color: rgba(236,72,153,.45); transform: rotateY(90deg) translateZ(48px); }
.tar2-cube i:nth-child(4) { border-color: rgba(236,72,153,.45); transform: rotateY(90deg) translateZ(-48px); }
.tar2-cube i:nth-child(5) { border-color: rgba(120,200,170,.45); transform: rotateX(90deg) translateZ(48px); }
.tar2-cube i:nth-child(6) { border-color: rgba(120,200,170,.45); transform: rotateX(90deg) translateZ(-48px); }
.tar2-cube-1 { top: 350px; inset-inline-end: 7%; width: 96px; height: 96px; opacity: .5; animation: tar2-spin3d 26s linear infinite; }
.tar2-cube-1 i:nth-child(1) { transform: translateZ(48px); }
.tar2-cube-2 { top: 640px; inset-inline-start: 6%; width: 70px; height: 70px; opacity: .45; animation: tar2-spin3d 34s linear infinite reverse; }
.tar2-cube-2 i:nth-child(1) { transform: translateZ(35px); }
.tar2-cube-2 i:nth-child(2) { transform: translateZ(-35px); }
.tar2-cube-2 i:nth-child(3) { border-color: rgba(168,85,247,.45); transform: rotateY(90deg) translateZ(35px); }
.tar2-cube-2 i:nth-child(4) { border-color: rgba(168,85,247,.45); transform: rotateY(90deg) translateZ(-35px); }

.tar2-square { position: absolute; top: 940px; inset-inline-end: 12%; width: 54px; height: 54px; opacity: .4; pointer-events: none; z-index: 0; transform-style: preserve-3d; animation: tar2-floaty 13s ease-in-out infinite; }
.tar2-square i { position: absolute; inset: 0; border: 2px solid rgba(120,200,170,.6); border-radius: 8px; }
.tar2-square i:nth-child(1) { transform: translateZ(27px); }
.tar2-square i:nth-child(2) { transform: translateZ(-27px); }

.tar2-word { position: absolute; font-weight: 700; font-size: 22px; pointer-events: none; z-index: 0; }
.tar2-word-1 { top: 440px; inset-inline-start: 4%; color: rgba(168,85,247,.20); transform: rotate(-18deg); }
.tar2-word-2 { top: 270px; inset-inline-end: 19%; color: rgba(236,72,153,.18); transform: rotate(14deg); }
.tar2-word-3 { top: 560px; inset-inline-start: 13%; font-size: 20px; color: rgba(120,200,170,.28); transform: rotate(-8deg); }

/* ---- هیرو ---- */
.tar2-hero { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 12px 24px 56px; text-align: center; }

.tar2-breadcrumb { display: flex; justify-content: flex-start; gap: 8px; font-size: 13px; color: #8b7aa1; font-weight: 500; }
.tar2-breadcrumb a { color: #8b7aa1; }
.tar2-breadcrumb a:hover { color: #c026a3; }
.tar2-breadcrumb-current { color: #5b4472; }

.tar2-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
    padding: 10px 22px; border-radius: 999px;
    background: rgba(168,85,247,.10); border: 1px solid rgba(168,85,247,.18);
    font-size: 14px; font-weight: 600; color: #6b3f95;
    animation: tar2-fadeUp .8s cubic-bezier(.2,.8,.2,1) both;
}
.tar2-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5127d; display: inline-block; }

.tar2-title {
    margin: 18px 0 0; font-size: clamp(38px, 6vw, 68px); font-weight: 800 !important; letter-spacing: -1px;
    background: linear-gradient(120deg, #e5127d, #a855f7, #7c1fd4, #e5127d);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
    text-shadow: 0 24px 40px rgba(168,85,247,.18);
    animation: tar2-fadeUp .9s cubic-bezier(.2,.8,.2,1) .15s both, tar2-gradShift 9s ease-in-out 1s infinite;
    line-height: 1.15;
}

.tar2-lead { max-width: 62ch; margin: 14px auto 0; font-size: 16px; line-height: 1.95; color: #7b688f; }

.tar2-hero-cta { margin-top: 26px; animation: tar2-fadeUp .9s cubic-bezier(.2,.8,.2,1) .35s both; }
.tar2-btn-main {
    display: inline-flex; align-items: center; padding: 18px 40px; border-radius: 999px;
    background: linear-gradient(120deg, #a855f7, #e5127d);
    color: #fff !important; font-weight: 700; font-size: 17px;
    box-shadow: 0 22px 44px rgba(229,18,125,.30);
    transition: transform .25s ease;
    animation: tar2-glowPulse 3.4s ease-in-out 1.2s infinite;
}
.tar2-btn-main:hover { transform: translateY(-3px) scale(1.03); }

/* ---- عنوان بخش‌ها ---- */
.tar2-section-head { text-align: center; animation: tar2-fadeUp .9s cubic-bezier(.2,.8,.2,1) both; margin-bottom: 36px; }
.tar2-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 800 !important; color: #2b1b3d !important; }
.tar2-section-head p { margin: 10px 0 0; font-size: 15.5px; color: #7b688f; }

/* ---- کارت‌های پلن ---- */
.tar2-plans-section { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
.tar2-plans {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: end;
    perspective: 1500px; perspective-origin: 50% 40%;
}
.tar2-plan-wrap { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tar2-tilt-left { transform: rotateY(-11deg) rotateX(3deg); }
.tar2-tilt-left:hover { transform: rotateY(0deg) rotateX(0deg) translateZ(40px); }
.tar2-tilt-right { transform: rotateY(11deg) rotateX(3deg); }
.tar2-tilt-right:hover { transform: rotateY(0deg) rotateX(0deg) translateZ(40px); }
.tar2-tilt-mid { transform: translateZ(70px) rotateX(2deg); z-index: 3; position: relative; }
.tar2-tilt-mid:hover { transform: translateZ(100px) rotateX(0deg); }

.tar2-plan {
    position: relative;
    background: linear-gradient(160deg, #ffffff, #fdf7ff);
    border: 1px solid rgba(168,85,247,.18);
    border-radius: 28px; padding: 30px 26px;
    box-shadow: -26px 26px 50px rgba(120,40,160,.14);
    display: flex; flex-direction: column; gap: 18px;
    transform-style: preserve-3d;
    animation: tar2-fadeUp .9s cubic-bezier(.2,.8,.2,1) .1s both;
}
.tar2-tilt-right .tar2-plan { box-shadow: 26px 26px 50px rgba(120,40,160,.14); }

.tar2-plan-popular {
    background: linear-gradient(160deg, #ffffff, #fff5fb);
    border: 2px solid #e5127d; border-radius: 30px; padding: 34px 30px;
    box-shadow: 0 44px 80px rgba(229,18,125,.26);
    animation: tar2-fadeUp 1s cubic-bezier(.2,.8,.2,1) .25s both;
}

.tar2-plan-badge {
    position: absolute; top: -20px; inset-inline-start: 50%; transform: translateX(-50%);
    animation: tar2-badgeBob 3.6s ease-in-out 1.2s infinite;
    padding: 11px 26px; border-radius: 999px;
    background: linear-gradient(120deg, #a855f7, #e5127d);
    color: #fff !important; font-size: 14px; font-weight: 700;
    box-shadow: 0 16px 30px rgba(229,18,125,.36); white-space: nowrap;
}

.tar2-plan-name { font-size: 20px; font-weight: 700 !important; color: #2b1b3d !important; }
.tar2-plan-popular .tar2-plan-name { font-size: 21px; }
.tar2-plan-price-row { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.tar2-plan-price { font-size: 28px; font-weight: 800; color: #2b1b3d; }
.tar2-plan-popular .tar2-plan-price {
    font-size: 34px;
    background: linear-gradient(120deg, #e5127d, #a855f7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tar2-plan-divider { height: 1px; background: rgba(168,85,247,.16); margin-top: 18px; }
.tar2-plan-popular .tar2-plan-divider { background: rgba(229,18,125,.18); }

.tar2-plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: #4b3663; margin: 0; padding: 0; }
.tar2-plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.tar2-check { color: #c026a3; font-weight: 700; flex: none; }
.tar2-plan-popular .tar2-check { color: #e5127d; }

.tar2-plan-cta {
    display: block; text-align: center; padding: 17px; border-radius: 999px;
    border: 1.5px solid rgba(168,85,247,.35); color: #8b2ee0 !important;
    font-weight: 700; font-size: 16px; transition: background .2s ease;
}
.tar2-plan-cta:hover { background: rgba(168,85,247,.08); }
.tar2-plan-popular .tar2-plan-cta {
    border: none; background: linear-gradient(120deg, #a855f7, #e5127d);
    color: #fff !important; box-shadow: 0 18px 34px rgba(229,18,125,.34); padding: 18px;
}
.tar2-plan-popular .tar2-plan-cta:hover { filter: brightness(1.06); }

/* ---- محتوای آزاد (در صورت وجود متن برگه) ---- */
.tar2-body {
    position: relative; z-index: 2; max-width: 940px; margin: 0 auto 70px; padding: 0 24px;
    font-size: 15px; line-height: 2.1; color: #4b3663;
}
.tar2-body h2 { font-size: 24px; font-weight: 800 !important; color: #2b1b3d !important; margin: 32px 0 16px; }
.tar2-body p { margin-bottom: 14px; }

/* ---- سوالات متداول ---- */
.tar2-faq-section { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; padding: 0 24px 70px; }
.tar2-faq { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.tar2-faq-item {
    background: #fff; border: 1px solid rgba(168,85,247,.14); border-radius: 20px;
    box-shadow: 0 14px 32px rgba(120,40,160,.07);
    overflow: hidden; transition: box-shadow .3s, transform .3s;
    animation: tar2-fadeUp .8s cubic-bezier(.2,.8,.2,1) both;
}
.tar2-faq-item:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(120,40,160,.14); }
.tar2-faq-q {
    all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
    display: flex; align-items: flex-start; gap: 16px; padding: 24px 26px;
    transition: background .2s ease;
}
.tar2-faq-q:hover { background: rgba(168,85,247,.04); }
.tar2-faq-q-text { flex: 1; font-size: 17px; font-weight: 600; color: #2b1b3d; line-height: 1.7; }
.tar2-faq-sign {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px;
    background: rgba(168,85,247,.10); color: #8b2ee0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; transition: transform .25s ease;
}
.tar2-faq-item.is-open .tar2-faq-sign { transform: rotate(45deg); }
.tar2-faq-a {
    display: grid; grid-template-rows: 0fr; opacity: 0;
    transition: grid-template-rows .3s ease, opacity .25s ease;
}
.tar2-faq-a p { overflow: hidden; margin: 0; padding: 0 26px; font-size: 15px; line-height: 2.1; color: #5f4a77; }
.tar2-faq-item.is-open .tar2-faq-a { grid-template-rows: 1fr; opacity: 1; }
.tar2-faq-item.is-open .tar2-faq-a p { padding: 0 26px 26px; }

/* ---- بنر پایانی ---- */
.tar2-final-wrap { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; perspective: 1200px; }
.tar2-final {
    position: relative; overflow: hidden; border-radius: 34px; padding: 56px 40px; text-align: center;
    background: linear-gradient(125deg, #7c1fd4, #e5127d, #a855f7, #7c1fd4);
    background-size: 300% 100%; animation: tar2-gradShift 14s ease-in-out infinite;
    box-shadow: 0 40px 80px rgba(150,30,140,.32);
}
.tar2-final-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.11); pointer-events: none; }
.tar2-final-orb-1 { top: -70px; inset-inline-start: -40px; width: 240px; height: 240px; }
.tar2-final-orb-2 { bottom: -90px; inset-inline-end: -30px; width: 280px; height: 280px; }
.tar2-final h2 { position: relative; margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800 !important; color: #fff !important; }
.tar2-final p { position: relative; margin: 18px 0 0; font-size: 17px; color: rgba(255,255,255,.86); }
.tar2-final-ctas { position: relative; margin-top: 40px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tar2-final-btn-primary {
    padding: 20px 44px; border-radius: 999px; background: #fff; color: #a01a86 !important;
    font-weight: 700; font-size: 17px; box-shadow: 0 18px 36px rgba(60,0,60,.24);
    transition: transform .2s ease;
}
.tar2-final-btn-primary:hover { transform: translateY(-2px); }
.tar2-final-btn-ghost {
    padding: 20px 40px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55);
    color: #fff !important; font-weight: 700; font-size: 17px; transition: background .2s ease;
}
.tar2-final-btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ---- ریسپانسیو ---- */
@media (max-width: 900px) {
    .tar2-plans { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .tar2-plan-wrap, .tar2-tilt-left, .tar2-tilt-right, .tar2-tilt-mid { transform: none !important; }
    .tar2-plan-wrap:hover { transform: translateY(-6px) !important; }
}
@media (max-width: 640px) {
    .tar2 { padding-top: 100px; }
    .tar2-hero { padding: 8px 20px 40px; }
    .tar2-kicker { margin-top: 20px; }
    .tar2-plans-section, .tar2-body, .tar2-faq-section, .tar2-final-wrap { padding-inline: 18px; }
    .tar2-plan-popular { padding: 32px 24px; }
    .tar2-final { padding: 40px 24px; }
    .tar2-blob-1, .tar2-blob-2, .tar2-cube-1, .tar2-cube-2, .tar2-square-1, .tar2-word-1, .tar2-word-2, .tar2-word-3 { opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
    .tar2-blob, .tar2-cube, .tar2-square, .tar2-title, .tar2-btn-main, .tar2-plan-badge, .tar2-final { animation: none !important; }
}
