@font-face {
    font-family: 'IRANSansX';
    src: url('./fonts/IRANSansX-Thin.woff2') format('woff2'),
    url('/fonts/IRANSansX-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-UltraLight.woff2') format('woff2'),
    url('/fonts/IRANSansX-UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-Light.woff2') format('woff2'),
    url('/fonts/IRANSansX-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-Regular.woff2') format('woff2'),
    url('/fonts/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-Medium.woff2') format('woff2'),
    url('/fonts/IRANSansX-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-DemiBold.woff2') format('woff2'),
    url('/fonts/IRANSansX-DemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-Bold.woff2') format('woff2'),
    url('/fonts/IRANSansX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-ExtraBold.woff2') format('woff2'),
    url('/fonts/IRANSansX-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/IRANSansX-Black.woff2') format('woff2'),
    url('/fonts/IRANSansX-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --primary: #6c5ce7;
    --secondary: #341f97;
    --text-dark: #1e1e2f;
    --text-muted: #6b6b80;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text-dark);
    background: #fafafa;
}

body[data-lang="fa"] {
    font-family: 'IRANSansX', sans-serif;
    direction: rtl;
}

body[data-lang="en"] {
    font-family: 'Poppins', sans-serif;
    direction: ltr;
}

button, .lang-toggle button, .back-btn, .cta-btn {
    font-family: inherit;
}

/* دکمه‌ی سوییچ زبان - همیشه یه‌جا ثابت، جابه‌جا نمی‌شه */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.lang-toggle button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all .25s ease;
    color: var(--text-dark);
}

.lang-toggle button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
}

/* هیرو هدر - فقط بنر، بدون متن */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7; /* یا هر نسبتی که با عکس بنرت جور دربیاد */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

/* عناوین - بیرون از هیرو */
.intro {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px 20px;
    text-align: center;
}

.intro h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.cta-btn {
    display: inline-block;
    margin-top: 30px;
    background: var(--primary);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.35);
}

.description {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 2;
}

