:root {
    --bg: #eef4f8;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --ink: #172033;
    --muted: #667085;
    --line: #d9e2ec;
    --primary: #155eef;
    --primary-dark: #0f46bd;
    --accent: #00a3a3;
    --danger: #c93636;
    --success: #0d8a56;
    --shadow: 0 24px 70px rgba(21, 35, 68, .14);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(140deg, rgba(21, 94, 239, .10), transparent 34%),
        linear-gradient(320deg, rgba(0, 163, 163, .12), transparent 32%),
        var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-page {
    display: flex;
    justify-content: center;
}

.page-shell {
    width: min(100%, 980px);
    padding: 24px;
}

.compact-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-shell {
    width: min(100%, 1120px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(217, 226, 236, .9);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 34px;
    backdrop-filter: blur(14px);
}

.login-card,
.success-card {
    max-width: 520px;
    margin: 0 auto;
}

.admin-login-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(21, 94, 239, .16), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(0, 163, 163, .16), transparent 26%),
        #101828;
}

.admin-login-card {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.login-card-wide {
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 28px;
    align-items: stretch;
}

.login-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-visual {
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf5fb;
}

.login-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.register-card {
    max-width: 940px;
    margin: 0 auto;
}

.brand-mark {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 0 22px;
    object-fit: contain;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
}

.lead {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.6;
}

.form-section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f0ff;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label,
.label-text {
    color: #2e394d;
    font-size: 14px;
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    padding: 0 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, .12);
    background: #ffffff;
}

.select {
    appearance: auto;
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 54px;
}

.icon-button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.icon-button:hover,
.icon-button.active {
    background: #edf3ff;
}

.eye-icon,
.eye-icon::before,
.eye-icon::after {
    display: block;
}

.eye-icon {
    position: relative;
    width: 22px;
    height: 14px;
    margin: 0 auto;
    border: 2px solid #4b5870;
    border-radius: 50%;
}

.eye-icon::before {
    content: "";
    position: absolute;
    inset: 3px 7px;
    border-radius: 50%;
    background: #4b5870;
}

.eye-icon::after {
    content: "";
    position: absolute;
    width: 27px;
    height: 2px;
    top: 5px;
    left: -4px;
    background: transparent;
    transform: rotate(-28deg);
}

.icon-button.active .eye-icon::after {
    background: #4b5870;
}

.inline-field {
    margin: 18px 0;
}

.radio-list table {
    border-spacing: 0;
}

.radio-list td {
    padding-right: 18px;
    color: #2e394d;
    white-space: nowrap;
}

.radio-list input {
    width: 18px;
    height: 18px;
    margin: 0 7px 0 0;
    vertical-align: middle;
}

.full-span {
    grid-column: 1 / -1;
}

.upload-list {
    display: grid;
    gap: 14px;
}

