/* Mobile nav toggle — must live in app.css (unscoped) because :has() is mangled by Blazor's scoped CSS transformer */
.brand-shell:has(.navbar-toggler:checked) ~ .nav-scrollable {
    display: block;
}

:root {
    --pw-bg: #0d1422;
    --pw-panel: rgba(13, 21, 35, 0.84);
    --pw-panel-soft: rgba(255, 255, 255, 0.05);
    --pw-border: rgba(255, 255, 255, 0.08);
    --pw-text: #eef2f9;
    --pw-muted: rgba(238, 242, 249, 0.72);
    --pw-gold: #d6a167;
    --pw-gold-deep: #9a683e;
    --pw-blue: #7f9fd7;
    --pw-shadow: 0 24px 70px rgba(3, 7, 14, 0.38);
}

html {
    overflow-x: hidden; /* prevent any element from creating horizontal page scroll */
}

html, body {
    margin: 0;
    font-family: "Aptos", "Trebuchet MS", sans-serif;
    color: var(--pw-text);
    background: var(--pw-bg);
    overflow-wrap: break-word; /* long words / URLs wrap rather than overflow */
    word-break: break-word;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.65;
}

a, .btn-link {
    color: var(--pw-blue);
}

.button-primary,
.button-secondary,
button.button-secondary,
button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.button-primary {
    border: none;
    color: #fff8f1;
    background: linear-gradient(135deg, var(--pw-gold), var(--pw-gold-deep));
    box-shadow: 0 18px 40px rgba(154, 104, 62, 0.28);
}

