/* ═══════════════ صفحه فرود (بازطراحی مدرن) ═══════════════ */

/* ----- قهرمان ----- */
.bt-hero {
    position: relative;
    padding: 80px 0 90px;
    overflow: hidden;
}
.bt-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bt-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}
.bt-blob-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 70%);
    top: -120px; left: -80px;
}
.bt-blob-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(26,86,219,0.25), transparent 70%);
    bottom: -140px; right: -60px;
}
.bt-hero-grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--bt-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--bt-border) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    opacity: 0.5;
}
.bt-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
}
.bt-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bt-primary);
    background: rgba(26,86,219,0.08);
    border: 1px solid rgba(26,86,219,0.15);
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}
.bt-eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--bt-primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.2);
    animation: bt-pulse 2s infinite;
}
@keyframes bt-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,86,219,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(26,86,219,0); }
}
.bt-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.28;
    margin: 0 0 20px;
    color: var(--bt-text);
    letter-spacing: -0.6px;
}
.bt-hero-sub {
    font-size: 18px;
    color: var(--bt-muted);
    line-height: 2;
    margin: 0 0 30px;
    max-width: 540px;
}
.bt-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.bt-btn-arrow { transition: transform 0.2s; }
.bt-btn:hover .bt-btn-arrow { transform: translateX(-4px); }
.bt-hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.bt-trust-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--bt-muted); }
.bt-check { color: var(--bt-success); }

