:root {
    --guide-bg: #f4f6fb;
    --guide-surface: #ffffff;
    --guide-primary: #1a3d7c;
    --guide-primary-light: #2f5ab5;
    --guide-accent: #2ec4b6;
    --guide-muted: #e0e6f5;
    --guide-text: #1f2430;
    --guide-text-light: #5a6170;
    --guide-border: #d7dce9;
    --guide-success: #2a9d8f;
    --guide-warning: #f4a261;
    --guide-danger: #e76f51;
    --guide-radius: 16px;
    --guide-shadow: 0 16px 40px rgba(26, 61, 124, 0.08);
    --guide-transition: 0.25s ease;
    --guide-on-primary: #ffffff;
    --guide-on-accent: #053b4b;
    --guide-footer-text: #555555;
    --guide-panel-shadow: 0 12px 30px rgba(17, 23, 41, 0.07);
    --guide-card-shadow: 0 12px 28px rgba(17, 23, 41, 0.05);
    --guide-timeline-shadow: 0 8px 24px rgba(17, 23, 41, 0.06);
    --guide-material-bg: rgba(255, 255, 255, 0.85);
    --guide-soft-surface: rgba(26, 61, 124, 0.04);
    --guide-callout-gradient-start: rgba(26, 61, 124, 0.95);
    --guide-callout-gradient-end: rgba(46, 196, 182, 0.9);
    font-size: 16px;
    --shell-surface: var(--guide-surface);
    --shell-section-surface: rgba(255, 255, 255, 0.92);
    --shell-border: rgba(26, 61, 124, 0.12);
    --shell-text-strong: var(--guide-primary);
    --shell-muted: var(--guide-text-light);
    --shell-accent: var(--guide-accent);
    --shell-avatar-bg: var(--guide-primary);
    --shell-max-width: min(1180px, 92vw);
}

:root[data-theme='dark'] {
    --guide-bg: #0b1120;
    --guide-surface: #111c2f;
    --guide-primary: #8fb4ff;
    --guide-primary-light: #b0c9ff;
    --guide-accent: #5eead4;
    --guide-muted: rgba(148, 163, 184, 0.22);
    --guide-text: #e2e8f0;
    --guide-text-light: #cbd5f5;
    --guide-border: rgba(148, 163, 184, 0.25);
    --guide-success: #34d399;
    --guide-warning: #fbbf24;
    --guide-danger: #f87171;
    --guide-shadow: 0 16px 40px rgba(3, 12, 33, 0.55);
    --guide-on-primary: #041021;
    --guide-on-accent: #042924;
    --guide-footer-text: #94a3b8;
    --guide-panel-shadow: 0 12px 30px rgba(8, 28, 55, 0.6);
    --guide-card-shadow: 0 12px 28px rgba(8, 28, 55, 0.5);
    --guide-timeline-shadow: 0 8px 24px rgba(8, 28, 55, 0.5);
    --guide-material-bg: rgba(17, 27, 45, 0.85);
    --guide-soft-surface: rgba(148, 163, 184, 0.12);
    --guide-callout-gradient-start: rgba(15, 44, 84, 0.9);
    --guide-callout-gradient-end: rgba(46, 196, 182, 0.65);
    --shell-surface: var(--guide-surface);
    --shell-section-surface: rgba(15, 23, 42, 0.72);
    --shell-border: rgba(148, 163, 184, 0.2);
    --shell-text-strong: #f8fafc;
    --shell-muted: var(--guide-text-light);
    --shell-accent: var(--guide-accent);
    --shell-avatar-bg: #334155;
}

