/* ===== راهنمای سرویس — تم تیره + نارنجی + گلس ===== */
.page-guide {
    --guide-bg: #0a0a0a;
    --guide-surface: rgba(22, 22, 22, 0.82);
    --guide-border: rgba(255, 255, 255, 0.08);
    --guide-text: #f2f0ec;
    --guide-muted: #a39e96;
    --guide-accent: #ef6c00;
    --guide-accent-h: #ff8f33;
    --guide-yes: #2e7d32;
    --guide-no: #c62828;
    --guide-glass: blur(14px);
    --guide-radius: 16px;
    --guide-ease: 0.28s ease;
    background: var(--guide-bg);
    color: var(--guide-text);
}

.page-guide .site-header {
    background: rgba(26, 21, 16, 0.94);
    border-bottom-color: rgba(239, 108, 0, 0.14);
}

.page-guide main {
    padding-top: var(--header-offset);
    min-height: 100vh;
}

.guide-shell {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
}

/* --- topbar --- */
.guide-topbar {
    position: sticky;
    top: var(--header-offset, var(--header-h));
    z-index: 20;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: var(--guide-glass);
    border-bottom: 1px solid var(--guide-border);
}

.guide-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: min(100% - 2rem, 1140px);
    margin-inline: auto;
    padding: 0.85rem 0;
}

.guide-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--guide-muted);
}

.guide-breadcrumb a {
    color: var(--guide-text);
    transition: color var(--guide-ease);
}

.guide-breadcrumb a:hover {
    color: var(--guide-accent-h);
}

.guide-breadcrumb-sep {
    opacity: 0.45;
}

.guide-topbar-actions {
    display: flex;
    gap: 0.5rem;
}

.guide-progress {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: min(100% - 2rem, 1140px);
    margin-inline: auto;
    padding: 0 0 0.75rem;
}

.guide-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: background var(--guide-ease), transform var(--guide-ease);
}

.guide-progress-dot.is-active {
    background: var(--guide-accent);
    transform: scale(1.15);
}

.guide-progress-label {
    margin-inline-start: 0.5rem;
    font-size: 0.8rem;
    color: var(--guide-muted);
}

/* --- buttons --- */
.guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--guide-ease), border-color var(--guide-ease), transform var(--guide-ease), color var(--guide-ease);
    white-space: nowrap;
}

.guide-btn-primary {
    background: linear-gradient(135deg, var(--guide-accent), #d84315);
    color: #fff;
    box-shadow: 0 8px 24px rgba(239, 108, 0, 0.28);
}

.guide-btn-primary:hover {
    background: linear-gradient(135deg, var(--guide-accent-h), var(--guide-accent));
    transform: translateY(-1px);
}

.guide-btn-secondary {
    background: rgba(239, 108, 0, 0.12);
    border-color: rgba(239, 108, 0, 0.35);
    color: var(--guide-accent-h);
}

.guide-btn-secondary:hover {
    background: rgba(239, 108, 0, 0.2);
}

.guide-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--guide-border);
    color: var(--guide-text);
}

.guide-btn-ghost:hover {
    border-color: rgba(239, 108, 0, 0.4);
    color: var(--guide-accent-h);
}

.guide-btn-yes {
    background: var(--guide-yes);
    color: #fff;
    flex: 1;
}

.guide-btn-yes:hover {
    filter: brightness(1.08);
}

.guide-btn-no {
    background: var(--guide-no);
    color: #fff;
    flex: 1;
}

.guide-btn-no:hover {
    filter: brightness(1.08);
}

/* --- stage --- */
.guide-stage {
    flex: 1;
    width: min(100% - 2rem, 1140px);
    margin-inline: auto;
    padding: 1.5rem 0 3rem;
}

/* --- resume banner --- */
.guide-resume {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--guide-radius);
    background: rgba(239, 108, 0, 0.1);
    border: 1px solid rgba(239, 108, 0, 0.28);
}

.guide-resume p {
    margin: 0;
    color: var(--guide-muted);
}

.guide-resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- hub --- */
.guide-hub {
    animation: guideFadeIn 0.4s ease;
}

.guide-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    border-radius: var(--guide-radius);
    background: var(--guide-surface);
    backdrop-filter: var(--guide-glass);
    border: 1px solid var(--guide-border);
}

.guide-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: rgba(239, 108, 0, 0.15);
    color: var(--guide-accent-h);
}

.guide-hero-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin-bottom: 0.5rem;
}

.guide-hero-desc {
    color: var(--guide-muted);
    max-width: 36rem;
    margin-inline: auto;
}

.guide-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.guide-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--guide-radius);
    background: var(--guide-surface);
    backdrop-filter: var(--guide-glass);
    border: 1px solid var(--guide-border);
    overflow: hidden;
    transition: border-color var(--guide-ease), transform var(--guide-ease), box-shadow var(--guide-ease);
}