/* گرافیک سند انیمیشنی */
.bt-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.bt-hero-stack { position: relative; width: 100%; max-width: 360px; }
.bt-hero-doc {
    background: var(--bt-doc-bg, var(--bt-surface));
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(15,23,42,0.16);
}
.bt-hero-doc-main {
    position: relative;
    z-index: 2;
    padding: 26px;
    animation: bt-float 6s ease-in-out infinite;
}
.bt-hero-doc-back {
    position: absolute;
    inset: 0;
    transform: rotate(-6deg) translateY(14px);
    background: linear-gradient(135deg, rgba(26,86,219,0.08), rgba(59,130,246,0.04));
    z-index: 1;
}
@keyframes bt-float {
    0%, 100% { transform: translateY(0) rotate(1.5deg); }
    50% { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes bt-tilt {
    0%, 100% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
}
/* انیمیشن: چرخش ملایم */
.bt-doc-anim-tilt .bt-hero-doc-main { animation: bt-tilt 5s ease-in-out infinite; }
.bt-doc-anim-tilt .bt-badge-pdf,
.bt-doc-anim-tilt .bt-badge-ai { animation: bt-float2 5s ease-in-out infinite; }
/* انیمیشن: غیرفعال */
.bt-doc-anim-none .bt-hero-doc-main,
.bt-doc-anim-none .bt-badge-pdf,
.bt-doc-anim-none .bt-badge-ai,
.bt-doc-anim-none .bt-bar { animation: none !important; }
/* سرعت انیمیشن */
.bt-doc-speed-slow .bt-hero-doc-main { animation-duration: 10s; }
.bt-doc-speed-slow .bt-badge-pdf,
.bt-doc-speed-slow .bt-badge-ai { animation-duration: 8s; }
.bt-doc-speed-fast .bt-hero-doc-main { animation-duration: 3.5s; }
.bt-doc-speed-fast .bt-badge-pdf,
.bt-doc-speed-fast .bt-badge-ai { animation-duration: 2.5s; }
.bt-doc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.bt-doc-logo {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--bt-doc-accent, var(--bt-primary));
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.bt-doc-title-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bt-dl { height: 9px; border-radius: 5px; background: #e8edf4; }
.bt-dl-1 { width: 70%; }
.bt-dl-2 { width: 45%; background: #eef2f7; }
.bt-doc-body { display: flex; flex-direction: column; gap: 11px; }
.bt-doc-line { height: 10px; border-radius: 5px; background: #eef2f7; }
.bt-w-100 { width: 100%; } .bt-w-90 { width: 90%; } .bt-w-85 { width: 85%; }
.bt-w-75 { width: 75%; } .bt-w-60 { width: 60%; }
.bt-doc-chart { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin: 8px 0; padding: 8px 0; }
.bt-bar { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(to top, var(--bt-doc-accent, var(--bt-primary)), var(--bt-accent)); animation: bt-grow 2s ease-out; transform-origin: bottom; }
.bt-bar-1 { height: 45%; } .bt-bar-2 { height: 75%; } .bt-bar-3 { height: 55%; } .bt-bar-4 { height: 90%; }
@keyframes bt-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bt-hero-badge {
    position: absolute;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: 14px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 36px rgba(15,23,42,0.14);
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 3;
}
.bt-badge-pdf { bottom: 36px; right: -16px; color: var(--bt-success); animation: bt-float2 5s ease-in-out infinite; }
.bt-badge-ai { top: 30px; left: -20px; color: var(--bt-doc-accent, var(--bt-primary)); animation: bt-float2 5s ease-in-out infinite 1s; }
@keyframes bt-float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.bt-hero-gradient-box {
    width: 100%; max-width: 380px; aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    box-shadow: 0 30px 70px rgba(26,86,219,0.3);
}
.bt-hero-img { border-radius: 20px; box-shadow: 0 30px 70px rgba(15,23,42,0.16); }

/* ----- آمار ----- */
.bt-stats { padding: 10px 0 50px; }
.bt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--bt-shadow);
}
.bt-stat { text-align: center; position: relative; }
.bt-stat:not(:last-child)::after {
    content: ""; position: absolute; left: 0; top: 15%; height: 70%;
    width: 1px; background: var(--bt-border);
}
.bt-stat-num {
    font-size: 38px; font-weight: 800;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.bt-stat-label { font-size: 14px; color: var(--bt-muted); font-weight: 500; }

/* ----- مزایا ----- */
.bt-features { padding: 60px 0; }
.bt-features-head, .bt-section-head { text-align: center; margin-bottom: 44px; }
.bt-features-head h2, .bt-section-head h2 {
    font-size: 32px; font-weight: 800; margin: 0 0 10px; color: var(--bt-text);
}
.bt-section-head p { font-size: 16px; color: var(--bt-muted); margin: 0; }
.bt-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bt-feature {
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 30px 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bt-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15,23,42,0.1);
    border-color: var(--bt-primary);
}
.bt-feature-icon {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    font-size: 30px;
    background: linear-gradient(135deg, rgba(26,86,219,0.1), rgba(59,130,246,0.06));
    border-radius: 16px;
    margin-bottom: 18px;
}
.bt-feature h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.bt-feature p { font-size: 14px; color: var(--bt-muted); margin: 0; line-height: 1.85; }

/* ----- گام‌ها ----- */
.bt-steps { padding: 60px 0; background: var(--bt-surface); }
.bt-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bt-step { text-align: center; position: relative; }
.bt-step-num {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin: 0 auto 18px;
    font-size: 26px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(26,86,219,0.3);
}
.bt-step h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.bt-step p { font-size: 14px; color: var(--bt-muted); margin: 0; line-height: 1.85; }

/* ----- نمایش فرم‌ها ----- */
.bt-forms-showcase { padding: 60px 0; }
.bt-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
.bt-showcase-card {
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: block;
    color: var(--bt-text);
}
.bt-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(15,23,42,0.1);
    border-color: var(--bt-primary);
    color: var(--bt-text);
}
.bt-showcase-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(135deg, rgba(26,86,219,0.1), rgba(59,130,246,0.06));
    border-radius: 14px; margin-bottom: 16px;
}
.bt-showcase-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.bt-showcase-card p { font-size: 14px; color: var(--bt-muted); margin: 0 0 16px; line-height: 1.8; }
.bt-showcase-cta { font-size: 14px; font-weight: 700; color: var(--bt-primary); display: inline-flex; align-items: center; gap: 6px; }
.bt-arrow { transition: transform 0.2s; display: inline-block; }
.bt-showcase-card:hover .bt-arrow, .bt-post-card-link:hover .bt-arrow { transform: translateX(-4px); }

/* ----- FAQ ----- */
.bt-faq { padding: 60px 0; background: var(--bt-surface); }
.bt-faq-inner { max-width: 820px; }
.bt-faq-list { display: flex; flex-direction: column; gap: 12px; }
.bt-faq-item {
    background: var(--bt-bg);
    border: 1px solid var(--bt-border);
    border-radius: 12px;
    overflow: hidden;
}
.bt-faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--bt-text);
}
.bt-faq-q::-webkit-details-marker { display: none; }
.bt-faq-icon {
    font-size: 22px; color: var(--bt-primary); transition: transform 0.2s; flex-shrink: 0; margin-right: 12px;
}
.bt-faq-item[open] .bt-faq-icon { transform: rotate(45deg); }
.bt-faq-a { padding: 0 22px 20px; color: var(--bt-muted); font-size: 15px; line-height: 1.9; }