body.guide-body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--guide-bg);
    margin: 0;
    color: var(--guide-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--guide-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.guide-container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.guide-subnav {
    background: var(--shell-section-surface);
    border-bottom: 1px solid var(--shell-border);
}

.guide-subnav__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.guide-subnav__links .btn {
    margin: 0;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    box-sizing: border-box;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    margin: 0;
    cursor: pointer;
    background: var(--guide-primary);
    color: var(--guide-on-primary);
    transition: var(--guide-transition);
}

.guide-btn:hover,
.guide-btn:focus-visible {
    filter: brightness(1.05);
    text-decoration: none;
}

.guide-btn:disabled {
    cursor: not-allowed;
    background: var(--guide-muted);
    color: var(--guide-text-light);
}

.guide-btn--ghost {
    background: transparent;
    border: 1px solid var(--guide-border);
    color: var(--guide-primary);
}

.guide-btn--ghost:hover {
    border-color: var(--guide-primary);
}

:root[data-theme='dark'] .guide-dashboard-actions .guide-btn--ghost.guide-btn--home {
    background: var(--guide-accent);
    color: var(--guide-on-accent);
    border: none;
}

:root[data-theme='dark'] .guide-dashboard-actions .guide-btn--ghost.guide-btn--home:hover,
:root[data-theme='dark'] .guide-dashboard-actions .guide-btn--ghost.guide-btn--home:focus-visible {
    border: none;
}

.guide-btn--accent {
    background: var(--guide-accent);
    color: var(--guide-on-accent);
}

.guide-btn--full {
    width: 100%;
}

.guide-main {
    flex: 1;
    padding: 32px 0 60px;
}

.guide-flash-region {
    background: rgba(46, 196, 182, 0.15);
    padding: 12px 0;
}

.guide-flash {
    padding: 12px 18px;
    border-radius: var(--guide-radius);
    background: var(--guide-surface);
    border-left: 4px solid var(--guide-accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.guide-flash--warning {
    border-left-color: var(--guide-warning);
    background: rgba(244, 162, 97, 0.1);
}

.guide-section {
    margin-bottom: 56px;
}

.guide-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: center;
    background: var(--guide-surface);
    padding: 48px;
    border-radius: calc(var(--guide-radius) + 8px);
    box-shadow: var(--guide-shadow);
}

.guide-hero__content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 16px;
    color: var(--guide-primary);
}

.guide-hero__content p {
    font-size: 1.05rem;
    color: var(--guide-text-light);
    margin-bottom: 24px;
}

.guide-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 61, 124, 0.08);
    color: var(--guide-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.guide-account-callout {
    background: linear-gradient(135deg, var(--guide-callout-gradient-start), var(--guide-callout-gradient-end));
    color: var(--guide-on-primary);
    padding: 38px;
    border-radius: calc(var(--guide-radius) + 8px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    align-items: center;
    box-shadow: var(--guide-shadow);
}

.guide-account-callout h2 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--guide-on-primary);
}

.guide-account-callout p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.guide-account-callout li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer {
    text-align: center;
    font-size: 0.56em;
    color: var(--guide-footer-text);
}

.footer a {
    color: var(--guide-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Step view */

.guide-step-header {
    background: var(--guide-surface);
    padding: 24px 28px;
    border-radius: var(--guide-radius);
    box-shadow: var(--guide-panel-shadow);
    margin-bottom: 24px;
}

.guide-step-header h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--guide-primary);
}

.guide-step-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.guide-step-description {
    margin: 0;
    color: var(--guide-text-light);
    line-height: 1.6;
}

.guide-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.guide-step-actions__note {
    font-size: 0.85rem;
    color: var(--guide-text-light);
}

.guide-step-timeline {
    position: relative;
    padding: 24px;
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    margin-bottom: 28px;
    box-shadow: var(--guide-timeline-shadow);
}

.guide-step-timeline__track {
    position: relative;
    height: 6px;
    background: var(--guide-muted);
    border-radius: 999px;
}

.guide-step-timeline__progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--guide-accent);
    border-radius: 999px;
    transition: width var(--guide-transition);
}

.guide-step-timeline__list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
}

.guide-step-timeline__item {
    text-align: center;
    font-size: 0.78rem;
    color: var(--guide-text-light);
    position: relative;
}

.guide-step-timeline__label {
    margin-top: 6px;
}

.guide-step-timeline__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--guide-muted);
    background: var(--guide-surface);
    font-weight: 600;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--guide-transition), border-color var(--guide-transition), background var(--guide-transition), box-shadow var(--guide-transition);
}

.guide-step-timeline__dot:hover {
    border-color: var(--guide-primary);
    box-shadow: 0 0 0 3px rgba(26, 61, 124, 0.12);
}

.guide-step-timeline__dot:focus-visible {
    outline: 3px solid rgba(26, 61, 124, 0.45);
    outline-offset: 2px;
}

.guide-step-timeline__item.is-completed .guide-step-timeline__dot {
    border-color: var(--guide-accent);
    background: rgba(46, 196, 182, 0.12);
    color: var(--guide-primary);
}

.guide-step-timeline__item.is-current .guide-step-timeline__dot {
    border-color: var(--guide-primary);
    background: var(--guide-primary);
    color: var(--guide-on-primary);
    transform: scale(1.1);
}

.guide-step-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 24px;
}

.guide-card {
    background: var(--guide-surface);
    border-radius: var(--guide-radius);
    padding: 24px;
    box-shadow: var(--guide-card-shadow);
}

.guide-card h2 {
    margin-top: 0;
    font-size: 1.35rem;
    color: var(--guide-primary);
}

.guide-card h3 {
    margin-top: 24px;
    font-size: 1.05rem;
    color: var(--guide-primary);
}

.guide-card ul,
.guide-card ol {
    padding-left: 18px;
    line-height: 1.6;
    color: var(--guide-text-light);
}

.guide-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.guide-checklist li {
    padding: 10px 12px;
    background: var(--guide-soft-surface);
    border-radius: 12px;
}

