@font-face {
    font-family: "Vazirmatn";
    src: url("../assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --orange: #F97316;
    --blue: #2563EB;
    --yellow: #EAB308;
    --green: #16A34A;
    --text: #172033;
    --muted: #667085;
    --border: #DCE2EA;
    --background: #F5F7FA;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    color: var(--text);
    background: var(--background);
    font-family: "Vazirmatn", sans-serif;
    font-weight: 400;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
th,
strong,
b {
    font-weight: 700;
}

button,
label {
    font-weight: 500;
}

.registration-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.registration-card {
    width: min(100%, 560px);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

.registration-header {
    padding: 30px 32px 18px;
    text-align: center;
}

.registration-header h1 {
    margin: 18px 0 8px;
    font-size: 1.75rem;
}

.registration-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.color-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
}

.color-bar span:nth-child(1) { background: var(--orange); }
.color-bar span:nth-child(2) { background: var(--blue); }
.color-bar span:nth-child(3) { background: var(--yellow); }
.color-bar span:nth-child(4) { background: var(--green); }

.registration-form {
    display: grid;
    gap: 18px;
    padding: 18px 32px 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 500;
}

.form-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.form-message {
    min-height: 22px;
    margin: -4px 0;
    color: #B42318;
    font-size: 0.9rem;
    line-height: 1.6;
}

.submit-button {
    min-height: 48px;
    padding: 11px 20px;
    color: var(--white);
    background: var(--blue);
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.submit-button:hover:not(:disabled) {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.test-page {
    min-height: 100vh;
    padding: 32px 16px;
}

.test-shell {
    width: min(100%, 760px);
    margin: 0 auto;
}

.test-header {
    margin-bottom: 24px;
    text-align: center;
}

.test-header .color-bar {
    width: min(100%, 420px);
    margin: 0 auto 20px;
}

.test-header h1 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.test-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.test-status {
    padding: 28px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.test-status.is-error {
    color: #B42318;
    border-color: #FDA29B;
    background: #FFFBFA;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-track {
    height: 9px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #E7EBF0;
    border-radius: 999px;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--blue), var(--yellow), var(--orange));
    border-radius: inherit;
    transition: width 0.3s ease;
}

.question-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(23, 32, 51, 0.07);
}

.question-card fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question-card legend {
    width: 100%;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.9;
}

.options-list {
    display: grid;
    gap: 12px;
}

.option-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    line-height: 1.7;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.option-item:hover {
    border-color: #93B4F8;
    background: #F8FAFF;
    transform: translateY(-1px);
}

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

.option-marker {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #98A2B3;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--white);
    transition: border-color 0.2s, background 0.2s;
}

.option-item:has(input:checked) {
    border-color: var(--border);
    background: var(--white);
}

.option-item input:checked + .option-marker {
    border-color: #98A2B3;
    background: var(--white);
}
.option-item:has(input:focus-visible) {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.answer-error {
    min-height: 24px;
    margin: 16px 0 8px;
    color: #B42318;
    font-size: 0.9rem;
}

.question-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
}

.primary-button,
.secondary-button {
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 9px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.primary-button {
    margin-right: auto;
    color: var(--white);
    background: var(--blue);
    border: 1px solid var(--blue);
}

.secondary-button {
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.primary-button:hover:not(:disabled) {
    background: #1D4ED8;
}

.secondary-button:hover:not(:disabled) {
    border-color: #98A2B3;
    background: #F8FAFC;
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.question-enter {
    animation: question-in 0.25s ease;
}

@keyframes question-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .registration-page {
        padding: 16px 12px;
    }

    .registration-header,
    .registration-form {
        padding-inline: 20px;
    }

    .registration-header h1 {
        font-size: 1.45rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .test-page {
        padding: 20px 12px;
    }

    .test-header h1 {
        font-size: 1.45rem;
    }

    .question-card {
        padding: 22px 16px;
    }

    .question-card legend {
        font-size: 1.05rem;
    }

    .question-actions {
        flex-direction: column-reverse;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}

.admin-body {
    background: #F3F6FA;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px max(24px, calc((100vw - 1240px) / 2));
    color: var(--white);
    background: #172033;
}

.admin-topbar h1 {
    margin: 4px 0 0;
    font-size: 1.45rem;
}

.admin-eyebrow,
.admin-refresh-time {
    color: #B8C1D1;
    font-size: 0.82rem;
}

.admin-page {
    width: min(calc(100% - 32px), 1240px);
    margin: 0 auto;
    padding: 30px 0 60px;
}

.admin-message {
    position: sticky;
    z-index: 5;
    top: 10px;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--green);
    text-align: center;
}

.admin-message:not(:empty) {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #ECFDF3;
    border: 1px solid #ABEFC6;
    border-radius: 9px;
}

.admin-message.is-error {
    color: #B42318;
    background: #FFFBFA;
    border-color: #FDA29B;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-section-heading h2,
.admin-panel > h2 {
    margin: 0;
    font-size: 1.15rem;
}

.admin-section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.admin-stat-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.admin-stat-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-stat-card strong {
    font-size: 1.7rem;
}

.admin-stat-card small {
    min-height: 14px;
    color: var(--muted);
}

.admin-panel {
    margin-top: 22px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.04);
}

.admin-live-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-live-grid .admin-stat-card {
    background: #F8FAFC;
}

.admin-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.admin-chart {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.admin-chart-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.admin-chart-track {
    height: 8px;
    overflow: hidden;
    background: #E8ECF2;
    border-radius: 999px;
}

.admin-chart-track span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-toolbar input,
.admin-duration-field input {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.admin-export-link,
.admin-primary-button,
.admin-secondary-button,
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.admin-export-link,
.admin-primary-button {
    color: var(--white);
    background: var(--blue);
    border: 1px solid var(--blue);
}

.admin-secondary-button,
.table-action {
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
}

.table-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #EAECF0;
    text-align: right;
}

.admin-table th {
    color: var(--muted);
    background: #F8FAFC;
}

.admin-table-actions {
    display: flex;
    gap: 7px;
}

.admin-status {
    font-weight: 500;
}

.status-in_progress { color: var(--orange); }
.status-completed { color: var(--green); }
.status-registered { color: var(--muted); }

.admin-empty {
    color: var(--muted);
    text-align: center;
}

.admin-settings-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-toggle,
.admin-duration-field {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-duration-field input {
    width: 100px;
}

.admin-dialog {
    width: min(calc(100% - 28px), 560px);
    padding: 28px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.22);
}

.admin-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.dialog-close {
    float: left;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
}

.admin-dialog dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
}

.admin-dialog dt {
    color: var(--muted);
}

.admin-dialog dd {
    margin: 0;
}

@media (max-width: 1050px) {
    .admin-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-users-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .admin-topbar,
    .admin-toolbar,
    .admin-settings-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-refresh-time {
        align-self: flex-start;
    }

    .admin-stat-grid,
    .admin-live-grid,
    .admin-analytics-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-toolbar input,
    .admin-export-link,
    .admin-primary-button {
        width: 100%;
    }
}

.admin-details-dialog {
    width: min(calc(100% - 28px), 1000px);
    max-height: min(90vh, 860px);
    overflow-y: auto;
}

.admin-details-title {
    margin: 0 0 22px;
    padding-left: 44px;
}

.admin-details-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-detail-card {
    padding: 20px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-detail-card h3,
.admin-answers-section h3 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.admin-result-card {
    border-top: 4px solid var(--blue);
}

.admin-detail-list {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 10px 18px;
    margin: 0;
    font-size: 0.88rem;
}

.admin-detail-list dt {
    color: var(--muted);
}

.admin-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-answers-section {
    margin-top: 22px;
}

.admin-details-table-wrap {
    max-height: 430px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-details-table th {
    position: sticky;
    z-index: 1;
    top: 0;
}

.admin-details-table td:first-child {
    min-width: 320px;
    white-space: normal;
    line-height: 1.7;
}

.admin-details-table td:nth-child(2) {
    min-width: 220px;
    white-space: normal;
}

.answer-color-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    background: color-mix(in srgb, var(--answer-color) 10%, white);
    border: 1px solid color-mix(in srgb, var(--answer-color) 35%, white);
    border-radius: 999px;
    color: var(--answer-color);
    font-weight: 500;
}

.answer-color-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--answer-color);
    border-radius: 50%;
}

@media (max-width: 700px) {
    .admin-details-dialog {
        padding: 20px 14px;
    }

    .admin-details-cards {
        grid-template-columns: 1fr;
    }

    .admin-detail-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-detail-list dd {
        margin-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.result-page {
    min-height: 100vh;
    padding: 36px 16px 56px;
}

.result-status {
    width: min(100%, 720px);
    margin: 80px auto 0;
    padding: 30px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.result-status.is-error {
    color: #B42318;
    border-color: #FDA29B;
    background: #FFFBFA;
}

.result-report {
    --personality-color: var(--blue);
    width: min(100%, 980px);
    margin: 0 auto;
    animation: report-in 0.4s ease;
}

.result-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 36px;
    color: var(--white);
    background: var(--personality-color);
    border-radius: 20px;
    box-shadow: 0 18px 45px color-mix(in srgb, var(--personality-color) 24%, transparent);
}

.result-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -80px -50px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.personality-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 7px 13px;
    background: var(--personality-color);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-user-name {
    position: relative;
    z-index: 1;
    margin: 24px 0 4px;
    opacity: 0.9;
}

.result-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: clamp(2rem, 6vw, 3.2rem);
}

.result-hero > p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 1.8;
    opacity: 0.9;
}

.report-section {
    margin-top: 20px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
}

.report-section h2 {
    margin: 0 0 18px;
    font-size: 1.2rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading span {
    color: var(--muted);
    font-size: 0.85rem;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.score-card {
    padding: 16px;
    background: color-mix(in srgb, var(--score-color) 7%, white);
    border: 1px solid color-mix(in srgb, var(--score-color) 25%, white);
    border-radius: 12px;
}

.score-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.score-card-heading strong {
    color: var(--score-color);
    font-size: 1.3rem;
}

.score-bar {
    height: 7px;
    overflow: hidden;
    background: rgba(152, 162, 179, 0.22);
    border-radius: 999px;
}

.score-bar span {
    display: block;
    height: 100%;
    background: var(--score-color);
    border-radius: inherit;
    transition: width 0.5s ease;
}

.introduction-section {
    border-top: 4px solid var(--personality-color);
}

.introduction-section p {
    margin: 0;
    color: #344054;
    line-height: 2.05;
}

.report-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.detail-section {
    margin-top: 0;
}

.detail-section:first-child,
.detail-section:nth-child(2) {
    margin-top: 20px;
}

.detail-section h2::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 9px;
    background: var(--personality-color);
    border-radius: 50%;
}

.detail-section ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 20px 0 0;
}

.detail-section li {
    color: #344054;
    line-height: 1.85;
}

.careers ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@keyframes report-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .score-grid,
    .report-sections {
        grid-template-columns: 1fr 1fr;
    }

    .detail-section:first-child,
    .detail-section:nth-child(2) {
        margin-top: 0;
    }

    .detail-section:first-child {
        margin-top: 20px;
    }
}

/* Premium registration and result experience */
.registration-page,
.result-page {
    overflow-x: hidden;
    font-size: 20px;
    background:
        radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.12), transparent 28rem),
        radial-gradient(circle at 92% 30%, rgba(96, 165, 250, 0.1), transparent 24rem),
        linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
}

.registration-page {
    display: block;
    min-height: 100vh;
    padding: 42px 20px 56px;
}

.registration-shell {
    width: min(100%, 880px);
    margin-inline: auto;
}

.registration-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 42px;
    padding: 34px 38px 46px;
    text-align: right;
}

