.purchase-guide-page {
    --guide-primary: #2563eb;
    --guide-primary-dark: #1e3a8a;
    --guide-accent: #0f766e;
    --guide-ink: #0f172a;
    --guide-muted: #64748b;
    --guide-line: #e2e8f0;
    --guide-soft: #f8fafc;
    --guide-card: #ffffff;
    direction: rtl;
    color: var(--guide-ink);
    padding: 22px clamp(14px, 2vw, 32px) 40px;
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    border-radius: 28px;
    padding: clamp(24px, 4vw, 42px);
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(20, 184, 166, .32), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0f766e 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
}

.guide-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -90px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.guide-hero__content,
.guide-hero__panel {
    position: relative;
    z-index: 1;
}

.guide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
}

.guide-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.guide-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
    line-height: 1.9;
}

.guide-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.guide-hero__actions .btn {
    border-radius: 14px;
    font-weight: 800;
    padding: 11px 18px;
}

.guide-hero__panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
}

.guide-hero__panel div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
}

.guide-hero__panel strong {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #0f172a;
    background: #fff;
    font-weight: 900;
}

.guide-hero__panel span {
    font-weight: 800;
    line-height: 1.6;
}

.guide-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.guide-toc {
    position: sticky;
    top: calc(var(--erp-shell-header-height, 74px) + 18px);
    max-height: calc(100dvh - var(--erp-shell-header-height, 74px) - 34px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--guide-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.guide-toc__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 14px;
    color: var(--guide-primary-dark);
    font-weight: 900;
}

.guide-toc a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    margin-bottom: 5px;
    border-radius: 13px;
    color: #334155;
    text-decoration: none;
    font-weight: 750;
    transition: .18s ease;
}

.guide-toc a:hover,
.guide-toc a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--guide-primary), var(--guide-accent));
    box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
}

.guide-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.guide-section {
    scroll-margin-top: calc(var(--erp-shell-header-height, 74px) + 22px);
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--guide-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.guide-section__title {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.guide-section__title > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--guide-primary), var(--guide-accent));
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

.guide-section h2 {
    margin: 0 0 7px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: -.025em;
}

.guide-section__title p,
.guide-card p,
.guide-panel p,
.guide-note p {
    margin: 0;
    color: var(--guide-muted);
    line-height: 1.85;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.guide-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.guide-panel,
.guide-steps article {
    border: 1px solid var(--guide-line);
    border-radius: 20px;
    background: var(--guide-card);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

.guide-card {
    padding: 18px;
}

.guide-card i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 15px;
    color: var(--guide-primary);
    background: #eff6ff;
    font-size: 22px;
}

.guide-card h3,
.guide-panel h3 {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 900;
}

.guide-flow {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px 16px;
}

.flow-node {
    display: grid;
    justify-items: center;
    min-height: 150px;
    padding: 18px 12px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.flow-node i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--guide-primary), var(--guide-accent));
}

.flow-node strong {
    font-weight: 900;
}

.flow-node small {
    color: var(--guide-muted);
    line-height: 1.6;
}

.guide-flow b {
    height: 2px;
    min-width: 46px;
    background: linear-gradient(90deg, var(--guide-primary), var(--guide-accent));
}

.guide-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.guide-note i {
    color: var(--guide-primary);
    font-size: 24px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.guide-steps article,
.guide-panel {
    padding: 18px;
}

.guide-steps strong {
    display: block;
    margin-bottom: 8px;
    color: var(--guide-primary-dark);
    font-size: 17px;
    font-weight: 900;
}

.guide-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-panel--soft {
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.guide-panel--mt {
    margin-top: 16px;
}

.guide-panel ol {
    margin: 0;
    padding-inline-start: 24px;
    color: #334155;
    line-height: 2;
}

.guide-mini-flow,
.guide-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.guide-mini-flow span,
.guide-checks div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #1e293b;
    border: 1px solid var(--guide-line);
    background: #fff;
    font-weight: 800;
}

.guide-mini-flow i {
    color: var(--guide-primary);
}

.guide-checks {
    margin-top: 16px;
}

.guide-checks--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-checks i {
    color: var(--guide-accent);
}

.guide-table-wrap {
    overflow-x: auto;
}

.guide-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 16px;
}

.guide-table th,
.guide-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--guide-line);
    vertical-align: top;
}

.guide-table th {
    color: var(--guide-primary-dark);
    background: #eff6ff;
    font-weight: 900;
}

.guide-table tr:last-child td {
    border-bottom: 0;
}

.guide-code {
    display: block;
    direction: ltr;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.guide-accordion {
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: 20px;
}

.guide-accordion button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--guide-line);
    background: #fff;
    color: var(--guide-ink);
    font-weight: 900;
    text-align: start;
}

.guide-accordion button:last-of-type {
    border-bottom: 0;
}

.guide-accordion button.is-open {
    color: var(--guide-primary-dark);
    background: #eff6ff;
}

.guide-accordion button i {
    transition: transform .18s ease;
}

.guide-accordion button.is-open i {
    transform: rotate(180deg);
}

.guide-accordion button + div {
    display: none;
    padding: 0 18px 16px;
    color: var(--guide-muted);
    background: #fff;
}

.guide-accordion button.is-open + div {
    display: block;
}

.guide-accordion p {
    margin: 0;
    line-height: 1.9;
}

@media (max-width: 1280px) {
    .guide-hero,
    .guide-shell {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: relative;
        top: auto;
        max-height: none;
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .guide-toc__head {
        flex: 0 0 auto;
    }

    .guide-toc a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 1050px) {
    .guide-card-grid,
    .guide-card-grid--three,
    .guide-steps,
    .guide-two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .purchase-guide-page {
        padding: 14px 10px 28px;
    }

    .guide-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .guide-hero__panel div {
        grid-template-columns: 44px 1fr;
    }

    .guide-hero__panel strong {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .guide-card-grid,
    .guide-card-grid--three,
    .guide-steps,
    .guide-two-columns,
    .guide-checks--columns {
        grid-template-columns: 1fr;
    }

    .guide-section {
        border-radius: 20px;
        padding: 16px;
    }

    .guide-section__title {
        display: grid;
    }

    .guide-flow {
        grid-template-columns: 1fr;
    }

    .guide-flow b {
        width: 2px;
        height: 28px;
        justify-self: center;
    }
}
