:root {
    --bg: #111625;
    --bg2: #1a2236;
    --card: #1e2740;
    --stroke: #39466e;
    --text: #f2f4fa;
    --muted: #9aa5c4;
    --gold: #f5b93f;
    --green: #6fbf4a;
    --cream: #f3eddc;
    --blue: #4a9de0;
    --red: #e05a4a;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: Vazir, Tahoma, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, var(--bg2), var(--bg));
    color: var(--text);
    line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 22, 37, 0.96);
    border-bottom: 1px solid rgba(57, 70, 110, 0.6);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand strong { font-size: 1.15rem; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-size: .92rem;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.nav-links a.btn-gold,
.nav-links a.btn-gold:hover,
.drawer-links a.btn-gold,
.drawer-links a.btn-gold:hover {
    color: #1a1405;
    background: linear-gradient(180deg, #ffd063, var(--gold));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease;
}

.btn:hover { filter: brightness(1.05); }

.btn-gold {
    background: linear-gradient(180deg, #ffd063, var(--gold));
    color: #1a1405;
    box-shadow: 0 8px 24px rgba(245, 185, 63, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--stroke);
}

.hero {
    position: relative;
    padding: 48px 0 28px;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
}

.hero-copy h1 { color: var(--text); }

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 185, 63, 0.12);
    color: var(--gold);
    font-size: .85rem;
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.35;
}

.hero p.lead {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-actions .btn {
    border-radius: 12px;
    height: 52px;
    padding: 0 22px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    /* نسبت تقریبی بج بازار (421×125) تا هر دو فروشگاه هم‌اندازه باشند */
    width: 175px;
    height: 52px;
    flex: 0 0 auto;
}

.store-badge:hover {
    filter: brightness(1.06);
    text-decoration: none;
}

.store-badge img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.hero-visual { display: flex; justify-content: center; }

.hero-slider { width: min(280px, 72vw); }

.hero-phone {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(245, 185, 63, 0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    background: var(--card);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
    margin: 0;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    background: #0c101c;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--gold);
    transform: scale(1.15);
}

.hero-fallback {
    width: min(220px, 60vw);
    margin: 0 auto;
    border-radius: 24px;
}

.back-to-top {
    position: fixed;
    inset-inline-end: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #2a2108;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, background .15s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    text-decoration: none;
    background: #ffcf5e;
}

.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* فاصله از بنر چسبان پایین MediaAd در صورت فعال بودن */
.guide-main ~ .back-to-top,
body:has(.guide-main) .back-to-top {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 9px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.55);
}

.nav-backdrop[hidden] { display: none !important; }

.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 70;
    background: #151c2f;
    border-right: 1px solid var(--stroke);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(-105%);
    transition: transform .22s ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    visibility: hidden;
    pointer-events: none;
}

.site-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.site-drawer[hidden] {
    display: none !important;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--stroke);
}

.drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-links a {
    color: var(--text);
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
}

.drawer-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.drawer-download { margin-top: 8px; text-align: center; }

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .site-drawer, .btn { transition: none !important; }
}

.section {
    padding: 48px 0;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 20px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--gold);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: var(--card);
}

.gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    text-decoration: none;
    color: inherit;
}

.gallery-trigger:hover {
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: contain;
    object-position: center top;
    background: #0c101c;
}

.gallery-item figcaption {
    padding: 8px 10px 10px;
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}

.demo-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.demo-panel, .side-panel {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.demo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.stage-pill {
    background: rgba(245, 185, 63, 0.12);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.demo-status { color: var(--muted); font-size: .9rem; }

.grid-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.crossword-grid {
    display: grid;
    gap: 4px;
    direction: rtl;
    width: fit-content;
    max-width: 100%;
}

.keyboard-row {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: stretch;
    gap: 6px;
    margin-top: 14px;
    user-select: none;
}

.keyboard-row .persian-keyboard {
    flex: 1;
    min-width: 0;
}

.keyboard-row .kb-backspace {
    flex: 0 0 auto;
    width: clamp(44px, 12vw, 56px);
    min-height: 100%;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #ea6a5a, var(--red));
    color: #fff;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 0 #b84336;
}

.keyboard-row .kb-backspace:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b84336;
}

.hint-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.hint-btn {
    border: 1px solid var(--stroke);
    background: #151c2f;
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, opacity .15s;
}

.hint-btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold);
}

.hint-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hint-btn.used {
    opacity: 0.45;
    text-decoration: line-through;
}

.guide-panel {
    color: var(--muted);
    font-size: .92rem;
    max-height: 680px;
    overflow-y: auto;
}