.registration-header::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 8%;
    width: 180px;
    height: 180px;
    opacity: 0.48;
    background-image: radial-gradient(#a9c9ff 2px, transparent 2px);
    background-size: 17px 17px;
    pointer-events: none;
}

.registration-step {
    position: absolute;
    top: 0;
    right: 38px;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 24px;
    color: #53627b;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.08);
    font-size: 18px;
    font-weight: 500;
}

.registration-header .personality-colors-image {
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 235px);
    margin: 32px auto 0;
    border-radius: 34px;
    filter: drop-shadow(0 18px 25px rgba(37, 99, 235, 0.14));
}

.registration-intro {
    grid-column: 2;
    grid-row: 1;
    padding-top: 42px;
}

.registration-header h1 {
    margin: 0 0 18px;
    color: #10234a;
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.registration-header p {
    margin: 0;
    color: #5f6b7e;
    font-size: 22px;
    line-height: 1.95;
}

.registration-intro::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin-top: 25px;
    background: linear-gradient(90deg, #60a5fa, var(--blue));
    border-radius: 999px;
}

.registration-card {
    width: 100%;
    overflow: visible;
    padding: 38px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 229, 244, 0.82);
    border-radius: 32px;
    box-shadow: 0 25px 70px rgba(31, 70, 130, 0.12);
    backdrop-filter: blur(10px);
    animation: premium-card-in 0.5s ease both;
}