.button-secondary {
    color: var(--pw-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-primary:hover,
.button-secondary:hover,
button.button-secondary:hover,
button.button-primary:hover {
    transform: translateY(-1px);
}

.section-tag,
.panel-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: var(--pw-gold);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.4rem;
    align-items: stretch;
}

.hero-copy,
.hero-panel-card,
.hero-logo-card,
.plan-preview-card,
.plan-detail-card,
.section-band,
.comparison-band,
.form-card,
.submission-card {
    border: 1px solid var(--pw-border);
    background: var(--pw-panel);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(18px);
}

.hero-copy {
    padding: 2rem;
    border-radius: 34px;
}

.hero-copy h1 {
    margin-top: 0.7rem;
    font-size: clamp(1.8rem, 2.2vw, 2.8rem);
    line-height: 1.25;
    max-width: 28ch;
}

.hero-lead {
    max-width: 62ch;
    margin: 1.1rem 0 0;
    color: var(--pw-muted);
    font-size: 1.06rem;
}

.hero-tagline {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pw-accent, #c9a96e);
    opacity: 0.85;
}

.home-banner {
    width: 100%;
    max-width: 960px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

.home-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

.hero-actions-strip {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.5rem 0;
    max-width: 960px;
    margin: 0 auto;
}

.stat-strip-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.hero-logo-card {
    padding: 1rem;
    border-radius: 34px;
    overflow: hidden;
}

.hero-logo-card img {
    display: block;
    width: 100%;
    border-radius: 24px;
}

.hero-panel-card {
    padding: 1.5rem;
    border-radius: 28px;
}

.hero-panel-card ul,
.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.hero-panel-card li,
.feature-list li {
    margin-bottom: 0.8rem;
    color: var(--pw-muted);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.stat-strip div {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
}

.stat-strip strong,
.stat-strip span {
    display: block;
}

.stat-strip span {
    margin-top: 0.35rem;
    color: var(--pw-muted);
    font-size: 0.95rem;
}

.remote-hero-image {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 0;
    padding: 0 1.5rem;
}

.remote-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

.section-block,
.comparison-band,
.page-intro,
.intake-form,
.submission-card {
    margin-top: 1.5rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2,
.page-intro h1 {
    margin-top: 0.55rem;
    font-size: clamp(2rem, 3vw, 3rem);
}

.page-intro p,
.section-heading p {
    max-width: 68ch;
    color: var(--pw-muted);
}

.plan-preview-grid,
.plans-grid,
.process-grid,
.comparison-grid,
.tier-grid,
.phase-stack {
    display: grid;
    gap: 1rem;
}

.plan-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-preview-card,
.plan-detail-card {
    padding: 1.5rem;
    border-radius: 28px;
}

.plan-accent {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(214, 161, 103, 0.14);
    color: var(--pw-gold);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.plan-preview-card p,
.plan-detail-card p,
.comparison-grid p,
.process-grid p {
    color: var(--pw-muted);
}

.plan-preview-card dl {
    margin: 1.15rem 0 0;
    display: grid;
    gap: 0.85rem;
}

.plan-preview-card dt,
.plan-meta span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(238, 242, 249, 0.55);
}

.plan-preview-card dd {
    margin: 0.28rem 0 0;
}

.section-band,
.comparison-band {
    padding: 1.6rem;
    border-radius: 30px;
}

.roadmap-summary,
.phase-card,
.roadmap-note,
.roadmap-video-card {
    border: 1px solid var(--pw-border);
    background: var(--pw-panel);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(18px);
}

.roadmap-summary,
.phase-card,
.roadmap-video-card {
    padding: 1.6rem;
    border-radius: 30px;
}

.roadmap-summary p,
.phase-card p,
.roadmap-note {
    color: var(--pw-muted);
}

.phase-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.2rem;
}

.phase-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(214, 161, 103, 0.14);
    color: var(--pw-gold);
    font-family: "Consolas", "Courier New", monospace;
    text-transform: uppercase;
}

.tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier-card {
    padding: 1.3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-card h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.tier-card strong {
    display: block;
    margin-top: 1rem;
}

.roadmap-note {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: rgba(214, 161, 103, 0.09);
}

.roadmap-video-section {
    margin-top: 1.5rem;
}

.roadmap-video-card {
    overflow: hidden;
}

.roadmap-video {
    display: block;
    width: 100%;
    max-height: 72vh;
    border-radius: 22px;
    background: #000;
}

.admin-card {
    padding: 1.6rem;
    border-radius: 30px;
    border: 1px solid var(--pw-border);
    background: var(--pw-panel);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(18px);
}

.admin-summary {
    margin-bottom: 1rem;
}

.admin-summary strong,
.admin-summary span {
    display: block;
}

.admin-summary strong {
    font-size: 2rem;
}

.admin-summary span {
    color: var(--pw-muted);
}

.admin-actions {
    margin-bottom: 1rem;
}

.admin-login-card {
    max-width: 32rem;
    padding: 1.6rem;
    border-radius: 30px;
    border: 1px solid var(--pw-border);
    background: var(--pw-panel);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(18px);
}

.admin-login-form {
    display: grid;
    gap: 1rem;
}

.admin-login-form label {
    display: grid;
    gap: 0.5rem;
}

.intake-table {
    display: grid;
    gap: 0.8rem;
}

.intake-table-header,
.intake-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 0.7fr auto;
    gap: 1rem;
    align-items: center;
}

.intake-table-header {
    padding: 0 0.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(238, 242, 249, 0.55);
}

.intake-row {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.intake-file {
    overflow-wrap: anywhere;
}

.intake-download {
    white-space: nowrap;
}

.process-grid,
.comparison-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article,
.comparison-grid article {
    padding: 1.1rem;
    border-radius: 22px;
    background: var(--pw-panel-soft);
}

.process-grid span {
    display: inline-block;
    font-family: "Consolas", "Courier New", monospace;
    color: var(--pw-gold);
    margin-bottom: 0.75rem;
}

.plan-meta,
.submission-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.2rem 0;
}

.submission-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.plan-meta div,
.submission-summary div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.plan-meta strong,
.submission-summary strong,
.submission-summary span {
    display: block;
}

.plan-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-list-soft li {
    color: rgba(238, 242, 249, 0.84);
}

.intake-form {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-card {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 28px;
}

.form-card-wide {
    grid-column: span 2;
}

.form-card label {
    display: grid;
    gap: 0.5rem;
    color: var(--pw-text);
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 10, 18, 0.52);
    color: var(--pw-text);
    padding: 0.95rem 1rem;
    font: inherit;
}

.form-input:focus {
    outline: none;
    border-color: rgba(214, 161, 103, 0.7);
    box-shadow: 0 0 0 0.18rem rgba(214, 161, 103, 0.18);
}

.form-textarea {
    min-height: 9rem;
}

.check-row {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.check-row input {
    margin-top: 0.3rem;
}

.form-tip {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.form-tip p,
.submission-card p,
.submission-notes p {
    color: var(--pw-muted);
}

.form-progress {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    opacity: 0.38;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.form-progress-step.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.07);
}

.form-progress-step.done {
    opacity: 0.6;
}

.step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.form-progress-step.active .step-dot {
    background: var(--accent, #c9a96e);
    color: #0a0a0a;
}

.form-progress-step.done .step-dot {
    background: rgba(201, 169, 110, 0.35);
    color: #c9a96e;
}

.step-label {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-reset-warning {
    font-size: 0.82rem;
    color: #f0c070;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(240, 192, 112, 0.1);
    border: 1px solid rgba(240, 192, 112, 0.2);
    margin-bottom: 0.75rem;
}

.cta-reassurance {
    font-size: 0.82rem;
    color: var(--pw-muted);
    margin: 0.6rem 0 0;
    padding-left: 1.5rem;
}

.plan-cta {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.85rem;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--pw-panel);
    border: 1px solid var(--pw-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card h2 {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    line-height: 1.3;
    margin: 0;
}

.contact-card p {
    margin: 0;
    color: rgba(238, 242, 249, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.contact-email {
    display: inline-block;
    margin-top: 0.5rem;
    color: #d9a15c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-email:hover {
    text-decoration: underline;
}

/* ── Blog listing ────────────────────────────────────────── */
.blog-listing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: var(--pw-panel);
    border: 1px solid var(--pw-border);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    border-color: rgba(217, 161, 92, 0.5);
    transform: translateY(-2px);
}

.blog-card-image {
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-body h2 {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    line-height: 1.3;
    margin: 0;
}

.blog-card-body p {
    color: rgba(238, 242, 249, 0.78);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.blog-read-more {
    color: #d9a15c;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Blog article ────────────────────────────────────────── */
.blog-article-intro {
    padding-bottom: 0;
}

.blog-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: rgba(238, 242, 249, 0.55);
    text-decoration: none;
    font-size: 0.875rem;
}

.blog-back:hover {
    color: #d9a15c;
}

.blog-article {
    max-width: 72ch;
    padding: 0 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.blog-article h2 {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: #d9a15c;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--pw-border);
}

.blog-lead {
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(238, 242, 249, 0.9);
    line-height: 1.6;
    margin: 0;
}

.blog-article p {
    color: rgba(238, 242, 249, 0.82);
    line-height: 1.75;
    margin: 0;
    font-size: 0.975rem;
}

.blog-figure {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-figure img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.blog-figure figcaption {
    font-size: 0.82rem;
    color: rgba(238, 242, 249, 0.5);
    font-style: italic;
    padding-left: 0.25rem;
}

.blog-figure-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.5rem 0;
}

.blog-article-cta {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--pw-panel);
    border: 1px solid var(--pw-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-article-cta p {
    margin: 0;
    font-weight: 500;
    color: rgba(238, 242, 249, 0.9) !important;
}

@media (max-width: 900px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 220px;
    }
}

@media (max-width: 700px) {
    .blog-figure-pair {
        grid-template-columns: 1fr;
    }

    .blog-article {
        padding: 0 0 2rem;
    }
}

/* ── Cookie notice ───────────────────────────────────────── */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: rgba(10, 16, 28, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-size: 0.875rem;
    color: rgba(238, 242, 249, 0.82);
    flex-wrap: wrap;
}

.cookie-notice p {
    margin: 0;
    flex: 1;
}

.cookie-notice a {
    color: #d9a15c;
    text-decoration: none;
}

.cookie-notice a:hover {
    text-decoration: underline;
}

.cookie-dismiss {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eef2f9;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-dismiss:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ── Privacy page ────────────────────────────────────────── */
.privacy-updated {
    font-size: 0.85rem;
    color: var(--pw-muted);
    margin-top: 0.5rem;
}

.privacy-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 72ch;
}

.privacy-section h2 {
    font-size: 1.05rem;
    color: #d9a15c;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.privacy-section p,
.privacy-section ul {
    margin: 0 0 0.6rem;
    color: rgba(238, 242, 249, 0.82);
    line-height: 1.7;
    font-size: 0.95rem;
}

.privacy-section ul {
    padding-left: 1.4rem;
}

.privacy-section li {
    margin-bottom: 0.35rem;
}

.privacy-section a {
    color: #d9a15c;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* ── Sidebar privacy link ────────────────────────────────── */
.sidebar-privacy {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: rgba(238, 242, 249, 0.4);
    text-decoration: none;
}

.sidebar-privacy:hover {
    color: rgba(238, 242, 249, 0.7);
}

@media (max-width: 700px) {
    .contact-card-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.submission-error {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 129, 129, 0.35);
    background: rgba(113, 22, 31, 0.35);
    color: #ffd2d2;
}

.submission-card {
    padding: 1.8rem;
    border-radius: 32px;
}

.submission-notes {
    margin: 1rem 0 1.4rem;
}

.validation-summary,
.validation-message {
    color: #ffb4b4;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #4fd38b;
}

.invalid {
    outline: 1px solid #ff8181;
}

@media (max-width: 1200px) {
    .hero-grid,
    .plan-preview-grid,
    .process-grid,
    .comparison-grid,
    .tier-grid,
    .phase-heading,
    .intake-table-header,
    .intake-row,
    .plan-columns,
    .form-grid,
    .plan-meta,
    .submission-summary {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .form-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .hero-copy,
    .hero-panel-card,
    .hero-logo-card,
    .plan-preview-card,
    .plan-detail-card,
    .section-band,
    .comparison-band,
    .form-card,
    .submission-card {
        border-radius: 24px;
    }

    .hero-copy,
    .plan-preview-card,
    .plan-detail-card,
    .section-band,
    .comparison-band,
    .form-card,
    .submission-card {
        padding: 1.2rem;
    }
}

/* ── MainLayout ──────────────────────────────────────────── */
.page {
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(250px, 300px) 1fr;
    background:
        radial-gradient(circle at top left, rgba(201, 152, 85, 0.2), transparent 30%),
        linear-gradient(135deg, #090d17 0%, #101829 42%, #162336 100%);
    overflow: hidden;
}

main {
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.3rem 0.95rem;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.92) 0%, rgba(10, 16, 28, 0.78) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 2.2rem 0;
}

.top-row p {
    margin: 0.35rem 0 0;
    color: rgba(231, 235, 243, 0.78);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #d9a15c;
}

.top-row-cta {
    color: #fef7ef;
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d09a57, #91653c);
    box-shadow: 0 16px 40px rgba(90, 51, 13, 0.28);
}

.content-shell {
    padding: 2rem 2.2rem 3rem;
}

/* ── NavMenu ─────────────────────────────────────────────── */
.brand-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.brand-mark {
    display: block;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.brand-mark img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
}

.navbar-toggler {
    display: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    position: relative;
}

.navbar-toggler::before,
.navbar-toggler::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 1.5px;
    background: #eef2f9;
    border-radius: 2px;
}

.navbar-toggler::before {
    top: 0.625rem;
    box-shadow: 0 0.35rem 0 #eef2f9;
}

.navbar-toggler::after {
    bottom: 0.625rem;
}

.nav-scrollable {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    color: rgba(238, 242, 249, 0.72);
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #eef2f9;
}

.nav-link.active {
    background: rgba(214, 161, 103, 0.12);
    color: #eef2f9;
}

.nav-kicker {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.7rem;
    color: #d6a167;
    opacity: 0.7;
    min-width: 1.6rem;
    flex-shrink: 0;
}

.nav-link strong {
    display: block;
    font-size: 0.875rem;
}

.nav-link small {
    display: block;
    font-size: 0.72rem;
    opacity: 0.65;
    margin-top: 0.1rem;
}

.sidebar-note {
    margin-top: auto;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-note p {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: rgba(238, 242, 249, 0.55);
    line-height: 1.55;
}

.sidebar-cta {
    display: block;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d6a167, #9a683e);
    color: #fff8f1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sidebar-cta:hover {
    opacity: 0.9;
}

/* ── Mobile quick-nav strip ──────────────────────────────── */
.mobile-quick-nav {
    display: none; /* desktop: hidden — full sidebar nav is used instead */
}

@media (max-width: 980px) {
    .mobile-quick-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.45rem;
        overflow-x: auto;
        padding: 0.45rem 0 0.55rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* fade-right hint that more items exist */
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    }

    .mobile-quick-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-quick-nav a {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        padding: 0.32rem 0.85rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 600;
        text-decoration: none;
        color: rgba(238, 242, 249, 0.72);
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .mobile-quick-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #eef2f9;
    }

    .mobile-quick-nav a.active {
        background: rgba(214, 161, 103, 0.18);
        color: #d6a167;
        border-color: rgba(214, 161, 103, 0.35);
    }
}

/* ── Mobile layout ───────────────────────────────────────── */
@media (max-width: 980px) {
    .page {
        height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
        /* no padding-top needed — sidebar is sticky so it stays in flow */
    }

    .sidebar {
        position: sticky;
        top: 0;
        height: auto;
        overflow-x: hidden;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 200;
        padding: 0.85rem 0.95rem;
        background: rgba(9, 13, 23, 0.97);
        backdrop-filter: blur(20px);
    }

    main {
        height: auto;
        overflow-x: hidden;
    }

    .top-row {
        padding: 1.25rem 1.25rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .content-shell {
        padding: 1.25rem 1.25rem 2.5rem;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-scrollable {
        display: none;
    }

    .brand-shell {
        margin-bottom: 0.5rem; /* tighter on mobile — desktop value (1.25rem) is too spacious in a compact header */
    }
}

#blazor-error-ui {
    color-scheme: dark;
    background: rgba(123, 28, 32, 0.95);
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