.features {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card i {
    color: var(--primary);
    font-size: 1.3rem;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
}

@media (max-width: 576px) {
    .hero {
        height: 40vh;
        min-height: 260px;
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .lang-toggle {
        top: 12px;
        right: 12px;
    }

    .lang-toggle button {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}

.reviews-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px 60px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.review-alert {
    background: #eafaf1;
    color: #1e8449;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.review-form {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.review-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 14px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color .15s;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #f4b400;
}

.review-locked {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.review-locked p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-item {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-stars {
    color: #f4b400;
    font-size: 0.95rem;
}

.review-item p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 8px 0;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-reviews {
    text-align: center;
    color: var(--text-muted);
}

.auth-status {
    position: fixed;
    top: 20px;
    left: 90px;
    z-index: 999;
    display: flex;
    gap: 8px;
}

.auth-status .back-home-btn {
    position: static;
}

@media (max-width: 576px) {
    .auth-status {
        top: 60px;
        left: 12px;
    }
}

/* ---------- Landing Navbar ---------- */
.landing-nav {
    background: linear-gradient(90deg, #1e1e2f, #341f97);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.landing-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    direction: ltr !important;
}

.landing-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.95;
    transition: opacity .2s;
}

.landing-nav-brand:hover {
    opacity: 1;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-action-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    transition: all .2s ease;
}

.nav-action-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.nav-action-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.lang-switch-btn {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s ease;
}

.lang-switch-btn:hover {
    background: linear-gradient(135deg, #6c5ce7, #341f97);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.35);
}

@media (max-width: 576px) {
    .landing-nav-inner {
        padding: 12px 16px;
    }

    .landing-nav-brand span {
        display: none;
    }

    .nav-action-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ---------- Features in a single row ---------- */
/* ---------- Features grid (no scroll, wraps naturally) ---------- */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.features .feature-card {
    flex: 1 1 260px;
    max-width: 300px;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: default;
}

.features .feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.features .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.22);
}

.features .feature-card:hover::before {
    opacity: 1;
}

@media (max-width: 576px) {
    .features .feature-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ---------- Glowing light orbiting under CTA area ---------- */
.intro {
    position: relative;
}

.intro::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.35), transparent 70%);
    transform: translateX(-50%);
    filter: blur(30px);
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}

/* ---------- Shimmer effect on title ---------- */
.intro h1 {
    position: relative;
    background: linear-gradient(90deg, var(--text-dark) 0%, var(--text-dark) 40%, #fff 50%, var(--text-dark) 60%, var(--text-dark) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* ---------- Plans Row ---------- */
.plans-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 0;
    max-width: 900px;
    padding: 0 20px;
}

.plan-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    flex: 1 1 220px;
    max-width: 260px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all .3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.18);
}

.plan-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.plan-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #fff;
}

.plan-badge-basic {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.plan-badge-mid {
    background: linear-gradient(135deg, #6c5ce7, #341f97);
}

.plan-badge-premium {
    background: linear-gradient(135deg, #f6c453, #e8a33d);
}

.plan-card h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.plan-btn {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border: none;
    border-radius: 30px;
    padding: 10px 26px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s ease;
}

.plan-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

/* ---------- Purchase Modal ---------- */
.purchase-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 47, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 2000;
    padding: 20px;
}

.purchase-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.purchase-modal {
    background: #fff;
    border-radius: 22px;
    padding: 36px;
    max-width: 440px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform .3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.purchase-modal-overlay.active .purchase-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f2f2f7;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: #e03131;
    color: #fff;
    transform: rotate(90deg);
}

.purchase-modal h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-inline-end: 30px;
}

.card-number-box {
    background: linear-gradient(135deg, #f5f4ff, #eef0ff);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-number-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
}

.card-number-display code {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    direction: ltr;
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.purchase-modal label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.purchase-modal input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    font-size: 0.85rem;
    background: #fafafe;
}

/* ---------- Plan Price ---------- */
.plan-price {
    margin: 10px 0 16px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

/* ---------- Description Box (glowing border) ---------- */
.description-box {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    position: relative;
    background: #fff;
    border-radius: 22px;
    z-index: 1;
}

.description-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), #a29bfe, var(--secondary), var(--primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-flow 6s linear infinite;
    z-index: -1;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.description-box::after {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent 70%);
    filter: blur(20px);
    z-index: -2;
}

.description-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 2;
    margin: 0;
}

@media (max-width: 576px) {
    .description-box {
        padding: 28px 20px;
    }
}

.description-content {
    text-align: right;
}

.description-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 15px 0;
}

.description-content a {
    color: var(--primary);
    text-decoration: underline;
}

.description-content ul, .description-content ol {
    padding-inline-start: 20px;
    margin: 10px 0;
}

.description-content p {
    margin: 10px 0;
}

.description-box[dir="ltr"] p {
    text-align: left;
}

@media (min-width: 992px) {
    .description-box {
        max-width: 1100px;
    }
}

.description-content {
    text-align: right;
}

/* ---------- Description Box (premium redesign) ---------- */
.description-box {
    max-width: 800px;
    margin: 50px auto;
    padding: 48px 56px;
    text-align: center;
    position: relative;
    background: #ffffff;
    border-radius: 26px;
    z-index: 1;
    box-shadow: 0 20px 60px -20px rgba(52, 31, 151, 0.25);
}

@media (min-width: 992px) {
    .description-box {
        max-width: 1100px;
        padding: 60px 80px;
    }
}

.description-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), #a29bfe, var(--secondary), var(--primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-flow 6s linear infinite;
    z-index: -1;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.description-box::after {
    content: "";
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.14), transparent 70%);
    filter: blur(24px);
    z-index: -2;
}

.description-title {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(52, 31, 151, 0.12));
    color: var(--secondary);
}

.description-box p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 2;
    margin: 0;
}

@media (max-width: 576px) {
    .description-box {
        padding: 32px 22px;
    }
}

/* ---------- Rich content (TinyMCE output) ---------- */
.description-content {
    text-align: right;
}

.description-content h1,
.description-content h2,
.description-content h3 {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 36px 0 18px;
    padding-inline-start: 16px;
    border-inline-start: 4px solid var(--primary);
}

.description-content p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 2;
    margin: 14px 0;
}

.description-content strong,
.description-content b {
    color: var(--text-dark);
    font-weight: 800;
}

