/* Design tokens and shared styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ff4a71;
    --font-family-base: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --spacing-unit: 1rem;

    --dashboard-font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --dashboard-bg: linear-gradient(135deg, #eff4fb 0%, #dbe7f6 52%, #f8fbff 100%);
    --dashboard-shell-bg: rgba(255, 255, 255, 0.94);
    --dashboard-text: #172033;
    --dashboard-muted: #51607a;
    --dashboard-border: rgba(148, 163, 184, 0.22);
    --dashboard-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --dashboard-card-bg: linear-gradient(135deg, #1d4ed8, #3b82f6);
    --dashboard-card-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
    --dashboard-card-text: #f8fbff;
    --dashboard-accent: #2563eb;
    --dashboard-accent-strong: #1d4ed8;
    --dashboard-focus: rgba(147, 197, 253, 0.75);
    --dashboard-danger: #b91c1c;
    --dashboard-danger-strong: #991b1b;
    --dashboard-radius-xl: 28px;
    --dashboard-radius-lg: 20px;
    --dashboard-radius-md: 14px;
    --dashboard-gap: 1.5rem;
}

.is-hidden {
    display: none !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
}

/* Card container used for forms */
.form-card {
    width: 100%;
    max-width: 400px;
}

/* Generic section card wrapper */
.section-card {
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

/* Page backgrounds */
.login-page,
.register-page {
    background: linear-gradient(135deg, #f1f4f9 0%, #d9e2ec 55%, #c5d0dc 100%);
    color: #1f2937;
}

.login-page .navbar-brand,
.login-page .nav-link,
.register-page .navbar-brand,
.register-page .nav-link {
    color: inherit;
}

.login-page .form-card.card,
.register-page .form-card.card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    border-radius: 20px;
    background-color: #ffffff;
}

.login-page .form-card .text-muted,
.register-page .form-card .text-muted {
    color: #475569 !important;
}

.home-page {
    background: linear-gradient(120deg, #6a11cb, #2575fc);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 2.75rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.85), rgba(191, 219, 254, 0.7));
    opacity: 0.7;
    z-index: 0;
}

.hero-section .row {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions .btn {
    min-width: 220px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(12, 48, 94, 0.25);
}

.hero-actions .btn-outline-light {
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.75);
    background-color: rgba(255, 255, 255, 0.08);
}

.hero-actions .btn-outline-light:hover {
    color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.95);
    background-color: rgba(255, 255, 255, 0.18);
}

.hero-actions .btn-light {
    color: #1d4ed8;
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.hero-actions .btn-light:hover {
    color: #0f172a;
    background-color: #ffffff;
    border-color: #ffffff;
}

.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 1.75rem;
    }

    .hero-actions .btn {
        min-width: 100%;
    }
}

.dashboard-page {
    min-height: 100vh;
    background: var(--dashboard-bg);
    color: var(--dashboard-text);
    font-family: var(--dashboard-font-family);
}

.dashboard-page main.container,
.dashboard-page main.main-card,
.dashboard-page main.main-shell {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.dashboard-shell,
.dashboard-container {
    position: relative;
    background: var(--dashboard-shell-bg);
    color: var(--dashboard-text);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--dashboard-radius-xl);
    box-shadow: var(--dashboard-shadow);
    backdrop-filter: blur(10px);
}

.dashboard-shell {
    padding: 2rem;
}

.dashboard-container {
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--dashboard-accent-strong);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dashboard-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    color: var(--dashboard-text);
}

.dashboard-subtitle,
.dashboard-lead {
    margin: 0;
    max-width: 64rem;
    color: var(--dashboard-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--dashboard-gap);
}

.dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 220px;
    padding: 1.6rem;
    border-radius: var(--dashboard-radius-lg);
    background: var(--dashboard-card-bg);
    color: var(--dashboard-card-text);
    text-decoration: none;
    box-shadow: var(--dashboard-card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
    transform: translateY(-4px);
    filter: saturate(1.05);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.2);
    outline: none;
}

.dashboard-card:focus-visible {
    box-shadow: 0 0 0 4px var(--dashboard-focus), 0 24px 42px rgba(15, 23, 42, 0.2);
}

