body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background-color: #f5f5f7;
    color: #222;
    scroll-behavior: smooth;
    padding-top: 72px;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 2.5rem;
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.navbar__brand a {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: #141f3d;
    text-decoration: none;
}

.navbar__menu,
.navbar__auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-layout {
    display: flex;
    gap: 1.5rem;
}

.admin-sidebar {
    min-width: 220px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    height: fit-content;
}

.admin-sidebar h2 {
    margin-top: 0;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-sidebar li a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    display: block;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
}

.admin-sidebar li.active a,
.admin-sidebar li a:hover {
    background: #e0e7ff;
    color: #1d4ed8;
}

.admin-layout__content {
    flex: 1;
}

.admin-dashboard,
.admin-page {
    display: grid;
    gap: 1rem;
}

.admin-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7c3aed;
    font-size: 0.8rem;
    margin: 0 0 0.2rem;
}

.admin-lede {
    margin: 0.2rem 0 0;
    color: #4b5563;
}

.admin-dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.range-switch {
    display: inline-flex;
    gap: 0.4rem;
}

.range-switch button {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.range-switch button.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.stat-label {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1.8rem;
    margin: 0.35rem 0 0;
    display: block;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.chart-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chart-sub {
    color: #6b7280;
    font-size: 0.9rem;
}

.trend-bars {
    display: grid;
    gap: 0.45rem;
}

.trend-row {
    display: grid;
    grid-template-columns: 56px 1fr 46px;
    gap: 0.6rem;
    align-items: center;
}

.trend-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.trend-bar {
    background: #f3f4f6;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.trend-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.trend-bar--accent span {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.trend-count {
    font-weight: 700;
    color: #111827;
}

.admin-panels {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 0.75rem;
}

.admin-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.text-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.admin-list {
    display: grid;
    gap: 0.65rem;
}

.admin-list__item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge--neutral {
    background: #f3f4f6;
    color: #374151;
}

.badge--danger {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-filters {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.admin-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    font-weight: 700;
    background: #fff;
}

.admin-filter.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.muted {
    color: #6b7280;
    margin: 0;
}

.admin-page__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.admin-table__row {
    display: grid;
    grid-template-columns: 2fr 0.9fr 1fr 1fr 1fr 1.4fr;
    padding: 0.9rem 1rem;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table__row:last-child {
    border-bottom: none;
}

.admin-table__reason {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-table__reason strong {
    color: #111827;
}

.admin-table__reason .muted {
    color: #6b7280;
    margin: 0;
}

.admin-table__row--head {
    background: #f8fafc;
    font-weight: 700;
}

.admin-page h1 {
    margin: 0.2rem 0;
}

.admin-page p {
    margin: 0;
}

.admin-table--compact .admin-table__row {
    padding: 0.75rem 0.9rem;
}

.admin-table--users .admin-table__row {
    grid-template-columns: 1.2fr 2fr 1fr 1.2fr;
}

.admin-table--posts .admin-table__row {
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr 0.8fr 1.1fr 0.8fr;
}

.admin-table--reports .admin-table__row {
    grid-template-columns: 1.1fr 1.6fr 1fr 1fr 0.9fr 1.1fr 0.8fr;
}

.admin-table--mail .admin-table__row {
    grid-template-columns: 1fr 1fr 2fr;
}

.form-grid-2 {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.test-history {
    margin: 0;
}

.test-history h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
}

.test-history__shell {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.test-history__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
}

.test-history__item {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.test-history__item strong {
    font-size: 1rem;
}

.test-history__item span {
    font-size: 0.85rem;
    color: #6b7280;
}

.test-history__item.active {
    border-color: #7c3aed;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.test-history__chart {
    flex: 1 1 600px;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.test-history__filters {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.75rem 0 0.5rem;
}

.test-history__filters-label {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.test-history__range-select {
    min-width: 170px;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.9rem;
    color: #1f2937;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px auto;
    padding-right: 2.2rem;
}

.test-history__chart-body {
    position: relative;
    margin-top: 0.5rem;
}

.test-history__chart-body svg {
    display: block;
}

.test-history__y-label {
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    pointer-events: none;
}

.test-history__y-label--top {
    top: 8px;
}

.test-history__y-label--bottom {
    bottom: 18px;
}

.test-history__chart-header h3 {
    margin: 0;
}

.test-history__chart-header p {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.test-history__svg {
    width: 100%;
    height: 240px;
    background: #f8fafc;
    border-radius: 12px;
}

.test-history__attempts {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.test-history__attempts li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 0.35rem;
    font-size: 0.9rem;
}

.test-history__empty {
    border-bottom: none;
    color: #9ca3af;
    padding: 0.75rem 0;
    display: block;
    text-align: center;
}

.bottom-nav {
    display: none;
}

/* Mobile bottom nav */
@media (max-width: 640px) {
    .home-container {
        padding: 0 1rem;
    }
    .board-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .navbar {
        padding: 0.75rem 1.2rem;
    }

    body {
        padding-top: 56px;
        padding-bottom: 64px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .container,
    .auth-box {
        padding: 1.75rem 1.25rem;
    }
    .test-history__filters {
        flex-wrap: wrap;
    }

    .test-history__range-select {
        flex: 1;
        min-width: 0;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.1rem;
        align-items: center;
        text-align: center;
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .bottom-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1f2937;
        font-size: 0.95rem;
        text-decoration: none;
        padding: 6px 4px;
        font-weight: 600;
    }

    .bottom-nav a.active {
        color: #1f2937;
        font-weight: 800;
    }

    .bottom-nav form {
        margin: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav__logout button {
        width: 100%;
        height: 100%;
        border: none;
        background: transparent;
        font-size: 0.95rem;
        font-weight: 600;
        color: #dc2626;
        cursor: pointer;
    }

    .navbar__menu,
    .navbar__auth {
        display: none;
    }
}

@media (max-width: 768px) {
    .topic-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-hero .topic-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .topic-hero .topic-actions .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .topic-hero .topic-actions .btn + .btn {
        margin-top: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .test-history__shell {
        align-items: flex-start;
    }

    .test-history__list {
        min-width: 260px;
    }

    .test-history__chart {
        flex: 1 1 720px;
    }
}

.navbar__menu a,
.navbar__auth a {
    text-decoration: none;
    color: #1c2840;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar__menu a:hover,
.navbar__auth a:hover {
    color: #3f51b5;
}

.logout-form {
    display: inline;
}

.logout-form .link-button {
    border: none;
    background: none;
    color: #9aa4bf;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
}

.logout-form .link-button:hover {
    color: #3f51b5;
}

.navbar__divider {
    color: rgba(30, 41, 59, 0.35);
    font-size: 0.9rem;
}

.admin-subnav {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
    border-bottom: 1px solid #e0e4f0;
    padding-bottom: 0.75rem;
}

.admin-subnav a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
}

.admin-subnav a.active {
    color: #1f2937;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 0.25rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e5e7f2;
    padding: 0.75rem 0.5rem;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: #1f2937;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.admin-utility__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 2rem;
}

.admin-card {
    padding: 1.75rem;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(58, 76, 130, 0.08);
}

.admin-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.container {
    max-width: 560px;
    margin: 1.5rem auto;
    padding: 1.5rem 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.container--wide {
    max-width: 1280px;
    width: 98%;
}

.auth-box {
    max-width: 400px;
    margin: 0 auto;
}

.error-container {
    max-width: 720px;
    margin: 5rem auto;
    padding: 0 2rem;
    background: none;
    box-shadow: none;
}

.error-page {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff, #fdf2f8);
    box-shadow: 0 25px 60px rgba(63, 81, 181, 0.18);
}

.error-illustration {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #3949ab;
}

.error-page h1 {
    font-size: 2rem;
    margin: 0;
    color: #1f2937;
}

.error-message {
    color: #4b5563;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-group input {
    box-sizing: border-box;
}

.admin-form--wide .form-group input,
.admin-form--wide .form-group textarea {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.terms-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
    margin-bottom: 1rem;
}

.terms-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.terms-box__body {
    max-height: 200px;
    overflow: auto;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
}

.terms-preview-pair {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.terms-preview {
    white-space: pre-wrap;
    color: #374151;
    line-height: 1.6;
}

.terms-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    place-items: center;
    padding: 1rem;
    z-index: 300;
}

.terms-modal.is-open {
    display: grid;
}

.terms-modal__dialog {
    width: min(720px, 100%);
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.terms-modal__body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

.terms-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.admin-tabs {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #374151;
    background: #fff;
}

.admin-tab.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.terms-form {
    margin-bottom: 1.5rem;
}

.terms-history__list {
    display: grid;
    gap: 0.75rem;
}

.terms-history__item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: #fff;
}

.terms-history__item summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    font-weight: 700;
    color: #111827;
}

.terms-history__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    font-weight: 600;
    color: #111827;
}

.terms-history__title {
    color: #4b5563;
    font-weight: 600;
}

.terms-history__body {
    margin-top: 0.5rem;
    line-height: 1.6;
    color: #374151;
}

.terms-box__agree {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #111827;
}

.terms-box__agree input[type="checkbox"] {
    transform: scale(1.05);
}

.terms-inline {
    display: grid;
    gap: 0.5rem;
}

.terms-inline__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #111827;
}

.pill-button {
    border: 1px solid #1f6feb;
    background: #e8f0fe;
    color: #1f3a93;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}

.pill-button:hover {
    background: #d7e3ff;
    border-color: #1f3a93;
}

.terms-page {
    margin-top: 2rem;
}

.terms-body {
    margin-top: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23939bb4' d='M5.23 7.7a.75.75 0 0 1 1.06 0L10 11.4l3.71-3.7a.75.75 0 1 1 1.06 1.06l-4.24 4.25a.75.75 0 0 1-1.06 0L5.23 8.76a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select:focus {
    outline: none;
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: #1f6feb;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
}

.error-text {
    color: #d93025;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.status-banner {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: #e8f0fe;
    color: #1a73e8;
    margin-bottom: 1rem;
}

.status-banner__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.password-policy {
    background-color: #f0f4ff;
    border: 1px solid #ccd7ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.password-policy ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    color: #1a237e;
}

.help-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.footer {
    text-align: center;
    font-size: 0.85rem;
    padding: 1.5rem 0;
    color: #6c6c6c;
}

.hero {
    background: linear-gradient(135deg, #5a8dee, #7f6bff);
    color: #fff;
    border-radius: 0;
    padding: 6rem 1.5rem;
    margin: 0;
    text-align: center;
    min-height: calc(80vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__inner {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #4752e6;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(71, 82, 230, 0.35);
}

.btn-outline {
    border: 1.5px solid rgba(71, 82, 230, 0.8);
    color: #2b348c;
    background: #fff;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-danger {
    border: 1.5px solid #dc2626;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
    color: #fff;
    box-shadow: 0 12px 22px rgba(185, 28, 28, 0.25);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background-color: rgba(71, 82, 230, 0.08);
    color: #1f2937;
    border-color: rgba(71, 82, 230, 0.9);
}

.story-section {
    background: none;
    padding: 5rem 0;
    margin: 0;
}

.story-section__inner {
    width: min(900px, calc(100% - 3rem));
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.story-section__label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 24, 100, 0.7);
    margin-bottom: 0.5rem;
}

.story-section h2 {
    font-size: 1.8rem;
    margin: 0;
    color: #1f2c63;
}

.story-section p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #3d4460;
}

.story-1 {
    background: #f4f8ff;
}

.story-2 {
    background: linear-gradient(135deg, #fff6f0, #ffe6f6);
}

.story-3 {
    background: linear-gradient(135deg, #ecf8ff, #d8e8ff);
}

.story-4 {
    background: linear-gradient(135deg, #2b2c5b, #1b1c3f);
    color: #fff;
}

.story-4 .story-section__label,
.story-4 h2,
.story-4 p {
    color: #fff;
}

.btn-story {
    margin-top: 1.5rem;
    background-color: #fff;
    color: #2b2c5b;
}

.board-topic-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.board-topic-item {
    background-color: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(31, 51, 105, 0.05);
}

.board-topic-item h2 {
    margin: 0 0 0.5rem;
}

.board-topic-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
    gap: 1rem;
}

.board-post-list {
    display: grid;
    gap: 1.5rem;
}

.board-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.topic-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #5b647c;
    font-size: 0.9rem;
}

.topic-slug {
    font-weight: 600;
    color: #3f51b5;
}

.topic-actions {
    display: flex;
    gap: 0.75rem;
}

.board-post-card {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.board-post-card--elevated {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5eaf5;
}

.board-post-meta {
    margin: 0.5rem 0;
    color: #5f6a87;
    font-size: 0.95rem;
}

.board-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    gap: 1rem;
}

.board-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
}

.board-post-back:hover {
    color: #303f9f;
}

.topic-chip {
    background: rgba(63, 81, 181, 0.1);
    color: #303f9f;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.topic-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #4c5fd5;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.topic-back:hover {
    color: #283593;
}

.topic-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.topic-hero h1 {
    margin: 0.15rem 0 0.35rem;
    color: #1f2937;
    font-size: 1.8rem;
}

.topic-description {
    margin: 0.25rem 0 0.75rem;
    color: #4b5563;
    line-height: 1.5;
}

.topic-stats {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    background: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: #475569;
    font-weight: 600;
}

.topic-hero .topic-actions {
    gap: 0.5rem;
}
}

.board-post-card .post-card-head {
    margin-bottom: 0.35rem;
}

.post-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}

.post-title:hover {
    color: #364fc7;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.6rem;
    color: #55627a;
    font-size: 0.9rem;
}

.icon-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #6b7280;
}

.icon-heart::before {
    content: '❤';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
}

.icon-comment::before {
    content: '💬';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
}

.badge-light {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.post-link {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.post-link:hover {
    color: #1d4ed8;
}

.board-post-shell {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.board-post-hero {
    background: linear-gradient(120deg, #4f46e5, #9333ea);
    color: #fff;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.board-post-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    opacity: 0.8;
}

.board-post-hero h1 {
    margin: 0;
    font-size: 2rem;
}

.board-post-hero__meta {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.board-post-author {
    font-weight: 600;
}

.board-post-stats {
    list-style: none;
    display: grid;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.board-post-stats li {
    text-align: center;
    min-width: 80px;
}

.board-post-stats .label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.board-post-stats strong {
    font-size: 1.9rem;
    display: block;
    margin-top: 0.35rem;
}

.stat-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.like-inline-form {
    margin: 0;
}

.like-inline-btn {
    border: none;
    background: #fef2f2;
    color: #dc2626;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.board-post-body {
    padding: 2.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #1f2937;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    white-space: pre-wrap;
}

.board-post-body--compact {
    padding: 3.75rem 1.5rem !important;
}

.post-like-bar {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem 1.5rem 1.1rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.post-like-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.board-like-warning {
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.heart-icon {
    font-size: 1rem;
    color: #9ca3af;
}

.heart-icon--active {
    color: #ef4444;
}

.post-like-form {
    margin: 0;
    display: flex;
}

.post-like-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post-like-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
}

.post-like-toggle {
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-like-toggle:hover {
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.35);
}

.post-like-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.report-inline-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.report-inline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.board-action-hint__report {
    margin-left: 0.35rem;
    color: #6b7280;
}

.status-banner--inline {
    margin-top: 1rem;
}

.board-post-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.report-card {
    background: linear-gradient(145deg, #f8f9ff 0%, #eef2ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.12);
}

.report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7c3aed;
    font-size: 0.78rem;
    margin: 0;
}

.report-card__title {
    margin: 0.2rem 0;
}

.report-card__lede {
    margin: 0;
    color: #4b5563;
}

.report-toggle-btn {
    border: 1px solid #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.report-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.28);
}

.report-toggle-btn--ghost {
    background: #f8fafc;
    color: #111827;
    border-color: #e5e7eb;
    box-shadow: none;
}

.report-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #1f2937;
}

.report-field select,
.report-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.report-field textarea {
    resize: vertical;
}

.report-helper {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.report-submit-btn {
    border: none;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.report-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 4000;
}

[data-report-modal][hidden] {
    display: none !important;
}

.report-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.report-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    width: min(520px, calc(100% - 2.5rem));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.report-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.report-close-btn {
    border: none;
    background: #f3f4f6;
    color: #111827;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-weight: 700;
}

.reveal-hint {
    background: #fef9c3;
    border: 1px solid #fde68a;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: #854d0e;
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.board-post-pagination {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.board-nav-btn {
    flex: 1;
    min-width: 220px;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    background: #f5f7ff;
    color: #1f2937;
    box-shadow: 0 10px 18px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px rgba(99, 102, 241, 0.25);
}

.board-nav-btn .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #6366f1;
}

.board-nav-btn .title {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}

.board-nav-btn--next {
    background: #fff7fb;
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 10px 18px rgba(236, 72, 153, 0.15);
}

.board-nav-btn--next .label {
    color: #ec4899;
}

.board-like-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6b6b, #f87171);
    color: #fff;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(248, 113, 113, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.board-action-hint {
    color: #4b5563;
    margin: 0;
}

.board-comments {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 2rem;
    margin-bottom: 3rem;
}

.board-comment-form {
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

.board-comments__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.board-comments__eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #818cf8;
    margin: 0;
}

.board-comments__header h2 {
    margin: 0.3rem 0 0;
}

.board-comment-form textarea,
.board-comment__reply textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.board-comment-form button[type="submit"],
.board-comment__reply .reply-actions button[type="submit"] {
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
    font-size: 0.95rem;
    align-self: flex-end;
}

.board-comment-form button[type="submit"]:hover,
.board-comment__reply .reply-actions button[type="submit"]:hover {
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.35);
}

.board-comment-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.board-comment-list > li::marker {
    content: none;
}

.board-comment-list .board-comment-list {
    padding-left: 1.5rem;
}

.board-comment {
    margin: 1.5rem 0;
}

.board-comment__bubble {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.board-comment__meta {
    font-size: 0.9rem;
    color: #5b647c;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.board-comment__meta-left {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.board-comment__meta-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-like-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.comment-like-btn {
    border: none !important;
    background: none !important;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7c3aed !important;
    padding: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 6px;
    width: auto !important;
    box-shadow: none !important;
    appearance: none;
    gap: 0.25rem;
}

.comment-like-btn--active {
    color: #7c3aed;
}

.comment-like-btn--disabled {
    color: #9ca3af;
}

.comment-like-check {
    color: #ef4444;
    font-size: 0.9rem;
    visibility: hidden;
}

.comment-like-check--active {
    visibility: visible;
}

.comment-like-text {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.comment-like-count {
    font-size: 0.9rem;
    color: #7c3aed;
}

.comment-like-text {
    color: #7c3aed;
}

.reply-toggle-icon {
    border: none;
    background: none;
    color: #7c3aed;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.15rem 0.25rem;
    font-weight: 600;
}

.reply-toggle-icon:hover {
    color: #5b21b6;
}

.reply-toggle-icon--disabled {
    color: #9ca3af;
    cursor: default;
}

.board-comment__alias {
    font-weight: 600;
    color: #303f9f;
}

.board-comment__body {
    line-height: 1.6;
    color: #111827;
}

.board-comment__timestamp {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.9rem;
    color: #6b7280;
}

.board-comment__reply {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
    align-items: flex-start;
}

.board-comment__reply button {
    align-self: flex-end;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background-color: #eef2ff;
    color: #303f9f;
    cursor: pointer;
    font-weight: 600;
}

.board-comment__reply .reply-form {
    width: 100%;
}

.board-comment__reply textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
}

.board-liked-list {
    list-style: none;
    padding: 0;
}

.board-liked-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3e8f4;
}

.board-liked-list .meta {
    display: block;
    font-size: 0.9rem;
    color: #5d6990;
}

.board-like-form,
.board-reveal-form {
    margin: 1rem 0;
}

.cta-banner {
    background-color: #2d2f3a;
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 641px) {
    .about-container .story-section,
    .about-container .cta-banner,
    .service-hero {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
    }

    .about-container .story-section,
    .about-container .cta-banner {
        padding: 5rem 1.5rem;
    }
}

.cta-banner__inner {
    width: min(520px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.cta-banner h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.btn-light {
    background-color: #fff;
    color: #2d2f3a;
}

.reveal-on-scroll > * {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    body {
        padding-top: 56px;
        padding-left: 0;
        padding-right: 0;
    }

    .container,
    .container--wide {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .auth-box {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .home-container {
        padding: 0;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: auto;
        margin: 0;
        border-radius: 0;
    }

    .hero__inner {
        max-width: calc(100% - 2.5rem);
        padding: 0 1.25rem;
    }

    .service-hero {
        padding: 3rem 1.5rem;
        margin: 0;
        border-radius: 0;
    }

    .story-section,
    .cta-banner {
        min-height: auto;
        padding: 3rem 1.25rem;
        border-radius: 0;
    }

    .story-section__inner,
    .cta-banner__inner {
        max-width: calc(100% - 2.5rem);
    }

    .about-container .story-section,
    .about-container .cta-banner {
        margin-left: 0;
        padding: 3rem 1.25rem;
        border-radius: 0;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .test-history__shell {
        flex-direction: column;
    }

    .test-history__list {
        width: 100%;
    }

    .auth-box {
        max-width: 100%;
    }

    .navbar {
        padding: 0.75rem 1.2rem;
    }

    .navbar__menu {
        display: none;
    }

    .navbar__auth {
        gap: 1rem;
    }

    .error-container {
        margin: 3rem auto;
        padding: 1.5rem;
    }

    .error-page {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .story-section {
        padding: 3rem 1.25rem;
        min-height: auto;
    }

    .story-section h2 {
        font-size: 1.5rem;
    }

    .story-section p {
        font-size: 1rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .story-section__inner,
    .cta-banner__inner {
        max-width: calc(100% - 2.5rem);
        padding: 0 1.25rem;
        margin: 0 auto;
    }

    .board-post-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .board-post-hero {
        flex-direction: column;
    }

    .board-post-body {
        padding: 1.5rem;
    }

    .board-comments {
        padding: 1.5rem;
    }

    .board-comments__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .board-post-pagination {
        flex-direction: column;
    }
}
.board-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: none;
    box-shadow: none;
}

.board-heading {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.board-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.board-subtitle {
    color: #57607c;
    margin: 0;
}

.topic-scroll-controls {
    display: flex;
    gap: 0.5rem;
}

.topic-scroll-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #ffffff;
    color: #3f51b5;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.topic-scroll-btn:hover {
    background: #eef2ff;
    transform: translateY(-1px);
}

.topic-scroll-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .board-subtitle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .topic-scroll-controls {
        width: 100%;
        justify-content: flex-end;
    }
}

.board-topic-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f9fafb;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.board-topic-bar__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.board-topic-scroll {
    overflow-x: auto;
    padding-bottom: 0.75rem;
    cursor: grab;
    touch-action: pan-y;
}

.board-topic-scroll::-webkit-scrollbar {
    height: 6px;
}

.board-topic-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.board-topic-track {
    display: inline-flex;
    gap: 0.75rem;
    min-width: 100%;
}

.board-topic-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.board-topic-scroll.is-dragging .board-topic-pill {
    user-select: none;
}

.board-topic-pill {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 180px;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
    color: #1f2a56;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(57, 75, 181, 0.15);
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.board-topic-pill:hover {
    transform: translateY(-2px);
}

.board-topic-pill.active {
    border-color: #3f51b5;
}

.pill-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.pill-description {
    font-size: 0.8rem;
    color: #4b5563;
}

.board-topic-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.board-topic-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.board-topic-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

.board-topic-card p {
    color: #59647d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.board-topic-card footer {
    display: flex;
    gap: 0.75rem;
}

.board-selected {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.board-selected__header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.board-selected__header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.board-selected__header p {
    color: #616d85;
    margin: 0.5rem 0 0;
}

.board-selected__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.board-selected__actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
}

@media (max-width: 768px) {
    .board-selected__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .board-selected__actions .btn {
        width: auto;
    }

    .board-selected__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .board-selected__header h2,
    .board-selected__header p {
        margin: 0;
        text-align: left;
    }

    .board-selected__actions {
        order: 2;
    }

    .board-selected__header > div {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
}

.board-write-btn {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    border: none;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.board-write-btn:hover {
    color: #fff;
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.35);
}

.board-posts-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.board-post-preview {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: 0 10px 22px rgba(30, 41, 59, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
}

.preview-more {
    align-self: flex-start;
}

.preview-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #4f46e5;
    text-decoration: none;
    background: linear-gradient(120deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-title:hover {
    background: linear-gradient(120deg, #312e81, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-body {
    margin: 0;
    color: #5d6a83;
    line-height: 1.5;
    font-size: 0.85rem;
}

.preview-body--muted {
    color: #6b7280;
}

.preview-meta,
.preview-stats {
    font-size: 0.75rem;
    color: #7a859d;
    display: flex;
    gap: 0.4rem;
    text-decoration: none;
}

.preview-meta:hover {
    text-decoration: none;
}

.preview-stats {
    gap: 1rem;
}

.preview-meta--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-weight: 700;
    color: #4b5563;
}

.no-posts {
    color: #6b7280;
    font-size: 0.95rem;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.text-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.psych-test-form .form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.psych-test-form input,
.psych-test-form textarea,
.psych-test-form select {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.question-builder-section {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.result-builder-section {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.question-preview-list {
    padding-left: 1.25rem;
}

.question-preview-list > li {
    margin-bottom: 1rem;
}

.question-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drag-handle {
    border: none;
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    cursor: grab;
}

.question-card.dragging {
    opacity: 0.6;
}

.question-builder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
}

.question-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.question-options .option-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.question-options .option-row input {
    flex: 1;
}

.question-options .option-row input[data-role="option-value"] {
    max-width: 90px;
}

.result-builder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 1rem;
    background: #fdfdfd;
}

.result-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.result-score-range .score-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-score-range input {
    width: 100%;
}

.result-score-range span {
    color: #6b7280;
}

.result-preview-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-preview-list li {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #f9fafb;
}

.form-error {
    color: #b91c1c;
    font-size: 0.85rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.psych-test-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.5rem;
}

.psych-test-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-left: 6px solid #6366f1;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psych-test-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.psych-test-card h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #1f2937;
}

.psych-test-card p {
    color: #59647d;
    font-size: 0.95rem;
}


.psych-test-preview {
    margin-top: 2rem;
}

.psych-question {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.psych-question ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
}

.psych-question li {
    margin-bottom: 0.3rem;
}

.quiz-runner {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.quiz-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e0e7ff;
    margin-bottom: 1rem;
    overflow: hidden;
}

.quiz-progress__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, #6366f1, #a855f7);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
    transition: width 0.3s ease;
}

.quiz-card-stack {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.quiz-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.25rem;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
    min-height: 100%;
}

.quiz-card.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.quiz-card.left {
    transform: translateX(-100%);
    opacity: 0;
}

.quiz-card.right {
    transform: translateX(100%);
    opacity: 0;
}

.quiz-card header {
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.quiz-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.quiz-option span {
    flex: 1;
    display: block;
    word-break: break-word;
    line-height: 1.5;
}

.quiz-option:hover {
    border-color: #6366f1;
    box-shadow: 0 10px 18px rgba(99, 102, 241, 0.15);
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

.quiz-controls .btn {
    flex: 1;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
}

.quiz-controls .btn[data-action="prev"],
.quiz-controls .btn[data-action="next"] {
    background: var(--btn-outline-bg, #eef2ff);
    color: #3f51b5;
    border: 1px solid rgba(63, 81, 181, 0.3);
}

.quiz-controls .btn[data-action="prev"]:disabled,
.quiz-controls .btn[data-action="next"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quiz-controls .btn[data-action="submit"] {
    background: linear-gradient(120deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}

.quiz-controls .btn[data-action="submit"]:disabled {
    background: #d1d5db;
    box-shadow: none;
    color: #6b7280;
}
.service-hero {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
    border-radius: 0;
    margin: 0;
}

.service-hero .hero__actions {
    justify-content: center;
}
.account-section {
    margin-top: 0;
}

.section-card {
    margin: 2rem 0;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.account-section__eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: #6b7280;
}

.account-section__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.account-section__title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0;
}

.account-card {
    margin-top: 0;
}

.account-card__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    margin-top: 1rem;
}

.account-card__item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.account-card__label {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-card__value {
    margin: 0.4rem 0 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}

.account-actions {
    margin-top: 2rem;
}

.withdraw-card {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 6px solid #dc2626;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.withdraw-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.withdraw-card__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: #b45309;
}

.withdraw-card__title {
    margin: 0.2rem 0 0.15rem;
}

.withdraw-card__lede {
    margin: 0;
    color: #92400e;
}

.withdraw-card__list {
    margin: 0.75rem 0 1rem;
    padding-left: 1.1rem;
    color: #92400e;
}

.withdraw-card__form .form-group {
    margin-bottom: 1rem;
}

.withdraw-card__hint {
    margin: 0.35rem 0 0;
    color: #9a3412;
    font-size: 0.9rem;
}

.withdraw-card__ack {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    color: #7c2d12;
    margin: 0.25rem 0;
}

.withdraw-card__ack input {
    margin-top: 0.15rem;
}

.withdraw-card__actions {
    margin-top: 1rem;
}

.btn-full {
    width: 100%;
}

.badge-soft {
    background: rgba(124, 58, 237, 0.1);
    color: #5b21b6;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.account-liked {
    margin-top: 0;
}

.account-liked__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.account-liked__list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.account-liked__item {
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fdfdfd;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.account-liked__title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #4f46e5;
    text-decoration: none;
}

.account-liked__title:hover {
    color: #312e81;
}

.account-liked__snippet {
    margin: 0.35rem 0 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.account-liked__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #9ca3af;
}

.account-liked__empty {
    margin: 1rem 0 0;
    color: #6b7280;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #f8fafc;
}
