/* ─── راهنمای فعال‌سازی — طراحی حرفه‌ای + ویدیو ─── */

.lg-guide-page .main-content {
    padding: 0;
}

/* ─── Hero split ─── */
.lg-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--mk-border, rgba(148, 163, 184, 0.12));
    overflow: hidden;
}

.lg-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 15% 0%, rgba(34, 197, 94, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 50% at 85% 15%, rgba(124, 58, 237, 0.08), transparent 50%),
        var(--mk-bg);
    pointer-events: none;
}

.lg-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
}

.lg-hero-copy h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--mk-text);
}

.lg-hero-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--mk-text-muted);
    max-width: 34rem;
}

.lg-kicker {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #86efac !important;
    border-color: rgba(52, 211, 153, 0.22) !important;
}

html.mk-public[data-theme="light"] .lg-kicker {
    background: rgba(5, 150, 105, 0.08) !important;
    color: #047857 !important;
    border-color: rgba(5, 150, 105, 0.22) !important;
}

.lg-hero-highlights {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
}

.lg-hero-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--mk-text-secondary);
}

.lg-hero-highlights li i {
    color: var(--mk-purple, #a78bfa);
    font-size: 0.72rem;
    opacity: 0.9;
}

html.mk-public[data-theme="light"] .lg-hero-highlights li i {
    color: #6d28d9;
}

.lg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* ─── Video player ─── */
.lg-video-wrap {
    width: 100%;
}

.lg-video-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #0a0f1a;
    box-shadow:
        0 24px 60px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    aspect-ratio: 16 / 9;
}

.lg-video-frame iframe,
.lg-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #000;
}

.lg-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.lg-video-placeholder-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #0c4a6e 100%);
}

.lg-video-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}

.lg-video-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
}

.lg-video-glow--1 {
    width: 45%;
    height: 45%;
    top: 10%;
    right: 10%;
    background: rgba(124, 58, 237, 0.5);
}

.lg-video-glow--2 {
    width: 40%;
    height: 40%;
    bottom: 5%;
    left: 8%;
    background: rgba(34, 197, 94, 0.35);
}

.lg-video-placeholder-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    max-width: 18rem;
}

.lg-video-play {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lg-video-frame:hover .lg-video-play {
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
}

.lg-video-play i {
    margin-right: -0.15rem;
}

.lg-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.55rem;
}

.lg-video-placeholder-body strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.lg-video-placeholder-body > span:not(.lg-video-play):not(.lg-video-badge):not(.lg-video-soon) {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.65rem;
}

.lg-video-soon {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(253, 224, 71, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.lg-video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 0.65rem;
    padding: 0 0.15rem;
    font-size: 0.72rem;
    color: var(--mk-text-muted);
}

.lg-video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lg-video-meta-hint {
    margin-right: auto;
    color: var(--mk-text-secondary);
    opacity: 0.85;
}

/* ─── Flow pipeline ─── */
.lg-flow-band {
    padding: 1.25rem 0 0.75rem;
}

.lg-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    max-width: 780px;
    margin: 0 auto;
}

.lg-flow-item {
    flex: 1 1 160px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.85rem;
    border-radius: 14px;
    background: var(--mk-card);
    border: 1px solid var(--mk-border);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lg-flow-item:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 10px 28px -14px rgba(124, 58, 237, 0.35);
}

.lg-flow-item strong {
    display: block;
    margin: 0.55rem 0 0.2rem;
    font-size: 0.84rem;
    color: var(--mk-text);
}

.lg-flow-item span {
    font-size: 0.72rem;
    color: var(--mk-text-muted);
    line-height: 1.45;
}

.lg-flow-arrow {
    display: grid;
    place-items: center;
    color: var(--mk-text-muted);
    font-size: 0.7rem;
    opacity: 0.6;
    flex-shrink: 0;
    align-self: center;
}