.guide-panel h3 {
    color: var(--text);
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.guide-block {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(57, 70, 110, 0.5);
}

.guide-block:last-of-type {
    border-bottom: none;
}

.guide-block h4 {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: .92rem;
    font-weight: 700;
}

.guide-block p {
    margin: 0;
    line-height: 1.65;
}

.guide-cta {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--stroke);
    color: var(--text);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox[hidden] { display: none; }

.lightbox-stage {
    max-width: min(420px, 90vw);
    max-height: 85vh;
}

.lightbox-stage img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev { right: 16px; }
.lightbox-next { left: 16px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: .9rem;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 24px 0;
}

.cell {
    width: clamp(28px, 7vw, 38px);
    height: clamp(28px, 7vw, 38px);
    border-radius: 8px;
    position: relative;
    font-weight: 700;
    font-size: clamp(.85rem, 2.5vw, 1rem);
}

.cell.block {
    background: transparent;
    border: none;
}

.cell.letter {
    background: var(--cream);
    color: #1b2133;
    border: 2px solid #d8cdb4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell.letter.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 185, 63, 0.25);
}

.cell.letter.solved {
    background: #e8f6df;
    border-color: var(--green);
}

.cell .num {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: .55rem;
    color: #6b7280;
    line-height: 1;
}

.question-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
}

.question-box .cat {
    color: var(--blue);
    font-size: .82rem;
    margin-bottom: 6px;
}

.question-box p { margin: 0 0 8px; }

.demo-direction {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .85rem;
}

.persian-keyboard {
    direction: rtl;
}

.kb-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.kb-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.kb-key {
    flex: 1 1 0;
    min-width: 0;
    max-width: 42px;
    aspect-ratio: 1 / 1.06;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #faf6ea, var(--cream));
    color: #22283b;
    font: inherit;
    font-weight: 700;
    font-size: clamp(.82rem, 2.8vw, 1rem);
    cursor: pointer;
    box-shadow: 0 3px 0 #c8bc9f;
    padding: 0;
}

.kb-key:active {
    background: var(--gold);
    transform: translateY(2px);
    box-shadow: 0 1px 0 #c8bc9f;
}

.kb-key:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cell.letter.word-active {
    background: #fbe7b4;
}

.cell.letter.cursor {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 185, 63, 0.35);
    background: #fff8e8;
}

.cell.letter.wrong-flash {
    animation: wrongFlash .55s ease;
}

@keyframes wrongFlash {
    0%, 100% { background: var(--cream); border-color: #d8cdb4; }
    30%, 70% { background: #ffd6d0; border-color: var(--red); }
}

.cell .letter-char {
    line-height: 1;
}

.answer-row {
    display: flex;
    gap: 8px;
}

.answer-row input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: #151c2f;
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.word-chip {
    border: 1px solid var(--stroke);
    background: #151c2f;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .82rem;
    cursor: pointer;
}

.word-chip.active { border-color: var(--gold); color: var(--gold); }
.word-chip.done { border-color: var(--green); color: var(--green); }

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--stroke);
    text-align: right;
    font-size: .92rem;
}

.leaderboard-table th { color: var(--muted); font-weight: 600; }

.rank-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.rank-1 { background: rgba(245, 185, 63, 0.2); color: var(--gold); }
.rank-2 { background: rgba(199, 204, 216, 0.15); color: #c7ccd8; }
.rank-3 { background: rgba(205, 138, 79, 0.18); color: #cd8a4f; }

.support-form label {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    margin: 10px 0 6px;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: #151c2f;
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}

.support-form textarea { min-height: 110px; resize: vertical; }

.form-msg {
    margin-top: 10px;
    font-size: .9rem;
}

.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }

.seo-copy {
    color: var(--muted);
    font-size: .95rem;
}

.seo-copy h3 {
    color: var(--text);
    margin-top: 0;
}

.site-footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--stroke);
    color: var(--muted);
    font-size: .88rem;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-badges .store-badge,
.footer-badge {
    width: 162px;
    height: 48px;
}

.leaderboard-panel { overflow-x: auto; }
.support-submit { margin-top: 14px; width: 100%; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-overlay.show { display: flex; }

.modal {
    position: relative;
    width: min(420px, 100%);
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.modal h3 { margin: 0 0 10px; font-size: 1.25rem; padding-inline-end: 28px; }
.modal p { margin: 0 0 18px; color: var(--muted); }
.modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.loading {
    text-align: center;
    color: var(--muted);
    padding: 24px 0;
}

.nav-links a.is-active {
    color: var(--gold);
    background: rgba(245, 185, 63, 0.12);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

.footer-links a { color: var(--muted); }

.guide-main { padding-bottom: 120px; }

/* فضای بیشتر برای ستون بنر ۶۰۰px کنار متن */
.guide-article.container {
    width: min(1280px, calc(100% - 32px));
}

.crumb {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 0 12px;
}

.crumb a { color: var(--gold); }

.guide-hero { padding-top: 36px; }

.guide-search { margin: 0 0 28px; }
.guide-search label { display: block; margin-bottom: 8px; color: var(--muted); }
.guide-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.guide-search-row input {
    flex: 1;
    min-width: 200px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}

.guide-cat-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 12px; }
.guide-cat-cards a.feature-card { text-decoration: none; color: inherit; }
.guide-cat-cards a.feature-card:hover { text-decoration: none; }

.guide-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0 0 8px;
}
.guide-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}
.guide-cat-card:hover { text-decoration: none; border-color: var(--gold); }
.guide-cat-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    background: #151c2f;
}
.guide-cat-card h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--gold);
}
.guide-cat-card p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px 16px;
}