.description-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 12px 30px -12px rgba(30, 30, 47, 0.25);
}

.description-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.description-content ul,
.description-content ol {
    padding-inline-start: 24px;
    margin: 16px 0;
}

.description-content li {
    margin: 8px 0;
    line-height: 1.9;
}

.description-content ul li::marker {
    color: var(--primary);
}

/* ---------- English (LTR) override — wins by specificity, no more guessing ---------- */
.lang-en-block .description-content,
.lang-en-block .description-content h1,
.lang-en-block .description-content h2,
.lang-en-block .description-content h3,
.lang-en-block .description-content p {
    text-align: left;
}

.lang-en-block .description-content h1,
.lang-en-block .description-content h2,
.lang-en-block .description-content h3 {
    padding-inline-start: 0;
    padding-inline-end: 16px;
    border-inline-start: none;
    border-inline-end: 4px solid var(--primary);
}

/* ===== اسکرول نرم + فاصله از نوار بالا هنگام پرش ===== */
html {
    scroll-behavior: smooth;
}

#section-about,
#section-features,
#section-video,
#section-reviews {
    scroll-margin-top: 100px;
}

/* ===== عنوان‌های هم‌سبک با «درباره‌ی محصول» ===== */
.features-title,
.video-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== فهرست مطالب ===== */
.toc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(30, 30, 47, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.toc-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.toc-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

.toc-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.3);
}

@media (max-width: 576px) {
    .toc-nav {
        gap: 8px;
        padding: 12px;
        border-radius: 14px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .toc-link {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

.video-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2% auto 0; /* بود: margin: 0 auto; */
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1e2f, #341f97);
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(30, 30, 47, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-box.playing {
    cursor: default;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-play-btn {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.25s ease;
}

.video-play-btn svg {
    width: 34px;
    height: 34px;
    fill: var(--primary);
    margin-left: 5px;
}

.video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.video-play-btn:active {
    transform: scale(0.95);
}

@media (max-width: 576px) {
    .video-box {
        width: 88%;
        margin: 2% auto 0;
        border-radius: 16px;
    }

    .video-play-btn {
        width: 64px;
        height: 64px;
    }

    .video-play-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* ===== بج اعتماد ===== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(30, 30, 47, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.08);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(108, 92, 231, 0.15);
}

.trust-badge i {
    color: var(--primary);
    font-size: 1rem;
}

@media (max-width: 576px) {
    .trust-badges {
        gap: 8px;
    }

    .trust-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

html {
    scrollbar-gutter: stable;
}

/* ===== Gallery ===== */
#section-gallery {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: zoom-in;
    aspect-ratio: 16 / 10;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.22);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 14px 10px;
    color: #fff;
    font-size: .9rem;
    text-align: right;
    background: linear-gradient(to top, rgba(30, 30, 47, .85), transparent);
}

body[data-lang="en"] .gallery-caption {
    text-align: left;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(15, 15, 30, .92);
}

.lightbox.active {
    display: flex;
}

.lb-figure {
    margin: 0;
    max-width: min(1200px, 92vw);
    text-align: center;
}

.lb-figure img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lb-figure figcaption {
    margin-top: 12px;
    color: #e8e6ff;
    font-size: .95rem;
}

.lb-close {
    position: absolute;
    top: 14px;
    left: 18px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

.lb-nav {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.lb-nav:hover {
    background: var(--primary);
}

@media (max-width: 600px) {
    .lb-nav {
        position: absolute;
        bottom: 20px;
    }

    .lb-prev {
        right: 30%;
    }

    .lb-next {
        left: 30%;
    }

    .lb-figure img {
        max-height: 70vh;
    }
}

html {
    scroll-behavior: smooth;
}

#section-plans, #section-video {
    scroll-margin-top: 90px;
}

/* گالری روی موبایل: عکس کامل، بدون بُرش */
@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: auto;
    }

    .gallery-item img {
        height: auto;
        object-fit: contain;
    }
}

/* عکس‌های داخل توضیحات قابل کلیک برای لایت‌باکس */
.description-content img {
    cursor: zoom-in;
}

.lightbox.lb-single .lb-nav {
    display: none;
}