.registration-form {
    display: grid;
    gap: 22px;
    padding: 0;
}

.registration-card .form-field {
    gap: 10px;
}

.registration-card .form-field label {
    padding-inline: 4px;
    color: #10234a;
    font-size: 20px;
    font-weight: 500;
}

.registration-card .form-field input {
    min-height: 62px;
    padding: 13px 18px;
    color: #16284b;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 17px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.025);
    font-size: 20px;
}

.registration-card .form-field input::placeholder {
    color: #a7b0bf;
}

.registration-card .form-field input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 10px 25px rgba(37, 99, 235, 0.08);
}

.registration-card .form-message {
    min-height: 0;
    margin: 0;
    font-size: 18px;
}

.registration-card .form-message:empty {
    display: none;
}

.registration-card .submit-button {
    min-height: 66px;
    margin-top: 4px;
    color: #fff;
    background: linear-gradient(110deg, #3b82f6 0%, #1465e8 55%, #0756d8 100%);
    border-radius: 17px;
    box-shadow: 0 15px 28px rgba(37, 99, 235, 0.28);
    font-size: 23px;
    font-weight: 500;
}

.registration-card .submit-button:hover:not(:disabled) {
    background: linear-gradient(110deg, #347cf0 0%, #0d5fdc 100%);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
    transform: translateY(-2px);
}

.registration-note {
    position: relative;
    margin-top: 26px;
    padding: 20px 72px 20px 22px;
    color: #25416f;
    background: linear-gradient(110deg, #f2f7ff, #e9f2ff);
    border: 1px solid #e1ebfa;
    border-radius: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.registration-note::before {
    content: "✓";
    position: absolute;
    top: 50%;
    right: 20px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border: 7px solid #fff;
    border-radius: 50%;
    box-sizing: content-box;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
    transform: translateY(-50%);
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    color: #344766;
    list-style: none;
}

.trust-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.trust-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent);
}

.trust-blue { color: var(--blue); background: currentColor; }
.trust-green { color: var(--green); background: currentColor; }
.trust-yellow { color: var(--yellow); background: currentColor; }
.trust-orange { color: var(--orange); background: currentColor; }

.result-page {
    min-height: 100vh;
    padding: 28px 20px 72px;
}

.result-page-header {
    width: min(100%, 1040px);
    margin: 0 auto 26px;
    padding: 5px 0;
    text-align: center;
}

.result-page-header h1 {
    margin: 0;
    color: #10234a;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
}

.result-status {
    width: min(100%, 760px);
    margin: 80px auto 0;
    padding: 34px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e2eaf5;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(31, 70, 130, 0.1);
    font-size: 20px;
}

.result-report {
    width: min(100%, 1040px);
}

.result-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 40px;
    min-height: 370px;
    padding: 48px 54px;
    background:
        radial-gradient(circle at 22% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(125deg, color-mix(in srgb, var(--personality-color) 82%, #0b4ed1), var(--personality-color));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 34px;
    box-shadow: 0 24px 52px color-mix(in srgb, var(--personality-color) 28%, transparent);
}

.result-hero::before,
.result-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.result-hero::before {
    top: -120px;
    right: 30%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.07);
}

.result-hero::after {
    bottom: -100px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
}

.result-hero-content,
.result-hero-visual {
    position: relative;
    z-index: 1;
}

.result-hero-content {
    min-width: 0;
}

.personality-badge {
    padding: 8px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.36);
    font-size: 18px;
    backdrop-filter: blur(8px);
}

.result-user-name {
    margin: 28px 0 6px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 22px;
    font-weight: 500;
}

.result-hero #personality-title {
    position: relative;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(46px, 7vw, 68px);
    font-weight: 700;
    line-height: 1.35;
}

.result-hero #personality-title::after {
    content: "";
    display: block;
    width: 76px;
    height: 6px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 99px;
}

.result-hero-content > p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.9;
}

.result-hero-visual {
    display: grid;
    place-items: center;
}

.result-hero .personality-colors-image {
    width: 230px;
    margin: 0;
    background: #fff;
    border: 8px solid rgba(255, 255, 255, 0.26);
    border-radius: 42px;
    box-shadow: 0 20px 42px rgba(4, 26, 71, 0.2);
    transform: rotate(-2deg);
}

.report-section {
    margin-top: 22px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e6edf7;
    border-radius: 26px;
    box-shadow: 0 14px 38px rgba(31, 70, 130, 0.075);
}

.report-section h2 {
    margin: 0 0 20px;
    color: #10234a;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading span {
    color: #78869c;
    font-size: 17px;
}

.score-grid {
    gap: 16px;
}

.score-card {
    min-width: 0;
    padding: 21px 18px;
    background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--score-color) 8%, white));
    border: 1px solid color-mix(in srgb, var(--score-color) 28%, white);
    border-radius: 20px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--score-color) 8%, transparent);
}

.score-card-heading {
    margin-bottom: 17px;
    color: #283a5b;
    font-size: 18px;
}

.score-card-heading strong {
    font-size: 30px;
    line-height: 1;
}

.score-bar {
    height: 9px;
}

.introduction-section {
    position: relative;
    overflow: hidden;
    padding-right: 98px;
    border-top: 1px solid #e6edf7;
}

.introduction-section::before {
    content: "◉";
    position: absolute;
    top: 30px;
    right: 30px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--personality-color);
    background: color-mix(in srgb, var(--personality-color) 9%, white);
    border-radius: 50%;
    font-size: 25px;
}

.introduction-section p {
    color: #344766;
    font-size: 19px;
    line-height: 2.15;
}

.report-sections {
    gap: 22px;
}

.detail-section,
.detail-section:first-child,
.detail-section:nth-child(2) {
    position: relative;
    margin-top: 0;
    padding-top: 84px;
}

.detail-section:first-child,
.detail-section:nth-child(2) {
    margin-top: 22px;
}

.detail-section::before {
    position: absolute;
    top: 25px;
    right: 28px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--personality-color);
    background: color-mix(in srgb, var(--personality-color) 9%, white);
    border-radius: 14px;
    font-size: 24px;
    font-weight: 700;
}

.characteristics::before { content: "◆"; }
.strengths::before { content: "◎"; }
.needs::before { content: "♡"; }
.careers::before { content: "▣"; }
.study-challenges::before,
.study-tips::before { content: "▰"; }
.exam-challenges::before,
.exam-tips::before { content: "▥"; }

.detail-section h2 {
    position: absolute;
    top: 30px;
    right: 88px;
    left: 24px;
    margin: 0;
}

.detail-section h2::before {
    display: none;
}

.detail-section ul {
    gap: 12px;
    padding-right: 24px;
}

