/* MindRa — استایل سایت عمومی (روی Bootstrap 5.3 RTL). رنگ‌ها فقط از متغیرهای زیر. */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --mr-primary: #0d2b1c;
    --mr-primary-2: #15402a;
    --mr-primary-3: #1e5636;
    --mr-accent: #d9b23a;
    --mr-accent-dark: #b8921f;
    --mr-bg: #f5f7f4;
    --mr-surface: #ffffff;
    --mr-text: #1c2533;
    --mr-muted: #5f6b7a;
    --mr-border: #e3e8ef;
    --mr-radius: 14px;
    --mr-shadow: 0 6px 24px rgba(13, 43, 28, .08);
    --mr-shadow-lg: 0 18px 44px -12px rgba(13, 43, 28, .28);
    --mr-accent-soft: rgba(217, 178, 58, .15);
    --mr-ease: cubic-bezier(.22, .61, .36, 1);
    --mr-gradient: linear-gradient(135deg, var(--mr-primary) 0%, var(--mr-primary-3) 100%);
    --mr-gold-gradient: linear-gradient(120deg, #f3d77a 0%, var(--mr-accent) 45%, #c99a1e 100%);

    --bs-body-font-family: "Vazirmatn", Tahoma, sans-serif;
    --bs-body-bg: var(--mr-bg);
    --bs-body-color: var(--mr-text);
    --bs-link-color-rgb: 30, 86, 54;
    --bs-link-hover-color-rgb: 184, 146, 31;
}