.upload-row {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.upload-row::after {
    content: attr(data-file);
    grid-column: 2 / 4;
    color: var(--success);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.file-preview {
    min-width: 0;
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
}

.file-preview img {
    width: 92px;
    height: 68px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.file-remove {
    min-height: 34px;
    border: 1px solid rgba(201, 54, 54, .24);
    border-radius: 8px;
    background: rgba(201, 54, 54, .08);
    color: var(--danger);
    font-weight: 800;
    padding: 0 12px;
    cursor: pointer;
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e7edf4;
    color: #394860;
    font-size: 12px;
    font-weight: 900;
}

.upload-row label {
    font-size: 15px;
    font-weight: 800;
}

.upload-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.file-input {
    width: 190px;
    max-width: 100%;
    font: inherit;
    color: #2e394d;
}

.file-input::file-selector-button {
    min-height: 44px;
    margin-right: 10px;
    border: 0;
    border-radius: 8px;
    background: #e4e9f1;
    color: var(--ink);
    font-weight: 800;
    padding: 0 18px;
    cursor: pointer;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 8px;
    color: #344054;
}

.consent-row input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    padding: 0 22px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button.primary {
    background: var(--primary);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line);
}

.button.full {
    width: 100%;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.subtle-link,
.center-note {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
}

.center-note {
    margin-bottom: 0;
}

.validation-summary {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(201, 54, 54, .28);
    background: rgba(201, 54, 54, .08);
    color: var(--danger);
}

.field-error {
    color: var(--danger);
    font-size: 13px;
}

.status-text {
    display: block;
    margin: 0 0 18px;
    color: var(--danger);
}

.status-text.success {
    color: var(--success);
}

.success-card {
    text-align: center;
}

.policy-card {
    line-height: 1.7;
}

.policy-section {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.policy-section p {
    margin: 8px 0 0;
    color: var(--muted);
}

.payment-card {
    max-width: 560px;
    margin: 0 auto;
}

.fee-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 18px;
}

.fee-box > div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.fee-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.fee-box strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
}

.qr-wrap {
    display: grid;
    place-items: center;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.payment-qr {
    width: min(100%, 280px);
    height: auto;
}

.payment-upload {
    margin-bottom: 14px;
}

.admin-shell {
    width: min(100%, 1240px);
}

.admin-body {
    min-height: 100vh;
    background: #f5f7fb;
    color: #111827;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns .22s ease;
}

.admin-sidebar-collapsed .admin-layout {
    grid-template-columns: 86px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, #0b4ea2 0%, #123c88 44%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 12px 0 32px rgba(16, 24, 40, .12);
    overflow: hidden;
}

.admin-mobile-bar,
.admin-menu-overlay,
.admin-sidebar-close {
    display: none;
}

.admin-brand {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 16px;
    padding: 6px;
    border-radius: 8px;
    object-fit: contain;
    transition: width .22s ease, margin .22s ease;
}

.admin-sidebar-collapsed .admin-brand {
    width: 58px;
    margin-bottom: 14px;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.admin-sidebar-tools {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.admin-collapse-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background .18s ease, transform .18s ease;
}

.admin-collapse-toggle:hover {
    background: rgba(255, 255, 255, .16);
}

.admin-sidebar-collapsed .admin-sidebar-tools {
    justify-content: center;
}

.admin-sidebar-collapsed .admin-collapse-toggle {
    transform: rotate(180deg);
}

.admin-nav-group {
    display: grid;
    gap: 4px;
}

.admin-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: #d3dded;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, padding .18s ease;
}

.admin-nav a::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: currentColor;
    opacity: .22;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    text-decoration: none;
}

.admin-nav a.active {
    box-shadow: inset 3px 0 0 #38bdf8;
}

.admin-subnav {
    display: grid;
    gap: 4px;
    margin: 0 0 4px 24px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.admin-subnav a {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.admin-subnav a::before {
    width: 6px;
    height: 6px;
    margin-right: 10px;
}

.admin-subnav a.active {
    background: rgba(56, 189, 248, .16);
    color: #ffffff;
}

.admin-sidebar-collapsed .admin-nav {
    gap: 7px;
}

.admin-sidebar-collapsed .admin-nav a {
    justify-content: center;
    width: 48px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    color: transparent;
}

.admin-sidebar-collapsed .admin-nav a::before {
    margin-right: 0;
    color: #ffffff;
    opacity: .45;
}

.admin-sidebar-collapsed .admin-nav a:hover,
.admin-sidebar-collapsed .admin-nav a.active {
    color: transparent;
}

.admin-sidebar-collapsed .admin-subnav {
    display: none;
}

.admin-main {
    min-width: 0;
    padding: 24px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
}

.admin-topbar h1 {
    margin: 4px 0 0;
    color: #111827;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: 0;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-profile-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.admin-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    padding: 0 12px 0 8px;
    cursor: pointer;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #101828;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.admin-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 90;
    display: none;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .16);
}

.admin-profile-menu.open .admin-profile-dropdown {
    display: grid;
}

.admin-profile-dropdown a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    color: #344054;
    font-weight: 800;
}

.admin-profile-dropdown a:hover {
    background: #f4f7fb;
    text-decoration: none;
}

.admin-panel {
    width: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .07);
}

.narrow-panel {
    max-width: 560px;
}

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

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.dashboard-actions {
    margin-top: 18px;
}

.application-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.3fr 190px 1fr 160px 160px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.insight-card {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}

.insight-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(21, 94, 239, .10);
}

.insight-card.pending::after {
    background: rgba(245, 158, 11, .14);
}

.insight-card.uploaded::after {
    background: rgba(0, 163, 163, .14);
}

.insight-card.approved::after {
    background: rgba(13, 138, 86, .14);
}

.insight-card.rejected::after {
    background: rgba(201, 54, 54, .14);
}

.insight-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.insight-card strong {
    display: block;
    margin-top: 10px;
    font-size: 34px;
    line-height: 1;
}

.candidate-cell {
    display: grid;
    gap: 3px;
    min-width: 190px;
}

.candidate-cell strong {
    color: var(--ink);
}