/* ----- فراخوان نهایی ----- */
.bt-cta-band { position: relative; margin: 0; overflow: hidden; }
.bt-cta-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-primary-dark));
}
.bt-cta-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 50%);
}
.bt-cta-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; padding: 54px 22px; flex-wrap: wrap;
}
.bt-cta-band h2 { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.bt-cta-band p { color: rgba(255,255,255,0.92); font-size: 17px; margin: 0; }
.bt-btn-light { background: #fff; color: var(--bt-primary); }
.bt-btn-light:hover { background: #f1f5f9; color: var(--bt-primary-dark); transform: translateY(-2px); }

/* ═══════════════ تبلیغات ═══════════════ */
.bt-ad {
    margin: 24px auto;
    text-align: center;
    max-width: var(--bt-maxw);
    padding: 0 22px;
}
.bt-ad img { border-radius: 10px; }
.bt-ad-header { margin: 0 auto; padding: 16px 22px; }
.bt-ad-sidebar { margin: 0 0 20px; padding: 0; }
.bt-ad-single-top { margin: 20px 0; padding: 0; }
.bt-ad-single-bottom { margin: 30px 0; padding: 0; }

/* ═══════════════ مقالات ═══════════════ */

/* سربرگ آرشیو */
.bt-blog-hero {
    position: relative;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    background: var(--bt-surface);
    border-bottom: 1px solid var(--bt-border);
}
.bt-blog-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26,86,219,0.06), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59,130,246,0.05), transparent 40%);
}
.bt-blog-hero-title { position: relative; font-size: 36px; font-weight: 800; margin: 0 0 10px; }
.bt-blog-hero-sub { position: relative; font-size: 17px; color: var(--bt-muted); margin: 0; max-width: 600px; margin: 0 auto; }

/* آرشیو شبکه‌ای */
.bt-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 26px;
}
/* آرشیو فهرستی */
.bt-posts-list { display: flex; flex-direction: column; gap: 20px; }
.bt-posts-list .bt-post-card { display: grid; grid-template-columns: 280px 1fr; }
.bt-posts-list .bt-post-card-thumb { aspect-ratio: auto; height: 100%; min-height: 180px; }