/* ─── User status ─── */
.lg-user-status {
    max-width: 780px;
    margin: 0.75rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lg-user-status--active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.lg-user-status--pending {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

html.mk-public[data-theme="light"] .lg-user-status--active {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.22);
}

html.mk-public[data-theme="light"] .lg-user-status--pending {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.22);
}

.lg-user-status-body {
    flex: 1;
    min-width: 180px;
}

.lg-user-status-body strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    color: var(--mk-text);
}

.lg-user-status-body p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--mk-text-muted);
    line-height: 1.55;
}

/* ─── Steps grid ─── */
.lg-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.lg-step-card {
    background: var(--mk-card);
    border: 1px solid var(--mk-border);
    border-radius: 16px;
    padding: 1.25rem 1.2rem 1.15rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.lg-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #22c55e);
    opacity: 0.55;
}

.lg-step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.45);
}

.lg-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.lg-step-num {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.14);
    color: var(--mk-purple, #a78bfa);
    font-size: 0.9rem;
    font-weight: 800;
}

.lg-step-card h3 {
    font-size: 0.95rem;
    margin: 0 0 0.55rem;
    line-height: 1.45;
    color: var(--mk-text);
    font-weight: 700;
}

.lg-step-desc {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
    line-height: 1.75;
    color: var(--mk-text-secondary);
}

.lg-step-tip {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 0.78rem;
    line-height: 1.6;
    color: #fcd34d;
}

.lg-step-tip i {
    margin-left: 0.35rem;
    opacity: 0.85;
}

html.mk-public[data-theme="light"] .lg-step-tip {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.22);
    color: #92400e;
}

html.mk-public[data-theme="dark"] .lg-step-tip {
    color: #fde68a;
}

/* ─── Notes grid ─── */
.lg-notes-grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
}

.lg-note-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    background: var(--mk-card);
    border: 1px solid var(--mk-border);
    transition: transform 0.2s, border-color 0.2s;
}

.lg-note-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.25);
}

.lg-note-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--mk-text-secondary);
}

/* ─── FAQ ─── */
.lg-faq {
    max-width: 680px;
}

.lg-faq-item summary::before {
    content: '+';
    width: 1.35rem;
    height: 1.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--mk-purple, #a78bfa);
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.lg-faq-item[open] summary::before {
    content: '−';
}

/* ─── Related links ─── */
.lg-related-band {
    padding: 0 0 clamp(1.5rem, 3vw, 2rem);
}

.lg-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 780px;
    margin: 0 auto;
}

.lg-related-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: var(--mk-card);
    border: 1px solid var(--mk-border);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lg-related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 10px 28px -14px rgba(124, 58, 237, 0.3);
}

.lg-related-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lg-related-copy strong {
    font-size: 0.88rem;
    color: var(--mk-text);
}

.lg-related-copy span {
    font-size: 0.75rem;
    color: var(--mk-text-muted);
    line-height: 1.45;
}

.lg-related-arrow {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--mk-purple, #a78bfa);
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

.lg-related-card:hover .lg-related-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

.lg-cta {
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(34, 197, 94, 0.08), transparent),
        var(--mk-bg);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .lg-hero-grid {
        grid-template-columns: 1fr;
    }

    .lg-video-wrap {
        order: -1;
        max-width: 640px;
        margin: 0 auto;
    }

    .lg-hero-copy {
        text-align: center;
    }

    .lg-hero-lead {
        margin-inline: auto;
    }

    .lg-hero-highlights {
        justify-content: center;
    }

    .lg-hero-actions {
        justify-content: center;
    }

    .lg-steps-grid {
        grid-template-columns: 1fr;
    }

    .lg-notes-grid {
        grid-template-columns: 1fr;
    }

    .lg-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lg-user-status {
        flex-direction: column;
        text-align: center;
    }

    .lg-flow-arrow {
        display: none;
    }

    .lg-flow-item {
        max-width: none;
        flex: 1 1 100%;
    }

    .lg-video-meta-hint {
        margin-right: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-step-card,
    .lg-flow-item,
    .lg-note-card,
    .lg-related-card,
    .lg-video-play {
        transition: none;
    }
}
