* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #26193a 0%,
            #121017 45%,
            #09080c 100%
        );

    color: #ffffff;
}

body.review-open {
    overflow: hidden;
}

.page-shell {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.admin-card {
    width: 100%;
    max-width: 460px;

    padding: 32px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    background: rgba(20, 17, 27, 0.96);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);
}

#dashboardPanel {
    max-width: 1050px;
}

.brand-block {
    margin-bottom: 28px;
}

h1 {
    margin: 0 0 8px;

    font-size: 30px;
}

h2 {
    margin-top: 28px;
}

h3 {
    margin-top: 0;
}

p {
    color: #b8b2c1;

    line-height: 1.5;
}

hr {
    margin: 26px 0;

    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

form {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

label {
    margin-top: 8px;

    font-weight: 600;
}

input,
textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    background: #17131e;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
}

textarea {
    resize: vertical;

    min-height: 110px;
}

input:focus,
textarea:focus {
    outline: 2px solid #9c5cff;
    outline-offset: 1px;
}

button {
    margin-top: 16px;

    padding: 14px 18px;

    border: 0;
    border-radius: 12px;

    background: #9c5cff;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        background 0.15s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.55;

    cursor: default;
}

.secondary-button {
    margin-top: 0;

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.18);
}

.status-message {
    min-height: 24px;

    margin-top: 18px;
    margin-bottom: 0;

    text-align: center;
}

.status-message.error {
    color: #ff7d86;
}

.status-message.success {
    color: #75df9a;
}

.dashboard-header {
    display: flex;

    gap: 20px;

    align-items: center;
    justify-content: space-between;
}

.hidden {
    display: none !important;
}



/* ─────────────────────────────────────────────
   VERIFICATION LIST
   ───────────────────────────────────────────── */

.verification-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 24px;
}

.verification-header h2 {
    margin-bottom: 4px;
}

.verification-header p {
    margin: 0;
}

.verification-list {
    display: flex;
    flex-direction: column;

    gap: 16px;

    margin-top: 24px;
}

.verification-card {
    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    background: #17131e;
}

.verification-card-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 16px;
}

.verification-card-header h3 {
    margin: 0 0 4px;
}

.verification-card-header p {
    margin: 0;
}

.pending-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.verification-details {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-top: 20px;
}

.verification-details div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.verification-details span,
.document-section span {
    color: #b8b2c1;
}

.document-section {
    display: flex;

    justify-content: space-between;

    gap: 16px;

    margin-top: 20px;
    padding-top: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-button {
    width: 100%;

    margin-top: 20px;
}

.empty-state {
    padding: 32px;

    text-align: center;

    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 18px;

    color: #b8b2c1;
}



/* ─────────────────────────────────────────────
   REVIEW DIALOG
   ───────────────────────────────────────────── */

.review-dialog {
    width: min(960px, calc(100vw - 32px));

    max-height: calc(100vh - 32px);

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;

    background: #121017;
    color: #ffffff;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65);

    overflow: hidden;
}

.review-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(4px);
}

.review-dialog-inner {
    max-height: calc(100vh - 32px);

    padding: 28px;

    overflow-y: auto;
}

.review-dialog-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.review-dialog-header h2 {
    margin: 2px 0 0;
}

.review-eyebrow {
    margin: 0;

    color: #9c5cff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.close-review-button {
    display: flex;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;

    background: transparent;

    color: #ffffff;

    font-size: 28px;
    font-weight: 400;

    line-height: 1;
}

.review-loading {
    padding: 60px 20px;

    text-align: center;

    color: #b8b2c1;
}

.review-user-card {
    margin-top: 24px;
    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    background: #17131e;
}

.review-user-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.review-user-heading h3 {
    margin: 0 0 4px;

    font-size: 22px;
}

.review-user-heading p {
    margin: 0;
}

.review-info-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;

    margin-top: 22px;
}

.review-info-grid > div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.review-field-label {
    color: #8f8998;

    font-size: 13px;
}

.credential-section {
    margin-top: 28px;
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-heading h3 {
    margin: 0;
}

.section-heading p {
    margin: 5px 0 0;

    font-size: 13px;
}

.credential-documents {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-top: 16px;
}

.credential-document {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    background: #09080c;
}

.credential-document-link {
    display: block;

    text-decoration: none;
}

.credential-document img {
    display: block;

    width: 100%;
    height: 310px;

    object-fit: contain;

    background: #09080c;
}

.credential-document-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credential-document-footer span {
    color: #b8b2c1;

    font-size: 13px;
}

.credential-open-text {
    color: #b98cff !important;

    font-weight: 700;
}

.no-documents {
    grid-column: 1 / -1;

    padding: 32px;

    text-align: center;

    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;

    color: #b8b2c1;
}

.review-note-section {
    margin-top: 28px;
}

.review-note-section label {
    display: block;

    margin-bottom: 8px;
}

.review-note-help {
    margin: 7px 0 0;

    color: #8f8998;

    font-size: 12px;
}

.review-actions {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 22px;
}

.review-actions button {
    margin: 0;
}

.approve-button {
    background: #237a49;
}

.approve-button:hover:not(:disabled) {
    background: #2b9258;
}

.resubmit-button {
    background: #a56616;
}

.resubmit-button:hover:not(:disabled) {
    background: #bd7819;
}

.reject-button {
    background: #8c3139;
}

.reject-button:hover:not(:disabled) {
    background: #a53b45;
}

/* ─────────────────────────────────────────────
   USER REPORTS
   ───────────────────────────────────────────── */

.report-details-block {
    margin-top: 20px;
    padding-top: 16px;

    border-top:
        1px solid rgba(
            255,
            255,
            255,
            0.08
        );
}


.report-details-block strong {
    display: block;

    margin-bottom: 8px;
}


.report-details-block p {
    margin: 0;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


.report-id-text {
    overflow-wrap: anywhere;

    font-size: 13px;
}

/* ─────────────────────────────────────────────
   REPORT REVIEW
   ───────────────────────────────────────────── */

.review-report-button {
    width: 100%;

    margin-top: 20px;
}


.report-review-details {
    margin-top: 28px;

    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    background: #17131e;
}


.report-review-details h3 {
    margin-bottom: 10px;
}


.report-review-details p {
    margin: 0;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


.report-review-actions {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 22px;
}


.report-review-actions button {
    margin: 0;
}


/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */

@media (max-width: 720px) {

    .page-shell {
        padding: 14px;
    }

    .admin-card {
        padding: 22px;
    }

    .dashboard-header,
    .verification-header,
    .review-user-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-header .secondary-button,
    .verification-header .secondary-button {
        width: 100%;
    }

    .verification-details,
    .review-info-grid,
    .credential-documents,
    .review-actions,
    .report-review-actions{
        grid-template-columns: 1fr;
    }

    .document-section {
        flex-direction: column;
    }

    .review-dialog-inner {
        padding: 20px;
    }

    .credential-document img {
        height: 260px;
    }
}

/* ─────────────────────────────────────────────
   SUSPENDED USERS
   ───────────────────────────────────────────── */

.suspended-badge {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(165, 59, 69, 0.18);

    color: #ff9ca6;

    font-size: 12px;
    font-weight: 700;
}


.restore-user-button {
    width: 100%;

    margin-top: 20px;
}