.guide-list span { color: var(--muted); font-size: .88rem; white-space: nowrap; }

.guide-meta { color: var(--muted); margin-top: 0; }
.guide-body { font-size: 1.05rem; }
.guide-body h2 { color: var(--gold); font-size: 1.2rem; margin-top: 28px; }
.guide-body h3 { font-size: 1.05rem; margin-top: 18px; }

.guide-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.guide-content-col { min-width: 0; }

.guide-ad-col {
    min-width: 0;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* بنر ۶۰۰×۴۰۰ — خالی = بدون فضا؛ پرشده = اندازهٔ واقعی */
.guide-ad-col #mediaad-nwmJ5 {
    display: block;
    width: 100%;
    max-width: 600px;
}

.guide-ad-col #mediaad-nwmJ5:empty {
    display: none;
}

.guide-ad-col #mediaad-nwmJ5:not(:empty) {
    min-height: 200px;
}

.guide-ad-col #mediaad-nwmJ5 iframe,
.guide-ad-col #mediaad-nwmJ5 img {
    max-width: 100% !important;
    height: auto !important;
}

/* بنر ۳۰۰×۳۰۰ زیر جایگاه اصلی */
.guide-ad-col #mediaad-W2BnQ {
    display: block;
    width: 300px;
    max-width: 100%;
}

.guide-ad-col #mediaad-W2BnQ:empty {
    display: none;
}

.guide-ad-col #mediaad-W2BnQ:not(:empty) {
    min-height: 150px;
}

.guide-ad-col #mediaad-W2BnQ iframe,
.guide-ad-col #mediaad-W2BnQ img {
    max-width: 100% !important;
    height: auto !important;
}

.guide-ad-native {
    display: block;
    width: 100%;
    margin: 12px 0 4px;
}

.guide-ad-native:empty {
    display: none;
    margin: 0;
}

.guide-ad-native:not(:empty) {
    min-height: 80px;
}

@media (min-width: 1100px) {
    .guide-layout {
        /* RTL: محتوا راست، بنر ۶۰۰ چپ */
        grid-template-columns: minmax(0, 1fr) 600px;
        gap: 28px;
    }

    .guide-ad-col {
        max-width: none;
        margin-inline: 0;
        align-items: stretch;
    }

    .guide-ad-col #mediaad-W2BnQ {
        margin-inline: auto;
    }
}

@media (min-width: 961px) and (max-width: 1099px) {
    .guide-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
        gap: 20px;
    }

    .guide-ad-col {
        max-width: none;
        margin-inline: 0;
    }
}

.answer-box {
    margin: 24px 0;
    padding: 18px 20px;
    background: rgba(245, 185, 63, 0.08);
    border: 1px solid rgba(245, 185, 63, 0.35);
    border-radius: 16px;
}

.answer-box h2 { margin-top: 0; }
.answer-value { font-size: 1.6rem; font-weight: 700; color: var(--gold); margin: 0 0 8px; }
.answer-meta { color: var(--muted); margin: 0; }

.guide-app-cta {
    margin-top: 28px;
    padding: 16px 18px;
    background: var(--card);
    border-radius: 14px;
    border: 1px solid var(--stroke);
}

.guide-related { margin-top: 16px; }

.guide-main .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
}

.guide-main .page-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--stroke);
    color: var(--text);
}

.guide-main .page-item.active .page-link { color: var(--gold); border-color: var(--gold); }
.guide-main .admin-pager-info { margin: 18px 0 0; }

@media (min-width: 961px) {
    .nav-toggle,
    .nav-backdrop,
    .site-drawer,
    .drawer-close {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .hero-inner, .demo-wrap { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .hero-slider { width: min(240px, 68vw); margin: 0 auto; }
    .guide-panel { max-height: none; }
    .site-header .inner { padding: 12px 0; }
    .container { width: min(1120px, calc(100% - 24px)); }
    .section { padding: 36px 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
    .guide-cat-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 1.55rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-actions .store-badges { width: 100%; }
    .hero-actions .store-badge {
        flex: 1 1 calc(50% - 5px);
        width: auto;
        min-width: 140px;
        max-width: 175px;
        height: 48px;
        justify-content: center;
    }
    .footer-badges { justify-content: center; }
    .footer-badges .store-badge,
    .footer-badge {
        width: 150px;
        height: 44px;
    }
    .kb-key { max-width: 36px; border-radius: 10px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
}