.guide-checklist__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.guide-checklist__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.guide-checklist__box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--guide-primary);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.guide-checklist__box::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: transparent;
    border-radius: 2px;
}

.guide-checklist li.is-completed .guide-checklist__box::after {
    background: var(--guide-accent);
}

.guide-checklist li.is-completed .guide-checklist__label {
    text-decoration: line-through;
    color: var(--guide-primary);
}

.guide-checklist__checkbox:focus-visible + .guide-checklist__box {
    outline: 2px solid var(--guide-primary);
    outline-offset: 2px;
}

.guide-materials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.guide-material {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--guide-border);
    background: var(--guide-material-bg);
}

.guide-material strong {
    display: block;
    margin-bottom: 4px;
    color: var(--guide-primary);
}

.guide-material span {
    font-size: 0.9rem;
    color: var(--guide-text-light);
}

.guide-material.is-coming-soon {
    border-style: dashed;
    color: var(--guide-text-light);
    background: var(--guide-soft-surface);
}

.guide-alert {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(231, 111, 81, 0.1);
    border-left: 4px solid var(--guide-danger);
    color: var(--guide-danger);
    margin-bottom: 12px;
}

.guide-reminders {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.guide-reminder {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(46, 196, 182, 0.15);
    border: 1px solid rgba(46, 196, 182, 0.25);
    color: var(--guide-text);
}

.guide-placeholder {
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed var(--guide-border);
    background: var(--guide-soft-surface);
    color: var(--guide-text-light);
}

.guide-celebration {
    position: relative;
    padding: 24px;
    border-radius: var(--guide-radius);
    background: linear-gradient(135deg,
            rgba(46, 196, 182, 0.65),
            rgba(255, 183, 3, 0.55),
            rgba(131, 56, 236, 0.6));
    text-align: center;
    color: var(--guide-primary);
    box-shadow: 0 12px 30px -18px rgba(26, 61, 124, 0.6);
		margin-top: 24px;
}


.guide-aside {
    display: grid;
    gap: 20px;
}

.guide-next-step {
    margin-top: 20px;
}

.guide-glossary {
    display: grid;
    gap: 12px;
}

.guide-glossary__item {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--guide-soft-surface);
}

.guide-glossary__term {
    font-weight: 600;
    color: var(--guide-primary);
}

.guide-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.guide-filter {
    border: 1px solid var(--guide-border);
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--guide-surface);
    font-size: 0.85rem;
    color: var(--guide-text-light);
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.guide-filter:is(:hover, :focus-visible) {
    border-color: var(--guide-primary);
    color: var(--guide-primary);
}

.guide-filter.is-active {
    background: var(--guide-primary);
    border-color: var(--guide-primary);
    color: var(--guide-on-primary);
}

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

.guide-dashboard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.guide-dashboard-progress__value {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--guide-primary);
}

.guide-dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.guide-dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--guide-soft-surface);
}

.guide-dashboard-item[hidden] {
    display: none !important;
}

.guide-dashboard-item__title {
    font-weight: 600;
    color: var(--guide-primary);
}

.guide-dashboard-item__meta {
    font-size: 0.85rem;
    color: var(--guide-text-light);
}

.guide-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.guide-completion {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, 50vh, 560px);
}

.guide-completion__card {
    background: linear-gradient(145deg, var(--guide-surface), var(--guide-soft-surface));
    border-radius: calc(var(--guide-radius) + 12px);
    box-shadow: var(--guide-card-shadow);
    max-width: min(640px, 100%);
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.5vw, 24px);
}

.guide-completion__icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    filter: drop-shadow(0 12px 24px rgba(26, 61, 124, 0.15));
}

:root[data-theme='dark'] .guide-completion__icon {
    filter: drop-shadow(0 12px 24px rgba(14, 23, 42, 0.45));
}

.guide-completion__card h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin: 0;
}

.guide-completion__card p {
    margin: 0;
    color: var(--guide-text-light);
    line-height: 1.6;
}

.guide-completion__actions {
    margin-top: 12px;
}

/* Responsive tweaks */

@media (max-width: 1024px) {
    .guide-step-layout,
    .guide-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .guide-aside {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .guide-hero {
        padding: 32px;
    }
    .guide-main {
        padding: 24px 0 40px;
    }
    .guide-step-timeline__list {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
}

@media (max-width: 600px) {
    .guide-container {
        width: 92vw;
    }
    .guide-hero {
        padding: 24px;
    }
    .guide-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .guide-btn {
        width: 100%;
    }
    .guide-subnav__links {
        flex-direction: row;
        align-items: stretch;
				justify-content: center;
    }
    .guide-subnav__links .btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .guide-step-timeline {
        padding: 18px;
    }
    .guide-step-timeline__list {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    .guide-step-timeline__label {
        display: none;
    }
    .guide-step-timeline__dot {
        margin-bottom: 0;
    }
}