.detail-section li {
    padding-right: 4px;
    color: #3c4d69;
    font-size: 18px;
    line-height: 1.95;
}

@keyframes premium-card-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .registration-page {
        padding: 24px 14px 36px;
    }

    .registration-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 76px 16px 28px;
        text-align: center;
    }

    .registration-step {
        top: 0;
        right: auto;
        left: 8px;
    }

    .registration-header .personality-colors-image {
        grid-column: 1;
        grid-row: 1;
        width: 178px;
        margin-top: 0;
    }

    .registration-intro {
        grid-column: 1;
        grid-row: 2;
        padding-top: 6px;
    }

    .registration-header h1 {
        font-size: 38px;
    }

    .registration-header p {
        font-size: 20px;
    }

    .registration-intro::after {
        margin: 21px auto 0;
    }

    .registration-card {
        padding: 26px 22px;
        border-radius: 27px;
    }

    .trust-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }

    .result-page {
        padding: 20px 14px 48px;
    }

    .result-page-header {
        margin-bottom: 20px;
    }

    .result-hero {
        grid-template-columns: minmax(0, 1fr) 175px;
        gap: 22px;
        min-height: 320px;
        padding: 34px 30px;
        border-radius: 28px;
    }

    .result-hero .personality-colors-image {
        width: 165px;
        border-radius: 32px;
    }

    .result-hero #personality-title {
        font-size: 48px;
    }

    .score-grid,
    .report-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .registration-header {
        padding-inline: 4px;
    }

    .registration-step {
        min-height: 46px;
        padding: 8px 18px;
        font-size: 17px;
    }

    .registration-header .personality-colors-image {
        width: 158px;
        border-radius: 28px;
    }

    .registration-header h1 {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .registration-header p {
        font-size: 19px;
        line-height: 1.85;
    }

    .registration-card {
        padding: 24px 18px;
    }

    .registration-form {
        gap: 19px;
    }

    .registration-card .form-field input {
        min-height: 59px;
        font-size: 19px;
    }

    .registration-card .submit-button {
        min-height: 62px;
        font-size: 22px;
    }

    .registration-note {
        padding: 18px 64px 18px 14px;
        font-size: 17px;
    }

    .registration-note::before {
        right: 13px;
        width: 32px;
        height: 32px;
    }

    .trust-list {
        gap: 18px 8px;
    }

    .trust-list li {
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .result-page-header h1 {
        font-size: 30px;
    }

    .result-hero {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: 0;
        padding: 30px 24px;
        text-align: center;
    }

    .result-hero-content {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .result-hero-visual {
        grid-row: 1;
    }

    .result-hero .personality-colors-image {
        width: 145px;
        transform: none;
    }

    .result-user-name {
        margin-top: 22px;
        font-size: 20px;
    }

    .result-hero #personality-title {
        font-size: 43px;
    }

    .result-hero #personality-title::after {
        margin-inline: auto;
    }

    .result-hero-content > p:last-child {
        font-size: 17px;
    }

    .report-section {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .section-heading h2,
    .report-section h2 {
        font-size: 22px;
    }

    .score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .score-card {
        padding: 18px 14px;
    }

    .score-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .introduction-section {
        padding: 88px 20px 24px;
    }

    .introduction-section::before {
        top: 22px;
        right: 20px;
    }

    .introduction-section p,
    .detail-section li {
        font-size: 17px;
    }

    .report-sections,
    .careers ul {
        grid-template-columns: 1fr;
    }

    .detail-section,
    .detail-section:first-child,
    .detail-section:nth-child(2) {
        margin-top: 0;
    }

    .detail-section:first-child {
        margin-top: 22px;
    }

    .detail-section h2 {
        right: 80px;
    }
}

.personality-colors-image {
    display: block;
    width: clamp(110px, 18vw, 170px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 18px auto 0;
    border-radius: 24px;
}

@media (max-width: 520px) {
    .personality-colors-image {
        width: 110px;
        margin-top: 14px;
        border-radius: 18px;
    }
}

.admin-users-panel .admin-table-wrap {
    overflow-x: visible;
}

.admin-users-panel .admin-table {
    table-layout: fixed;
    white-space: normal;
}

.admin-users-panel .admin-table,
.admin-users-panel .admin-table * {
    font-size: 20px !important;
}

.admin-users-panel .admin-table th,
.admin-users-panel .admin-table td {
    padding: 8px 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-users-panel .admin-table th:nth-child(1) { width: 12%; }
.admin-users-panel .admin-table th:nth-child(2) { width: 20%; }
.admin-users-panel .admin-table th:nth-child(3) { width: 12%; }
.admin-users-panel .admin-table th:nth-child(4) { width: 8%; }
.admin-users-panel .admin-table th:nth-child(5) { width: 12%; }
.admin-users-panel .admin-table th:nth-child(6) { width: 8%; }
.admin-users-panel .admin-table th:nth-child(7) { width: 12%; }
.admin-users-panel .admin-table th:nth-child(8) { width: 16%; }

.admin-users-panel .admin-table-actions {
    flex-wrap: wrap;
    gap: 4px;
}

.admin-users-panel .table-action {
    flex: 1 1 100%;
    min-height: 34px;
    padding: 4px 6px;
}

@media (max-width: 720px) {
    .admin-users-panel {
        padding-inline: 10px;
    }

    .admin-users-panel .admin-table,
    .admin-users-panel .admin-table * {
        font-size: 20px !important;
    }
}

/* Mobile-first user-facing experience */
.registration-page,
.test-page,
.result-page {
    width: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 4%, rgba(37, 99, 235, 0.1), transparent 19rem),
        linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
}

/* Registration: mobile base */
.registration-page {
    display: block;
    padding: 18px 14px 36px;
    font-size: 16px;
}

.registration-shell {
    width: min(100%, 560px);
}

.registration-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 58px 4px 24px;
    text-align: center;
}

.registration-header::before {
    top: 8px;
    left: 50%;
    width: 130px;
    height: 130px;
    background-size: 15px 15px;
    transform: translateX(-50%);
}

.registration-step {
    top: 0;
    right: auto;
    left: 0;
    min-height: 42px;
    padding: 7px 15px;
    font-size: 14px;
}

.registration-header .personality-colors-image {
    grid-column: 1;
    grid-row: 1;
    width: 112px;
    height: 112px;
    margin: 0 auto;
    border-radius: 24px;
    filter: drop-shadow(0 12px 20px rgba(37, 99, 235, 0.14));
}

.registration-intro {
    grid-column: 1;
    grid-row: 2;
    padding-top: 3px;
}

.registration-header h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.45;
    letter-spacing: 0;
}