.dashboard-card--primary {
    min-height: 250px;
    background: linear-gradient(135deg, var(--dashboard-accent-strong), var(--dashboard-accent), #60a5fa);
}

.dashboard-card--neutral {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.dashboard-card--soft {
    background: linear-gradient(135deg, #475569, #64748b);
}

.dashboard-card--locked {
    background: linear-gradient(135deg, #334155, #64748b);
}

.dashboard-card-status {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(248, 251, 255, 0.96);
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dashboard-card h2 {
    margin: 0;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1.25;
}

.dashboard-card p {
    margin: 0;
    color: rgba(248, 251, 255, 0.92);
    line-height: 1.6;
}

.dashboard-card-cta {
    margin-top: auto;
    align-self: flex-end;
    font-size: 1.4rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.dashboard-card:hover .dashboard-card-cta,
.dashboard-card:focus-visible .dashboard-card-cta {
    transform: translateX(4px);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.dashboard-action,
.back-link,
.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dashboard-action:hover,
.dashboard-action:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.logout-link:hover,
.logout-link:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.back-link {
    background: rgba(15, 23, 42, 0.05);
    color: var(--dashboard-text);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.logout-link {
    background: var(--dashboard-danger);
    color: #fff;
    box-shadow: 0 12px 24px rgba(185, 28, 28, 0.18);
}

.logout-link:hover,
.logout-link:focus-visible {
    background: var(--dashboard-danger-strong);
    color: #fff;
}

.dashboard-action--primary {
    background: linear-gradient(135deg, var(--dashboard-accent-strong), var(--dashboard-accent));
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.dashboard-callout {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 1.2rem 1.35rem;
    border-radius: var(--dashboard-radius-md);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--dashboard-text);
}

.dashboard-callout p,
.dashboard-callout strong {
    margin: 0;
}

.dashboard-panel,
.section-card {
    border-radius: var(--dashboard-radius-lg);
    border: 1px solid var(--dashboard-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 1.4rem;
}

.dashboard-decision-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    border-color: rgba(15, 23, 42, 0.12);
}

.dashboard-mini-label {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--dashboard-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-signal-strip,
.dashboard-stat-strip {
    display: grid;
    gap: 0.85rem;
}

.dashboard-signal-strip {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-signal-strip article,
.dashboard-stat-strip div {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: #f8fafc;
    padding: 0.9rem;
}

.dashboard-signal-strip span,
.dashboard-stat-strip span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--dashboard-muted);
    font-size: 0.82rem;
}

.dashboard-signal-strip strong,
.dashboard-stat-strip strong {
    display: block;
    color: #0f172a;
}

.dashboard-signal-strip p {
    margin: 0.35rem 0 0;
    color: var(--dashboard-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.dashboard-signal-strip a {
    display: inline-flex;
    margin-top: 0.45rem;
    color: var(--dashboard-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.premium-soft-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.premium-soft-prompt strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.premium-soft-prompt p {
    margin: 0;
    color: #51607a;
}

.premium-soft-prompt--notice {
    border-left: 4px solid var(--dashboard-accent);
}

.premium-soft-prompt__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.premium-soft-prompt__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0 0.85rem;
    border: 1px solid #0f172a;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.premium-soft-prompt__button:hover,
.premium-soft-prompt__button:focus {
    color: #ffffff;
    background: #1e293b;
    text-decoration: none;
}

.premium-soft-prompt__button--secondary {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

.premium-soft-prompt__button--secondary:hover,
.premium-soft-prompt__button--secondary:focus {
    background: #f8fafc;
    color: #0f172a;
}

.premium-access-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.premium-access-price {
    min-width: 180px;
    text-align: right;
}

.premium-access-price strong {
    display: block;
    font-size: 1.5rem;
    color: #0f172a;
}

.premium-roadmap-list {
    display: grid;
    gap: 1rem;
}

.premium-roadmap-brief {
    display: grid;
    gap: 1.2rem;
}

.premium-roadmap-brief__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.premium-roadmap-phase {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
}

.premium-roadmap-summary-grid,
.premium-roadmap-followup {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.premium-roadmap-summary-grid article,
.premium-roadmap-followup > div {
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    background: #f8fafc;
}

.premium-roadmap-summary-grid strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--dashboard-accent-strong);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.premium-roadmap-summary-grid p {
    margin: 0;
    color: #172033;
    line-height: 1.55;
}

.premium-roadmap-followup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.premium-roadmap-watch {
    margin: 0;
    padding-left: 1.2rem;
    color: #172033;
    line-height: 1.6;
}

.premium-roadmap-watch li + li {
    margin-top: 0.4rem;
}

.premium-roadmap-step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    background: #f8fafc;
    text-align: left;
}

.premium-roadmap-step--locked {
    opacity: 0.68;
}

.premium-roadmap-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
}

.premium-roadmap-step h3 {
    margin: 0 0 0.35rem;
    color: #0f172a;
}

.premium-roadmap-step p {
    margin: 0;
    color: #51607a;
}

.premium-lock-label {
    display: inline-flex;
    margin-top: 0.65rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.hub-page {
    max-width: 860px;
    margin: 0 auto;
}

.hub-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    color: var(--dashboard-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-link:hover,
.hub-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    outline: none;
}

.hub-link:focus-visible {
    box-shadow: 0 0 0 4px var(--dashboard-focus), 0 18px 36px rgba(15, 23, 42, 0.1);
}

.hub-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--dashboard-accent-strong);
    font-size: 1.3rem;
    font-weight: 700;
}

.hub-link__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.hub-link__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.hub-link__meta {
    margin: 0;
    color: var(--dashboard-muted);
    line-height: 1.55;
}

.hub-link__chevron {
    margin-left: auto;
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 700;
}

.hub-link--danger {
    background: rgba(255, 249, 249, 0.96);
    border-color: rgba(239, 68, 68, 0.26);
}

.hub-link--danger .hub-link__icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--dashboard-danger);
}

.hub-link--danger .hub-link__title {
    color: var(--dashboard-danger);
}

.utility-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.message-placeholder {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--dashboard-muted);
}

.message-placeholder p {
    margin: 0;
}

.form-shell {
    max-width: 780px;
    margin: 0 auto;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-panel {
    border-radius: var(--dashboard-radius-lg);
    border: 1px solid var(--dashboard-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label {
    font-weight: 600;
    color: var(--dashboard-text);
}

.form-input {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: #fff;
    color: var(--dashboard-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-input:focus-visible {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.24);
    outline: none;
}

.form-hint {
    margin: 0;
    color: var(--dashboard-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.field-error {
    color: #b42318;
    font-size: 0.95rem;
    line-height: 1.45;
}

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-soft {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
}

.alert-soft p,
.alert-soft strong {
    margin: 0;
}

.alert-soft--info {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.alert-soft--success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.18);
    color: #166534;
}

.alert-soft--danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

.alert-soft--warning {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
    color: #92400e;
}

.btn-danger-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-danger-soft:hover,
.btn-danger-soft:focus-visible {
    background: rgba(220, 38, 38, 0.18);
    color: #7f1d1d;
    transform: translateY(-2px);
    outline: none;
}

.privacy-shell {
    max-width: 920px;
    margin: 0 auto;
}

.privacy-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem 1.5rem;
}

.privacy-section h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dashboard-text);
}

.privacy-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--dashboard-text);
    line-height: 1.6;
}

.privacy-list li + li {
    margin-top: 0.45rem;
}

.privacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    color: var(--dashboard-muted);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--dashboard-accent);
}

.invite-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.invite-card .input-group {
    box-shadow: none;
}

.invite-card .form-control {
    border-radius: 14px 0 0 14px;
    border-color: rgba(148, 163, 184, 0.32);
}

.invite-card .btn {
    border-radius: 0 14px 14px 0;
}

.questionnaire-shell {
    max-width: 960px;
    margin: 0 auto;
}

.questionnaire-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.questionnaire-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.questionnaire-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.questionnaire-question {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.questionnaire-question label {
    font-weight: 600;
    color: var(--dashboard-text);
}

.questionnaire-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.questionnaire-scale-item {
    position: relative;
}

.questionnaire-scale-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.questionnaire-scale-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #fff;
    color: var(--dashboard-text);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.questionnaire-scale-option:hover {
    border-color: rgba(37, 99, 235, 0.58);
    background: rgba(239, 246, 255, 0.9);
    color: var(--dashboard-accent-strong);
}

.questionnaire-scale-item input:focus-visible + .questionnaire-scale-option {
    outline: none;
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.24);
}

.questionnaire-scale-item input:checked + .questionnaire-scale-option {
    background: linear-gradient(135deg, var(--dashboard-accent-strong), var(--dashboard-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.result-shell {
    max-width: 820px;
    margin: 0 auto;
}

.result-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--dashboard-text);
    line-height: 1.6;
}

.result-list li + li {
    margin-top: 0.45rem;
}

.result-score {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--dashboard-accent-strong);
    font-weight: 700;
}

@media (max-width: 768px) {
    .dashboard-shell,
    .dashboard-container {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 0;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-roadmap-summary-grid,
    .premium-roadmap-followup {
        grid-template-columns: 1fr;
    }

    .dashboard-action,
    .back-link,
    .logout-link {
        width: 100%;
    }

    .hub-link {
        align-items: flex-start;
    }

    .questionnaire-scale {
        gap: 0.5rem;
    }

    .questionnaire-scale-option {
        min-width: 44px;
        width: 44px;
        padding: 0.6rem;
    }
}