/* کارت مقاله */
.bt-post-card {
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bt-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,0.1); }
.bt-post-card-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bt-bg); }
.bt-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.bt-post-card:hover .bt-post-card-thumb img { transform: scale(1.05); }
.bt-post-card-noimg { display: grid; place-items: center; height: 100%; font-size: 40px; opacity: 0.4; }
.bt-post-card-cat {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.95); color: var(--bt-primary);
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.bt-post-card-body { padding: 22px; }
.bt-post-card-title { font-size: 19px; font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.bt-post-card-title a { color: var(--bt-text); }
.bt-post-card-title a:hover { color: var(--bt-primary); }
.bt-post-card-meta { font-size: 13px; color: var(--bt-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bt-meta-sep { opacity: 0.5; }
.bt-post-card-excerpt { font-size: 14px; color: var(--bt-muted); line-height: 1.85; margin: 0 0 16px; }
.bt-post-card-link { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* تک‌مقاله */
.bt-single-wrap { padding: 40px 0 60px; }
.bt-single-layout { display: grid; gap: 40px; }
.bt-single-layout.bt-has-sidebar { grid-template-columns: 1fr 320px; }
.bt-single-layout.bt-no-sidebar { grid-template-columns: minmax(0, 820px); justify-content: center; }
.bt-single-header { margin-bottom: 28px; }
.bt-single-cats { margin-bottom: 14px; }
.bt-single-cats a {
    display: inline-block;
    background: rgba(26,86,219,0.08); color: var(--bt-primary);
    font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-left: 6px;
}
.bt-single-title { font-size: 34px; font-weight: 800; line-height: 1.4; margin: 0 0 18px; }
.bt-single-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--bt-muted); }
.bt-meta-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bt-text); }
.bt-meta-author img { border-radius: 50%; }
.bt-single-thumb { margin: 0 0 30px; border-radius: var(--bt-radius); overflow: hidden; }
.bt-single-thumb img { width: 100%; }
.bt-single-content { font-size: 17px; line-height: 2.05; }
.bt-single-tags { margin: 30px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-tags-label { font-weight: 700; font-size: 14px; }
.bt-single-tags a {
    background: var(--bt-bg); border: 1px solid var(--bt-border);
    font-size: 13px; padding: 5px 13px; border-radius: 20px; color: var(--bt-muted);
}
.bt-single-tags a:hover { border-color: var(--bt-primary); color: var(--bt-primary); }

/* جعبه نویسنده */
.bt-author-box {
    display: flex; gap: 18px;
    background: var(--bt-surface); border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius); padding: 24px; margin: 30px 0;
}
.bt-author-box img { border-radius: 50%; flex-shrink: 0; width: 64px; height: 64px; }
.bt-author-info h4 { margin: 0 0 6px; font-size: 17px; }
.bt-author-info p { margin: 0; font-size: 14px; color: var(--bt-muted); line-height: 1.8; }

/* نوار کناری */
.bt-sidebar { display: flex; flex-direction: column; gap: 20px; }
.bt-widget {
    background: var(--bt-surface); border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius); padding: 22px;
}
.bt-widget-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bt-border); }
.bt-widget ul { list-style: none; padding: 0; margin: 0; }
.bt-widget ul li { padding: 7px 0; border-bottom: 1px solid var(--bt-border); }
.bt-widget ul li:last-child { border-bottom: none; }
.bt-widget a { color: var(--bt-text); }
.bt-widget a:hover { color: var(--bt-primary); }

/* مقالات مرتبط */
.bt-related { margin: 40px 0; }
.bt-related-title { font-size: 22px; font-weight: 800; margin: 0 0 22px; }
.bt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bt-related-card {
    background: var(--bt-surface); border: 1px solid var(--bt-border);
    border-radius: 12px; overflow: hidden; color: var(--bt-text); transition: all 0.2s;
}
.bt-related-card:hover { transform: translateY(-3px); box-shadow: var(--bt-shadow); color: var(--bt-text); }
.bt-related-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bt-bg); }
.bt-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-related-noimg { display: grid; place-items: center; font-size: 30px; opacity: 0.4; }
.bt-related-info { display: block; padding: 14px; }
.bt-related-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.bt-related-date { font-size: 12px; color: var(--bt-muted); }