.candidate-cell span,
.date-note {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-chip.is-pending {
    background: #fff7ed;
    color: #b45309;
}

.status-chip.is-uploaded {
    background: #e6fffb;
    color: #087d7d;
}

.status-chip.is-approved {
    background: #ecfdf3;
    color: #087443;
}

.status-chip.is-rejected {
    background: #fef2f2;
    color: #b42318;
}

.table-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.table-link:hover {
    text-decoration: none;
    background: #dfeaff;
}

.application-filter {
    grid-template-columns: 1fr 180px auto;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-actions .button {
    min-height: 54px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 620px);
    gap: 18px;
}

.location-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
}

.settings-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.settings-card h2 {
    margin-bottom: 6px;
}

.fee-settings-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.muted-text {
    margin: 0 0 16px;
    color: var(--muted);
}

.qr-preview-card {
    display: grid;
    place-items: center;
    width: min(100%, 320px);
    min-height: 260px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.settings-qr {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.file-actions a:hover {
    text-decoration: none;
    background: #dfeaff;
}

.resume-print {
    background: #ffffff;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid #101828;
}

.resume-header span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.resume-header h2 {
    margin: 6px 0;
    font-size: 38px;
    line-height: 1.05;
}

.resume-header p {
    margin: 0;
    color: var(--muted);
}

.resume-status {
    min-width: 150px;
    text-align: right;
}

.resume-status span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-weight: 900;
}

.resume-status strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
}

.resume-section {
    margin-top: 22px;
}

.resume-section h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: #344054;
    font-size: 15px;
    text-transform: uppercase;
}

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

.resume-grid > div {
    min-height: 70px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.resume-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.resume-grid strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

@media print {
    body {
        background: #ffffff;
    }

    .admin-sidebar,
    .admin-mobile-bar,
    .admin-menu-overlay,
    .admin-topbar,
    .admin-profile-menu {
        display: none !important;
    }

    .admin-layout,
    .admin-main {
        display: block;
        padding: 0;
    }

    .admin-panel {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

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

    .resume-print {
        font-size: 12px;
    }

    .resume-header {
        align-items: flex-start;
    }

    .resume-header h2 {
        font-size: 28px;
    }

    .resume-section {
        break-inside: avoid;
    }

    .resume-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .resume-grid > div {
        min-height: auto;
        padding: 8px;
    }
}

.compact-table {
    min-width: 720px;
}

.application-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
    max-width: 1180px;
    margin: 0 auto;
}

.admin-login {
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    align-items: end;
    gap: 12px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #e8f0ff;
    color: var(--primary);
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #ffffff;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    background: #f8fafc;
    color: #344054;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.admin-table tr:hover td {
    background: #fbfdff;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.grid-action {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    padding: 0 10px;
    margin: 2px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .10);
}

.grid-action.approve {
    background: var(--success);
}

.grid-action.reject {
    background: var(--danger);
}

.empty-state {
    padding: 20px;
    color: var(--muted);
}

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

.detail-grid > div {
    min-height: 72px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-grid strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    font-size: 15px;
}