body { font-feature-settings: "ss01"; line-height: 1.9; -webkit-font-smoothing: antialiased; }
::selection { background: var(--mr-accent); color: var(--mr-primary); }
:focus-visible { outline: 3px solid var(--mr-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.5; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; top: .5rem; right: .5rem; z-index: 2000; background: var(--mr-accent); color: var(--mr-primary); padding: .5rem 1rem; border-radius: 8px; }

/* ---------- دکمه‌ها ---------- */
.btn-accent { --bs-btn-bg: var(--mr-accent); --bs-btn-border-color: var(--mr-accent); --bs-btn-color: var(--mr-primary);
    --bs-btn-hover-bg: var(--mr-accent-dark); --bs-btn-hover-border-color: var(--mr-accent-dark); --bs-btn-hover-color: var(--mr-primary);
    --bs-btn-active-bg: var(--mr-accent-dark); --bs-btn-active-color: var(--mr-primary); font-weight: 700; }
.btn { border-radius: 10px; transition: transform .2s var(--mr-ease), box-shadow .2s var(--mr-ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-glow { box-shadow: 0 8px 22px -6px rgba(217, 178, 58, .6); padding-inline: 1.3rem; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(217, 178, 58, .75); }
.btn-arrow { display: inline-block; transition: transform .25s var(--mr-ease); }
.btn:hover .btn-arrow, .link-more:hover span { transform: translateX(-4px); }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--mr-primary-3); text-decoration: none; white-space: nowrap; }
.link-more span { display: inline-block; transition: transform .25s var(--mr-ease); }
.link-more:hover { color: var(--mr-accent-dark); }
.text-gradient { background: var(--mr-gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gradient-dark { background: linear-gradient(120deg, var(--mr-primary-3), var(--mr-accent-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- هدر ---------- */
.site-header { background: var(--mr-primary); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(13, 43, 28, .86); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, .28); }
.site-header .navbar { padding-block: .65rem; transition: padding .3s var(--mr-ease); }
.site-header.is-scrolled .navbar { padding-block: .35rem; }
.site-header .nav-link { position: relative; color: rgba(255, 255, 255, .82); font-weight: 500; border-radius: 8px; padding-inline: .8rem !important; transition: color .2s, background-color .2s; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); }
.site-header .nav-link.active { color: var(--mr-accent); }
@media (min-width: 992px) {
    .site-header .nav-link:not(.dropdown-toggle)::after { content: ""; position: absolute; inset-inline: .8rem; bottom: .2rem; height: 2px; border-radius: 2px;
        background: var(--mr-accent); transform: scaleX(0); transition: transform .3s var(--mr-ease); }
    .site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
}
.site-header .dropdown-menu { --bs-dropdown-bg: var(--mr-primary-2); --bs-dropdown-link-hover-bg: var(--mr-primary-3); border: 0; border-radius: 12px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(217, 178, 58, .35);
    transition: transform .5s var(--mr-ease), width .3s var(--mr-ease), height .3s var(--mr-ease); }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.06); }
.site-header.is-scrolled .brand-logo { width: 38px; height: 38px; }
.brand-logo-lg { width: 64px; height: 64px; }
@media (min-width: 992px) {
    .site-header .offcanvas { background: transparent !important; }
    .site-header .navbar-nav { margin-inline-start: 1.5rem; }
}

/* ---------- هیرو / اسلایدر ---------- */
.hero { position: relative; overflow: hidden; background: var(--mr-gradient); color: #fff; isolation: isolate; }
.hero .carousel-item { min-height: 480px; }
.hero-slide { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero .carousel-item.active .hero-bg { animation: mr-kenburns 9s ease-out both; }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 43, 28, .1) 0%, rgba(13, 43, 28, .55) 40%, rgba(13, 43, 28, .92) 75%); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-caption { max-width: 580px; }
.hero-caption h1, .hero-caption h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero .carousel-item.active .hero-caption > * { animation: mr-fade-up .8s var(--mr-ease) both; }
.hero .carousel-item.active .hero-caption > :nth-child(2) { animation-delay: .12s; }
.hero .carousel-item.active .hero-caption > :nth-child(3) { animation-delay: .22s; }
.hero .carousel-item.active .hero-caption > :nth-child(4) { animation-delay: .3s; }
.hero .carousel-item.active .hero-caption > :nth-child(5) { animation-delay: .38s; }
.hero-caption .en { direction: ltr; text-align: left; opacity: .75; font-family: system-ui, sans-serif; }
.hero-fallback { position: relative; z-index: 2; padding-block: 6rem 7rem; }
.hero-fallback .hero-caption > * { animation: mr-fade-up .8s var(--mr-ease) both; }
.hero-fallback .hero-caption > :nth-child(2) { animation-delay: .1s; }
.hero-fallback .hero-caption > :nth-child(3) { animation-delay: .2s; }
.hero-fallback .hero-caption > :nth-child(4) { animation-delay: .3s; }
.hero-eyebrow { display: inline-block; margin-bottom: 1rem; padding: .25rem .9rem; border: 1px solid rgba(217, 178, 58, .45); border-radius: 999px;
    background: rgba(217, 178, 58, .1); color: var(--mr-accent); font-size: .85rem; font-weight: 700; }
.hero .carousel-indicators { z-index: 5; margin-bottom: 2.75rem; }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 999px; border: 0; transition: width .35s var(--mr-ease), background-color .3s; }
.hero .carousel-indicators .active { width: 30px; background-color: var(--mr-accent); }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 5; width: 7%; opacity: 0; transition: opacity .3s; }
.hero:hover .carousel-control-prev, .hero:hover .carousel-control-next,
.hero .carousel-control-prev:focus-visible, .hero .carousel-control-next:focus-visible { opacity: .85; }
.hero-orbs span { position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; animation: mr-float 14s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(1) { width: 340px; height: 340px; background: var(--mr-accent); top: -120px; left: -80px; opacity: .22; }
.hero-orbs span:nth-child(2) { width: 420px; height: 420px; background: #2f7a4f; bottom: -180px; right: 10%; animation-duration: 18s; }
.hero-orbs span:nth-child(3) { width: 220px; height: 220px; background: #f3d77a; top: 30%; left: 35%; opacity: .12; animation-duration: 11s; }
.hero-wave { position: absolute; inset-inline: 0; bottom: -1px; z-index: 4; width: 100%; height: 44px; display: block; pointer-events: none; }
.hero-wave path { fill: var(--mr-bg); }
.hero:has(+ .stats) .hero-wave path { fill: var(--mr-primary); }
@media (max-width: 575.98px) { .hero .carousel-item, .hero-slide { min-height: 380px; } .hero-wave { height: 26px; } .hero-fallback { padding-block: 4rem 5rem; } }

/* ---------- بخش‌ها ---------- */
.section { padding-block: 3.5rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-title h2, .section-title h3 { font-size: 1.45rem; margin: 0; position: relative; padding-inline-start: .9rem; }
.section-title h2::before, .section-title h3::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 4px; background: var(--mr-gold-gradient); }

.stats { position: relative; background: var(--mr-primary); color: #fff; padding-block: 2.5rem 3.5rem; }
.stat { position: relative; overflow: hidden; text-align: center; padding: 1.4rem .5rem; border-radius: var(--mr-radius); height: 100%;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .3s var(--mr-ease), border-color .3s; }
.stat::after { content: ""; position: absolute; inset-inline: 25%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mr-gold-gradient); transform: scaleX(0); transition: transform .4s var(--mr-ease); }
.stat:hover { transform: translateY(-4px); border-color: rgba(217, 178, 58, .35); }
.stat:hover::after { transform: scaleX(1); }
.stat-value { font-size: 2rem; font-weight: 800; background: var(--mr-gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-title { color: rgba(255, 255, 255, .8); }

/* ---------- برترها (تاپیک‌ها و دوره‌های برتر) ---------- */
.featured { position: relative; background:
    radial-gradient(900px 400px at 85% 0%, rgba(217, 178, 58, .12), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(30, 86, 54, .1), transparent 60%),
    linear-gradient(180deg, var(--mr-bg) 0%, #fff 35%, var(--mr-bg) 100%); }
.featured-head { text-align: center; max-width: 620px; margin-inline: auto; }
.eyebrow { display: inline-block; padding: .2rem .85rem; border-radius: 999px; background: var(--mr-accent-soft); color: var(--mr-accent-dark); font-size: .82rem; font-weight: 700; margin-bottom: .6rem; }
.featured-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: .5rem; }

/* قفسه‌های دوره (دوره‌های برتر و هر تاپیک برتر) */
.shelves { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.shelf { position: relative; padding: 1.25rem 1.25rem .25rem; border-radius: 22px; background: rgba(255, 255, 255, .75);
    border: 1px solid var(--mr-border); box-shadow: 0 10px 30px -18px rgba(13, 43, 28, .35); }
.shelf::before { content: ""; position: absolute; inset-inline-start: 1.5rem; top: -1px; width: 72px; height: 3px; border-radius: 0 0 3px 3px; background: var(--mr-gold-gradient); }
.shelf-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: .25rem; }
.shelf-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; object-fit: cover; display: grid; place-items: center;
    background: var(--mr-gradient); color: var(--mr-accent); font-size: 1.4rem; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(13, 43, 28, .55);
    transition: transform .5s var(--mr-ease); }
.shelf-icon.star { background: var(--mr-gold-gradient); color: var(--mr-primary); }
.shelf:hover .shelf-icon { transform: rotate(-6deg) scale(1.05); }
.shelf-heading { flex: 1 1 auto; min-width: 0; }
.shelf-heading h3 { font-size: 1.25rem; margin: 0; }
.shelf-heading h3 a { color: var(--mr-text); text-decoration: none; transition: color .2s; }
.shelf-heading h3 a:hover { color: var(--mr-primary-3); }
.shelf-heading p { margin: 0; color: var(--mr-muted); font-size: .88rem; }
.shelf-actions { display: flex; align-items: center; gap: .5rem; }
.shelf-actions .link-more { margin-inline-end: .35rem; }
.shelf .rail-item { animation: none; }
.js .shelf.is-visible .rail-item { animation: mr-fade-up .6s var(--mr-ease) both; animation-delay: calc(var(--reveal-delay, 0ms) + 150ms); }
@media (max-width: 575.98px) {
    .shelf { padding: 1rem .85rem 0; border-radius: 18px; }
    .shelf-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 1.15rem; }
    .shelf-actions { width: 100%; justify-content: space-between; }
    .shelf-actions .link-more { margin-inline-end: auto; }
}

/* ریل افقی دوره‌ها (scroll-snap؛ دکمه‌ها در site.js) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 1.25rem) / 4)); gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 1rem .5rem 1.5rem; margin: -1rem -.5rem 0;
    scrollbar-width: thin; scrollbar-color: rgba(30, 86, 54, .35) transparent; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(30, 86, 54, .3); border-radius: 6px; }
.rail:focus-visible { outline-offset: 4px; border-radius: var(--mr-radius); }
.rail-item { position: relative; scroll-snap-align: start; }
@media (max-width: 991.98px) { .rail { grid-auto-columns: minmax(240px, 46%); } }
@media (max-width: 575.98px) { .rail { grid-auto-columns: 82%; } }
.rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--mr-border); background: var(--mr-surface); color: var(--mr-primary-3);
    font-weight: 800; line-height: 1; box-shadow: var(--mr-shadow); transition: all .25s var(--mr-ease); }
.rail-btn:hover:not(:disabled) { background: var(--mr-primary); color: var(--mr-accent); border-color: var(--mr-primary); transform: scale(1.06); }
.rail-btn:disabled { opacity: .4; cursor: default; }
/* نشان «برتر» روی کارت دوره (_CourseCard) */
.ribbon { position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 2; pointer-events: none; padding: .1rem .75rem; font-size: .78rem; font-weight: 800; line-height: 1.8;
    color: var(--mr-primary); background: var(--mr-gold-gradient); border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(184, 146, 31, .7); }
.ribbon::before { content: "★ "; }


/* ---------- کارت‌ها ---------- */
.card-mr { background: var(--mr-surface); border: 1px solid var(--mr-border); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow);
    overflow: hidden; height: 100%; transition: transform .35s var(--mr-ease), box-shadow .35s var(--mr-ease), border-color .35s; }
.card-mr:hover, .card-mr:focus-within { transform: translateY(-6px); box-shadow: var(--mr-shadow-lg); border-color: rgba(217, 178, 58, .45); }
.card-mr .thumb { aspect-ratio: 16 / 9; background: var(--mr-primary-2); object-fit: cover; width: 100%; display: block; transform-origin: center bottom; transition: transform .7s var(--mr-ease), filter .5s; }
.card-mr:hover .thumb { transform: scale(1.06); filter: saturate(1.1); }
.card-mr h3 a { transition: color .2s; }
.card-mr:hover h3 a { color: var(--mr-primary-3); }
.card-mr .thumb-placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255, 255, 255, .6);
    background: radial-gradient(220px 120px at 100% 0%, rgba(217, 178, 58, .3), transparent 70%), linear-gradient(135deg, var(--mr-primary-2), var(--mr-primary-3));
    font-weight: 800; font-size: 1.5rem; }
.card-mr .card-body { padding: 1rem 1.1rem 1.2rem; }
.card-mr h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.card-mr h3 a { color: var(--mr-text); text-decoration: none; }
.card-mr h3 a::after { content: ""; position: absolute; inset: 0; } /* کل کارت قابل کلیک */
.card-mr { position: relative; }
.card-meta { color: var(--mr-muted); font-size: .85rem; }
.badge-type { background: rgba(217, 178, 58, .15); color: var(--mr-accent-dark); font-weight: 700; }

.topic-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; }
.topic-card .count { color: var(--mr-muted); font-size: .85rem; white-space: nowrap; }