.registration-header p {
    max-width: 330px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.85;
}

.registration-intro::after {
    width: 64px;
    height: 4px;
    margin: 17px auto 0;
}

.registration-card {
    padding: 22px 18px;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(31, 70, 130, 0.1);
}

.registration-form {
    gap: 18px;
}

.registration-card .form-field {
    gap: 8px;
}

.registration-card .form-field label {
    font-size: 16px;
}

.registration-card .form-field input {
    min-height: 56px;
    padding: 11px 15px;
    border-radius: 15px;
    font-size: 16px;
}

.registration-card .form-message {
    font-size: 15px;
}

.registration-card .submit-button {
    min-height: 56px;
    margin-top: 2px;
    border-radius: 16px;
    font-size: 18px;
}

.trust-list {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
    background: #f5f9ff;
    border: 1px solid #e5edf9;
    border-radius: 18px;
}

.trust-list li {
    justify-content: flex-start;
    font-size: 14px;
    white-space: normal;
    text-align: right;
}

.trust-dot {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #fff;
    box-shadow: none;
}

.trust-dot::after {
    content: "✓";
    font-size: 13px;
    font-weight: 700;
}

/* Questionnaire: mobile base */
.test-page {
    min-height: 100vh;
    padding: 18px 14px calc(110px + env(safe-area-inset-bottom));
}

.test-shell {
    width: min(100%, 760px);
}

.test-header {
    margin-bottom: 22px;
}

.test-header .color-bar {
    width: 180px;
    height: 5px;
    margin-bottom: 16px;
}

.test-header h1 {
    margin-bottom: 7px;
    color: #10234a;
    font-size: 26px;
    line-height: 1.45;
}

.test-header p {
    max-width: 350px;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.8;
}

.test-status {
    padding: 24px 18px;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(31, 70, 130, 0.08);
}

.progress-info {
    margin-bottom: 10px;
    color: #50617d;
    font-size: 15px;
}

.progress-track {
    height: 10px;
    margin-bottom: 18px;
    background: #e5eaf2;
    box-shadow: inset 0 1px 2px rgba(15, 35, 70, 0.08);
}

.question-card {
    padding: 22px 18px;
    border: 1px solid #e4ebf5;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(31, 70, 130, 0.1);
}

.question-card legend {
    margin-bottom: 22px;
    color: #142746;
    font-size: 19px;
    line-height: 1.85;
}

.options-list {
    gap: 12px;
}

.option-item {
    --option-color: var(--blue);
    min-height: 58px;
    gap: 13px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #dfe6f0;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.75;
    -webkit-tap-highlight-color: transparent;
}

.option-item:has(input[value="orange"]) { --option-color: var(--orange); }
.option-item:has(input[value="blue"]) { --option-color: var(--blue); }
.option-item:has(input[value="yellow"]) { --option-color: var(--yellow); }
.option-item:has(input[value="green"]) { --option-color: var(--green); }

.option-item:hover {
    border-color: color-mix(in srgb, var(--option-color) 50%, white);
    background: color-mix(in srgb, var(--option-color) 3%, white);
    transform: none;
}

.option-item:has(input:checked) {
    color: color-mix(in srgb, var(--option-color) 75%, #10234a);
    background: color-mix(in srgb, var(--option-color) 9%, white);
    border-color: var(--option-color);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--option-color) 14%, transparent);
}

.option-marker {
    width: 22px;
    height: 22px;
    border-color: #9aa8bc;
}

.option-item input:checked + .option-marker {
    border-color: var(--option-color);
    background: var(--option-color);
}

.answer-error {
    min-height: 24px;
    margin: 15px 2px 0;
    font-size: 14px;
}

.question-actions {
    position: fixed;
    z-index: 20;
    right: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: row;
    width: min(calc(100% - 24px), 736px);
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(217, 226, 239, 0.9);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 40, 82, 0.2);
    backdrop-filter: blur(14px);
    transform: translateX(50%);
}

.primary-button,
.secondary-button {
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 16px;
}

.primary-button {
    flex: 1.35;
    margin: 0;
    background: linear-gradient(110deg, #3b82f6, #145ed9);
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.24);
}

.secondary-button {
    flex: 0.8;
}

.primary-button:only-child,
.secondary-button:only-child {
    flex: 1;
}

/* Result report: mobile base */
.result-page {
    padding: 16px 14px 48px;
    font-size: 16px;
}

.result-page-header {
    margin-bottom: 18px;
}

.result-page-header h1 {
    font-size: 27px;
    line-height: 1.5;
}

.result-status {
    margin-top: 48px;
    padding: 26px 20px;
    border-radius: 22px;
    font-size: 16px;
}

.result-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 24px 20px 28px;
    border-radius: 24px;
    text-align: center;
}

.result-hero-content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.result-hero-visual {
    grid-row: 1;
}

.result-hero .personality-colors-image {
    width: 110px;
    height: 110px;
    margin: 0;
    border-width: 5px;
    border-radius: 26px;
    transform: none;
}

.personality-badge {
    padding: 7px 14px;
    font-size: 14px;
}

.result-user-name {
    margin: 18px 0 4px;
    font-size: 17px;
}

.result-hero #personality-title {
    margin-bottom: 13px;
    font-size: 38px;
}

.result-hero #personality-title::after {
    width: 58px;
    height: 5px;
    margin: 9px auto 0;
}

.result-hero-content > p:last-child {
    font-size: 15px;
    line-height: 1.85;
}

.report-section {
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(31, 70, 130, 0.075);
}

.report-section h2,
.section-heading h2 {
    font-size: 21px;
}

.section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.section-heading span {
    font-size: 14px;
}

.score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.score-card {
    padding: 17px 13px;
    border-radius: 18px;
}

.score-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 13px;
    font-size: 15px;
}

.score-card-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.score-card-heading > span::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--score-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--score-color) 10%, transparent);
}

.score-card-heading strong {
    font-size: 27px;
}

.introduction-section {
    padding: 76px 18px 22px;
}

.introduction-section::before {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
}

.introduction-section p {
    font-size: 16px;
    line-height: 2;
}

.report-sections,
.careers ul {
    grid-template-columns: 1fr;
}

.report-sections {
    gap: 16px;
}

.detail-section,
.detail-section:first-child,
.detail-section:nth-child(2) {
    margin-top: 0;
    padding-top: 76px;
}

.detail-section:first-child {
    margin-top: 16px;
}

.detail-section::before {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 21px;
}

.detail-section h2 {
    top: 24px;
    right: 72px;
    left: 16px;
}

.detail-section ul {
    gap: 10px;
    padding-right: 21px;
}