.profile-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.status-strip > div,
.locked-note {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.status-strip span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.status-strip strong {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.profile-payment {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.payment-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

.locked-note {
    margin: 22px 0;
    color: var(--success);
    font-weight: 800;
}

.profile-detail-title {
    margin-top: 22px;
}

.success-card .brand-mark {
    margin-left: auto;
    margin-right: auto;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(13, 138, 86, .12);
    color: var(--success);
    font-size: 38px;
    font-weight: 900;
}

@media (max-width: 720px) {
    body {
        background: var(--bg);
    }

    .page-shell {
        padding: 0;
    }

    .compact-shell {
        align-items: stretch;
    }

    .auth-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 24px 18px 30px;
    }

    .brand-mark {
        width: 240px;
        margin-bottom: 24px;
    }

    h1 {
        font-size: 34px;
    }

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

    .upload-row {
        grid-template-columns: 46px 1fr;
    }

    .file-input {
        grid-column: 1 / -1;
        width: 100%;
    }

    .login-actions {
        grid-template-columns: 1fr;
    }

    .login-shell {
        align-items: stretch;
    }

    .login-card-wide {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .login-visual {
        min-height: 260px;
        order: -1;
    }

    .fee-box,
    .admin-login,
    .detail-grid,
    .status-strip,
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .profile-topbar {
        flex-direction: column;
    }

    .admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-layout {
        display: block;
        width: 100%;
        min-height: 100vh;
    }

    .admin-sidebar-collapsed .admin-layout {
        display: block;
    }

    .admin-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 56px;
        margin: -12px -12px 14px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 10px 28px rgba(21, 35, 68, .08);
        backdrop-filter: blur(14px);
    }

    .admin-menu-toggle {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #101828;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(21, 35, 68, .08);
    }

    .admin-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 2px 0;
        border-radius: 999px;
        background: #ffffff;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: min(82vw, 320px);
        height: 100vh;
        padding: 20px 16px;
        border-right: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 0;
        box-shadow: 22px 0 60px rgba(21, 35, 68, .22);
        transform: translateX(-105%);
        transition: transform .24s ease;
    }

    .admin-sidebar-collapsed .admin-sidebar {
        width: min(82vw, 320px);
    }

    .admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        pointer-events: none;
        background: rgba(23, 32, 51, .46);
        opacity: 0;
        transition: opacity .24s ease;
    }

    .admin-menu-open .admin-menu-overlay {
        pointer-events: auto;
        opacity: 1;
    }

    .admin-menu-open {
        overflow: hidden;
    }

    .admin-sidebar-close {
        position: absolute;
        top: 14px;
        right: 14px;
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 8px;
        background: rgba(255, 255, 255, .08);
        color: #ffffff;
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }

    .admin-brand {
        width: 230px;
        max-width: calc(100% - 50px);
        margin: 4px 0 24px;
    }

    .admin-sidebar-collapsed .admin-brand {
        width: 230px;
        margin: 4px 0 24px;
    }

    .admin-sidebar-tools {
        display: none;
    }

    .admin-nav {
        display: grid;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .admin-nav a {
        min-height: 44px;
        padding: 0 14px;
        white-space: normal;
        font-size: 14px;
    }

    .admin-sidebar-collapsed .admin-nav a {
        justify-content: flex-start;
        width: auto;
        min-height: 44px;
        margin: 0;
        padding: 0 14px;
        overflow: visible;
        color: #d3dded;
    }

    .admin-sidebar-collapsed .admin-nav a::before {
        margin-right: 10px;
        color: inherit;
    }

    .admin-sidebar-collapsed .admin-subnav {
        display: grid;
    }

    .admin-subnav {
        margin-left: 22px;
        padding-left: 12px;
    }

    .admin-subnav a {
        min-height: 38px;
        font-size: 13px;
    }

    .admin-main {
        width: 100%;
        max-width: 100vw;
        padding: 12px;
        overflow-x: hidden;
    }

    .admin-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        margin-bottom: 12px;
        padding: 14px;
    }

    .admin-topbar .admin-profile-menu {
        display: none;
    }

    .admin-topbar h1 {
        font-size: 24px;
        line-height: 1.1;
        margin-top: 2px;
    }

    .admin-top-actions {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .admin-top-actions .button,
    .admin-topbar input[type="submit"],
    .admin-topbar a.button {
        width: auto;
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }

    .admin-profile-menu {
        margin-left: auto;
    }

    .admin-mobile-profile {
        display: flex;
    }

    .admin-profile-trigger {
        min-height: 40px;
        gap: 8px;
        padding: 0 10px 0 7px;
        font-size: 14px;
        box-shadow: 0 8px 18px rgba(21, 35, 68, .08);
    }

    .admin-mobile-profile .admin-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .admin-mobile-profile .admin-profile-dropdown {
        right: 0;
        min-width: 180px;
    }

    .admin-profile-dropdown a {
        min-height: 38px;
        font-size: 13px;
        padding-right: 10px;
    }

    .admin-profile-dropdown {
        right: 0;
        min-width: 190px;
    }

    .admin-top-actions .button.secondary {
        background: #f8fafc;
    }

    .admin-top-actions .button.primary,
    .admin-topbar > .button.primary {
        background: #101828;
    }

    .admin-panel {
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
        overflow: hidden;
    }

    .metric-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metric-card {
        padding: 14px 12px;
    }

    .metric-card strong {
        font-size: 26px;
    }

    .table-wrap {
        width: 100%;
        max-width: calc(100vw - 24px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 860px;
    }

    .compact-table {
        min-width: 620px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 9px;
        font-size: 13px;
    }

    .grid-action {
        display: block;
        width: 100%;
        margin: 3px 0;
        padding: 0 8px;
    }

    .application-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-panel,
    .application-filter {
        grid-template-columns: 1fr;
        padding: 12px;
    }

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

    .insight-card {
        min-height: 86px;
        padding: 14px;
    }

    .insight-card strong {
        font-size: 28px;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions .button {
        min-height: 44px;
    }

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

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

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

    .application-form .button {
        width: 100%;
    }

    .summary-pill {
        justify-content: center;
        width: 100%;
    }

    .detail-grid > div {
        min-height: auto;
    }

    .resume-header {
        flex-direction: column;
    }

    .resume-status {
        text-align: left;
    }

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