/* ============================================================
   دست چپ - استودیو سه‌بعدی | استایل اختصاصی ابزار
   فقط در صفحه /studio3d/ بارگذاری می‌شود
   ============================================================ */

:root {
    --bg-body: #0a1210;
    --bg-panel: #101c15;
    --bg-card: #16281e;
    --bg-input: #1a2e23;
    --bg-hover: #1f3a2b;
    --accent: #4ade80;
    --accent-dark: #22c55e;
    --gold: #fbbf24;
    --danger: #f87171;
    --text: #f0fdf4;
    --text-muted: #8bb89a;
    --border: rgba(74, 222, 128, 0.14);
    --border-strong: rgba(74, 222, 128, 0.3);
    --radius: 12px;
    --topbar-h: 56px;
    --panel-w: 264px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    min-height: 100%;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, kbd { font-family: inherit; }

/* ======================= نوار بالا ======================= */
.topbar {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: var(--topbar-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    background: rgba(10, 18, 16, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.topbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; }

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.2s;
}
.brand svg { color: var(--accent); flex-shrink: 0; }
.brand b { color: var(--accent); }
.brand:hover { background: var(--bg-card); }

.project-name {
    width: min(300px, 100%);
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.project-name:focus { border-color: var(--border-strong); }

.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.tb-btn em { font-style: normal; font-size: 12.5px; font-weight: 600; }
.tb-btn:hover:not(:disabled) { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.tb-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.tb-btn.tb-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #06130c;
    font-weight: 800;
    border: none;
    padding: 0 14px;
}
.tb-btn.tb-primary:hover { filter: brightness(1.08); color: #06130c; }
.tb-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* منوی خروجی */
.export-wrap { position: relative; }
.export-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 6px;
    display: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    z-index: 120;
}
.export-menu.open { display: block; animation: menuIn 0.16s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.export-menu button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    text-align: right;
    transition: background 0.15s;
}
.export-menu button:hover { background: var(--bg-hover); }
.export-menu b { font-size: 13.5px; color: var(--accent); }
.export-menu span { font-size: 11.5px; color: var(--text-muted); }

/* ======================= چیدمان ======================= */
.workspace {
    position: relative;
    margin-top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    min-height: 540px;
    display: flex;
}

.viewport {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
    order: 2;
}
.viewport canvas { display: block; outline: none; }

/* پنل‌ها */
.panel {
    width: var(--panel-w);
    flex-shrink: 0;
    background: var(--bg-panel);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #24402f transparent;
    z-index: 60;
}
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: #24402f; border-radius: 6px; }

.panel-right { order: 1; border-left: 1px solid var(--border); }
.panel-left  { order: 3; border-right: 1px solid var(--border); }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 8px;
}
.panel-head h2 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.count-badge {
    background: var(--bg-input);
    color: var(--accent);
    border-radius: 20px;
    font-size: 11px;
    padding: 1px 9px;
    font-weight: 700;
}
.panel-close {
    display: none;
    width: 28px; height: 28px;
    border-radius: 8px;
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1;
}
.panel-close:hover { background: var(--bg-card); color: var(--text); }

/* ---------- کارت شکل‌ها ---------- */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 14px 14px;
}
.shape-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 2px 7px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text-muted);
    transition: all 0.18s;
}
.shape-card svg { width: 26px; height: 26px; color: var(--accent); }
.shape-card span { font-size: 10.5px; font-weight: 600; }
.shape-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text);
    transform: translateY(-2px);
}
.shape-card:active { transform: scale(0.94); }

/* ---------- نمونه‌های آماده ---------- */
.tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 14px 14px;
}
.tpl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 9px 2px 7px;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: 11px;
    color: var(--text-muted);
    transition: all 0.18s;
}
.tpl-card svg { width: 24px; height: 24px; color: var(--gold); }
.tpl-card span { font-size: 10.5px; font-weight: 600; }
.tpl-card:hover { background: var(--bg-hover); color: var(--text); transform: translateY(-2px); }
.tpl-card:active { transform: scale(0.94); }

