/* ═══════════════════════════════════════════════════════════════
   Psyno Guide — آموزش تعاملی تمام‌صفحه، ماکت‌های زنده و راهنمای روی صفحه
   ═══════════════════════════════════════════════════════════════ */

html.gd-lock, html.gd-lock body { overflow: hidden !important; }

.gd-root {
    --gd-a-rgb: 139, 92, 246;
    --gd-a: rgb(var(--gd-a-rgb));
    --gd-b: #22d3ee;
    --gd-bg: #060a17;
    --gd-panel: rgba(17, 24, 46, 0.66);
    --gd-panel-2: rgba(255, 255, 255, 0.05);
    --gd-line: rgba(255, 255, 255, 0.1);
    --gd-text: #f1f5ff;
    --gd-muted: #a8b4cf;
    --gd-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    position: fixed;
    inset: 0;
    z-index: 8500;
    display: flex;
    flex-direction: column;
    color: var(--gd-text);
    background: var(--gd-bg);
    font-family: var(--ds-font-sans, 'Vazirmatn', Tahoma, sans-serif);
    direction: rtl;
    animation: gd-fade-in 0.45s var(--gd-ease) both;
    transition: --gd-a-rgb 0.6s;
}
.gd-root[hidden] { display: none !important; }
[data-theme="light"] .gd-root {
    --gd-bg: #eef2fb;
    --gd-panel: rgba(255, 255, 255, 0.82);
    --gd-panel-2: rgba(15, 23, 42, 0.04);
    --gd-line: rgba(15, 23, 42, 0.1);
    --gd-text: #0f172a;
    --gd-muted: #475569;
}
.gd-root *, .gd-root *::before, .gd-root *::after { box-sizing: border-box; }
.gd-root button { font-family: inherit; cursor: pointer; }
.gd-root kbd, .gd-tour kbd {
    display: inline-block; min-width: 1.5em; padding: 0 0.35em; margin: 0 0.1em;
    border: 1px solid var(--gd-line, rgba(255,255,255,.2)); border-bottom-width: 2px; border-radius: 6px;
    font: 600 0.78em/1.6 ui-monospace, Consolas, monospace; background: var(--gd-panel-2, rgba(255,255,255,.06)); direction: ltr;
}
.gd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── پس‌زمینهٔ متحرک ─── */
.gd-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gd-blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: 0.42; animation: gd-drift 22s ease-in-out infinite alternate; }
.gd-blob.b1 { top: -18vmax; right: -12vmax; background: radial-gradient(circle, rgba(var(--gd-a-rgb), 0.9), transparent 65%); }
.gd-blob.b2 { bottom: -20vmax; left: -14vmax; background: radial-gradient(circle, var(--gd-b), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.gd-blob.b3 { top: 30%; left: 30%; width: 30vmax; height: 30vmax; background: radial-gradient(circle, #ec4899, transparent 65%); opacity: 0.18; animation-duration: 30s; }
[data-theme="light"] .gd-blob { opacity: 0.22; }
.gd-stars {
    position: absolute; inset: 0; opacity: 0.5;
    background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.5px);
    background-size: 90px 90px, 150px 150px; background-position: 0 0, 40px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
[data-theme="light"] .gd-stars { background-image: radial-gradient(rgba(15,23,42,.12) 1px, transparent 1.5px); background-size: 28px 28px; opacity: 0.6; }

.gd-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }

/* ─── دکمه‌ها ─── */
.gd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 44px; padding: 0.55rem 1.15rem; border-radius: 14px; border: 1px solid transparent;
    font-size: 0.92rem; font-weight: 700; color: var(--gd-text); background: var(--gd-panel-2);
    transition: transform 0.18s var(--gd-ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
    -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.gd-btn:hover { transform: translateY(-2px); }
.gd-btn:active { transform: translateY(0) scale(0.98); }
.gd-btn:disabled { opacity: 0.35; pointer-events: none; }
.gd-btn em { font-style: normal; }
.gd-btn-primary {
    color: #fff; border-color: rgba(255,255,255,.18);
    background: linear-gradient(135deg, var(--gd-a), var(--gd-b));
    box-shadow: 0 10px 30px rgba(var(--gd-a-rgb), 0.38), inset 0 1px 0 rgba(255,255,255,.25);
}
.gd-btn-primary:hover { box-shadow: 0 16px 40px rgba(var(--gd-a-rgb), 0.5), inset 0 1px 0 rgba(255,255,255,.3); }
.gd-btn-glass { background: var(--gd-panel); border-color: var(--gd-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gd-btn-glass:hover { border-color: rgba(var(--gd-a-rgb), 0.55); box-shadow: 0 8px 24px rgba(var(--gd-a-rgb), 0.2); }
.gd-btn-ghost { background: transparent; border-color: var(--gd-line); }
.gd-btn-lg { min-height: 54px; padding: 0.75rem 1.6rem; font-size: 1rem; border-radius: 16px; }
.gd-btn-sm { min-height: 38px; padding: 0.4rem 0.9rem; font-size: 0.84rem; border-radius: 12px; }
.gd-root :focus-visible, .gd-tour :focus-visible { outline: 3px solid rgba(var(--gd-a-rgb, 139,92,246), 0.75); outline-offset: 2px; }
.gd-link { border: 0; background: none; color: var(--gd-muted); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 4px; padding: 0.5rem; }
.gd-link:hover { color: var(--gd-text); }
.gd-icon-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; min-width: 44px; height: 44px; padding: 0 0.8rem;
    border-radius: 13px; border: 1px solid var(--gd-line); background: var(--gd-panel); color: var(--gd-text);
    font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.2s, transform 0.2s;
}
.gd-icon-btn em { font-style: normal; }
.gd-icon-btn:hover { background: rgba(var(--gd-a-rgb), 0.18); transform: translateY(-1px); }
.gd-x { justify-content: center; padding: 0; width: 44px; font-size: 1rem; }

/* ─── نوار بالا ─── */
.gd-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem clamp(0.9rem, 3vw, 2rem); padding-top: max(0.85rem, env(safe-area-inset-top)); }
.gd-top-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.gd-top-brand b { display: block; font-size: 0.98rem; }
.gd-top-brand small { display: block; color: var(--gd-muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.gd-logo {
    display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px; color: #fff; font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); box-shadow: 0 8px 24px rgba(var(--gd-a-rgb), 0.45);
}
.gd-top-actions { display: flex; gap: 0.5rem; }

/* ─── خوش‌آمد ─── */
.gd-welcome {
    position: relative; flex: 1; display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem); width: min(1180px, 100%); margin: 0 auto; padding: clamp(1.25rem, 4vw, 3.5rem);
}
.gd-welcome-x { position: absolute; top: max(1rem, env(safe-area-inset-top)); left: 1rem; z-index: 3; }
.gd-hero-art { position: relative; width: min(420px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.gd-orb {
    position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 40%), linear-gradient(135deg, var(--gd-a), var(--gd-b));
    box-shadow: 0 0 80px rgba(var(--gd-a-rgb), 0.65), inset 0 -10px 30px rgba(0,0,0,.25);
    animation: gd-float 5s ease-in-out infinite;
}
.gd-orb span { color: #fff; font-size: clamp(2.6rem, 8vw, 4.2rem); font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.gd-rings i { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(var(--gd-a-rgb), 0.45); animation: gd-ring 3.6s ease-out infinite; }
.gd-rings i:nth-child(2) { animation-delay: 1.2s; }
.gd-rings i:nth-child(3) { animation-delay: 2.4s; }
.gd-orbit { position: absolute; inset: 0; animation: gd-spin 36s linear infinite; }
.gd-orbit span { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(min(190px, 35vw)); }
.gd-orbit b {
    position: absolute; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px; border-radius: 18px; font-size: 1.55rem;
    background: var(--gd-panel); border: 1px solid var(--gd-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: rotate(calc(-360deg / var(--n) * var(--i)));
    animation: gd-counter 36s linear infinite;
}
.gd-welcome-text { animation: gd-rise 0.7s 0.1s var(--gd-ease) both; }
.gd-pill { display: inline-flex; gap: 0.35rem; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: rgba(var(--gd-a-rgb), 0.16); border: 1px solid rgba(var(--gd-a-rgb), 0.35); }
.gd-welcome h1, .gd-finish h1, .gd-hub-intro h1 { margin: 0.9rem 0 0.8rem; font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.35; font-weight: 800; }
.gd-grad { background: linear-gradient(90deg, var(--gd-a), var(--gd-b), #ec4899, var(--gd-a)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gd-shine 8s linear infinite; }
.gd-welcome p { color: var(--gd-muted); font-size: clamp(0.95rem, 1.6vw, 1.07rem); line-height: 2; margin: 0 0 1.1rem; max-width: 60ch; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.gd-meta span { padding: 0.4rem 0.85rem; border-radius: 12px; font-size: 0.85rem; background: var(--gd-panel); border: 1px solid var(--gd-line); }
.gd-welcome-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.4rem; }
.gd-foot-note { font-size: 0.84rem !important; margin-top: 0.6rem !important; }

/* ─── مرکز آموزش (فهرست فصل‌ها) ─── */
.gd-view-hub, .gd-view-finish { overflow: hidden; }
.gd-hub-scroll { flex: 1; overflow-y: auto; padding: 0 clamp(0.9rem, 3vw, 2rem) 3rem; overscroll-behavior: contain; }
.gd-hub-hero {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
    width: min(1180px, 100%); margin: 0.5rem auto 1.5rem; padding: clamp(1.1rem, 3vw, 2rem); border-radius: 26px;
    background: var(--gd-panel); border: 1px solid var(--gd-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0,0,0,.18); animation: gd-rise 0.55s var(--gd-ease) both;
}
.gd-hub-intro h1 { margin-top: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.gd-hub-intro p { color: var(--gd-muted); line-height: 1.9; margin: 0 0 1rem; }
.gd-hub-ring {
    --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--gd-b) calc(var(--p) * 1%), rgba(var(--gd-a-rgb), 0.15) 0);
    box-shadow: 0 0 40px rgba(var(--gd-a-rgb), 0.3);
}
.gd-hub-ring > div { width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--gd-bg); }
.gd-hub-ring b { font-size: 1.6rem; }
.gd-hub-ring b small { font-size: 0.9rem; color: var(--gd-muted); }
.gd-hub-ring span { font-size: 0.72rem; color: var(--gd-muted); }
.gd-search {
    display: flex; align-items: center; gap: 0.6rem; padding: 0 1rem; min-height: 54px; border-radius: 16px;
    background: var(--gd-panel-2); border: 1px solid var(--gd-line); transition: border-color 0.2s, box-shadow 0.2s;
}
.gd-search:focus-within { border-color: rgba(var(--gd-a-rgb), 0.7); box-shadow: 0 0 0 4px rgba(var(--gd-a-rgb), 0.15); }
.gd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--gd-text); font: inherit; font-size: 1rem; }
.gd-search input::placeholder { color: var(--gd-muted); }
.gd-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 1rem; }
.gd-suggest button { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--gd-line); background: transparent; color: var(--gd-muted); font-size: 0.8rem; }
.gd-suggest button:hover { color: var(--gd-text); border-color: rgba(var(--gd-a-rgb), 0.6); }
.gd-hub-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gd-group { width: min(1180px, 100%); margin: 0 auto 1.6rem; }
.gd-group h2 { font-size: 0.95rem; color: var(--gd-muted); font-weight: 700; margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.6rem; }
.gd-group h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gd-line), transparent); }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }
.gd-card {
    position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0.15rem 0.85rem; align-items: center;
    padding: 1rem; border-radius: 20px; text-align: right; color: var(--gd-text); background: var(--gd-panel); border: 1px solid var(--gd-line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
    transition: transform 0.25s var(--gd-ease), border-color 0.25s, box-shadow 0.25s; animation: gd-rise 0.5s calc(var(--d, 0) * 40ms) var(--gd-ease) both;
}
.gd-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at 100% 0, rgba(255,255,255,.08), transparent 50%); pointer-events: none; }
.gd-card:hover { transform: translateY(-4px); border-color: var(--c, rgba(var(--gd-a-rgb), .6)); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.gd-card-icon {
    grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; font-size: 1.6rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, transparent), color-mix(in srgb, var(--c) 10%, transparent));
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 25%, transparent);
}
.gd-card-text b { display: block; font-size: 0.98rem; }
.gd-card-text small { display: block; color: var(--gd-muted); font-size: 0.8rem; line-height: 1.7; margin-top: 0.15rem; }
.gd-card-meta em { font-style: normal; font-size: 0.74rem; color: var(--gd-muted); }
.gd-card-meta .gd-seen { color: #34d399; font-weight: 700; }
[data-theme="light"] .gd-card-meta .gd-seen { color: #047857; }
.gd-card.is-seen { border-color: rgba(16, 185, 129, 0.35); }
.gd-context { width: min(1180px, 100%); margin: 0 auto 1.6rem; }
.gd-context-tag { display: inline-block; margin-bottom: 0.5rem; font-size: 0.82rem; font-weight: 700; color: var(--gd-b); }
.gd-card-wide { width: 100%; border-color: rgba(var(--gd-a-rgb), .55); box-shadow: 0 0 0 4px rgba(var(--gd-a-rgb), .12); }
.gd-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.8rem; }
.gd-result { padding: 1rem 1.1rem; border-radius: 18px; background: var(--gd-panel); border: 1px solid var(--gd-line); animation: gd-rise 0.4s calc(var(--d) * 35ms) var(--gd-ease) both; }
.gd-result small { color: var(--gd-muted); font-size: 0.75rem; }
.gd-result b { display: block; margin: 0.35rem 0; }
.gd-result p { margin: 0; color: var(--gd-muted); line-height: 1.9; font-size: 0.88rem; }
.gd-result .gd-link { padding: 0.5rem 0 0; color: var(--gd-b); text-decoration: none; font-weight: 700; }
.gd-root mark { background: rgba(var(--gd-a-rgb), 0.3); color: inherit; border-radius: 4px; padding: 0 2px; }
.gd-empty { text-align: center; padding: 2.5rem 1rem; color: var(--gd-muted); }
.gd-empty span { font-size: 2.4rem; display: block; }
.gd-empty b { display: block; color: var(--gd-text); margin: 0.5rem 0; }
.gd-hub-help { width: min(1180px, 100%); margin: 0.5rem auto 0; display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; border-radius: 20px; background: var(--gd-panel); border: 1px dashed var(--gd-line); }
.gd-hub-help > span { font-size: 1.8rem; }
.gd-hub-help div { flex: 1; }
.gd-hub-help b, .gd-hub-help small { display: block; }
.gd-hub-help small { color: var(--gd-muted); }

/* ─── پخش‌کننده ─── */
.gd-view-player { overflow: hidden; }
.gd-player { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gd-segs { display: flex; gap: 5px; padding: 0 clamp(0.9rem, 3vw, 2rem) 0.6rem; }
.gd-segs button { flex: 1; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(var(--gd-a-rgb), 0.18); overflow: hidden; cursor: pointer; }
.gd-segs i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gd-b), var(--gd-a)); transform: scaleX(0); transform-origin: right; }
.gd-segs .done i { transform: scaleX(1) !important; }
.gd-segs .on { box-shadow: 0 0 12px rgba(var(--gd-a-rgb), .5); }
.gd-stage {
    flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 0.85fr) 1.25fr; gap: clamp(1rem, 2.5vw, 2rem);
    width: min(1320px, 100%); margin: 0 auto; padding: 0.4rem clamp(0.9rem, 3vw, 2rem) 0.8rem; touch-action: pan-y;
}
.gd-text { order: 1; min-height: 0; overflow-y: auto; padding: clamp(1rem, 2.4vw, 1.6rem); border-radius: 24px; background: var(--gd-panel); border: 1px solid var(--gd-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overscroll-behavior: contain; }
.gd-visual { order: 2; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; }
.gd-scene { position: relative; width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gd-scene::before { content: ''; position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--gd-a-rgb), .35), transparent); filter: blur(30px); pointer-events: none; }
.gd-scene-box { position: relative; }
.gd-caption { margin: 0; font-size: 0.82rem; color: var(--gd-muted); text-align: center; min-height: 1.4em; }
.gd-text-inner > * { animation: gd-rise 0.5s calc(var(--i, 0) * 70ms) var(--gd-ease) both; }
.gd-kicker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--gd-muted); margin-bottom: 1rem; }
.gd-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(var(--gd-a-rgb), .16); border: 1px solid rgba(var(--gd-a-rgb), .3); color: var(--gd-text); font-weight: 700; }
.gd-title-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.gd-ch-icon { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; background: linear-gradient(135deg, rgba(var(--gd-a-rgb), .4), rgba(var(--gd-a-rgb), .1)); border: 1px solid rgba(var(--gd-a-rgb), .45); box-shadow: 0 12px 30px rgba(var(--gd-a-rgb), .3); animation: gd-pop 0.6s var(--gd-ease) both; }
.gd-title-row h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.gd-tagline { margin: 0.2rem 0 0; color: var(--gd-muted); font-size: 0.92rem; }
.gd-block { margin-bottom: 1rem; }
.gd-block h3 { margin: 0 0 0.4rem; font-size: 0.86rem; color: var(--gd-b); font-weight: 800; }
.gd-block p, .gd-step-desc, .gd-faq p, .gd-tip p { margin: 0; line-height: 2.05; font-size: 0.97rem; }
.gd-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.gd-uses li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0.75rem; border-radius: 13px; background: var(--gd-panel-2); border: 1px solid var(--gd-line); font-size: 0.92rem; line-height: 1.8; animation: gd-rise 0.45s calc(var(--i) * 70ms) var(--gd-ease) both; }
.gd-uses li span { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; font-size: 0.7rem; color: #fff; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); }
.gd-next-hint { color: var(--gd-muted); font-size: 0.86rem; margin: 0.4rem 0 0; }
.gd-step-hero { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.8rem; }
.gd-step-num { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); box-shadow: 0 0 0 6px rgba(var(--gd-a-rgb), .16), 0 10px 26px rgba(var(--gd-a-rgb), .4); animation: gd-pop 0.5s var(--gd-ease) both; }
.gd-step-hero h2 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.gd-step-desc { font-size: 1.02rem; margin-bottom: 1.2rem !important; }
.gd-stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.gd-stepper button { width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--gd-muted); font-size: 0.86rem; text-align: right; transition: background 0.2s, color 0.2s; }
.gd-stepper button:hover { background: var(--gd-panel-2); color: var(--gd-text); }
.gd-stepper button span { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; font-size: 0.78rem; font-weight: 800; border: 1px solid var(--gd-line); }
.gd-stepper .on button { color: var(--gd-text); background: rgba(var(--gd-a-rgb), .14); border-color: rgba(var(--gd-a-rgb), .4); font-weight: 700; }
.gd-stepper .on button span { background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); color: #fff; border-color: transparent; }
.gd-stepper .done button span { background: rgba(16,185,129,.18); color: #34d399; border-color: rgba(16,185,129,.4); }
.gd-faq-title { margin: 0 0 1rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.gd-tip { display: flex; gap: 0.7rem; padding: 0.8rem 0.95rem; margin-bottom: 0.6rem; border-radius: 15px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); }
.gd-tip p { font-size: 0.92rem; }
.gd-faqs { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.gd-faq { border-radius: 15px; background: var(--gd-panel-2); border: 1px solid var(--gd-line); overflow: hidden; transition: border-color 0.2s; }
.gd-faq[open] { border-color: rgba(var(--gd-a-rgb), .45); }
.gd-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.8rem 1rem; font-weight: 700; font-size: 0.94rem; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: '⌄'; transition: transform 0.25s; color: var(--gd-muted); }
.gd-faq[open] summary::after { transform: rotate(180deg); }
.gd-faq p { padding: 0 1rem 0.9rem; color: var(--gd-muted); font-size: 0.92rem; animation: gd-rise 0.3s var(--gd-ease) both; }
.gd-actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

.gd-bottom { display: flex; align-items: center; gap: 0.6rem; width: min(1320px, 100%); margin: 0 auto; padding: 0.6rem clamp(0.9rem, 3vw, 2rem); padding-bottom: max(0.8rem, env(safe-area-inset-bottom)); }
.gd-nav-btn { min-width: 110px; }
.gd-btn-play { background: var(--gd-panel); border-color: var(--gd-line); }
.gd-btn-play.is-playing { border-color: rgba(var(--gd-a-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--gd-a-rgb), .12); }
.gd-strip { flex: 1; min-width: 0; display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.3rem 0.2rem; scrollbar-width: none; }
.gd-strip::-webkit-scrollbar { display: none; }
.gd-strip button { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--gd-line); background: var(--gd-panel); font-size: 1.1rem; position: relative; transition: transform 0.2s, border-color 0.2s; }
.gd-strip button:hover { transform: translateY(-2px); }
.gd-strip button.seen::after { content: '✓'; position: absolute; top: -5px; left: -5px; width: 16px; height: 16px; border-radius: 50%; font-size: 0.6rem; line-height: 16px; color: #fff; background: #10b981; }
.gd-strip button.on { border-color: var(--gd-a); box-shadow: 0 0 0 3px rgba(var(--gd-a-rgb), .25); transform: scale(1.08); }
.gd-count { display: none; font-weight: 700; color: var(--gd-muted); font-size: 0.85rem; flex: 1; text-align: center; }

/* ═══ ماکت صفحه (.gm) ═══ */
.gm {
    --gm-bg: #0b1122; --gm-panel: rgba(255,255,255,.05); --gm-panel2: rgba(255,255,255,.09); --gm-line: rgba(255,255,255,.09);
    --gm-text: #e8edf9; --gm-muted: #8f9cb9;
    position: absolute; top: 0; right: 0; width: var(--gm-w, 680px); height: var(--gm-h, 420px);
    transform: scale(var(--gm-s, 1)); transform-origin: top right;
    border-radius: 18px; overflow: hidden; background: var(--gm-bg); color: var(--gm-text); border: 1px solid var(--gm-line);
    box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.03);
    font-size: 11px; line-height: 1.55; direction: rtl; text-align: right; user-select: none; pointer-events: none;
}
[data-theme="light"] .gm { --gm-bg: #f5f7fc; --gm-panel: #fff; --gm-panel2: #eef2f8; --gm-line: rgba(15,23,42,.09); --gm-text: #0f172a; --gm-muted: #64748b; box-shadow: 0 30px 70px rgba(30,41,90,.2); }
.gm b { font-weight: 700; }
.gm small { color: var(--gm-muted); font-size: 0.86em; }
.gm-chrome { height: 26px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--gm-panel); border-bottom: 1px solid var(--gm-line); }
.gm-dots { display: flex; gap: 5px; direction: ltr; }
.gm-dots i { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; }
.gm-dots i:nth-child(2) { background: #f59e0b; } .gm-dots i:nth-child(3) { background: #10b981; }
.gm-url { flex: 1; text-align: center; font-size: 0.85em; color: var(--gm-muted); background: var(--gm-panel2); border-radius: 6px; padding: 1px 10px; max-width: 260px; margin: 0 auto; white-space: nowrap; overflow: hidden; }
.gm-body { display: grid; grid-template-columns: 124px 1fr; height: calc(100% - 26px); }
.gm.compact .gm-body { grid-template-columns: 1fr; }
.gm-side-wrap { min-height: 0; }
.gm-side { height: 100%; display: flex; flex-direction: column; gap: 3px; padding: 9px 7px; background: var(--gm-panel); border-inline-end: 1px solid var(--gm-line); }
.gm-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.gm-brand span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); font-size: 12px; }
.gm-brand b { font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-navs { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gm-nav { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; color: var(--gm-muted); }
.gm-nav i { display: grid; width: 13px; height: 13px; }
.gm-nav svg { width: 13px; height: 13px; }
.gm-nav b { font-weight: 500; white-space: nowrap; }
.gm-nav.on { color: var(--gm-text); background: linear-gradient(270deg, rgba(var(--gd-a-rgb), .32), rgba(var(--gd-a-rgb), .06)); box-shadow: inset -2px 0 0 var(--gd-a); }
.gm-guide-btn { display: block; padding: 5px 6px; margin-bottom: 4px; border-radius: 8px; font-size: 0.85em; background: rgba(var(--gd-a-rgb), .14); border: 1px dashed rgba(var(--gd-a-rgb), .45); }
.gm-account { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 9px; background: var(--gm-panel2); }
.gm-account span, .gm-av-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 10px; background: linear-gradient(135deg, #ec4899, var(--gd-a)); }
.gm-account b { font-size: 0.85em; white-space: nowrap; overflow: hidden; }
.gm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gm-top { height: 36px; flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-bottom: 1px solid var(--gm-line); }
.gm-flex { flex: 1; }
.gm-search { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 9px; background: var(--gm-panel2); color: var(--gm-muted); min-width: 170px; }
.gm.compact .gm-search { min-width: 90px; }
.gm-search em { font-style: normal; flex: 1; }
.gm-search kbd { font-size: 0.8em; padding: 0 4px; border: 1px solid var(--gm-line); border-radius: 4px; direction: ltr; }
.gm-ico { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--gm-panel2); border: 1px solid var(--gm-line); font-size: 11px; }
.gm-ico em { position: absolute; top: -5px; left: -5px; min-width: 13px; height: 13px; border-radius: 7px; font-size: 8px; font-style: normal; line-height: 13px; text-align: center; color: #fff; background: #f43f5e; }
.gm-help { font-weight: 800; color: var(--gd-b); }
.gm-bells { display: flex; gap: 6px; }
.gm-burger { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--gm-panel2); }
.gm-content { flex: 1; min-height: 0; padding: 11px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; position: relative; }
.gm-fab-wrap { position: absolute; left: 14px; bottom: 14px; z-index: 4; }
.gm-fab { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 20px; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); box-shadow: 0 8px 20px rgba(var(--gd-a-rgb), .5); }

/* ─── اجزای ماکت ─── */
.gm .inl { display: inline-flex; }
.gm-grow { flex: 1; }
.gm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-head > div > b { font-size: 1.15em; display: block; }
.gm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 10px; border-radius: 8px; color: #fff; font-weight: 700; white-space: nowrap; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); box-shadow: 0 4px 12px rgba(var(--gd-a-rgb), .35); }
.gm-btn.ghost { background: var(--gm-panel2); color: var(--gm-text); box-shadow: none; border: 1px solid var(--gm-line); }
.gm-btn.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: none; }
.gm-btn.danger { background: linear-gradient(135deg, #f43f5e, #e11d48); box-shadow: none; }
.gm-btn.wide { display: flex; width: 100%; margin-top: 4px; }
.gm-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 7px; }
.gm.compact .gm-kpis { grid-template-columns: repeat(2, 1fr); }
.gm-kpi { display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 11px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-kpi i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; font-style: normal; background: rgba(var(--t), .16); }
.gm-kpi b { display: block; font-size: 1.25em; }
.t-violet { --t: 139,92,246; } .t-cyan { --t: 6,182,212; } .t-green { --t: 16,185,129; } .t-amber { --t: 245,158,11; } .t-pink { --t: 236,72,153; } .t-red { --t: 244,63,94; } .t-blue { --t: 59,130,246; }
.gm-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 0.85em; font-weight: 700; white-space: nowrap; color: rgb(var(--t, 139,92,246)); background: rgba(var(--t, 139,92,246), .15); border: 1px solid rgba(var(--t, 139,92,246), .3); }
[data-theme="light"] .gm-badge { filter: brightness(0.8) saturate(1.3); }
.gm-card { padding: 9px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); min-width: 0; }
.gm-card.warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.gm-alert u { color: var(--gd-b); text-decoration: none; font-weight: 700; }
.gm-cap { display: block; margin-bottom: 6px; font-weight: 700; }
.gm-split { display: grid; grid-template-columns: var(--r, 1.5fr 1fr); gap: 9px; min-height: 0; }
.gm.compact .gm-split { grid-template-columns: 1fr; }
.gm-grid { display: grid; gap: 8px; }
.gm-grid[data-c="2"] { grid-template-columns: repeat(2, 1fr); }
.gm-grid[data-c="3"] { grid-template-columns: repeat(3, 1fr); }
.gm-grid[data-c="4"] { grid-template-columns: repeat(4, 1fr); }
.gm.compact .gm-grid[data-c="3"], .gm.compact .gm-grid[data-c="4"] { grid-template-columns: repeat(2, 1fr); }
.gm-stack { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gm-rows { display: flex; flex-direction: column; gap: 5px; }
.gm-row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 10px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-av { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 75% 48%)); position: relative; }
.gm-av.lg { width: 38px; height: 38px; font-size: 16px; }
.gm-row-t { flex: 1; min-width: 0; }
.gm-row-t b, .gm-row-t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; }
.gm-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.gm-bars i { width: 100%; height: calc(var(--v) * 1%); min-height: 2px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--gd-b), var(--gd-a)); transform-origin: bottom; animation: gm-grow 0.9s calc(var(--i) * 40ms) var(--gd-ease, ease) both; }
.gm-bars small { font-size: 0.75em; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-chips > span { padding: 3px 9px; border-radius: 999px; background: var(--gm-panel2); border: 1px solid var(--gm-line); white-space: nowrap; }
.gm-chips > span.on { color: #fff; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); border-color: transparent; }
.gm-chips > span.red { color: #f43f5e; border-color: rgba(244,63,94,.4); }
.gm-select { border-style: dashed !important; }
.gm-form { display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-form label small { display: block; margin-bottom: 2px; }
.gm-input { display: block; padding: 5px 8px; border-radius: 8px; background: var(--gm-panel2); border: 1px solid var(--gm-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-search-in { min-width: 180px; color: var(--gm-muted); }
.gm-ring { --p: 50; width: 74px; height: 74px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gd-b) calc(var(--p) * 1%), rgba(var(--gd-a-rgb), .18) 0); }
.gm-ring > div { width: 58px; height: 58px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--gm-bg); }
.gm-ring b { font-size: 1.15em; }
.gm-toggles { display: flex; flex-direction: column; gap: 5px; }
.gm-toggles > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 8px; background: var(--gm-panel2); }
.gm-toggles i { width: 24px; height: 13px; border-radius: 8px; background: rgba(148,163,184,.4); position: relative; }
.gm-toggles i::after { content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: transform .3s; }
.gm-toggles i.on { background: linear-gradient(90deg, var(--gd-a), var(--gd-b)); }
.gm-toggles i.on::after { transform: translateX(-11px); }
.gm-chat { display: flex; flex-direction: column; gap: 5px; }
.gm-chat p { margin: 0; padding: 6px 9px; border-radius: 12px; max-width: 88%; }
.gm-chat .me { align-self: flex-start; background: rgba(var(--gd-a-rgb), .2); border-bottom-right-radius: 3px; }
.gm-chat .them { align-self: flex-end; background: var(--gm-panel2); border-bottom-left-radius: 3px; }
.gm-table { border-radius: 11px; overflow: hidden; border: 1px solid var(--gm-line); background: var(--gm-panel); }
.gm-table > div { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px 9px; border-top: 1px solid var(--gm-line); align-items: center; }
.gm-table > .th { border-top: 0; background: var(--gm-panel2); color: var(--gm-muted); font-weight: 700; }
.gm-table span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-table u { color: var(--gd-b); }
.gm-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--gm-line); overflow: hidden; }
.gm-tabs span { padding: 5px 9px; white-space: nowrap; color: var(--gm-muted); border-bottom: 2px solid transparent; }
.gm-tabs span.on { color: var(--gm-text); border-color: var(--gd-a); font-weight: 700; }
.gm-lines { display: flex; flex-direction: column; gap: 4px; margin: 3px 0 6px; }
.gm-lines i { height: 6px; width: var(--w); border-radius: 4px; background: var(--gm-panel2); }
.gm-meter small { display: block; margin-bottom: 3px; }
.gm-meter span { display: block; height: 8px; border-radius: 6px; background: var(--gm-panel2); overflow: hidden; }
.gm-meter i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--gd-a), var(--gd-b)); animation: gm-fill 1.1s var(--gd-ease, ease) both; transform-origin: right; }
.gm-otp { padding: 9px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-otp div { display: flex; gap: 5px; margin-top: 5px; direction: ltr; justify-content: center; }
.gm-otp span { display: grid; place-items: center; width: 24px; height: 28px; border-radius: 7px; font-size: 1.2em; font-weight: 800; background: var(--gm-panel2); border: 1px solid rgba(var(--gd-a-rgb), .45); }
.gm-stars { color: #f59e0b; letter-spacing: 1px; }

/* ─── اجزای خاص ماکت ─── */
.gm-p { margin: 0 0 4px; }
.gm-p b { color: var(--gd-b); margin-inline-end: 4px; }
.gm-hero { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-live { display: block; color: #34d399; }
.gm-live::before { content: ''; }
.gm-month { display: inline-flex; padding: 4px 10px; border-radius: 9px; background: var(--gm-panel2); border: 1px solid var(--gm-line); font-weight: 700; }
.gm-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.gm-cal > b { text-align: center; color: var(--gm-muted); }
.gm-cal > span, .gm-cal > .gm-cal-hs { min-height: 30px; padding: 2px; border-radius: 6px; background: var(--gm-panel); border: 1px solid var(--gm-line); overflow: hidden; }
.gm-cal .today { box-shadow: inset 0 0 0 1.5px var(--gd-a); }
.gm-cal em { display: block; margin-top: 1px; padding: 0 2px; border-radius: 3px; font-style: normal; font-size: .68em; white-space: nowrap; overflow: hidden; background: rgba(var(--gd-a-rgb), .22); }
.gm-float-wrap { position: absolute; left: 10px; bottom: 10px; width: min(190px, 46%); z-index: 4; }
.gm-float { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 12px; background: var(--gm-bg); border: 1px solid rgba(var(--gd-a-rgb), .5); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.gm-profile { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-profile > div { flex: 1; min-width: 0; }
.gm-room { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-room.busy { border-color: rgba(244,63,94,.45); }
.gm-room.free { border-color: rgba(16,185,129,.45); }
.gm-room.cyan { border-color: rgba(6,182,212,.45); }
.gm-timer { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .04em; color: var(--gd-b); }
.gm-timer.dim { color: var(--gm-muted); }
.gm-toast { align-self: flex-start; padding: 6px 10px; border-radius: 10px; background: rgba(16,185,129,.16); border: 1px solid rgba(16,185,129,.4); }
.gm-ai { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--gd-a-rgb), .22), rgba(236,72,153,.12)); border: 1px solid rgba(var(--gd-a-rgb), .4); }
.gm-collapse { padding: 6px 8px; border-radius: 8px; color: var(--gm-muted); background: var(--gm-panel2); }
.gm-alarm { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 14px; background: var(--gm-panel); border: 1px solid rgba(245,158,11,.45); box-shadow: 0 0 24px rgba(245,158,11,.2); }
.gm-bell-big { font-size: 1.6em; }
.gm-stack-bar { display: flex; height: 12px; overflow: hidden; border-radius: 8px; }
.gm-stack-bar i { width: var(--w); background: var(--c); }
.gm-legend, .gm-up { display: block; margin-top: 5px; }
.gm-up { color: #34d399; font-weight: 700; }
.gm-big { display: block; margin-top: 4px; font-size: 1.25em; }
.gm-paper { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; background: #fff; color: #0f172a; }
.gm-paper i { display: block; height: 6px; border-radius: 4px; background: #e2e8f0; }
.gm-paper i.s { width: 60%; }
.gm-sum { margin-top: 4px; }
.gm-calc { display: flex; flex-direction: column; gap: 4px; }
.gm-calc span { display: flex; justify-content: space-between; gap: 8px; }
.gm-online { display: flex; align-items: center; gap: 6px; }
.gm-online .gm-av i { position: absolute; left: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px var(--gm-bg); }
.gm-export { display: flex; flex-direction: column; gap: 6px; }
.gm-role { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-role span { font-size: 1.3em; }
.gm-role.ghost { border-style: dashed; color: var(--gm-muted); }
.gm-split-bar { display: flex; overflow: hidden; height: 22px; border-radius: 8px; color: #fff; font-size: .85em; font-weight: 700; }
.gm-split-bar i { display: grid; place-items: center; width: var(--w); }
.gm-split-bar i:first-child { background: #7c3aed; }
.gm-split-bar i:last-child { background: #0891b2; }
.gm-logo { display: grid; place-items: center; height: 64px; margin-bottom: 6px; border-radius: 12px; font-size: 1.8em; color: #fff; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); }
.gm-subbar { display: flex; align-items: center; gap: 8px; }
.gm-price { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; background: var(--gm-panel); border: 1px solid var(--gm-line); }
.gm-price.hot { border-color: rgba(var(--gd-a-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--gd-a-rgb), .15); }
.gm-price em { align-self: flex-start; font-style: normal; font-size: .75em; padding: 1px 6px; border-radius: 999px; color: #fff; background: #f43f5e; }
.gm-coupon, .gm-attach, .gm-gift { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; background: var(--gm-panel); border: 1px dashed rgba(var(--gd-a-rgb), .45); }
.gm-gift { border-style: solid; background: rgba(236,72,153,.12); }
.gm-days { display: flex; gap: 4px; }
.gm-days span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--gm-panel2); color: var(--gm-muted); }
.gm-days span.on { color: #fff; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); }
.gm-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(var(--gd-a-rgb), .28), transparent 62%), var(--gm-bg); }
.gm-qa { position: relative; width: 100%; height: 100%; }
.gm-qa > b { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 42px; color: var(--gd-b); }
.gm-qa span { position: absolute; left: 50%; top: 46%; padding: 4px 8px; border-radius: 999px; white-space: nowrap; background: var(--gm-panel); border: 1px solid var(--gm-line); animation: gm-orbit 14s linear infinite; animation-delay: calc(var(--i) * -1.75s); }

/* ─── برجسته‌سازی قدم و نشانگر ─── */
.gm-hs { border-radius: 10px; transition: opacity .35s ease, filter .35s ease; }
.gm.focus .gm-hs:not(.on):not(.has-on):not(.in-on) { opacity: .34; filter: saturate(.55); }
.gm.focus .gm-hs.on { position: relative; z-index: 6; opacity: 1; filter: none; outline: 2px solid var(--gd-b); outline-offset: 3px; animation: gm-pulse 1.7s ease-in-out infinite; }
.gm.focus .gm-hs.on::before {
    content: attr(data-n); position: absolute; z-index: 7; top: -9px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px;
    display: grid; place-items: center; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800;
    background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.gm-cursor { position: absolute; z-index: 20; left: var(--cx, -40px); top: var(--cy, -40px); width: 22px; height: 22px; opacity: 0; transform: translate(-3px, -2px); transition: left .5s cubic-bezier(.2,.8,.2,1), top .5s cubic-bezier(.2,.8,.2,1), opacity .3s; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.gm.focus .gm-cursor { opacity: 1; }
.gm-cursor svg { width: 22px; height: 22px; display: block; }
.gm-cursor.click { animation: gm-tap .55s ease; }
.gm.build .gm-kpi, .gm.build .gm-row, .gm.build .gm-card, .gm.build .gm-nav { animation: gm-in .55s var(--gd-ease, ease) both; }

/* ─── پایان آموزش ─── */
.gd-finish { position: relative; width: min(760px, 100%); margin: 0 auto; padding: 1.2rem clamp(.9rem, 3vw, 2rem) 2.5rem; text-align: center; overflow: auto; }
.gd-finish > h1 { animation: gd-rise .6s var(--gd-ease) both; }
.gd-finish > p { color: var(--gd-muted); line-height: 2; }
.gd-trophy { font-size: 4rem; filter: drop-shadow(0 10px 18px rgba(245,158,11,.45)); animation: gd-pop .7s var(--gd-ease) both; }
.gd-burst { position: absolute; inset: 0 10% auto; height: 180px; pointer-events: none; }
.gd-burst i { position: absolute; left: 50%; top: 70px; width: 8px; height: 14px; border-radius: 3px; background: hsl(calc(var(--i) * 28) 85% 62%); transform: rotate(calc(var(--i) * 13deg)) translateY(0); animation: gd-burst 1.1s calc(var(--i) * 18ms) ease-out both; }
.gd-checklist { margin: 1.2rem 0 1.4rem; text-align: right; }
.gd-checklist h2 { margin: 0 0 .6rem; font-size: .95rem; color: var(--gd-muted); }
.gd-check { width: 100%; display: flex; align-items: center; gap: .7rem; margin-bottom: .45rem; padding: .75rem .9rem; border-radius: 16px; border: 1px solid var(--gd-line); background: var(--gd-panel); color: var(--gd-text); text-align: right; animation: gd-rise .45s calc(var(--i) * 60ms) var(--gd-ease) both; }
.gd-check:hover { border-color: rgba(var(--gd-a-rgb), .55); transform: translateY(-2px); }
.gd-check b { flex: 1; font-size: .95rem; }
.gd-check em { color: var(--gd-muted); }
.gd-check-num, .gd-check-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--gd-panel-2); }
.gd-check-icon { font-size: 1.15rem; }

/* ─── راهنمای زنده روی صفحه ─── */
.gd-tour { position: fixed; inset: 0; z-index: 8600; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.gd-tour.show { opacity: 1; }
.gd-tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(2, 6, 23, .72), 0 0 0 3px #fff, 0 0 0 7px rgba(139,92,246,.85); transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1), width .35s, height .35s; pointer-events: none; }
[data-theme="light"] .gd-tour-hole { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55), 0 0 0 3px #fff, 0 0 0 7px rgba(109,40,217,.8); }
.gd-tour-tip { position: fixed; z-index: 2; width: min(340px, calc(100vw - 24px)); padding: .95rem 1rem .85rem; border-radius: 18px; pointer-events: auto; color: var(--gd-text, #f8fafc); background: rgba(15, 18, 36, .94); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(16px); }
[data-theme="light"] .gd-tour-tip { color: #0f172a; background: rgba(255,255,255,.96); border-color: rgba(15,23,42,.1); }
.gd-tour-tip h4 { margin: .15rem 0 .35rem; font-size: 1rem; }
.gd-tour-tip p { margin: 0 0 .75rem; color: var(--gd-muted, #a8b4cf); line-height: 1.85; font-size: .9rem; }
[data-theme="light"] .gd-tour-tip p { color: #475569; }
.gd-tour-step { font-size: .75rem; font-weight: 800; color: #22d3ee; }
.gd-tour-x { position: absolute; top: .45rem; left: .45rem; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.gd-tour-actions { display: flex; justify-content: flex-end; gap: .45rem; }
.gd-tour-tip .gd-btn-glass { color: inherit; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
[data-theme="light"] .gd-tour-tip .gd-btn-glass { background: rgba(15,23,42,.04); }
.gd-tour-tip .gd-btn-primary { color: #fff; }
.gd-tour-tip.pop { animation: gd-pop .35s ease; }
.gd-tour-tip.docked { left: 12px !important; right: 12px; width: auto; }

/* ─── یادآوری ادامه ─── */
.gd-nudge { position: fixed; z-index: 1400; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 2rem)); display: flex; align-items: center; gap: .6rem; padding: .75rem; border-radius: 18px; color: var(--text-primary, #f8fafc); background: var(--glass-bg, rgba(15,18,36,.9)); border: 1px solid var(--glass-border, rgba(255,255,255,.12)); box-shadow: 0 16px 40px rgba(0,0,0,.35); backdrop-filter: blur(16px); transform: translateY(16px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.gd-nudge.show { transform: none; opacity: 1; }
.gd-nudge.out { transform: translateY(16px); opacity: 0; }
.gd-nudge-icon { font-size: 1.5rem; }
.gd-nudge div { flex: 1; min-width: 0; }
.gd-nudge b, .gd-nudge small { display: block; }
.gd-nudge small { color: var(--text-muted, #8b9cb8); }
.gd-nudge .gd-btn-primary { color: #fff; background: linear-gradient(135deg, #7c3aed, #06b6d4); border: 0; }
.gd-nudge .gd-btn-ghost { color: inherit; background: transparent; border: 1px solid var(--glass-border, rgba(255,255,255,.16)); }
.gd-nudge-x { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }

/* ─── دکمه‌های ورود به آموزش در خود برنامه ─── */
.sa-main-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.sa-main-header .header-tools, .page-header .header-tools { margin-inline-start: auto; }
.guide-sidebar-btn { width: 100%; display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; padding: .6rem .7rem; border-radius: 14px; border: 1px solid rgba(124,58,237,.4); text-align: right; color: var(--text-primary); cursor: pointer; font: inherit; background: linear-gradient(135deg, rgba(124,58,237,.24), rgba(6,182,212,.12)); transition: transform .18s ease, box-shadow .2s ease; }
.guide-sidebar-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124,58,237,.28); }
.guide-sidebar-btn strong, .guide-sidebar-btn small { display: block; }
.guide-sidebar-btn small { color: var(--text-muted); font-size: .75rem; font-weight: 500; }
.guide-sidebar-icon { font-size: 1.35rem; }
.header-guide { color: var(--accent-light, #a78bfa) !important; }

/* ─── حرکت‌ها ─── */
@keyframes gd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gd-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.15); } }
@keyframes gd-float { 50% { transform: translateY(-10px); } }
@keyframes gd-ring { from { transform: scale(.55); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@keyframes gd-spin { to { transform: rotate(-360deg); } }
@keyframes gd-counter { to { transform: rotate(360deg); } }
@keyframes gd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gd-shine { to { background-position: 300% 0; } }
@keyframes gd-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
@keyframes gd-burst { to { transform: rotate(calc(var(--i) * 13deg)) translateY(-90px); opacity: 0; } }
@keyframes gm-grow { from { transform: scaleY(.05); } }
@keyframes gm-fill { from { transform: scaleX(.05); } }
@keyframes gm-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes gm-pulse { 50% { outline-color: var(--gd-a); box-shadow: 0 0 0 6px rgba(var(--gd-a-rgb), .22); } }
@keyframes gm-tap { 40% { transform: translate(-3px, -2px) scale(.8); } }
@keyframes gm-orbit { from { transform: rotate(0deg) translateX(150px) rotate(0deg); } to { transform: rotate(-360deg) translateX(150px) rotate(360deg); } }

@media (max-width: 980px) {
    .gd-welcome { grid-template-columns: 1fr; text-align: center; padding-top: 4.2rem; }
    .gd-welcome-text { display: flex; flex-direction: column; align-items: center; }
    .gd-meta, .gd-welcome-actions, .gd-hub-actions { justify-content: center; }
    .gd-hero-art { width: min(260px, 68vw); }
    .gd-orbit span { transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(min(112px, 30vw)); }
    .gd-hub-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .gd-hub-intro { width: 100%; }
    .gd-stage { grid-template-columns: 1fr; grid-template-rows: minmax(210px, 42vh) minmax(0, 1fr); }
    .gd-visual { order: 1; }
    .gd-text { order: 2; }
    .gd-icon-btn em, .gd-nav-btn em { display: none; }
    .gd-nav-btn { min-width: 52px; }
    .gd-strip { display: none; }
    .gd-count { display: block; }
}
@media (max-width: 640px) {
    .gd-welcome-actions, .gd-hub-actions, .gd-actions-row { flex-direction: column; align-items: stretch; }
    .gd-btn-lg, .gd-welcome-actions .gd-btn, .gd-hub-actions .gd-btn { width: 100%; }
    .gd-cards, .gd-results { grid-template-columns: 1fr; }
    .gd-hub-help { flex-wrap: wrap; }
    .gd-nudge { left: .6rem; right: .6rem; width: auto; }
    .guide-sidebar-btn small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gd-root, .gd-root *, .gd-blob, .gd-orbit, .gd-rings i, .gd-grad, .gm-bars i, .gm-qa span, .gd-burst i { animation: none !important; transition: none !important; }
}
@media print {
    .gd-root, .gd-tour, .gd-nudge, .guide-sidebar-btn, .header-guide { display: none !important; }
}

/* ─── جلوه و تعامل بیشتر ─── */
.gd-root::before {
    content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 18%), rgba(var(--gd-a-rgb), .22), transparent 58%);
    transition: background .2s linear;
}
.gd-view { position: relative; z-index: 2; }
.gd-shine { position: relative; overflow: hidden; }
.gd-shine::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
    transform: translateX(120%); animation: gd-sheen 2.8s ease-in-out infinite;
}
.gd-picks { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .8rem; }
.gd-picks button {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid var(--gd-line); background: var(--gd-panel); color: var(--gd-text); font: inherit; font-size: .84rem; font-weight: 700;
    backdrop-filter: blur(10px); transition: transform .18s var(--gd-ease), border-color .2s, box-shadow .2s;
}
.gd-picks button:hover { transform: translateY(-2px); border-color: rgba(var(--gd-a-rgb), .6); box-shadow: 0 10px 24px rgba(var(--gd-a-rgb), .22); }
.gd-text, .gd-hub-hero, .gd-card {
    background:
        linear-gradient(var(--gd-panel), var(--gd-panel)) padding-box,
        linear-gradient(135deg, rgba(var(--gd-a-rgb), .65), rgba(255,255,255,.08) 40%, var(--gd-b)) border-box;
    border: 1px solid transparent;
}
.gd-scene { filter: drop-shadow(0 24px 40px rgba(var(--gd-a-rgb), .22)); }
.gm { pointer-events: none; }
.gm-hs[data-act="hot"] { pointer-events: auto; cursor: pointer; }
.gm-hs[data-act="hot"]:hover { filter: brightness(1.12); }
.gm-cursor { pointer-events: none; }
.gm-hs.tap { animation: gm-hot .45s ease; }
.gd-tap-hint { margin: .15rem 0 .9rem; color: var(--gd-b); font-size: .84rem; font-weight: 700; }
.gd-stage.gd-swap .gd-text-inner { animation: gd-rise .42s var(--gd-ease) both; }
.gd-stage.gd-swap .gm { animation: gm-in .45s var(--gd-ease) both; }
.gd-segs button:hover { transform: scaleY(1.35); }
.gd-segs .on { box-shadow: 0 0 14px rgba(var(--gd-a-rgb), .65); }
@keyframes gd-sheen { 0%, 55% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
@keyframes gm-hot { 0% { transform: scale(.96); } 45% { transform: scale(1.04); } 100% { transform: none; } }
@media (max-width: 980px) {
    .gd-picks { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .gd-shine::after, .gd-stage.gd-swap .gm, .gm-hs.tap { animation: none !important; }
}

/* ─── به زبان خیلی ساده + بلندخوانی ─── */
.gd-simple { display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 18px; background: linear-gradient(135deg, rgba(var(--gd-a-rgb), .18), rgba(34,211,238,.08)); border: 1px solid rgba(var(--gd-a-rgb), .35); }
.gd-simple-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 14px; font-size: 1.2rem; background: var(--gd-panel); }
.gd-simple b { display: block; font-size: .8rem; color: var(--gd-b); margin-bottom: .15rem; }
.gd-simple p { margin: 0; line-height: 2; font-size: 1rem; font-weight: 600; }
.gd-voice { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; margin: 0 0 .9rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--gd-line); background: var(--gd-panel-2); color: var(--gd-text); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.gd-voice.on { border-color: rgba(var(--gd-a-rgb), .6); background: rgba(var(--gd-a-rgb), .16); }
.gd-voice.on span { animation: gd-float 1.2s ease-in-out infinite; }

/* ─── بازی «خودتان پیدا کنید» ─── */
.gd-quiz-hero { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.gd-quiz-hero h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.gd-quiz-hero small { color: var(--gd-muted); }
.gd-quiz-badge { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; background: linear-gradient(135deg, #f59e0b, #ec4899); box-shadow: 0 10px 26px rgba(236,72,153,.35); animation: gd-pop .6s var(--gd-ease) both, gd-float 3s 0.6s ease-in-out infinite; }
.gd-quiz-q { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 16px; font-size: 1.05rem; font-weight: 700; line-height: 1.95; background: var(--gd-panel-2); border: 1px dashed rgba(var(--gd-a-rgb), .5); }
.gd-quiz-fb { padding: .75rem .95rem; border-radius: 14px; font-size: .92rem; line-height: 1.9; background: var(--gd-panel-2); border: 1px solid var(--gd-line); transition: background .25s, border-color .25s; }
.gd-quiz-fb small { display: block; color: var(--gd-muted); margin-top: .2rem; }
.gd-quiz-fb.ok { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.45); animation: gd-pop .4s ease; }
.gd-quiz-fb.no { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); animation: gd-shake .4s ease; }
.gd-quiz-fb.reveal { background: rgba(var(--gd-a-rgb), .14); border-color: rgba(var(--gd-a-rgb), .45); }
.gd-segs .is-quiz { background: rgba(245,158,11,.3); }
.gm.quiz .gm-cursor { opacity: 0 !important; }
.gm.quiz .gm-hs[data-act="hot"] { outline: 1px dashed rgba(var(--gd-a-rgb), .35); outline-offset: 2px; }
.gm.quiz .gm-hs[data-act="hot"]:hover { outline: 2px solid rgba(var(--gd-a-rgb), .7); }
.gm-hs.right { outline: 3px solid #10b981 !important; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(16,185,129,.22); position: relative; z-index: 6; }
.gm-hs.right::after { content: '✓'; position: absolute; top: -10px; left: -10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: #10b981; box-shadow: 0 4px 10px rgba(0,0,0,.3); animation: gd-pop .4s ease; z-index: 8; }
.gm-hs.wrong { animation: gd-shake .4s ease; outline: 2px solid #f43f5e !important; outline-offset: 2px; }
.gm-hs.hint:not(.right) { animation: gm-pulse 1.1s ease-in-out infinite; outline: 2px solid var(--gd-b); outline-offset: 3px; }
.gm.intro .gm-hs::before { content: attr(data-n); position: absolute; z-index: 7; top: -8px; right: -8px; min-width: 16px; height: 16px; padding: 0 3px; display: grid; place-items: center; border-radius: 999px; color: #fff; font-size: 9px; font-weight: 800; background: linear-gradient(135deg, var(--gd-a), var(--gd-b)); box-shadow: 0 3px 8px rgba(0,0,0,.3); animation: gd-pop .5s var(--gd-ease) both; }
.gm.intro .gm-hs { position: relative; }
@keyframes gd-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ─── امتیاز، نشان و راهنمای حرکت ─── */
.gd-xp { display: inline-flex; align-items: center; gap: .3rem; height: 44px; padding: 0 .8rem; border-radius: 13px; font-size: .85rem; font-weight: 800; background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(236,72,153,.12)); border: 1px solid rgba(245,158,11,.4); }
.gd-xp.bump { animation: gd-pop .5s ease; }
.gd-float-xp { position: fixed; z-index: 9; transform: translate(-50%, 0); padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 800; color: #fff; white-space: nowrap; pointer-events: none; background: linear-gradient(135deg, #f59e0b, #ec4899); box-shadow: 0 8px 20px rgba(236,72,153,.4); animation: gd-xp-up 1.25s ease-out forwards; }
@keyframes gd-xp-up { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.gd-badge-card { display: flex; align-items: center; gap: .9rem; width: min(440px, 100%); margin: 1rem auto; padding: .9rem 1.1rem; border-radius: 20px; text-align: right; background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(var(--gd-a-rgb), .16)); border: 1px solid rgba(245,158,11,.4); animation: gd-pop .6s .2s var(--gd-ease) both; }
.gd-badge-medal { font-size: 2.6rem; filter: drop-shadow(0 6px 12px rgba(245,158,11,.4)); }
.gd-badge-card small, .gd-badge-card em { display: block; color: var(--gd-muted); font-style: normal; font-size: .8rem; }
.gd-badge-card b { display: block; font-size: 1.15rem; }
.gd-hub-side { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.gd-hub-level { padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.35); }
.gd-stage { position: relative; }
.gd-hint { position: absolute; z-index: 5; left: 50%; bottom: 1rem; display: flex; align-items: center; gap: .7rem; width: min(440px, calc(100% - 2rem)); padding: .8rem 1rem; border-radius: 18px; color: var(--gd-text); background: var(--gd-panel); border: 1px solid rgba(var(--gd-a-rgb), .5); box-shadow: 0 18px 40px rgba(0,0,0,.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transform: translate(-50%, 14px); transition: opacity .3s, transform .3s; pointer-events: none; }
.gd-hint.show { opacity: 1; transform: translate(-50%, 0); }
.gd-hint b, .gd-hint small { display: block; }
.gd-hint small { color: var(--gd-muted); line-height: 1.8; }
.gd-hint-hand { font-size: 1.6rem; animation: gd-swipe 1.4s ease-in-out infinite; }
@keyframes gd-swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* ─── اندازهٔ متن ─── */
.gd-text-inner, .gd-hub-scroll, .gd-welcome-text, .gd-finish { zoom: var(--gd-zoom, 1); }

/* ─── ریسپانسیو تکمیلی ─── */
.gm.compact { font-size: 11.5px; }
@media (max-width: 980px) {
    .gd-hub-side { flex-direction: row; }
    .gd-bottom { gap: .45rem; }
}
@media (max-width: 560px) {
    .gd-top { gap: .5rem; padding-inline: .7rem; }
    .gd-top-brand > div { display: none; }
    .gd-top-actions { gap: .35rem; }
    .gd-icon-btn, .gd-xp { height: 40px; min-width: 40px; border-radius: 12px; }
    .gd-xp { padding: 0 .55rem; }
    .gd-hide-xs { display: none; }
    .gd-stage { padding-inline: .6rem; gap: .6rem; grid-template-rows: minmax(190px, 38vh) minmax(0, 1fr); }
    .gd-text { padding: .95rem; border-radius: 20px; }
    .gd-title-row { gap: .7rem; }
    .gd-ch-icon { width: 52px; height: 52px; font-size: 1.6rem; border-radius: 16px; }
    .gd-btn-play em { display: none; }
    .gd-btn-play { min-width: 48px; padding: 0 .7rem; }
    .gd-segs { padding-inline: .7rem; }
    .gd-caption { font-size: .76rem; }
    .gd-welcome { padding: 3.8rem 1rem 1.5rem; gap: 1rem; }
    .gd-hero-art { width: min(210px, 60vw); }
    .gd-orbit b { width: 42px; height: 42px; margin: -21px; font-size: 1.2rem; border-radius: 14px; }
    .gd-orbit span { transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(min(92px, 26vw)); }
    .gd-hub-hero { padding: 1rem; border-radius: 22px; }
    .gd-hub-ring { width: 108px; height: 108px; }
    .gd-hub-ring > div { width: 86px; height: 86px; }
    .gd-hint { bottom: .6rem; }
    .gd-quiz-q { font-size: 1rem; }
}
/* گوشی افقی و صفحه‌های کم‌ارتفاع: تصویر و متن کنار هم بمانند */
@media (max-height: 560px) and (orientation: landscape) {
    .gd-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); }
    .gd-visual { order: 2; }
    .gd-text { order: 1; }
    .gd-caption, .gd-strip { display: none; }
    .gd-top { padding-block: .4rem; }
    .gd-bottom { padding-block: .4rem; }
    .gd-btn-lg { min-height: 46px; }
    .gd-welcome { grid-template-columns: .7fr 1.3fr; padding-top: 3rem; text-align: right; }
    .gd-welcome-text { align-items: flex-start; }
    .gd-hero-art { width: min(200px, 34vh); }
    .gd-welcome h1 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gd-quiz-badge, .gd-hint-hand, .gd-float-xp, .gd-voice.on span, .gm-hs.hint, .gm-hs.wrong { animation: none !important; }
}

/* ═══ تاریخ شمسی و ساعت در سربرگ صفحه ═══ */
.header-date {
    display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; min-height: 44px; padding: 0 .9rem;
    border-radius: 14px; border: 1px solid var(--glass-border); background: var(--glass-bg);
    color: var(--text-primary); font-size: .86rem; font-weight: 600; white-space: nowrap;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-date-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--accent-light, #a78bfa); background: rgba(124, 58, 237, .14); }
.header-date-icon svg { width: 16px; height: 16px; }
.header-date-sep { width: 1px; height: 18px; background: var(--glass-border); }
.header-clock { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-light, #a78bfa); letter-spacing: .02em; }
[data-theme="light"] .header-date-icon, [data-theme="light"] .header-clock { color: #6d28d9; }
.page-header .header-date + .header-tools, .sa-main-header .header-date + .header-tools { margin-inline-start: .6rem; }
.page-header > .header-date, .sa-main-header > .header-date { margin-inline-start: auto; }
@media (max-width: 1100px) and (min-width: 769px) {
    .header-date-text { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
}
/* موبایل: تاریخ و ساعت در ردیف جدا زیر عنوان، تمام‌عرض و بدون هم‌پوشانی با دکمه‌ها */
@media (max-width: 768px) {
    .main-content > .page-header, .main-content > .sa-main-header { flex-wrap: wrap; row-gap: .6rem; }
    .main-content > .page-header > .header-date, .main-content > .sa-main-header > .header-date {
        order: 10; flex: 1 1 100%; justify-content: center; min-height: 38px; margin-inline-start: 0;
        margin-inline-end: -54px; font-size: .82rem; border-radius: 12px;
    }
    .header-date-icon { width: 24px; height: 24px; }
}
@media print { .header-date { display: none !important; } }