/* ---------- صفحهٔ محتوا ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(500px 220px at 10% 0%, rgba(217, 178, 58, .18), transparent 70%), var(--mr-gradient); color: #fff; padding-block: 2.75rem; }
.page-hero h1 { animation: mr-fade-up .7s var(--mr-ease) both; }
.page-hero.has-image { background-size: cover; background-position: center; position: relative; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(13, 43, 28, .7); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 1.8rem; margin: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); margin-bottom: .5rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }

.content-body { background: var(--mr-surface); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 2rem; font-size: 1.02rem; }
.content-body img { border-radius: 10px; }
.content-body h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.content-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.content-body table { width: 100%; margin-bottom: 1rem; }
.content-body table td, .content-body table th { border: 1px solid var(--mr-border); padding: .5rem; }
.content-body blockquote { border-inline-start: 4px solid var(--mr-accent); padding-inline-start: 1rem; color: var(--mr-muted); }
@media (max-width: 575.98px) { .content-body { padding: 1.25rem; } }

.empty-state { text-align: center; color: var(--mr-muted); padding: 3rem 1rem; }

/* ---------- دوره و پخش ---------- */
.course-buy { position: sticky; top: 5.5rem; }
.video-list .list-group-item { padding-block: .8rem; }
.video-list .active-video { background: rgba(217, 178, 58, .12); border-inline-start: 4px solid var(--mr-accent); }
.video-state { color: var(--mr-primary-3); font-size: .95rem; }
.video-state.locked { opacity: .55; }
.player-frame { background: #000; border-radius: var(--mr-radius); overflow: hidden; box-shadow: var(--mr-shadow); aspect-ratio: 16 / 9; }
.player { width: 100%; height: 100%; display: block; }
@media (max-width: 991.98px) { .course-buy { position: static; } }

/* ---------- فروش ---------- */
.plan-card { border-top: 4px solid var(--mr-accent); }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--mr-primary-3); }
.plan-courses { padding-inline-start: 1.1rem; }
.checkout-table th { font-weight: 500; }
.wallet-box { background: var(--mr-bg); border-radius: 10px; padding: .75rem 1rem; }