/* ---------- تنظیمات صحنه ---------- */
.scene-settings { padding: 2px 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
}
.switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: 0.2s;
}
.switch i::before {
    content: '';
    position: absolute;
    top: 2px; right: 2px;
    width: 14px; height: 14px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + i { background: rgba(74, 222, 128, 0.25); border-color: var(--accent); }
.switch input:checked + i::before { background: var(--accent); transform: translateX(-16px); }

.color-row { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; font-size: 13px; }
.bg-swatches { display: flex; gap: 8px; }
.bg-swatches button {
    width: 26px; height: 26px;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: transform 0.15s, border-color 0.15s;
}
.bg-swatches button:hover { transform: scale(1.15); border-color: var(--text); }

/* ======================= نوار ابزار پایین ======================= */
.tool-dock {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    background: rgba(16, 28, 21, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 40;
    max-width: calc(100% - 20px);
}
.dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 11px;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    transition: all 0.15s;
}
.dock-btn svg { width: 17px; height: 17px; }
.dock-btn:hover { background: var(--bg-hover); color: var(--text); }
.dock-btn.active { background: rgba(74, 222, 128, 0.18); color: var(--accent); }
.dock-btn.dock-danger:hover { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.dock-btn.toggled { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.dock-sep { width: 1px; height: 30px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.mode-group { display: flex; gap: 2px; }

/* ======================= نوار نما ======================= */
.view-strip {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 4px;
    padding: 5px;
    background: rgba(16, 28, 21, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 40;
}
.view-strip button {
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: all 0.15s;
}
.view-strip button:hover { background: var(--bg-hover); color: var(--text); }

.hint-strip {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(16, 28, 21, 0.75);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    z-index: 40;
    transition: opacity 1s;
    pointer-events: none;
}

/* ======================= لیست اشیاء ======================= */
.obj-list { padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 4px; min-height: 46px; }
.obj-empty, .props-empty {
    padding: 18px 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    line-height: 2;
}
.obj-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.obj-item:hover { background: var(--bg-hover); }
.obj-item.selected { border-color: var(--accent); background: rgba(74, 222, 128, 0.08); }
.obj-dot { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); }
.obj-name {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.obj-act {
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.15s;
}
.obj-act:hover { background: var(--bg-input); color: var(--text); }
.obj-act.act-del:hover { color: var(--danger); background: rgba(248, 113, 113, 0.12); }
.obj-act svg { width: 15px; height: 15px; }
.obj-item.hidden-obj { opacity: 0.45; }

/* ======================= ویژگی‌ها ======================= */
.props { padding: 2px 14px 20px; }
.props-body { display: flex; flex-direction: column; gap: 13px; }
.props-body[hidden] { display: none; }

.prop-row { display: flex; flex-direction: column; gap: 6px; }
.prop-row > label { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.prop-row input[type="text"] {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}
.prop-row input[type="text"]:focus { border-color: var(--border-strong); }

.color-cell { display: flex; flex-direction: column; gap: 8px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button {
    width: 24px; height: 24px;
    border-radius: 7px;
    border: 2px solid transparent;
    outline: 1px solid var(--border);
    transition: transform 0.15s, border-color 0.15s;
}
.swatches button:hover { transform: scale(1.18); }
.swatches button.active { border-color: #fff; }
.prop-row input[type="color"] {
    width: 100%;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-input);
    cursor: pointer;
    padding: 3px;
}

.preset-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.preset-grid button {
    padding: 6px 2px;
    font-size: 10.5px;
    font-weight: 700;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.15s;
}
.preset-grid button:hover { color: var(--text); border-color: var(--border-strong); }
.preset-grid button.active { background: rgba(74, 222, 128, 0.16); color: var(--accent); border-color: var(--accent); }

.prop-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: var(--bg-input);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}
.prop-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #0a1210;
    box-shadow: 0 0 0 1px var(--accent);
    cursor: grab;
}
.prop-row input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #0a1210;
    cursor: grab;
}

.prop-check { flex-direction: row; align-items: center; justify-content: space-between; }

.prop-group {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.15);
    padding: 3px 10px;
    border-radius: 7px;
    margin-top: 4px;
    align-self: flex-start;
}

.vec-row {
    display: grid;
    grid-template-columns: 12px 1fr 12px 1fr 12px 1fr;
    gap: 6px;
    align-items: center;
}
.vec-row label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-align: center; }
.vec-row input {
    width: 100%;
    padding: 7px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    text-align: center;
    direction: ltr;
    outline: none;
    -moz-appearance: textfield;
}
.vec-row input::-webkit-outer-spin-button,
.vec-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.vec-row input:focus { border-color: var(--accent); }

/* ======================= دکمه‌های موبایل ======================= */
.mobile-fab {
    display: none;
    position: absolute;
    bottom: 96px;
    right: 14px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #06130c;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 45;
    transition: transform 0.15s;
}
.mobile-fab.fab-left { right: auto; left: 14px; }
.mobile-fab:active { transform: scale(0.92); }

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.backdrop.show { opacity: 1; pointer-events: auto; }

/* ======================= مودال ======================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 8, 6, 0.7);
    backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal-box {
    width: 100%;
    max-width: 380px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 26px;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.modal-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.modal-box p { font-size: 13.5px; color: var(--text-muted); line-height: 2; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.btn-modal {
    flex: 1;
    padding: 11px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.15s;
}
.btn-ghost { background: var(--bg-input); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-solid { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #06130c; }
.btn-solid:hover { filter: brightness(1.08); }

/* راهنما */
.help-box { max-width: 460px; max-height: 82vh; overflow-y: auto; }
.help-content { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.help-step {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 10px 14px;
    line-height: 2;
}
.help-step b { color: var(--accent); }
.help-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
}
kbd {
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 10.5px;
    color: var(--text);
    margin-left: 4px;
}

/* ======================= لودینگ ======================= */
.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--bg-body);
    transition: opacity 0.4s;
}
.loading-overlay.done { opacity: 0; pointer-events: none; }
.loading-overlay p { font-size: 13.5px; color: var(--text-muted); }
.spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================= توست ======================= */
.toast-wrap {
    position: fixed;
    top: calc(var(--topbar-h) + 14px);
    right: 50%;
    transform: translateX(50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.toast {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    animation: toastIn 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(90vw, 440px);
}
.toast.success { border-color: rgba(74, 222, 128, 0.5); }
.toast.success::before { content: '✓'; color: var(--accent); font-weight: 900; }
.toast.error { border-color: rgba(248, 113, 113, 0.5); }
.toast.error::before { content: '✕'; color: var(--danger); font-weight: 900; }
.toast.info::before { content: 'ℹ'; color: var(--gold); font-weight: 900; }
.toast.leaving { opacity: 0; transform: translateY(-8px); transition: all 0.3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   واکنش‌گرایی
   ============================================================ */
@media (max-width: 1024px) {
    .tb-btn em { display: none; }
    .tb-btn { padding: 0 8px; }
}

@media (max-width: 900px) {
    .panel-close { display: flex; align-items: center; justify-content: center; }
    .hint-strip { display: none; }
    .mobile-fab { display: flex; }

    .panel {
        position: fixed;
        top: var(--topbar-h);
        bottom: 0;
        width: min(300px, 84vw);
        z-index: 70;
        transition: transform 0.28s ease;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    .panel-right {
        right: 0;
        transform: translateX(105%);
    }
    .panel-left {
        left: 0;
        transform: translateX(-105%);
    }
    .panel-right.open, .panel-left.open { transform: translateX(0); }

    .shape-grid, .tpl-grid { grid-template-columns: repeat(4, 1fr); }

    .tool-dock { bottom: 12px; padding: 4px; border-radius: 14px; }
    .dock-btn { min-width: 44px; padding: 5px 5px; }
    .dock-btn span { display: none; }
    .dock-btn svg { width: 19px; height: 19px; }
    .view-strip button { padding: 5px 8px; font-size: 10.5px; }
}

@media (max-width: 560px) {
    .project-name { width: 100%; font-size: 12px; padding: 7px 8px; }
    .brand span { display: none; }
    .tb-sep { display: none; }
    .topbar { padding: 0 8px; gap: 4px; }
    .tb-btn { height: 34px; }
    .tool-dock { gap: 1px; }
    .dock-btn { min-width: 40px; }
}

/* ======================= بخش معرفی / سئو ======================= */
.seo-section {
    background: var(--bg-body);
    border-top: 1px solid var(--border);
    padding: 64px 20px 0;
}

.seo-container { max-width: 860px; margin: 0 auto; }

.seo-section h1 {
    font-size: 27px;
    font-weight: 900;
    line-height: 1.7;
    margin-bottom: 16px;
}

.seo-section h1 span {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-lead {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 2.3;
    margin-bottom: 34px;
}

.seo-lead strong, .seo-faq strong { color: var(--text); }

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.seo-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    transition: border-color 0.2s, transform 0.2s;
}
.seo-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.seo-card b {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.seo-card p { color: var(--text-muted); font-size: 12.5px; line-height: 2.1; }
.seo-card a, .seo-faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.seo-h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 18px;
}

.seo-faq details {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.seo-faq summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: color 0.2s;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.seo-faq details[open] summary::after { transform: rotate(45deg); }
.seo-faq summary:hover { color: var(--accent); }

.seo-faq details p {
    padding: 0 18px 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 2.2;
}

.studio-seo-cta { text-align: center; margin-top: 36px; }

.btn-studio-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #06130c;
    font-weight: 800;
    font-size: 14.5px;
    padding: 13px 34px;
    border-radius: 14px;
    transition: transform 0.2s, filter 0.2s;
}
.btn-studio-solid:hover { transform: translateY(-2px); filter: brightness(1.08); }

.studio-footer {
    margin-top: 44px;
    padding: 20px 0 26px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.studio-footer a { color: var(--accent); }

@media (max-width: 700px) {
    .seo-section { padding: 46px 16px 0; }
    .seo-section h1 { font-size: 21px; }
    .seo-grid { grid-template-columns: 1fr; }
    .studio-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .seo-card, .btn-studio-solid { transition: none !important; }
}

/* چاپ / حالت روشن سازگاری اسکرول بدنه */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