.guide-card:hover,
.guide-card:focus-visible {
    border-color: rgba(239, 108, 0, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(239, 108, 0, 0.15);
}

.guide-card-glow {
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(239, 108, 0, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity var(--guide-ease);
    pointer-events: none;
}

.guide-card:hover .guide-card-glow {
    opacity: 1;
}

.guide-card-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.guide-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(239, 108, 0, 0.15);
}

.guide-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.guide-card-title {
    font-size: 1.05rem;
}

.guide-card-desc {
    font-size: 0.82rem;
    color: var(--guide-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-arrow {
    color: var(--guide-accent);
    opacity: 0.7;
    flex-shrink: 0;
}

/* --- warning --- */
.guide-warning {
    max-width: 720px;
    margin-inline: auto;
    animation: guideFadeIn 0.4s ease;
}

.guide-warning-card {
    padding: 1.75rem;
    border-radius: var(--guide-radius);
    background: linear-gradient(145deg, rgba(239, 108, 0, 0.14), rgba(22, 22, 22, 0.9));
    border: 1px solid rgba(239, 108, 0, 0.35);
    backdrop-filter: var(--guide-glass);
    margin-bottom: 1.25rem;
}

.guide-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--guide-accent);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.guide-warning-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.guide-warning-card p {
    color: var(--guide-muted);
    margin-bottom: 0.65rem;
}

.guide-warning-card p:last-child {
    margin-bottom: 0;
}

.guide-warning-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guide-warning-actions .guide-btn {
    width: 100%;
}

/* --- wizard --- */
.guide-wizard {
    max-width: 900px;
    margin-inline: auto;
    animation: guideSlideIn 0.35s ease;
}

.guide-wizard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-wizard-step {
    color: var(--guide-muted);
    font-size: 0.9rem;
}

.guide-wizard-panel {
    border-radius: var(--guide-radius);
    background: var(--guide-surface);
    backdrop-filter: var(--guide-glass);
    border: 1px solid var(--guide-border);
    overflow: hidden;
}

.guide-wizard-figure {
    margin: 0;
    background: #111;
}

.guide-wizard-image {
    width: 100%;
    height: auto;
}

.guide-wizard-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

/* --- interactive map --- */
.guide-interactive {
    animation: guideFadeIn 0.4s ease;
}

.guide-interactive-hint {
    margin-bottom: 0.85rem;
    color: var(--guide-muted);
    font-size: 0.92rem;
    text-align: center;
}

.guide-interactive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.guide-interactive-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: var(--guide-surface);
    border: 1px solid var(--guide-border);
    font-size: 0.86rem;
    transition: border-color var(--guide-ease), color var(--guide-ease);
}

.guide-interactive-nav a:hover {
    border-color: rgba(239, 108, 0, 0.45);
    color: var(--guide-accent-h);
}

/* --- chart --- */
.guide-chart {
    animation: guideFadeIn 0.4s ease;
}

.guide-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.guide-chart-viewport {
    position: relative;
    height: min(70vh, 640px);
    border-radius: var(--guide-radius);
    background: #111;
    border: 1px solid var(--guide-border);
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    direction: ltr;
}

.guide-chart-viewport.is-dragging {
    cursor: grabbing;
}

.guide-chart-canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.guide-chart-canvas img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

.guide-hotspot {
    position: absolute;
    z-index: 2;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--guide-ease), border-color var(--guide-ease), box-shadow var(--guide-ease);
}

.guide-hotspot:hover,
.guide-hotspot:focus-visible {
    background: rgba(239, 108, 0, 0.18);
    border-color: rgba(239, 108, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.12);
}

.guide-hotspot--back,
.guide-hotspot--home,
.guide-hotspot--chart {
    z-index: 3;
}

.guide-interactive-wrap .guide-interactive {
    animation: guideFadeIn 0.4s ease;
}

.guide-wizard-map .guide-chart-viewport {
    height: min(62vh, 560px);
    border-radius: 0;
    border: 0;
}

.guide-wizard-map .guide-chart-toolbar {
    display: none;
}

.guide-fallback .guide-chart-viewport {
    margin-bottom: 1rem;
}

/* --- fallback --- */
.guide-fallback {
    max-width: 960px;
    margin-inline: auto;
    animation: guideFadeIn 0.4s ease;
}

.guide-fallback-links {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.guide-fallback-links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--guide-surface);
    border: 1px solid var(--guide-border);
    transition: border-color var(--guide-ease);
}

.guide-fallback-links a:hover {
    border-color: rgba(239, 108, 0, 0.4);
    color: var(--guide-accent-h);
}

/* --- animations --- */
@keyframes guideFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes guideSlideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-hub,
    .guide-warning,
    .guide-wizard,
    .guide-chart,
    .guide-card,
    .guide-btn,
    .guide-progress-dot {
        animation: none !important;
        transition: none !important;
    }

    .guide-card:hover {
        transform: none;
    }
}

/* --- responsive --- */
@media (max-width: 768px) {
    .guide-hub-grid {
        grid-template-columns: 1fr;
    }

    .guide-wizard-actions {
        flex-direction: column;
    }

    .guide-chart-toolbar .guide-btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .guide-stage {
        width: min(100% - 1.25rem, 1140px);
    }

    .guide-card {
        padding: 0.95rem;
    }

    .guide-card-thumb {
        width: 48px;
        height: 48px;
    }
}