.detail-section li {
    font-size: 16px;
    line-height: 1.9;
}

/* Tablet and desktop enhancement */
@media (min-width: 768px) {
    .registration-page {
        padding: 38px 20px 56px;
    }

    .registration-shell {
        width: min(100%, 880px);
    }

    .registration-header {
        grid-template-columns: minmax(170px, 0.75fr) minmax(330px, 1.25fr);
        gap: 38px;
        padding: 34px 38px 42px;
        text-align: right;
    }

    .registration-step {
        right: 38px;
        left: auto;
        min-height: 48px;
        padding: 9px 20px;
        font-size: 16px;
    }

    .registration-header .personality-colors-image {
        width: 190px;
        height: 190px;
        margin-top: 28px;
    }

    .registration-intro {
        grid-column: 2;
        grid-row: 1;
        padding-top: 36px;
    }

    .registration-header h1 {
        font-size: 44px;
        text-align: right;
    }

    .registration-header p {
        max-width: none;
        margin: 0;
        font-size: 20px;
        text-align: right;
    }

    .registration-intro::after {
        margin: 21px 0 0;
    }

    .registration-card {
        padding: 36px;
    }

    .trust-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .trust-list li {
        justify-content: center;
    }

    .test-page {
        padding: 38px 20px 56px;
    }

    .test-header h1 {
        font-size: 32px;
    }

    .test-header p {
        font-size: 17px;
    }

    .question-card {
        padding: 32px;
    }

    .question-card legend {
        font-size: 20px;
    }

    .option-item {
        min-height: 60px;
        padding-inline: 18px;
        font-size: 17px;
    }

    .question-actions {
        position: static;
        width: auto;
        margin-top: 4px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        transform: none;
    }

    .primary-button,
    .secondary-button {
        flex: none;
        min-width: 150px;
        min-height: 52px;
    }

    .result-page {
        padding: 28px 20px 72px;
    }

    .result-hero {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 36px;
        padding: 42px 46px;
        border-radius: 32px;
        text-align: right;
    }

    .result-hero-content {
        align-items: flex-start;
    }

    .result-hero-visual {
        grid-row: auto;
    }

    .result-hero .personality-colors-image {
        width: 205px;
        height: 205px;
        border-width: 8px;
        border-radius: 38px;
        transform: rotate(-2deg);
    }

    .result-hero #personality-title {
        font-size: 56px;
    }

    .result-hero #personality-title::after {
        margin-inline: 0;
    }

    .report-section {
        padding: 30px;
    }

    .section-heading {
        align-items: center;
        flex-direction: row;
    }

    .score-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }

    .score-card-heading {
        align-items: center;
        flex-direction: row;
    }

    .introduction-section {
        padding: 30px 94px 30px 30px;
    }

    .introduction-section::before {
        top: 28px;
        right: 28px;
    }

    .report-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .detail-section:first-child,
    .detail-section:nth-child(2) {
        margin-top: 20px;
    }
}