/* صفحه‌بندی */
.bt-pagination { margin-top: 44px; }
.bt-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bt-pagination a, .bt-pagination .current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px;
    border-radius: 10px; border: 1px solid var(--bt-border);
    background: var(--bt-surface); color: var(--bt-text); font-weight: 600;
}
.bt-pagination .current { background: var(--bt-primary); color: #fff; border-color: var(--bt-primary); }
.bt-pagination a:hover { border-color: var(--bt-primary); color: var(--bt-primary); }

/* نظرات */
.bt-comments { margin-top: 44px; }
.bt-comments-title { font-size: 22px; font-weight: 800; margin: 0 0 22px; }
.bt-comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.bt-comment-list .comment { background: var(--bt-surface); border: 1px solid var(--bt-border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.bt-comment-list .children { list-style: none; padding-right: 24px; margin-top: 14px; }
.bt-comments .comment-respond { background: var(--bt-surface); border: 1px solid var(--bt-border); border-radius: var(--bt-radius); padding: 26px; }
.bt-comments .comment-form input[type="text"], .bt-comments .comment-form input[type="email"],
.bt-comments .comment-form input[type="url"], .bt-comments .comment-form textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--bt-border);
    border-radius: 8px; font-family: inherit; margin-top: 4px; font-size: 14px;
}
.bt-comments .comment-form textarea { min-height: 120px; }
.bt-comments .comment-form p { margin-bottom: 14px; }

/* حالت خالی و دسترسی */
.bt-empty-state { text-align: center; padding: 60px 30px; }
.bt-empty-state h2 { margin: 0 0 10px; }
.bt-page-links { margin-top: 24px; font-weight: 600; }
.bt-page-links a { padding: 5px 12px; border: 1px solid var(--bt-border); border-radius: 6px; margin: 0 3px; }
.bt-skip-link { position: absolute; right: -9999px; top: 0; background: var(--bt-primary); color: #fff; padding: 10px 18px; z-index: 10000; }
.bt-skip-link:focus { right: 0; color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ═══════════════ ریسپانسیو ═══════════════ */
@media (max-width: 980px) {
    .bt-single-layout.bt-has-sidebar { grid-template-columns: 1fr; }
    .bt-sidebar { flex-direction: row; flex-wrap: wrap; }
    .bt-sidebar > * { flex: 1; min-width: 240px; }
}
@media (max-width: 880px) {
    .bt-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .bt-hero-visual { order: -1; min-height: 320px; }
    .bt-hero-title { font-size: 34px; }
    .bt-hero-sub { font-size: 16px; }
    .bt-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .bt-stat:nth-child(2)::after { display: none; }
    .bt-features-grid { grid-template-columns: repeat(2, 1fr); }
    .bt-steps-grid { grid-template-columns: 1fr; gap: 30px; }
    .bt-related-grid { grid-template-columns: 1fr; }
    .bt-cta-inner { flex-direction: column; text-align: center; }
    .bt-blog-hero-title { font-size: 28px; }
    .bt-single-title { font-size: 27px; }
    .bt-posts-list .bt-post-card { grid-template-columns: 1fr; }
    .bt-posts-list .bt-post-card-thumb { aspect-ratio: 16/9; min-height: auto; }
}
@media (max-width: 540px) {
    .bt-features-grid { grid-template-columns: 1fr; }
    .bt-stats-grid { grid-template-columns: 1fr; }
    .bt-stat::after { display: none !important; }
    .bt-hero-title { font-size: 28px; }
    .bt-hero-trust { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .bt-hero-doc-main, .bt-badge-pdf, .bt-badge-ai, .bt-bar, .bt-eyebrow-dot { animation: none; }
    * { transition: none !important; }
}

/* ---------- متن واقعی در گرافیک سند قهرمان ---------- */
.bt-doc-logo {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
}
.bt-doc-title-text { display: flex; flex-direction: column; gap: 3px; }
.bt-doc-title { font-size: 16px; font-weight: 800; color: var(--bt-text); }
.bt-doc-subtitle { font-size: 12px; color: var(--bt-muted); }
.bt-doc-heading { display: block; font-size: 13px; font-weight: 700; color: var(--bt-primary); margin-top: 4px; }
.bt-doc-text { font-size: 11.5px; line-height: 1.85; color: var(--bt-muted); margin: 4px 0 8px; }

/* ═══════════ انیمیشن ظهور هنگام اسکرول ═══════════ */
.bt-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
    will-change: opacity, transform;
}
.bt-reveal.bt-revealed { opacity: 1; transform: translateY(0); }
/* تأخیر پلکانی برای فرزندان */
.bt-reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.bt-reveal-stagger.bt-revealed > * { opacity: 1; transform: translateY(0); }
.bt-reveal-stagger.bt-revealed > *:nth-child(1) { transition-delay: 0.05s; }
.bt-reveal-stagger.bt-revealed > *:nth-child(2) { transition-delay: 0.13s; }
.bt-reveal-stagger.bt-revealed > *:nth-child(3) { transition-delay: 0.21s; }
.bt-reveal-stagger.bt-revealed > *:nth-child(4) { transition-delay: 0.29s; }
.bt-reveal-stagger.bt-revealed > *:nth-child(5) { transition-delay: 0.37s; }
.bt-reveal-stagger.bt-revealed > *:nth-child(6) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    .bt-reveal, .bt-reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 480px) {
    .bt-doc-heading { font-size: 12px; }
    .bt-doc-text { font-size: 10.5px; }
    .bt-doc-title { font-size: 14px; }
    .bt-doc-subtitle { font-size: 10px; }
}

/* ---------- نمونهٔ واقعی قالب‌ها ---------- */
.bt-demo-templates { padding: 70px 0; }
.bt-demo-grid { margin-top: 36px; }
.bt-demo-loading { grid-column: 1/-1; text-align: center; color: var(--bt-muted); padding: 30px; }

/* ===== سبک ۱: گالری برگه سند ===== */
.bt-demo-doc-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.bt-demo-doc-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--bt-surface); border-radius: 16px; overflow: hidden;
    box-shadow: 0 14px 34px rgba(15,23,42,0.10);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
}
.bt-demo-doc-card:hover { transform: translateY(-10px) scale(1.015); box-shadow: 0 30px 54px rgba(15,23,42,0.18); }