/* ---------- فرم‌ها ---------- */
.form-card { background: var(--mr-surface); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 2rem; }
.form-control:focus { border-color: var(--mr-accent); box-shadow: 0 0 0 .2rem rgba(217, 178, 58, .25); }
.ltr-input { direction: ltr; text-align: left; }

/* ---------- فوتر ---------- */
.site-footer { position: relative; background: radial-gradient(700px 260px at 90% 0%, rgba(217, 178, 58, .1), transparent 70%), var(--mr-primary); color: #fff; padding-block: 3.5rem 1.5rem; margin-top: 3rem; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--mr-gold-gradient); opacity: .8; }
.footer-links a { display: inline-block; transition: color .2s, transform .25s var(--mr-ease); }
.footer-links a:hover { transform: translateX(-4px); }
.social-links a { transition: all .25s var(--mr-ease); }
.footer-title { font-size: 1.05rem; color: var(--mr-accent); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--mr-accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: rgba(255, 255, 255, .78); font-size: .93rem; }
.footer-contact .label { color: rgba(255, 255, 255, .55); }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: inline-block; padding: .3rem .85rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; text-decoration: none; font-size: .9rem; }
.social-links a:hover, .social-links a:focus-visible { background: var(--mr-accent); border-color: var(--mr-accent); color: var(--mr-primary); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- تماس و مجوزها ---------- */
.info-card { background: var(--mr-surface); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 1.75rem; }
.info-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.info-list .label { display: block; color: var(--mr-muted); font-size: .85rem; }
.info-card .social-links a { color: var(--mr-primary-3); border-color: var(--mr-border); }
.info-card .social-links a:hover, .info-card .social-links a:focus-visible { color: var(--mr-primary); }
.license-card img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--mr-bg); width: 100%; }
.license-card .issuer { color: var(--mr-muted); font-size: .88rem; }
.about-logo { width: 160px; height: 160px; border-radius: 50%; }
.license-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--mr-border); flex-shrink: 0; }

/* ---------- صفحه‌بندی ---------- */
.pagination { --bs-pagination-active-bg: var(--mr-primary); --bs-pagination-active-border-color: var(--mr-primary); --bs-pagination-color: var(--mr-primary-3); }

/* ---------- بازگشت به بالا ---------- */
.to-top { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 1030; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--mr-primary); color: var(--mr-accent); font-size: 1.2rem; font-weight: 800; box-shadow: var(--mr-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .35s var(--mr-ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--mr-accent); color: var(--mr-primary); transform: translateY(-3px); }

/* ---------- ظاهرشدن هنگام اسکرول (فقط وقتی JS فعال است؛ کلاس js در _Layout) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--mr-ease), transform .7s var(--mr-ease); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes mr-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mr-kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes mr-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