/* Compact user-details dialog on mobile */
@media (max-width: 700px) {
    .admin-details-dialog {
        width: calc(100% - 16px);
        max-height: 94dvh;
        margin: auto;
        padding: 18px 12px;
        border-radius: 18px;
        font-size: 14px;
    }

    .admin-details-dialog .dialog-close {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .admin-details-title {
        margin-bottom: 16px;
        padding-left: 40px;
        font-size: 20px;
        line-height: 1.5;
    }

    .admin-details-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-detail-card {
        padding: 14px;
        border-radius: 12px;
    }

    .admin-detail-card h3,
    .admin-answers-section h3 {
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 1.55;
    }

    .admin-detail-list {
        grid-template-columns: minmax(82px, 0.8fr) minmax(0, 1.2fr);
        gap: 8px 10px;
        font-size: 13px;
        line-height: 1.65;
    }

    .admin-detail-list dt,
    .admin-detail-list dd {
        min-width: 0;
        margin: 0;
        overflow-wrap: anywhere;
    }

    .admin-detail-list dt {
        font-size: 12px;
    }

    .admin-answers-section {
        margin-top: 18px;
    }

    .admin-details-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .admin-details-table,
    .admin-details-table tbody,
    .admin-details-table tr,
    .admin-details-table td {
        display: block;
        width: 100%;
    }

    .admin-details-table {
        font-size: 13px;
        white-space: normal;
    }

    .admin-details-table thead {
        display: none;
    }

    .admin-details-table tr {
        margin-bottom: 10px;
        padding: 12px;
        background: #f8fafc;
        border: 1px solid #e4eaf2;
        border-radius: 12px;
    }

    .admin-details-table td,
    .admin-details-table td:first-child,
    .admin-details-table td:nth-child(2) {
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 13px;
        line-height: 1.75;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .admin-details-table td + td {
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px solid #e4eaf2;
    }

    .admin-details-table td::before {
        display: block;
        margin-bottom: 3px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.5;
    }

    .admin-details-table td:nth-child(1)::before { content: "سؤال"; }
    .admin-details-table td:nth-child(2)::before { content: "پاسخ انتخاب‌شده"; }
    .admin-details-table td:nth-child(3)::before { content: "رنگ"; }

    .answer-color-badge {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 359px) {
    .admin-details-dialog {
        width: calc(100% - 10px);
        padding-inline: 10px;
    }

    .admin-detail-list {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 7px 8px;
    }
}

/* Resilient report cards for long Persian headings */
.detail-section,
.detail-section:first-child,
.detail-section:nth-child(2) {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 22px 18px;
}

.detail-section::before {
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.detail-section h2 {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.detail-section ul {
    grid-column: 1 / -1;
    margin-top: 18px;
    overflow-wrap: anywhere;
}

.registration-page img,
.test-page img,
.result-page img {
    max-width: 100%;
}

.registration-page,
.test-page,
.result-page,
.registration-card,
.question-card,
.report-section {
    min-width: 0;
}

@media (max-width: 359px) {
    .registration-page,
    .test-page,
    .result-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .registration-card,
    .question-card,
    .report-section {
        padding-right: 15px;
        padding-left: 15px;
    }

    .registration-header h1 {
        font-size: 27px;
    }

    .question-actions {
        width: calc(100% - 16px);
        gap: 8px;
        padding: 8px;
    }

    .primary-button,
    .secondary-button {
        padding-inline: 9px;
        font-size: 14px;
    }

    .result-page-header h1 {
        font-size: 24px;
    }

    .score-card {
        padding-inline: 11px;
    }
}

@media (min-width: 768px) {
    .detail-section,
    .detail-section:first-child,
    .detail-section:nth-child(2) {
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
        padding: 28px;
    }
}

/* Admin authentication */
.admin-login-body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.14), transparent 24rem),
        linear-gradient(180deg, #f9fbff, #f2f6fc);
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 14px;
}

.admin-login-card {
    width: min(100%, 440px);
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2eaf5;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(31, 70, 130, 0.14);
}

.admin-login-mark {
    display: grid;
    grid-template-columns: repeat(2, 20px);
    gap: 5px;
    width: max-content;
    margin: 0 auto 20px;
}

.admin-login-mark span {
    width: 20px;
    height: 20px;
    border-radius: 7px;
}

.admin-login-mark span:nth-child(1) { background: var(--orange); }
.admin-login-mark span:nth-child(2) { background: var(--blue); }
.admin-login-mark span:nth-child(3) { background: var(--yellow); }
.admin-login-mark span:nth-child(4) { background: var(--green); }

.admin-login-card .admin-eyebrow {
    margin: 0 0 5px;
    text-align: center;
}

.admin-login-card h1 {
    margin: 0;
    color: #10234a;
    font-size: 30px;
    text-align: center;
}

.admin-login-description {
    margin: 10px 0 25px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

.admin-login-form {
    display: grid;
    gap: 10px;
}

.admin-login-form label {
    margin-top: 8px;
    font-size: 16px;
}

.admin-login-form input {
    width: 100%;
    min-height: 54px;
    padding: 11px 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.admin-login-message {
    min-height: 24px;
    margin: 5px 0 0;
    color: #b42318;
    font-size: 14px;
    line-height: 1.7;
}

.admin-login-form button {
    min-height: 54px;
    color: #fff;
    background: linear-gradient(110deg, #3b82f6, #145ed9);
    border: 0;
    border-radius: 15px;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.admin-login-form button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-logout-button {
    min-height: 42px;
    padding: 7px 18px;
    color: #b42318;
    background: #fff;
    border: 1px solid #f4b4ad;
    border-radius: 10px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.admin-logout-button:hover:not(:disabled) {
    background: #fff5f4;
}

@media (max-width: 640px) {
    .admin-topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-login-card {
        padding: 26px 20px;
    }
}

/* Unified result-card headings */
.introduction-section,
.detail-section,
.detail-section:first-child,
.detail-section:nth-child(2) {
    display: block;
    padding: 22px 18px;
}

.introduction-section::before,
.detail-section::before {
    display: none;
}

.report-card-heading {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0 0 18px;
}

.report-card-icon {
    flex: 0 0 40px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--personality-color);
    background: color-mix(in srgb, var(--personality-color) 9%, white);
    border-radius: 13px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

.report-card-icon::before { content: "◉"; }
.characteristics .report-card-icon::before { content: "◆"; }
.strengths .report-card-icon::before { content: "◎"; }
.needs .report-card-icon::before { content: "♡"; }
.careers .report-card-icon::before { content: "▣"; }
.study-challenges .report-card-icon::before,
.study-tips .report-card-icon::before { content: "▰"; }
.exam-challenges .report-card-icon::before,
.exam-tips .report-card-icon::before { content: "▥"; }

.report-card-heading h2,
.detail-section .report-card-heading h2,
.introduction-section .report-card-heading h2 {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 19px;
    line-height: 1.65;
    overflow-wrap: normal;
}

.introduction-section p,
.detail-section ul {
    margin-top: 0;
}

.detail-section ul {
    display: grid;
    grid-column: auto;
}

@media (max-width: 359px) {
    .report-card-heading {
        gap: 10px;
    }

    .report-card-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .report-card-heading h2,
    .detail-section .report-card-heading h2,
    .introduction-section .report-card-heading h2 {
        font-size: 17px;
    }
}

@media (min-width: 768px) {
    .introduction-section,
    .detail-section,
    .detail-section:first-child,
    .detail-section:nth-child(2) {
        padding: 28px;
    }

    .report-card-heading {
        gap: 16px;
    }

    .report-card-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .report-card-heading h2,
    .detail-section .report-card-heading h2,
    .introduction-section .report-card-heading h2 {
        font-size: 22px;
    }
}

/* Admin users table mobile card layout */
@media (max-width: 768px) {

    .admin-table-wrap {
        overflow: visible;
    }

    .admin-table {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 12px;
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        padding: 8px 0;
        border: none;
        font-size: 14px;
        text-align: left;
    }

    .admin-table td::before {
        font-weight: 700;
        color: #64748b;
        flex-shrink: 0;
    }

    .admin-table td:nth-child(1)::before {
        content: "نام";
    }

    .admin-table td:nth-child(2)::before {
        content: "ایمیل";
    }

    .admin-table td:nth-child(3)::before {
        content: "تلفن";
    }

    .admin-table td:nth-child(4)::before {
        content: "استان";
    }

    .admin-table td:nth-child(5)::before {
        content: "وضعیت";
    }

    .admin-table td:nth-child(6)::before {
        content: "تیپ";
    }

    .admin-table td:nth-child(7)::before {
        content: "ثبت‌نام";
    }

    .admin-table td:nth-child(8)::before {
        content: "عملیات";
    }

}

/* Premium personality interpretation report */
.result-page {
    --report-ink: #10234a;
    --report-copy: #40516d;
    --report-muted: #718096;
    --report-line: #e4ebf5;
    overflow-x: clip;
    padding: clamp(16px, 3vw, 42px) clamp(10px, 3vw, 24px) 80px;
    background:
        radial-gradient(circle at 8% 4%, rgba(37, 99, 235, 0.11), transparent 28rem),
        radial-gradient(circle at 96% 24%, rgba(249, 115, 22, 0.07), transparent 24rem),
        linear-gradient(180deg, #f9fbff 0%, #f3f7fc 100%);
}

.result-page-header,
.result-report {
    width: min(100%, 1120px);
    margin-inline: auto;
}

.result-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-bottom: clamp(18px, 3vw, 30px);
}

.result-page-header h1 {
    margin: 0;
    color: var(--report-ink);
    font-size: clamp(25px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.result-report {
    min-width: 0;
}

.result-hero {
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr) clamp(170px, 22vw, 250px);
    gap: clamp(24px, 5vw, 58px);
    min-height: 390px;
    padding: clamp(34px, 5vw, 60px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: clamp(26px, 4vw, 38px);
    box-shadow: 0 28px 65px color-mix(in srgb, var(--personality-color) 24%, transparent);
}

.result-hero::before {
    top: -180px;
    right: 34%;
    width: 410px;
    height: 410px;
    background: rgba(255, 255, 255, 0.07);
}

.result-hero::after {
    bottom: -130px;
    left: -65px;
    width: 290px;
    height: 290px;
    background: rgba(255, 255, 255, 0.08);
}

.result-hero-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    text-align: right;
}

.result-hero-kicker {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.result-page .personality-badge {
    padding: 8px 17px;
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.4);
    font-size: clamp(15px, 1.7vw, 18px);
}

.result-page .result-user-name {
    margin: 26px 0 5px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 23px);
}

.result-hero #personality-title {
    max-width: 100%;
    margin: 0 0 16px;
    font-size: clamp(42px, 6.8vw, 70px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.result-hero-summary {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 500;
    line-height: 1.9;
}

.result-hero-visual {
    min-width: 0;
}

.result-hero .personality-colors-image {
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.23);
    border-radius: clamp(30px, 5vw, 46px);
    box-shadow: 0 22px 48px rgba(4, 26, 71, 0.24);
}

.result-page .report-section {
    min-width: 0;
    margin-top: 22px;
    padding: clamp(22px, 3.2vw, 34px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--report-line);
    border-radius: clamp(22px, 3vw, 28px);
    box-shadow: 0 15px 38px rgba(31, 70, 130, 0.07);
}

.result-page .score-section {
    border-top: 4px solid var(--personality-color);
}

.result-page .section-heading {
    align-items: center;
    flex-direction: row;
    margin-bottom: 24px;
}

.result-page .section-heading h2 {
    color: var(--report-ink);
    font-size: clamp(21px, 2.5vw, 27px);
}

.result-page .section-heading span {
    color: var(--report-muted);
    font-size: clamp(14px, 1.7vw, 17px);
}

.result-page .score-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 17px);
}

.result-page .score-card {
    min-width: 0;
    padding: clamp(15px, 2vw, 21px);
    border-radius: 20px;
}

.result-page .score-card-heading {
    align-items: center;
    flex-direction: row;
    color: #2c3e5d;
    font-size: clamp(15px, 1.8vw, 18px);
}

.result-page .score-card-heading strong {
    font-size: clamp(25px, 3.5vw, 32px);
}

.result-page .introduction-section {
    position: relative;
    padding: clamp(24px, 3.5vw, 38px);
    overflow: hidden;
    border-top: 0;
}

.result-page .introduction-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: var(--personality-color);
}

.result-page .introduction-section::before,
.result-page .detail-section::before,
.result-page .report-card-icon::before {
    display: none;
    content: none;
}

.result-page .report-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    margin: 0 0 20px;
}

.result-page .report-card-icon {
    flex: 0 0 46px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--personality-color);
    background: color-mix(in srgb, var(--personality-color) 9%, white);
    border: 1px solid color-mix(in srgb, var(--personality-color) 18%, white);
    border-radius: 15px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.result-page .report-card-heading h2,
.result-page .introduction-section .report-card-heading h2,
.result-page .detail-section .report-card-heading h2 {
    position: static;
    min-width: 0;
    margin: 0;
    color: var(--report-ink);
    font-size: clamp(19px, 2.15vw, 24px);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.result-page .introduction-section p,
.result-page .report-copy {
    margin: 0;
    color: var(--report-copy);
    font-size: clamp(17px, 1.8vw, 19px);
    line-height: 2.1;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: anywhere;
}

.interpretation-report {
    margin-top: clamp(42px, 6vw, 70px);
}

.interpretation-report-heading {
    max-width: 760px;
    margin: 0 auto clamp(22px, 4vw, 36px);
    text-align: center;
}

.interpretation-report-heading > span {
    display: inline-flex;
    padding: 7px 15px;
    color: var(--personality-color);
    background: color-mix(in srgb, var(--personality-color) 8%, white);
    border: 1px solid color-mix(in srgb, var(--personality-color) 18%, white);
    border-radius: 999px;
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 500;
}

.interpretation-report-heading h2 {
    margin: 13px 0 8px;
    color: var(--report-ink);
    font-size: clamp(27px, 4vw, 39px);
    font-weight: 700;
    line-height: 1.55;
}

.interpretation-report-heading p {
    margin: 0;
    color: var(--report-muted);
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.9;
}

.result-page .report-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.result-page .detail-section,
.result-page .detail-section:first-child,
.result-page .detail-section:nth-child(2) {
    display: block;
    min-width: 0;
    margin-top: 0;
    padding: clamp(22px, 3vw, 31px);
}

.result-page .interpretation-card {
    border-top: 4px solid color-mix(in srgb, var(--personality-color) 72%, white);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-page .interpretation-card.is-wide {
    grid-column: 1 / -1;
}

@media (hover: hover) {
    .result-page .interpretation-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 46px rgba(31, 70, 130, 0.11);
    }
}

.result-page .report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-page .report-list li {
    position: relative;
    min-width: 0;
    padding: 16px 48px 16px 17px;
    color: var(--report-copy);
    background: #f8fafe;
    border: 1px solid #e8eef7;
    border-radius: 16px;
    font-size: clamp(16px, 1.7vw, 18px);
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.result-page .report-list li::before {
    content: "✓";
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: #fff;
    background: var(--personality-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.result-page .recommendation {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--personality-color) 7%, white), #fff 62%);
    border-color: color-mix(in srgb, var(--personality-color) 25%, white);
}

@media (max-width: 767px) {
    .result-page {
        padding-inline: max(10px, env(safe-area-inset-left));
        padding-bottom: 56px;
    }

    .result-page-header {
        min-height: 48px;
    }

    .result-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        min-height: 0;
        padding: 25px 20px 30px;
        text-align: center;
    }

    .result-hero-content {
        align-items: center;
        grid-row: 2;
        text-align: center;
    }

    .result-hero-visual {
        grid-row: 1;
    }

    .result-hero .personality-colors-image {
        width: 108px;
        border-width: 5px;
        border-radius: 27px;
        transform: none;
    }

    .result-hero #personality-title::after {
        margin-inline: auto;
    }

    .result-page .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .result-page .score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-page .score-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .result-page .report-sections,
    .result-page .report-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .result-page .interpretation-card.is-wide {
        grid-column: auto;
    }

    .result-page .report-card-heading {
        align-items: flex-start;
    }

    .result-page .introduction-section p,
    .result-page .report-copy {
        text-align: right;
    }
}

@media (max-width: 359px) {
    .result-page .result-hero,
    .result-page .report-section,
    .result-page .detail-section,
    .result-page .detail-section:first-child,
    .result-page .detail-section:nth-child(2) {
        padding-right: 15px;
        padding-left: 15px;
    }

    .result-page .report-card-heading {
        gap: 10px;
    }

    .result-page .report-card-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 19px;
    }

    .result-page .report-list li {
        padding-left: 13px;
    }
}
