/* =====================================================================
   آکادمی امیرعلی روزبه — استایل سایت
   همه‌ی کلاس‌های قالب برنامه‌نویس حفظ شده؛ فقط ظاهر (شیشه‌ای، گلوی نارنجی،
   انیمیشن‌ها) مطابق قالب قبلی بازطراحی شده است.
   فهرست: 1 متغیرها · 2 پایه · 3 هدر · 4 دکمه‌ها · 5 هیرو · 6 مارکی
          7 کارت‌ها · 8 صفحه محصول · 9 محتوا · 10 آکاردئون · 11 فرم‌ها
          12 کانال‌ها · 13 فوتر · 14 پنل ادمین · 15 انیمیشن/دسترسی · 16 ریسپانسیو
===================================================================== */

/* ============ 1. Fonts & Variables ============ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/public/fonts/Vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #ff6200;
    --orange-hi: #ff8a3d;
    --white: #fff;
    --black: #000;
    --muted: #a9a9a9;
    --line: rgba(255, 255, 255, 0.12);
    --edge: rgba(255, 255, 255, 0.17);
    --radius: 22px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --glass-fill:
        radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.15), transparent 55%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.07));
    --glass-blur: blur(24px) saturate(1.7);
    --glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 22px 60px -28px rgba(0, 0, 0, 0.85);

    /* نام‌های قدیمی قالب برنامه‌نویس (برای اینکه استایل‌های inline قدیمی نشکنند) */
    --bg-color: #000;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.12);
    --primary: var(--orange);
    --primary-hover: var(--orange-hi);
    --text: var(--white);
    --text-muted: var(--muted);
    --border: var(--line);
}

/* ============ 2. Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); height: 100%; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: transparent;
    color: var(--white);
    direction: rtl;
    line-height: 1.95;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* نورپردازی ثابت پشت‌زمینه — شیشه فقط وقتی شیشه‌ای دیده می‌شود که چیزی پشتش باشد */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(520px 520px at 88% 14%, rgba(255, 98, 0, 0.30), transparent 70%),
        radial-gradient(620px 620px at 4% 52%, rgba(255, 98, 0, 0.20), transparent 70%),
        radial-gradient(560px 560px at 78% 96%, rgba(255, 138, 61, 0.18), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: var(--orange-hi); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; width: 100%; position: relative; }
body > .container { flex: 1 0 auto; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: #4ade80; }
.text-accent { color: var(--orange-hi); }

/* سطح شیشه‌ای مشترک */
.product-card, .link-card, .buy-box, .dl-box, .auth-box, .links-section,
.accordion, .alert-info, .payment-result {
    background: var(--glass-fill);
    border: 1px solid var(--edge);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

/* ============ 3. Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
}
.logo-area:hover { color: var(--white); }
.logo-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--orange);
    animation: ping 2.4s infinite;
}
@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(255, 98, 0, 0.65); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(255, 98, 0, 0); }
}
.site-nav { display: flex; gap: 10px; align-items: center; }
.nav-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.nav-btn.nav-courses { background: #121212; border-color: var(--orange); color: var(--white); font-weight: 800; }
.nav-btn.nav-courses:is(:hover, :focus-visible) { background: #241507; border-color: var(--orange-hi); }
.nav-btn.btn-primary { background: linear-gradient(135deg, var(--orange-hi), var(--orange)); border-color: transparent; color: var(--black); font-weight: 800; }

/* ============ 4. Buttons ============ */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 32px;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 800;
    text-align: center;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange-hi), var(--orange));
    color: var(--black);
    box-shadow: 0 10px 40px -8px rgba(255, 98, 0, 0.7);
}
.btn-primary:hover { color: var(--black); box-shadow: 0 14px 54px -6px rgba(255, 98, 0, 0.95); }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 55%;
    left: -80%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.btn-primary:hover::after { left: 130%; transition: left 0.7s var(--ease); }