.bt-demo-doc-page {
    aspect-ratio: 3/4; position: relative; overflow: hidden;
    border: 1.5px solid rgba(0,0,0,0.06); margin: 14px 14px 0; border-radius: 8px; background: #fff;
}
.bt-demo-corner { position: absolute; width: 16px; height: 16px; z-index: 3; }
.bt-demo-corner.tl { top: 4px; right: 4px; border-top: 2.5px solid; border-right: 2.5px solid; }
.bt-demo-corner.tr { top: 4px; left: 4px; border-top: 2.5px solid; border-left: 2.5px solid; }

.bt-demo-cover { height: 42%; position: relative; overflow: hidden; }
.bt-demo-cover svg { display: block; width: 100%; height: 100%; }
.bt-demo-cover-text {
    position: absolute; inset: 0; padding: 14px 16px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.bt-demo-tag {
    font-size: 7.5px; font-weight: 700; color: #fff; opacity: 0.85;
    letter-spacing: 0.4px; margin-bottom: 5px; display: block;
}
.bt-demo-title-sm { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.35; display: block; }

.bt-demo-doc-body { padding: 14px 16px; }
.bt-demo-stat-row { display: flex; gap: 6px; margin-bottom: 11px; }
.bt-demo-stat-chip { flex: 1; background: #f8fafc; border-radius: 8px; padding: 6px 4px; text-align: center; }
.bt-demo-stat-val { font-size: 11.5px; font-weight: 700; display: block; }
.bt-demo-stat-label { font-size: 7.5px; color: #94a3b8; display: block; margin-top: 1px; }
.bt-demo-more-row { font-size: 9px; color: #94a3b8; text-align: center; margin: 6px 0 4px; padding: 4px; border-top: 1px dashed #eef0f4; }
.bt-demo-line { height: 5px; border-radius: 3px; background: #eef0f4; margin-bottom: 10px; }
.bt-demo-block-title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.bt-demo-badge { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; display: inline-block; }
.bt-demo-block-title-text { font-size: 8.5px; font-weight: 700; }

.bt-demo-table { margin-top: 8px; border-radius: 4px; overflow: hidden; border: 1px solid #eef0f4; }
.bt-demo-table-row { display: flex; }
.bt-demo-table-row > div { flex: 1; height: 11px; border-bottom: 1px solid #eef0f4; }
.bt-demo-table-row:first-child > div { height: 13px; }
.bt-demo-table-row > div:not(:last-child) { border-left: 1px solid #eef0f4; }

.bt-demo-info { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 16px; gap: 10px; }
.bt-demo-info-title { font-size: 13px; font-weight: 700; color: var(--bt-text); display: block; }
.bt-demo-info-sub { font-size: 10.5px; color: var(--bt-muted); margin-top: 2px; display: block; }
.bt-demo-pages-badge { font-size: 9.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }

/* ===== سبک ۲: سه‌بعدی چرخشی ===== */
.bt-demo-fan-stage {
    position: relative; height: 560px;
    display: flex; align-items: center; justify-content: center;
    perspective: 1800px;
}
.bt-demo-fan-card {
    position: absolute; width: 300px; height: 460px;
    text-decoration: none; color: inherit;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 50px rgba(15,23,42,0.22);
    transition: transform 0.55s cubic-bezier(.2,.8,.2,1), box-shadow 0.55s;
    border: 1px solid rgba(255,255,255,0.5);
    background: var(--bt-surface);
    display: flex; flex-direction: column;
}
.bt-demo-fan-card.side-l { transform: translateX(-160px) rotateY(18deg) rotateZ(-6deg) scale(0.86); z-index: 1; filter: brightness(0.9); }
.bt-demo-fan-card.center { transform: translateX(0) rotateY(0) rotateZ(0) scale(1); z-index: 3; }
.bt-demo-fan-card.side-r { transform: translateX(160px) rotateY(-18deg) rotateZ(6deg) scale(0.86); z-index: 1; filter: brightness(0.9); }
.bt-demo-fan-stage:hover .bt-demo-fan-card.side-l { transform: translateX(-210px) rotateY(22deg) rotateZ(-9deg) scale(0.8); }
.bt-demo-fan-stage:hover .bt-demo-fan-card.side-r { transform: translateX(210px) rotateY(-22deg) rotateZ(9deg) scale(0.8); }
.bt-demo-fan-card.center:hover { transform: translateY(-14px) scale(1.04); box-shadow: 0 36px 64px rgba(15,23,42,0.3); z-index: 4; }

.bt-demo-fan-cover { height: 150px; flex-shrink: 0; position: relative; overflow: hidden; }
.bt-demo-fan-cover svg { display: block; width: 100%; height: 100%; }
.bt-demo-fan-cover-text {
    position: absolute; inset: 0; padding: 18px 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.bt-demo-fan-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.35; display: block; }

.bt-demo-fan-body { background: var(--bt-surface); padding: 14px 20px 16px; flex: 1; overflow: hidden; position: relative; }
.bt-demo-fan-body::after {
    content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 26px;
    background: linear-gradient(to top, var(--bt-surface), transparent);
}

@media (max-width: 768px) {
    .bt-demo-fan-stage { height: auto; flex-direction: column; gap: 30px; perspective: none; padding: 20px 0; }
    .bt-demo-fan-card { position: static; width: 100%; max-width: 320px; height: auto; min-height: 420px; transform: none !important; filter: none !important; }
}


/* ---------- صفحه مشاهده عمومی سند اشتراک‌گذاری‌شده ---------- */
.bt-shared-doc-wrap { min-height: 60vh; }
.bt-shared-loading { text-align: center; padding: 60px 20px; color: var(--bt-muted); font-size: 14px; }
.bt-shared-frame {
    width: 100%; min-height: 80vh; border: 1px solid var(--bt-border); border-radius: 12px;
    background: #fff;
}
.bt-shared-empty { text-align: center; padding: 60px 20px; color: var(--bt-muted); }
