.site-header-shell,
.site-footer-shell {
    width: 100%;
    border-block: 1px solid rgba(234, 179, 91, 0.12);
    background:
        linear-gradient(180deg, rgba(24, 20, 16, 0.82), rgba(12, 10, 8, 0.58)),
        rgba(8, 7, 6, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.site-header-shell {
    position: sticky;
    top: 0;
    z-index: 20;
    border-top: 0;
}

.site-footer-shell {
    border-bottom: 0;
}

.site-header,
.site-footer {
    width: min(var(--max-width), calc(100% - 48px));
}

.site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 18px 0;
}

.site-nav {
    justify-self: center;
}

.site-nav a.active,
.account-link.active {
    color: #06120b;
    background: linear-gradient(135deg, var(--accent), #b6ff5e);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
}

.site-nav a.active:hover,
.account-link.active:hover {
    color: #06120b;
}

.site-nav a[href="/analyze"]:not(.active) {
    color: var(--muted-strong);
    background: transparent;
    box-shadow: none;
}

.site-nav a[href="/analyze"]:not(.active):hover {
    color: var(--text);
    background: rgba(65, 216, 123, 0.1);
    filter: none;
}

.account-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.logout-form {
    display: contents;
}

.account-link {
    display: inline-grid;
    place-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted-strong);
    background: rgba(255, 245, 223, 0.035);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

button.account-link {
    appearance: none;
}

.account-link:hover {
    color: var(--text);
    background: rgba(65, 216, 123, 0.08);
}

.account-button {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24), 0 18px 44px rgba(65, 216, 123, 0.12);
    white-space: nowrap;
}

.site-footer {
    padding: 26px 0;
}

.profile-form {
    margin-top: 20px;
}

.profile-form .actions {
    grid-column: 1 / -1;
}

.pricing-page {
    max-width: 1120px;
    margin-inline: auto;
}

.pricing-tabs-ui {
    display: grid;
    gap: 28px;
}

.billing-tab-input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.billing-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(680px, 100%);
    margin-inline: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(24, 20, 16, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 245, 223, 0.055), 0 18px 50px rgba(0, 0, 0, 0.2);
}

.billing-tabs label {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted-strong);
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.billing-tabs label:hover {
    color: var(--text);
    background: rgba(65, 216, 123, 0.08);
}

#billing-monthly:checked ~ .billing-tabs label[for="billing-monthly"],
#billing-quarterly:checked ~ .billing-tabs label[for="billing-quarterly"],
#billing-yearly:checked ~ .billing-tabs label[for="billing-yearly"] {
    color: #06120b;
    background: linear-gradient(135deg, var(--accent), #b6ff5e);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24);
}

.pricing-panel {
    display: none;
}

#billing-monthly:checked ~ .pricing-panel-monthly,
#billing-quarterly:checked ~ .pricing-panel-quarterly,
#billing-yearly:checked ~ .pricing-panel-yearly {
    display: grid;
}

.pricing-grid-clean {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-grid-clean .plan-card {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.pricing-grid-clean .plan-card .actions {
    margin-top: auto;
}

.trial-card {
    opacity: 0.92;
}

.compact-list {
    gap: 10px;
}

.compact-list li {
    font-size: 0.94rem;
}

.pricing-grid-clean .price {
    margin-bottom: 8px;
}

.report-jumpbar {
    position: sticky;
    top: 14px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.report-jumpbar::before {
    inset: 7px;
}

.report-jumpbar strong {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.report-jumpbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-jumpbar a {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted-strong);
    background: rgba(9, 7, 5, 0.32);
    font-size: 0.84rem;
    font-weight: 850;
}

.report-jumpbar a:hover {
    color: var(--text);
    background: rgba(65, 216, 123, 0.08);
}

.report-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.report-snapshot-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(9, 7, 5, 0.32);
}

.report-snapshot-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.report-snapshot-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.32rem;
    line-height: 1;
    letter-spacing: -0.055em;
}

.dashboard-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 24px;
}

.roadmap-list {
    display: grid;
    gap: 12px;
    counter-reset: roadmap;
}

.roadmap-item {
    counter-increment: roadmap;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(9, 7, 5, 0.34);
}

.roadmap-item::before {
    content: counter(roadmap);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #06120b;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
    font-family: var(--font-display);
    font-weight: 900;
}

.roadmap-item h3,
.roadmap-item p {
    margin: 0;
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-nav {
        justify-self: stretch;
        justify-content: center;
        overflow-x: auto;
    }

    .account-nav {
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .utility-strip,
    .report-jumpbar {
        position: static;
        width: min(100% - 24px, var(--max-width));
    }

    .report-snapshot-grid,
    .dashboard-board,
    .pricing-grid-clean {
        grid-template-columns: 1fr;
    }

    .pricing-grid-clean .plan-card {
        min-height: unset;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-footer {
        width: min(100% - 24px, var(--max-width));
    }

    .billing-tabs {
        grid-template-columns: 1fr;
    }

    .account-nav {
        width: 100%;
    }

    .account-link,
    .account-button {
        flex: 1;
    }
}