.btn-outline {
    background: var(--glass-fill);
    border-color: var(--edge);
    color: var(--white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

.btn-success {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #00170d;
    box-shadow: 0 10px 36px -10px rgba(16, 185, 129, 0.7);
}
.btn-success:hover { color: #00170d; }

.btn-black { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border-radius: 999px; background: #000; color: #fff; font-weight: 800; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.btn-black:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); color: #fff; }
.btn-block { width: 100%; display: flex; }
.btn-sm { min-height: 40px; padding: 8px 24px; font-size: 0.95rem; }

/* دکمه‌ی متنی کوچک (مثلاً «ویرایش شماره») */
.link-btn {
    background: none;
    border: 0;
    padding: 8px 4px;
    font: inherit;
    font-size: 0.92rem;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.link-btn:hover { color: var(--orange-hi); }

/* ============ 5. Hero ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 56px;
    /* هدر (76px) + مارکی (~76px) کم می‌شود تا نوار ابزارها از همان ابتدا پایین صفحه دیده شود */
    min-height: calc(100vh - 152px);
    min-height: calc(100svh - 152px);
    display: flex;
    align-items: center;
}
.hero .glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero .glow::before, .hero .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.hero .glow::before {
    width: 620px; height: 620px; left: -120px; top: 80px;
    background: radial-gradient(circle, rgba(255, 98, 0, 0.55), transparent 68%);
    animation: drift 16s ease-in-out infinite alternate;
}
.hero .glow::after {
    width: 460px; height: 460px; right: -140px; top: -60px;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.22), transparent 70%);
    animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
.grid-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
.hero-content { min-width: 0; }
.hero-title {
    font-size: clamp(2.4rem, 6.2vw, 5.2rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.06em 0; }
.hero-title .line > span { display: block; transform: translateY(115%); animation: rise 0.95s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span {
    animation-delay: 0.14s;
    background: linear-gradient(100deg, var(--orange-hi), var(--orange) 55%, #ffb27a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@keyframes rise { to { transform: translateY(0); } }
.hero-desc {
    margin-top: 26px;
    max-width: 33em;
    font-size: 1.15rem;
    color: var(--muted);
    opacity: 0;
    animation: fade 0.9s 0.5s var(--ease) forwards;
}
.hero-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: fade 0.9s 0.7s var(--ease) forwards;
}
.hero-actions .btn { padding: 15px 36px; font-size: 1.05rem; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-image {
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1000px;
    opacity: 0;
    animation: fade 1.1s 0.25s var(--ease) forwards;
}
.photo-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 30px;
    padding: 3px;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.25s ease-out;
    animation: float 7s ease-in-out infinite;
    box-shadow: 0 0 140px -10px rgba(255, 98, 0, 0.55), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.photo-frame::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: conic-gradient(from var(--angle, 0deg), var(--orange), transparent 30%, var(--orange-hi) 55%, transparent 80%, var(--orange));
    animation: spin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.photo-frame img {
    position: relative;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 27px;
    background: #000;
}

/* ============ 6. Marquee ============ */
.marquee-wrapper {
    direction: ltr;
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-content { display: flex; width: max-content; animation: scroll 34s linear infinite; }
.marquee-wrapper:hover .marquee-content { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 38px;
    padding-right: 38px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #cfcfcf;
    white-space: nowrap;
}
.marquee-item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ 7. Sections, Product Grid & Cards ============ */
.section { padding: 96px 0 40px; }
.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    text-align: right;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    padding-bottom: 60px;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
}
.product-card:hover { color: var(--white); }
.product-card::before {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 98, 0, 0.2), transparent 60%);
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 138, 61, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 30px 70px -28px rgba(255, 98, 0, 0.6);
}
.product-card:hover::before { opacity: 1; }
.product-card.coming-soon { cursor: default; }
.product-card.coming-soon .card-title,
.product-card.coming-soon .card-subtitle { opacity: 0.6; }
.product-card.coming-soon:hover { transform: none; border-color: var(--edge); box-shadow: var(--glass-shadow); }
.product-card.coming-soon:hover::before { opacity: 0; }

.card-img-wrapper {
    position: relative;
    aspect-ratio: 1032 / 644;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: calc(var(--radius) - 8px);
    background: var(--orange);
}
.card-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.product-card:hover .card-img-wrapper img { transform: scale(1.07); }
.card-badge {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 3;
    padding: 2px 15px;
    border-radius: 999px;
    border: 1px solid var(--edge);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
}
.card-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 26px 26px; }
.card-title { font-size: 1.3rem; font-weight: 800; line-height: 1.6; color: var(--white); }
.card-subtitle { flex: 1; color: var(--muted); font-size: 0.97rem; line-height: 1.9; }
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    font-weight: 700;
}
.card-price { font-size: 1.08rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-hi); }
.card-link::before { content: "←"; transition: transform 0.3s var(--ease); }
.product-card:hover .card-link::before { transform: translateX(-6px); }

/* صفحه‌ی «همه آموزش‌ها» (کارت‌های بدون تصویر، تعداد زیاد) */
.page-head { text-align: center; padding: 56px 0 8px; }
.page-head .section-title { text-align: center; margin-bottom: 12px; }
.page-head p { color: var(--muted); }
.search-box { position: relative; max-width: 520px; margin: 26px auto 34px; }
.search-box input {
    width: 100%;
    min-height: 52px;
    padding: 12px 52px 12px 20px;
    font: inherit;
    font-size: 16px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--edge);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input::placeholder { color: #8a8a8a; }
.search-box input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.25); }
.search-box::before { content: "⌕"; position: absolute; right: 20px; top: 50%; transform: translateY(-52%); font-size: 1.5rem; color: var(--muted); pointer-events: none; }
.search-empty { text-align: center; color: var(--muted); padding: 30px 0; }

.all-products-grid { grid-template-columns: 1fr; gap: 18px; }
.all-products-grid .product-card .card-body { padding: 22px 24px; }
.all-products-grid .card-title { font-size: 1.12rem; }
.all-products-grid .card-subtitle { font-size: 0.92rem; }
@media (min-width: 600px) { .all-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .all-products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ── تیزر عمودی کارت‌های «همه آموزش‌ها» ─────────────────────────────── */
.teaser-wrap {
    position: relative;
    aspect-ratio: 9 / 16;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: calc(var(--radius) - 8px);
    background: #000;
}
.teaser-wrap > video,
.teaser-wrap > img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* پوستر تیزر: روی ویدئو می‌نشیند تا ویدئو لازم نباشد برای نشان دادن
   فریم اول دانلود شود. تا شروع پخش می‌ماند، بعد محو می‌شود. چون <img>
   است، loading="lazy" رویش کار می‌کند. */
.teaser-cover {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s var(--ease);
}
.teaser-wrap.started .teaser-cover { opacity: 0; pointer-events: none; }

/* دکمه‌ی پخش/توقف — ناحیه‌ی کلیکِ خودِ ویدئو است، نه لینک کارت */
.teaser-btn {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 0; padding: 0; cursor: pointer;
    color: #fff;
    transition: background 0.3s;
}
.teaser-btn::before {
    content: '';
    width: 58px; height: 58px;
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    transition: transform 0.3s var(--ease), opacity 0.25s;
}
.teaser-btn svg { position: relative; z-index: 1; transition: opacity 0.25s; }
.teaser-btn .ic-pause { display: none; }
.teaser-wrap.playing .teaser-btn .ic-play  { display: none; }
.teaser-wrap.playing .teaser-btn .ic-pause { display: block; }
/* وقتی پخش است، دکمه کنار می‌رود تا ویدئو دیده شود. */
.teaser-wrap.playing .teaser-btn::before,
.teaser-wrap.playing .teaser-btn svg { opacity: 0; }
/* برگشتنش فقط روی دستگاه‌هایی که واقعاً موس دارند. روی صفحه‌ی لمسی،
   تپ هم به دکمه هاور/فوکوس می‌داد و آیکون قفل می‌شد تا جای دیگری لمس شود. */
@media (hover: hover) and (pointer: fine) {
    .teaser-wrap.playing .teaser-btn:hover::before,
    .teaser-wrap.playing .teaser-btn:hover svg { opacity: 1; }
    .teaser-btn:hover::before { transform: scale(1.08); }
}
/* کاربر کیبورد باید همیشه ببیند کجاست */
.teaser-wrap.playing .teaser-btn:focus-visible::before,
.teaser-wrap.playing .teaser-btn:focus-visible svg { opacity: 1; }
.teaser-btn:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: -4px; }
.product-card.has-teaser .card-body { padding-top: 16px; }
/* متن‌ها را مهار می‌کنیم تا طول عنوان و توضیح، ارتفاع کارت‌ها را به هم نریزد */
.all-products-grid .card-title,
.all-products-grid .card-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.all-products-grid .card-title    { -webkit-line-clamp: 2; }
.all-products-grid .card-subtitle { -webkit-line-clamp: 2; }
.all-products-grid .product-card .card-body { display: flex; flex-direction: column; }
.all-products-grid .product-card .card-footer { margin-top: auto; }

/* موبایل: کل کارت باید در یک صفحه جا شود، پس ویدئو سقف ارتفاع می‌گیرد
   و چون نسبت ثابت است، خودش باریک‌تر و وسط‌چین می‌شود. */
@media (max-width: 599px) {
    .all-products-grid .teaser-wrap {
        max-height: 58vh;
        width: auto;
        margin-inline: auto;
    }
    .all-products-grid .product-card .card-body { padding: 14px 18px 18px; }
    .all-products-grid .card-title { font-size: 1.02rem; }
    .all-products-grid .card-subtitle {
        font-size: 0.86rem;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
@media (prefers-reduced-motion: reduce) {
    .teaser-btn, .teaser-btn::before, .teaser-btn svg, .teaser-cover { transition: none; }
}

/* ============ 8. Single Product Page ============ */
.single-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 44px;
    margin-top: 44px;
    align-items: start;
}
.single-main { min-width: 0; }
.single-title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; line-height: 1.5; margin-bottom: 10px; }
.single-subtitle { color: var(--muted); margin-bottom: 30px; font-size: 1.1rem; line-height: 1.9; }

.single-cover {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 0 120px -30px rgba(255, 98, 0, 0.6);
}
.gif-frame { margin: 36px 0; text-align: center; }
.gif-frame img {
    display: inline-block;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--edge);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.video-block { margin: 36px 0 44px; text-align: center; }
.video-title { margin-bottom: 14px; font-size: 1.1rem; font-weight: 800; }
.video-block video {
    width: 100%;
    max-height: 520px;
    border-radius: 16px;
    background: #000;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.login-gate {
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.3);
}
.login-gate p { color: #d0d0d0; margin-bottom: 16px; }

.single-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }

.buy-box, .dl-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(26px) saturate(1.8);
    -webkit-backdrop-filter: blur(26px) saturate(1.8);
    box-shadow: var(--glass-shadow), 0 40px 90px -40px rgba(255, 98, 0, 0.45);
}
.buy-box::before, .dl-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), rgba(255, 98, 0, 0.9), transparent 25%, transparent 60%, rgba(255, 138, 61, 0.8));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: spin 7s linear infinite;
    pointer-events: none;
}
.buy-box h3, .dl-box h3 { font-size: 1.7rem; font-weight: 900; line-height: 1.5; margin-bottom: 14px; text-align: center; }
.buy-box p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; text-align: center; }
.buy-box .btn, .dl-box .btn { width: 100%; margin-top: 8px; }
.buy-box-features { list-style: none; margin-bottom: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.buy-box-features li { position: relative; padding: 5px 20px 5px 0; font-size: 0.95rem; color: var(--muted); }
.buy-box-features li::before {
    content: "";
    position: absolute; right: 0; top: 18px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 12px rgba(255, 98, 0, 0.9);
}
.dl-meta { list-style: none; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-meta li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.9rem; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dl-meta li:last-child { border-bottom: 0; }

/* لایسنس */
.license-input {
    width: 100%;
    padding: 14px;
    direction: ltr;
    text-align: center;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--orange-hi);
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed var(--orange);
    border-radius: 14px;
    cursor: pointer;
}
.license-hint { display: block; margin: 8px 0 18px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.howto { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 0.9rem; line-height: 2; color: #ddd; }
.howto strong { display: block; color: var(--orange-hi); }
.howto a { color: #6db7ff; text-decoration: underline; text-underline-offset: 3px; }

.banner-orange {
    padding: 30px 26px;
    border-radius: var(--radius);
    text-align: center;
    color: #000;
    background: linear-gradient(135deg, var(--orange-hi), var(--orange));
    box-shadow: 0 20px 60px -20px rgba(255, 98, 0, 0.7);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.banner-orange:hover { transform: translateY(-4px); box-shadow: 0 26px 70px -18px rgba(255, 98, 0, 0.85); }
.banner-orange h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 8px; }
.banner-orange p { font-size: 0.95rem; font-weight: 700; line-height: 1.8; margin-bottom: 16px; }

/* ============ 9. Content Media & Step Lists ============ */
.content-area { line-height: 2.1; font-size: 1rem; color: #e4e4e4; }
.content-area h2, .content-area h3 { margin: 28px 0 10px; font-weight: 800; line-height: 1.6; }
.content-area p { margin-bottom: 12px; }
.content-area ul, .content-area ol { padding-right: 24px; margin-bottom: 14px; }
.content-area img {
    display: block;
    margin: 34px auto;
    max-width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.content-area iframe {
    display: block;
    width: 100%;
    margin: 34px auto;
    border: 0;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.content-area code, ol.step-list code {
    display: inline-block;
    margin: 0 4px;
    padding: 2px 10px;
    direction: ltr;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
ol.step-list { list-style: none; counter-reset: step-counter; margin: 34px 0; padding: 0; }
ol.step-list li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    margin-bottom: 14px;
    padding: 16px 64px 16px 20px;
    color: #e8e8e8;
    background: var(--glass-fill);
    border: 1px solid var(--edge);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}
ol.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #000;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 98, 0, 0.6);
}

/* ============ 10. Accordion ============ */
.accordion { margin-top: 50px; margin-bottom: 40px; border-radius: 18px; overflow: hidden; transition: border-color 0.3s; }
.accordion:hover { border-color: rgba(255, 138, 61, 0.5); }
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1.08rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}
.accordion-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.accordion-body { display: none; padding: 6px 24px 26px; }
.accordion-body.show { display: block; }

/* ============ 11. Forms, Inputs & Alerts ============ */
.form-group { margin-bottom: 16px; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.92rem; color: var(--muted); }
.form-group input, .form-control {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    font: inherit;
    font-size: 16px; /* جلوگیری از زوم خودکار iOS */
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder { color: #808080; }
.form-group input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.25); }
input[type="tel"], input[inputmode="numeric"] { direction: ltr; text-align: right; }
input[type="tel"]::placeholder, input[inputmode="numeric"]::placeholder { direction: rtl; }
.code-input { text-align: center !important; letter-spacing: 0.5em; font-weight: 800; font-size: 1.3rem !important; }
.code-input::placeholder { letter-spacing: 0; font-size: 0.95rem; font-weight: 400; }

.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 14px; font-size: 0.93rem; line-height: 1.9; text-align: center; }
.alert-info { background: rgba(255, 255, 255, 0.06); }
.alert-success { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.35); color: #86efac; }
.alert-error { background: rgba(255, 59, 59, 0.12); border: 1px solid rgba(255, 59, 59, 0.4); color: #ffb3b3; }

.auth-box {
    position: relative;
    max-width: 440px;
    margin: 56px auto;
    padding: 36px 30px;
    border-radius: 28px;
    text-align: center;
    box-shadow: var(--glass-shadow), 0 0 120px -40px rgba(255, 98, 0, 0.55);
}
.auth-box h2 { margin-bottom: 6px; font-size: 1.6rem; font-weight: 900; }
.auth-box h6 { margin-bottom: 22px; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.auth-box br { display: none; }
.step-note { margin-bottom: 18px; font-size: 0.93rem; color: var(--muted); }
.step-note strong { color: var(--white); font-weight: 700; }
.step-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }
.timer { color: var(--muted); font-size: 0.88rem; }

/* فیلد اختیاری (مثلاً آیدی تلگرام): برچسب کمرنگ «اختیاری» سمت چپ داخل فیلد */
.optional-field { position: relative; }
.optional-field input { padding-left: 74px; direction: ltr; text-align: right; }
.optional-field input::placeholder { direction: rtl; }
.optional-tag {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--orange-hi);
    pointer-events: none;
}

.payment-result { max-width: 520px; margin: 60px auto; padding: 30px 24px; border-radius: 24px; text-align: center; }
.payment-result .alert { background: none; border: 0; margin: 0; padding: 0; }
.payment-result h2 { font-size: 1.4rem; margin-bottom: 10px; }

/* ============ 12. Social Links Section ============ */
.links-section {
    margin: 70px 0 50px;
    padding: 44px 36px 40px;
    border-radius: 32px;
    box-shadow: var(--glass-shadow), 0 50px 110px -50px rgba(255, 98, 0, 0.5);
}
.links-main-title { display: flex; justify-content: center; margin-bottom: 34px; text-align: center; }
.links-main-title span {
    display: inline-block;
    padding: 10px 34px;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-weight: 900;
    line-height: 1.7;
    background: radial-gradient(130% 120% at 0% 0%, rgba(255, 255, 255, 0.14), transparent 60%), rgba(255, 98, 0, 0.10);
    border: 1px solid rgba(255, 138, 61, 0.55);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 40px -12px rgba(255, 98, 0, 0.55);
}
.links-category { margin: 34px 0 14px; text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--muted); }
.links-category:first-of-type { margin-top: 0; }
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 20px;
    color: var(--white);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.13), transparent 60%),
        rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.15);
    transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s;
}
.link-card:hover {
    transform: translateY(-3px);
    color: var(--white);
    border-color: rgba(255, 138, 61, 0.65);
    background: radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 60%), rgba(255, 98, 0, 0.08);
    box-shadow: 0 20px 50px -26px rgba(255, 98, 0, 0.6);
}
.link-card.full-width { grid-column: 1 / -1; }
.link-img { flex: none; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--orange); }
.link-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.7; text-align: right; padding: 0; }
.link-title { font-size: 1.08rem; font-weight: 800; margin: 0; }
.link-desc { font-size: 0.9rem; color: var(--muted); margin: 0; }
.link-handle { font-size: 0.85rem; font-weight: 500; color: var(--orange-hi); direction: ltr; text-align: right; }
.link-arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    color: var(--white);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.link-card:hover .link-arrow { background: var(--orange); color: #000; border-color: var(--orange); transform: translateX(-4px); }

/* ============ 13. Footer ============ */
.site-footer {
    position: relative;
    margin-top: auto;
    padding: 50px 0 28px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted);
}
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 61, 0.55), transparent);
}
.footer-bottom { margin-top: 20px; font-size: 0.88rem; }
.footer-trust { display: flex; justify-content: center; }
#enamad-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px; height: 130px;
    margin: 10px auto 30px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    transition: transform 0.3s var(--ease);
}
#enamad-box:hover { transform: translateY(-3px); }
#enamad-box a { display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 100% !important; background: transparent !important; }
#enamad-box img { display: block !important; width: 110px !important; max-width: 100% !important; height: auto !important; object-fit: contain !important; }

