:root {
    --mint: #5FE3A0;
    --mint-dark: #22C983;
    --navy: #06061F;
    --navy-soft: #0D102A;
    --text: #111827;
    --muted: #64748B;
    --border: #E5E7EB;
    --bg: #F8FAFC;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--navy), var(--navy-soft));
    color: white;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-dots {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    gap: 6px;
}

.logo-dots span {
    width: 10px;
    height: 10px;
    background: var(--mint);
    border-radius: 50%;
}

.logo-dots span:nth-child(6),
.logo-dots span:nth-child(8),
.logo-dots span:nth-child(9) {
    visibility: hidden;
}

.logo-text {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-title {
    font-size: 12px;
    color: #AAB0C5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #E5E7EB;
    margin-bottom: 8px;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, var(--mint), #8FF0C0);
    color: var(--navy);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
}

.avatar {
    width: 42px;
    height: 42px;
    background: var(--mint);
    color: var(--navy);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 78px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.content {
    padding: 42px 40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-title h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -1px;
}

.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, var(--mint-dark), var(--mint));
    color: white;
}

.btn-secondary {
    background: #EEF2F7;
    color: var(--text);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    /* box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06); */
    overflow: hidden;
}

.card-body {
    padding: 28px;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.search-input,
.form-control,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
}

.search-input {
    max-width: 360px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: #475569;
    font-size: 14px;
    padding: 18px 28px;
    background: #FBFCFE;
}

td {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
}

.badge {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.badge-admin {
    background: #DDFBEA;
    color: #0E9F6E;
}

.badge-editor {
    background: #DDFCF7;
    color: #059B9A;
}

.badge-viewer {
    background: #E8F2FF;
    color: #1677D2;
}

.status-active {
    background: #DCFCE7;
    color: #16A34A;
}

.status-inactive {
    background: #E5E7EB;
    color: #64748B;
}

.form-card {
    max-width: 560px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.error {
    background: #FEE2E2;
    color: #B91C1C;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), #11143A);
}

.login-card {
    width: 420px;
    background: white;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* .verification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
} */ 

/* @media (max-width: 1000px) {
    .verification-grid {
        grid-template-columns: 1fr;
    }
} */

/* .verification-grid .card {
    height: 100%;
} */

.verification-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.verification-card {
    background: white;

    border-radius: 16px;

    padding: 20px;

    border: 1px solid #E2E8F0;

    box-shadow:
        0 4px 10px rgba(15,23,42,.04);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 31, 0.65);
    z-index: 999;
    display: grid;
    place-items: center;
}

.modal {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.modal h3 {
    margin-top: 0;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
}

.report-collapse {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.report-collapse summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 800;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
}

.report-collapse table {
    margin: 0;
}

.report-collapse {
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    margin-bottom: 18px;
    background: #FFFFFF;
    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(15,23,42,0.04),
        0 1px 2px rgba(15,23,42,0.04);

    transition: all 0.25s ease;
}

.report-collapse:hover {
    box-shadow:
        0 8px 24px rgba(15,23,42,0.08),
        0 2px 6px rgba(15,23,42,0.05);
}

.report-collapse summary {
    list-style: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 22px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    background:
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F8FAFC 100%
        );

    color: #0F172A;
}

.report-collapse summary::-webkit-details-marker {
    display: none;
}

.report-content {
    padding: 20px;
    border-top: 1px solid #EEF2F7;
}

.collapse-icon {
    transition: transform 0.25s ease;
    color: #64748B;
    font-size: 18px;
}

.report-collapse[open] .collapse-icon {
    transform: rotate(180deg);
}

.report-collapse table {
    width: 100%;
    border-collapse: collapse;
}

.report-collapse th {
    background: #F8FAFC;
    padding: 12px;
    text-align: left;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    color: #475569;
}

.report-collapse td {
    padding: 12px;
    border-top: 1px solid #F1F5F9;
}

.report-collapse tr:hover {
    background: #FAFBFC;
}

label .required {
    color: #DC2626;
    font-weight: 700;
    margin-left: 4px;
}

.form-hint {
    margin-bottom: 18px;
    color: #64748B;
    font-size: 13px;
}

.logout-btn {
    width: 100%;

    border: 0;
    cursor: pointer;

    background: transparent;
    color: rgba(255,255,255,0.85);

    text-align: left;

    padding: 12px 14px;

    border-radius: 12px;

    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.10);
    color: white;

    transform: translateY(-1px);
}

.search-form {
    background: white;

    padding: 24px;

    border-radius: 18px;

    border: 1px solid #E2E8F0;

    box-shadow:
        0 4px 12px rgba(15,23,42,0.04);

    margin-bottom: 24px;
}

.search-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        auto;

    gap: 18px;

    align-items: end;
}

.search-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.search-group label {
    font-size: 13px;

    font-weight: 700;

    color: #475569;

    text-transform: uppercase;

    letter-spacing: .03em;
}

.search-group input {
    height: 46px;

    padding: 0 16px;

    border: 1px solid #CBD5E1;

    border-radius: 12px;

    background: #F8FAFC;

    transition: all .2s ease;

    font-size: 14px;
}

.search-group input:focus {
    outline: none;

    border-color: #4F46E5;

    background: white;

    box-shadow:
        0 0 0 4px rgba(79,70,229,.10);
}

.search-actions {
    display: flex;

    gap: 12px;
}

.search-actions .btn {
    height: 46px;

    min-width: 100px;
}

@media (max-width: 900px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-actions {
        width: 100%;
    }

    .search-actions .btn {
        flex: 1;
    }
}

.hidden {
    display: none !important;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header h3 {
    margin: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 31, 0.65);
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal {
    width: 460px;
    max-width: 100%;
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.modal-large {
    width: 720px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.modal-header h3 {
    margin: 0;
}

.modal-header p {
    margin: 6px 0 0;
    color: #64748B;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: #0F172A;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    background: #E2E8F0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 800px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}


.loader-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 31, 0.70);
    z-index: 2000;
    display: grid;
    place-items: center;
}

.loader-card {
    background: white;
    border-radius: 22px;
    padding: 34px;
    width: 360px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #E5E7EB;
    border-top-color: var(--mint);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 31, 0.70);
    z-index: 3000;
    display: grid;
    place-items: center;
}

.global-loader-card {
    background: white;
    border-radius: 22px;
    padding: 34px;
    width: 360px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.global-loader-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #E5E7EB;
    border-top-color: var(--mint);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 0.8s linear infinite;
}

.btn-danger {
    background: #DC2626;
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
    color: white;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.nav-section button.nav-link:hover {
    background: #5FE3A0;
    color: #06061F;
}

.account-action {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.85);
    text-align: left;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 12px;
    font: inherit;
}

.account-action:hover {
    background: rgba(255,255,255,0.10);
    color: #FFFFFF;
}

.text-danger {
    color: #DC2626;
    font-weight: 700;
}

.fraud-check-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
}

.fraud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}


.statement-requirements {
    background: #ECFDF5;
    border: 1px solid #5FE3A0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.statement-requirements-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-icon {
    color: #059669;
    font-size: 18px;
    font-weight: bold;
}

.requirements-toggle {
    border: none;
    background: none;
    color: #059669;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.statement-requirements-content {
    margin-top: 12px;
}

.statement-requirements-content ul {
    margin: 0;
    padding-left: 20px;
}

.statement-requirements-content li {
    margin-bottom: 8px;
}

.fraud-clear {
    color: #059669;
    font-weight: 600;
}

.fraud-warning {
    color: #DC2626;
    font-weight: 600;
}