/* ============ 14. Admin panel ============ */
.page-title { margin: 40px 0 20px; font-size: 1.8rem; font-weight: 900; }
.admin-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--edge); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: rgba(255, 255, 255, 0.03); }
.admin-table th { padding: 12px 10px; text-align: right; white-space: nowrap; color: var(--orange-hi); background: rgba(255, 255, 255, 0.06); }
.admin-table td { padding: 10px; border-top: 1px solid var(--line); }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

/* ============ 15. Reveal & Accessibility ============ */
/* ورود نرم با اسکرول برداشته شد: همه‌چیز از همان اول دیده می‌شود
   (روی موبایل جای خالیِ کارت‌های هنوز ظاهرنشده، شبیه «انتهای سایت» بود) */
[data-reveal] { opacity: 1; transform: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .product-card, .link-card, .buy-box, .dl-box, .auth-box, .links-section, .accordion { background: rgba(24, 24, 24, 0.94); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-title .line > span { transform: none; }
    .hero-desc, .hero-actions, .hero-image { opacity: 1; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============ 16. Responsive ============ */
@media (max-width: 992px) {
    .single-layout { grid-template-columns: 1fr; gap: 30px; }
    .single-sidebar { position: static; }
    .hero { min-height: 0; padding: 50px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .photo-frame { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .site-header .container { height: 66px; }
    .logo-area { font-size: 1.1rem; }
    .nav-btn { padding: 6px 14px; font-size: 0.88rem; }
    .section { padding: 64px 0 30px; }
    .product-grid { grid-template-columns: 1fr; gap: 20px; }
    .card-body { padding: 20px 20px 22px; }
    .hero-actions { flex-wrap: nowrap; gap: 10px; }
    .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 14px 12px; font-size: 0.95rem; white-space: nowrap; }
    .links-section { padding: 26px 14px 24px; border-radius: 26px; margin-top: 50px; }
    .links-main-title span { padding: 8px 22px; }
    .links-grid { grid-template-columns: 1fr; }
    .link-card { gap: 14px; padding: 11px 12px; }
    .link-img { width: 64px; height: 64px; border-radius: 14px; }
    .link-card.full-width { grid-column: auto; }
    .buy-box, .dl-box { padding: 24px 20px; }
    .buy-box h3, .dl-box h3 { font-size: 1.45rem; }
    .accordion-header { padding: 16px 18px; }
    .accordion-body { padding: 4px 18px 22px; }
    .content-area img { padding: 8px; margin: 24px auto; }
    ol.step-list li { padding: 14px 58px 14px 14px; }
    .auth-box { margin: 36px auto; padding: 28px 20px; }
    .section-title { text-align: center; }
}

/* لینک‌های نتیجه‌ی پرداخت */
.pay-link { margin-top: 16px; }
.license-box { margin: 14px 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.howto p { margin: 0; font-size: 0.88rem; }
.buy-box .alert { margin-top: 8px; margin-bottom: 0; }

/* =====================================================================
   17. دکمه‌ی «ارتباط با ما» در هدر + سیستم تیکت
===================================================================== */
.nav-btn.nav-contact {
    position: relative;
    gap: 8px;
    background: linear-gradient(135deg, var(--orange-hi), var(--orange));
    border-color: transparent;
    color: var(--black);
    font-weight: 800;
    box-shadow: 0 8px 28px -10px rgba(255, 98, 0, 0.85);
    animation: contactGlow 3.2s ease-in-out infinite;
}
.nav-btn.nav-contact:hover { background: linear-gradient(135deg, #ffa05c, var(--orange-hi)); color: var(--black); border-color: transparent; transform: translateY(-1px); }
.nav-contact-ico { flex: 0 0 auto; }
@keyframes contactGlow {
    0%, 100% { box-shadow: 0 8px 28px -10px rgba(255, 98, 0, 0.85); }
    50%      { box-shadow: 0 8px 34px -4px rgba(255, 98, 0, 1); }
}
.nav-dot {
    position: absolute;
    top: -6px; left: -4px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid #000;
}
@media (max-width: 520px) {
    .hide-xs { display: none; }
    .site-nav { gap: 6px; }
    .nav-btn { padding: 6px 12px; font-size: 0.84rem; min-height: 38px; }
    .nav-contact-ico { width: 16px; height: 16px; }
    .logo-area { font-size: 1rem; gap: 8px; }
}
@media (max-width: 400px) {
    /* آموزش‌ها دیگر مخفی نمی‌شود؛ هدر فشرده‌تر می‌شود تا همه‌ی دکمه‌ها جا شوند */
    .site-header .container { gap: 6px; }
    .logo-area { font-size: 0.92rem; gap: 6px; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .logo-dot { flex: 0 0 auto; width: 10px; height: 10px; }
    .site-nav { gap: 4px; flex: 0 0 auto; }
    .nav-btn { padding: 6px 9px; font-size: 0.78rem; min-height: 36px; white-space: nowrap; }
    .nav-contact-ico { display: none; }
}
@media (max-width: 340px) {
    .logo-area { display: none; }
    .site-header .container { justify-content: center; }
}

/* ---------- صفحه‌ی تیکت‌ها ---------- */
.tk-wrap { max-width: 860px; margin: 0 auto; padding: 34px 0 70px; }
.tk-title { font-size: 1.75rem; font-weight: 900; margin-bottom: 6px; }
.tk-sub { color: var(--muted); font-size: 0.97rem; margin-bottom: 26px; }

.tk-card {
    position: relative;
    margin-bottom: 22px;
    padding: 26px 26px 22px;
    border: 1px solid var(--edge);
    border-radius: 26px;
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}
.tk-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.tk-card label { display: block; margin-bottom: 8px; font-size: 0.92rem; color: var(--muted); }
.tk-card .form-group { margin-bottom: 14px; }
.tk-card textarea.form-control { min-height: 130px; resize: vertical; line-height: 1.9; }
.tk-card select.form-control option { background: #111; color: #fff; }
.tk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tk-counter { margin-top: 6px; font-size: 0.8rem; color: var(--muted); text-align: left; }
.tk-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tk-msg-box { margin: 12px 0 0; }
.tk-login-box { text-align: center; padding: 40px 26px; }
.tk-login-box p { color: var(--muted); margin: 8px 0 22px; }

/* لیست تیکت‌ها */
.tk-list { display: flex; flex-direction: column; gap: 10px; }
.tk-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.tk-item:hover { color: var(--white); border-color: rgba(255, 98, 0, 0.6); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.tk-item.unread { border-color: rgba(255, 98, 0, 0.7); background: rgba(255, 98, 0, 0.09); }
.tk-item-main { flex: 1; min-width: 0; }
.tk-item-title { font-weight: 800; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item-meta { margin-top: 2px; font-size: 0.82rem; color: var(--muted); }
.tk-empty { text-align: center; color: var(--muted); padding: 22px 0 6px; }

.tk-badge {
    flex: 0 0 auto;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}
.tk-badge.new      { background: rgba(96, 165, 250, 0.14); color: #93c5fd; border-color: rgba(96, 165, 250, 0.4); }
.tk-badge.waiting  { background: rgba(255, 98, 0, 0.14);   color: var(--orange-hi); border-color: rgba(255, 98, 0, 0.45); }
.tk-badge.answered { background: rgba(74, 222, 128, 0.12); color: #86efac; border-color: rgba(74, 222, 128, 0.4); }
.tk-badge.closed   { background: rgba(255, 255, 255, 0.08); color: #bdbdbd; border-color: var(--line); }
.tk-new-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 98, 0, 0.7); animation: ping 2.4s infinite; flex: 0 0 auto; }

/* گفتگو */
.tk-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 0.92rem; }
.tk-back:hover { color: var(--orange-hi); }
.tk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tk-head h1 { font-size: 1.35rem; font-weight: 900; line-height: 1.7; }
.tk-head-meta { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

.tk-chat { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
.tk-bubble { max-width: 82%; padding: 12px 16px 8px; border-radius: 20px; line-height: 1.95; word-wrap: break-word; overflow-wrap: anywhere; }
.tk-bubble .tk-text { white-space: pre-wrap; font-size: 0.97rem; }
.tk-bubble .tk-time { display: block; margin-top: 4px; font-size: 0.74rem; opacity: 0.65; }
.tk-bubble.user  { align-self: flex-start; background: linear-gradient(135deg, rgba(255, 138, 61, 0.30), rgba(255, 98, 0, 0.18)); border: 1px solid rgba(255, 98, 0, 0.45); border-top-right-radius: 6px; }
.tk-bubble.staff { align-self: flex-end; background: rgba(255, 255, 255, 0.09); border: 1px solid var(--edge); border-top-left-radius: 6px; }
.tk-who { display: block; font-size: 0.76rem; font-weight: 800; color: var(--orange-hi); margin-bottom: 2px; }

.tk-compose { margin-top: 8px; }
.tk-compose textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.9; }
.tk-closed-note { margin-top: 8px; padding: 14px 16px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, 0.06); color: #cfcfcf; font-size: 0.93rem; }
.tk-closed-note .btn { margin-top: 12px; }

@media (max-width: 680px) {
    .tk-wrap { padding: 20px 0 50px; }
    .tk-title { font-size: 1.4rem; }
    .tk-card { padding: 20px 16px 18px; border-radius: 22px; }
    .tk-row { grid-template-columns: 1fr; gap: 0; }
    .tk-bubble { max-width: 92%; }
    .tk-item { padding: 12px 14px; gap: 10px; }
    .tk-item .tk-badge { font-size: 0.72rem; padding: 3px 9px; }
}

/* ---------- پیوست تصویر در تیکت‌ها ---------- */
.tk-tip { margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 98, 0, 0.10); border: 1px solid rgba(255, 98, 0, 0.40); color: #ffd9bf; font-size: 0.92rem; line-height: 1.9; }
.tk-tip b { color: var(--orange-hi); }
.tk-tip-sm { margin: 10px 0 0; padding: 8px 12px; font-size: 0.83rem; }
.tk-attach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.tk-attach-btn { cursor: pointer; font: inherit; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); color: var(--white); transition: border-color .2s, background .2s; }
.tk-attach-btn:hover:not(:disabled) { border-color: var(--orange); background: rgba(255, 98, 0, 0.12); }
.tk-attach-btn:disabled { opacity: .45; cursor: not-allowed; }
.tk-attach-hint { color: var(--muted); font-size: 0.8rem; }
.tk-previews { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.tk-prev { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.tk-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-prev-x { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; padding: 0; }
.tk-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.tk-imgs a { display: block; line-height: 0; }
.tk-imgs img { max-width: 100%; width: auto; max-height: 220px; border-radius: 12px; border: 1px solid var(--line); background: #111; }
.tk-img-gone { font-size: 0.8rem; opacity: .6; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; }

/* ============ ویدئو قفل‌شده: کاور تار + دکمه؛ با زدن، قاب خودش کارت شیشه‌ای فرم می‌شود ============ */
.vgate {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    contain: paint;   /* هیچ‌چیز (پس‌زمینه‌ی تار، حلقه‌ی دکمه) بیرون قاب نزند و صفحه چپ‌وراست نرود */
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--edge);
    background: #0b0b0b;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
    display: grid;
    place-items: center;
    transition: background 0.35s var(--ease);
}
.vgate-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(7px) brightness(0.62) saturate(1.15);
    transform: scale(1.06);
    transition: opacity 0.35s var(--ease);
}
.vgate::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}
.vgate-cta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px; }
.vgate-play {
    position: relative;
    width: 74px; height: 74px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-inline-start: 5px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}
.vgate-play::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: vgPulse 2.4s var(--ease) infinite;
}
@keyframes vgPulse { 0% { transform: scale(0.92); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
.vgate-cta .btn { padding-inline: 26px; }

/* حالت باز: پس‌زمینه کم‌رنگ می‌شود و قاب، خودِ کارت فرم است */
.vgate.open {
    aspect-ratio: auto;
    display: block;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255, 98, 0, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        #0c0c0c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}
.vgate.open .vgate-bg { opacity: 0; }
.vgate.open::after { opacity: 0; }
.vgate-box { position: relative; z-index: 1; padding: 26px 24px 20px; text-align: right; max-width: 460px; margin: 0 auto; }
.vgate-head { text-align: center; margin-bottom: 18px; }
.vgate-head b { display: block; font-size: 1.08rem; font-weight: 800; color: var(--white); }
.vgate-head small { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.vgate-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.vgate-fields input, .vgate-code {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font: inherit;
    font-size: 16px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vgate-fields input::placeholder, .vgate-code::placeholder { color: #7d7d7d; }
.vgate-fields input:focus, .vgate-code:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.22); }
.vgate-code { height: 58px; margin-bottom: 14px; text-align: center; direction: ltr; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.6em; padding-inline-start: 0.6em; }
.vgate-code::placeholder { letter-spacing: 0.4em; font-size: 1.1rem; }
.vgate-err { margin: -4px 0 12px; font-size: 0.86rem; color: #ff9a9a; text-align: center; }
.vgate-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 24px; }
.vgate-actions .link-btn { font-size: 0.86rem; }
.vgate-timer { font-size: 0.82rem; color: var(--muted); }
@media (min-width: 681px) {
    .vgate-fields { flex-direction: row; }
    .vgate-fields input { flex: 1; }
}

/* موبایل، کاربر واردنشده با ویدئوی قفل: قفل‌های دیگر (محتوای ویژه اعضا، توضیحات قفل) نشان داده نمی‌شوند
   تا صفحه پر از «ورود» نباشد؛ دسکتاپ مثل قبل می‌ماند */
@media (max-width: 680px) {
    .vg-guest-mhide { display: none !important; }
}

/* حالت «کارت»: ویدئوی قفل نیست ولی آموزش/توضیحات قفل است — به‌جای کارت «محتوای ویژه اعضا» */
.vgate.vgate-card {
    aspect-ratio: auto;
    display: block;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255, 98, 0, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        #0c0c0c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}
.vgate-card .vgate-cta { padding: 26px 20px; gap: 12px; text-align: center; }
.vgate-card .vgate-cta .btn { width: 100%; white-space: normal; line-height: 1.6; }
.vgate-ic {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--orange-hi);
    background: rgba(255, 98, 0, 0.12);
    border: 1px solid rgba(255, 98, 0, 0.35);
}
.vgate-card-t { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.single-sidebar .vgate-card .vgate-box { padding: 24px 18px 18px; }
.single-sidebar .vgate-card .vgate-fields { flex-direction: column; }

/* روی ویدئوی قفل، کل کاور قابل زدن است */
.vgate:not(.open):not(.vgate-card) { cursor: pointer; }
.vgate-play { cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s; }
.vgate:not(.open):not(.vgate-card):hover .vgate-play { transform: scale(1.06); background: rgba(255, 255, 255, 0.22); }

/* موبایل/تبلت (ستون‌ها زیر هم): فاصله‌ی همه‌ی بخش‌های پست یکسان — ۲۰px مثل فاصله‌ی کارت‌های کنار */
@media (max-width: 992px) {
    .single-layout { gap: 20px; }
    .single-main > :last-child { margin-bottom: 0; }
    .single-main .video-block { margin-top: 20px; }
    .single-layout + .accordion, .container > .accordion { margin-top: 20px; }
    .vgate-card .vgate-cta .btn { font-size: 0.95rem; padding-inline: 14px; }
}
/* فقط دانلود قفل: فرم تا وقتی دکمه‌ی دانلود زده نشود دیده نمی‌شود */
.vgate.vgate-silent:not(.open) { display: none; }

/* فرم سه‌مرحله‌ای: شماره ← کد ← (در صورت نیاز) نام + تلگرام */
.vgate-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    margin-bottom: 10px;
    font: inherit;
    font-size: 16px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vgate-input::placeholder { color: #7d7d7d; }
.vgate-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.22); }
#vg-phone { direction: ltr; text-align: right; }
#vg-step1 .btn, #vg-step3 .btn { margin-top: 4px; }
.vgate-opt { position: relative; }
.vgate-opt .vgate-input { padding-left: 74px; margin-bottom: 6px; }
.vgate-opt span {
    position: absolute; left: 10px; top: 13px;
    font-size: 0.74rem; color: var(--muted);
    padding: 2px 8px; border-radius: 99px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
    pointer-events: none;
}
.vgate-note { display: block; margin: 0 2px 14px; font-size: 0.8rem; line-height: 1.8; color: var(--muted); }
.vgate-actions-c { justify-content: center; min-height: 0; }

/* توضیحات پیش‌نمایش (عمومی) — برای مهمان انتهایش محو می‌شود و دکمه‌ی «دیدن ادامه‌ی آموزش» می‌آید */
.content-preview.is-cut {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent);
}
.preview-more { text-align: center; padding: 18px 0 4px; }
.preview-more .btn { min-width: 220px; }

/* =====================================================================
   18. چیدمان جدید صفحه‌ها — همان ظاهر سایت، ساختار تازه
   (کارت مستر کلاس، «به‌زودی»، آموزش‌های رایگان در صفحه‌ی اصلی، تیزرها،
   پست با کارت ویدئو و ستون کناری، فوتر کامل)
   نکته: فاصله‌ی عمودی همیشه روی پوشش بیرونی است، نه روی .container،
   تا با padding افقی .container تداخل نکند.
===================================================================== */

/* برچسب کوچک */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 13px;
    border-radius: 999px;
    border: 1px solid var(--edge);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    color: var(--white);
    font-size: 0.82rem; font-weight: 700; line-height: 1.9;
    white-space: nowrap;
}
.chip-accent { background: rgba(255, 98, 0, 0.14); border-color: rgba(255, 98, 0, 0.45); color: var(--orange-hi); }
.chip-ok { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.4); color: #86efac; }
.arr { flex: none; transition: transform 0.3s var(--ease); }

/* سر هر بخش: عنوان + توضیح کوتاه + لینک «دیدن همه» */
.sec { padding-top: 88px; }
#masterclass { scroll-margin-top: 24px; }   /* دکمه‌ی «دیدن مینی‌دوره‌های رایگان»: عنوان زیر هدر نرود */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head .section-title { margin-bottom: 0; text-align: right; }
.sec-sub { margin-top: 2px; color: var(--muted); font-size: 1rem; }
.sec-link { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; }
.sec-link:hover .arr { transform: translateX(-4px); }
/* «دیدن همه‌ی آموزش‌های ویدئویی»: دسکتاپ کنار عنوان، موبایل زیر ویدئوها و تمام‌عرض */
.sec-btn { flex: none; }
.btn:hover .arr { transform: translateX(-4px); }
.sec-more { display: none; margin-top: 16px; }

/* هیرو مثل طرح تأییدشده: ارتفاع به اندازه‌ی محتوا (نه تمام صفحه) و عنوان کمی کوچک‌تر */
.hero { min-height: 0; padding: 56px 0 72px; }
.hero-title { font-size: clamp(40px, 6vw, 76px); }
.hero-desc { margin-top: 22px; }
.hero-actions { margin-top: 32px; }
.hero-actions .btn { min-height: 54px; }

/* هیرو: برچسب بالای عنوان و اسم روی عکس */
.hero-eyebrow {
    display: inline-flex; align-items: center;
    margin-bottom: 18px; padding: 6px 18px;
    border-radius: 14px;
    background: radial-gradient(130% 120% at 0% 0%, rgba(255, 255, 255, 0.14), transparent 60%), rgba(255, 98, 0, 0.10);
    border: 1px solid rgba(255, 138, 61, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 40px -12px rgba(255, 98, 0, 0.55);
    font-size: 0.92rem; font-weight: 800;
    opacity: 0;
    animation: fade 0.9s 0.05s var(--ease) forwards;
}
.hero-actions .btn .arr { margin-inline-start: 2px; }
.hero-actions .btn:hover .arr { transform: translateX(-4px); }
.hero-actions .btn:hover .arr-down { transform: translateY(3px); }
.photo-tag {
    position: absolute; right: 18px; bottom: 18px; z-index: 2;
    display: flex; flex-direction: column;
    padding: 7px 16px;
    border-radius: 16px;
    border: 1px solid var(--edge);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    line-height: 1.6;
}
.photo-tag b { font-size: 0.95rem; }
.photo-tag span { font-size: 0.8rem; color: var(--muted); }

/* نوار ابزارها با عنوان کنارش */
.tools-band {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.tools-row { display: flex; align-items: center; gap: 18px; }
.tools-label { flex: none; color: var(--muted); font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.tools-marquee {
    flex: 1; min-width: 0;
    overflow: hidden;
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tools-marquee:hover .marquee-content { animation-play-state: paused; }

/* ---------- کارت دوره‌ها (صفحه‌ی اصلی) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.course-card .card-body { padding: 16px 20px 20px; gap: 6px; }
.course-card .card-body > .chip { align-self: flex-start; }
.course-card .card-title { font-size: 1.12rem; line-height: 1.65; }
.course-card .card-subtitle {
    font-size: 0.93rem; line-height: 1.9;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card .card-footer { padding-top: 14px; gap: 10px; }
.card-go { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-hi); font-weight: 800; }
.product-card:hover .card-go .arr { transform: translateX(-4px); }
.card-meta { color: var(--white); font-weight: 700; white-space: nowrap; }

/* کارت بزرگ مستر کلاس */
.course-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    box-shadow: var(--glass-shadow), 0 40px 90px -40px rgba(255, 98, 0, 0.45);
}
.course-card.featured .card-img-wrapper {
    grid-column: 2; grid-row: 1;
    align-self: stretch;
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: 16px;
}
.course-card.featured .card-body { grid-column: 1; grid-row: 1; padding: 28px 30px; gap: 10px; justify-content: center; }
.course-card.featured .card-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.55; }
.course-card.featured .card-subtitle { -webkit-line-clamp: unset; font-size: 1rem; }
.course-card.featured .card-footer { justify-content: flex-start; padding-top: 8px; }
.card-kicker { display: flex; flex-wrap: wrap; gap: 8px; }

/* به‌زودی */
.soon-title { margin: 30px 0 12px; font-size: 1rem; font-weight: 800; color: var(--muted); }
.soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.soon-item {
    display: flex; align-items: center; gap: 14px;
    min-width: 0; padding: 10px;
    border-radius: 18px;
    background: var(--glass-fill);
    border: 1px solid var(--edge);
    box-shadow: var(--glass-shadow);
}
.soon-item img { flex: none; width: 96px; aspect-ratio: 1032 / 644; object-fit: cover; border-radius: 12px; opacity: 0.6; }
.soon-item div { min-width: 0; }
.soon-item b { display: block; font-size: 1rem; line-height: 1.6; opacity: 0.65; }
.soon-item span { font-size: 0.85rem; color: var(--muted); }

/* ---------- کارت آموزش با تیزر عمودی ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.t-card .teaser-chip { position: absolute; top: 10px; right: 10px; z-index: 3; pointer-events: none; }
.t-card .teaser-wrap::after {
    content: ""; position: absolute; inset: auto 0 0; height: 32%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none; transition: opacity 0.25s;
}
.t-card .teaser-wrap.playing::after { opacity: 0; }
.t-card .teaser-btn { z-index: 1; align-items: flex-end; justify-content: flex-start; padding: 12px; }
.t-card .teaser-btn::before { content: none; }
.teaser-pill {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px 0 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 0.85rem; font-weight: 700;
    transition: background 0.2s, color 0.2s, opacity 0.25s;
}
.teaser-wrap.playing .teaser-pill { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    .t-card .teaser-btn:hover .teaser-pill { background: var(--orange); border-color: transparent; color: var(--black); }
    .teaser-wrap.playing .teaser-btn:hover .teaser-pill { opacity: 1; }
}
.teaser-wrap.playing .teaser-btn:focus-visible .teaser-pill { opacity: 1; }
.teaser-link { position: absolute; inset: 0; }
.teaser-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-card .card-body { padding: 14px 18px 18px; gap: 5px; }
.t-card .card-title {
    font-size: 1rem; line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-card .card-title a { color: var(--white); }
/* کل بدنه‌ی کارت (زیر تیزر) لینک پست است؛ خودِ تیزر فقط پخش/توقف */
.t-card .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.t-card .card-subtitle {
    flex: none; font-size: 0.88rem; line-height: 1.85;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-card .card-go { margin-top: auto; padding-top: 8px; font-size: 0.93rem; }

/* ---------- صفحات و کانال‌ها ---------- */
.links-section.links-wide { margin: 0; padding: 34px 32px 32px; }
.links-wide .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.links-wide .link-img { width: 60px; height: 60px; border-radius: 14px; }

/* ---------- همه‌ی آموزش‌ها ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; padding-top: 26px; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); white-space: nowrap; }
.crumbs a:hover { color: var(--white); }
.crumbs .sep { flex: none; opacity: 0.45; }
.crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6d6d6; }
.page-hero { padding-top: 12px; }
.page-hero .section-title { margin-bottom: 8px; font-size: clamp(1.9rem, 4vw, 2.6rem); text-align: right; }
.page-hero p { max-width: 42em; color: var(--muted); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 22px 0 26px; }
.toolbar .search-box { flex: 1 1 300px; max-width: 460px; margin: 0; }
.count { color: var(--muted); font-size: 0.92rem; }
.cta-band {
    margin-top: 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 26px 28px;
    border-radius: var(--radius);
    color: var(--black);
    background: linear-gradient(135deg, var(--orange-hi), var(--orange));
    box-shadow: 0 20px 60px -20px rgba(255, 98, 0, 0.7);
}
.cta-band b { display: block; font-size: 1.25rem; font-weight: 900; }
.cta-band span { font-weight: 700; color: #1a0a00; }
.cta-band .btn-black { flex: none; padding: 10px 26px; gap: 8px; }
.cta-band .btn-black:hover .arr { transform: translateX(-4px); }

/* ---------- صفحه‌ی پست ---------- */
.post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "main aside" "article aside";
    column-gap: 40px;
    align-items: start;
    margin-top: 10px;
}
.post-main { grid-area: main; min-width: 0; }
.post-aside { grid-area: aside; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.post-article { grid-area: article; min-width: 0; }
.post-head .single-title { margin-bottom: 8px; }
.post-head .single-subtitle { margin-bottom: 14px; }
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* کارت ویدئو: کاور + پخش (یا خود ویدئو برای اعضا) */
.media {
    position: relative;
    margin-top: 22px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--edge);
    background: #0b0b0b;
    box-shadow: 0 0 120px -30px rgba(255, 98, 0, 0.6), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
    scroll-margin-top: 96px;
}
.media-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.media-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(1.1); transition: filter 0.3s; }
.media-frame.js-unlock { cursor: pointer; }
.media-frame.js-unlock:hover .media-poster { filter: brightness(0.72) saturate(1.1); }
.media-frame .vgate-play { position: absolute; inset: 0; margin: auto; z-index: 1; }
.media-frame.js-unlock:hover .vgate-play { transform: scale(1.06); background: rgba(255, 255, 255, 0.22); }
.media-chip { position: absolute; top: 12px; right: 12px; z-index: 2; }
.media-cover { display: block; width: 100%; height: auto; }
.post-main .gif-frame { margin: 26px 0 0; }

/* زیر کاورِ ویدئوی قفل: فقط دکمه؛ با زدنش فرم همان‌جا باز می‌شود */
.vgate.vgate-bar {
    aspect-ratio: auto;
    display: block;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    contain: none;
    box-shadow: none;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255, 98, 0, 0.16), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        #0c0c0c;
}
.vgate.vgate-bar, .vgate.vgate-card { place-items: normal; }
.vgate.vgate-bar::after { content: none; }
.vgate.vgate-bar.open { box-shadow: none; }
.vgate-bar .vgate-cta { padding: 18px 22px; }
.vgate-bar .vgate-cta .btn { min-width: 280px; }

/* باکس «دسترسی به این آموزش» (ستون کناری) */
.buy-box.access-box { text-align: right; }
.buy-box .access-title, .vgate-card .access-title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.7; text-align: right; color: var(--white); }
.access-price { margin-top: 2px; font-size: 1.7rem; font-weight: 900; line-height: 1.6; }
.access-ok {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 10px 13px;
    border-radius: 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #b7f5cb; font-size: 0.92rem;
}
.access-list { list-style: none; display: grid; gap: 4px; margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; }
.access-list li { position: relative; padding-right: 20px; font-size: 0.93rem; line-height: 1.9; color: var(--muted); }
.access-list li::before {
    content: ""; position: absolute; right: 0; top: 0.8em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange); box-shadow: 0 0 12px rgba(255, 98, 0, 0.9);
}
.vgate.vgate-card { border-radius: var(--radius); }
.post-aside .vgate-card .vgate-box { padding: 24px 18px 18px; }
.vgate.vgate-card .vgate-cta { display: block; padding: 26px 24px; text-align: right; }

/* متن آموزش: باز، داخل کادر شیشه‌ای */
.post-article-box {
    margin-top: 28px;
    padding: 22px 26px 26px;
    border-radius: 18px;
    background: var(--glass-fill);
    border: 1px solid var(--edge);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    scroll-margin-top: 96px;
}
.article-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-head h2 { font-size: 1.15rem; font-weight: 800; line-height: 1.7; }
.post-article-box .content-area > :first-child { margin-top: 12px; }
.post-article .banner-orange { margin-top: 20px; }
.banner-orange .btn-black { gap: 8px; }

/* ---------- فوتر ---------- */
.site-footer { margin-top: auto; padding: 72px 0 0; text-align: right; }
.site-footer::before { top: 72px; }
.footer-main { padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 32px; align-items: start; }
.footer-about b { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.05rem; font-weight: 900; }
.footer-about .logo-dot { flex: none; width: 10px; height: 10px; animation: none; }
.footer-about p { margin-top: 10px; max-width: 30em; color: var(--muted); font-size: 0.92rem; line-height: 2; }
.site-footer h4 { margin-bottom: 8px; color: var(--white); font-size: 0.95rem; font-weight: 800; }
.site-footer ul { list-style: none; }
.site-footer li a { color: var(--muted); font-size: 0.92rem; line-height: 2.3; }
.site-footer li a:hover { color: var(--white); }
.site-footer .footer-trust { justify-content: flex-end; }
.site-footer #enamad-box { margin: 0; }
.site-footer .footer-bottom { margin-top: 36px; padding: 18px 0 24px; border-top: 1px solid var(--line); text-align: center; font-size: 0.85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow { opacity: 1; }
}

/* ---------- ریسپانسیو چیدمان جدید ---------- */
@media (max-width: 1040px) {
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .links-wide .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 28px; }
}
@media (max-width: 992px) {
    /* موبایل/تبلت: عنوان و ویدئو ← باکس کناری (فرم/خرید/دانلود) ← متن آموزش؛ فاصله‌ها یکسان ۲۰px */
    .post-grid { display: block; }
    .post-aside { position: static; margin-top: 20px; }
    .post-aside.aside-m-empty, .post-mhide, .promo-desk { display: none !important; }
    .post-article-box { margin-top: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
    .footer-about { grid-column: 1 / -1; }
    .site-footer .footer-trust { grid-column: 1 / -1; justify-content: center; }
}
@media (min-width: 993px) {
    .promo-mob { display: none !important; }
}
@media (max-width: 760px) {
    .course-card.featured { grid-template-columns: minmax(0, 1fr); }
    .course-card.featured .card-img-wrapper { grid-column: auto; grid-row: auto; align-self: auto; margin: 10px 10px 0; }
    .course-card.featured .card-body { grid-column: auto; grid-row: auto; padding: 20px 20px 22px; }
}
@media (max-width: 680px) {
    .sec { padding-top: 64px; }
    .sec-head { flex-wrap: wrap; margin-bottom: 20px; }
    .sec-head .section-title { font-size: 1.7rem; }
    .sec-btn { display: none; }
    .sec-more { display: block; }
    .sec-sub { font-size: 0.93rem; }
    .hero { padding: 36px 0 56px; }
    .hero-title { font-size: clamp(36px, 11vw, 46px); }
    .hero-desc { font-size: 1.02rem; }
    .hero-actions .btn { min-height: 52px; }
    /* اگر دو دکمه کنار هم جا نشوند، زیر هم و تمام‌عرض می‌شوند (متن نمی‌برد) */
    .hero-actions { flex-wrap: wrap; }
    .hero-actions .btn { flex: 1 1 auto; min-width: auto; }
    .photo-frame { max-width: 300px; }
    .hero-eyebrow { font-size: 0.85rem; padding: 5px 14px; margin-bottom: 14px; }
    .photo-tag { right: 14px; bottom: 14px; padding: 6px 13px; }
    .tools-band { padding: 14px 0; }
    .tools-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .tools-label { text-align: center; }
    .tools-marquee .marquee-item { font-size: 1rem; gap: 28px; padding-right: 28px; }

    .course-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .course-card .card-body { padding: 16px 18px 18px; }
    .soon-grid { grid-template-columns: minmax(0, 1fr); }

    .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .t-card { border-radius: 18px; }
    .t-card .teaser-wrap { margin: 6px 6px 0; border-radius: 13px; }
    .t-card .teaser-chip { top: 8px; right: 8px; padding: 0 9px; font-size: 0.75rem; }
    .t-card .teaser-btn { padding: 8px; }
    .teaser-pill { height: 30px; padding: 0 10px 0 11px; font-size: 0.78rem; }
    .t-card .card-body { padding: 10px 12px 12px; gap: 2px; }
    .t-card .card-title { font-size: 0.9rem; -webkit-line-clamp: 3; }
    .t-card .card-subtitle { display: none; }
    .t-card .card-go { font-size: 0.85rem; padding-top: 6px; }

    .links-section.links-wide { padding: 24px 14px 22px; border-radius: 26px; }
    .links-wide .links-grid { grid-template-columns: minmax(0, 1fr); }
    .links-wide .link-img { width: 56px; height: 56px; }

    .toolbar { margin: 18px 0 20px; }
    .toolbar .search-box { flex-basis: 100%; max-width: none; }
    .cta-band { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 18px; }
    .cta-band .btn-black { justify-content: center; }

    .media { margin-top: 18px; border-radius: 16px; }
    .media-frame .vgate-play { width: 64px; height: 64px; }
    .vgate-bar .vgate-cta { padding: 16px; }
    .vgate-bar .vgate-cta .btn { width: 100%; min-width: 0; }
    .post-article-box { padding: 18px 16px 20px; }

    .site-footer { padding-top: 56px; }
    .site-footer::before { top: 56px; }
    .footer-main { padding-top: 34px; }
    .site-footer .footer-bottom { margin-top: 28px; }
}
