:root {
    --muast-blue: #13357b;
    --muast-blue-dark: #0f2a63;
    --muast-green: #3ba94a;
    --muast-gold: #f0a500;
    --muast-gold-hover: #d99200;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f1f4fa;
    --white: #ffffff;
    --danger: #dc3545;
    --sidebar-w: 260px;
    --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(19, 53, 123, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
    --focus-ring: 0 0 0 4px rgba(19, 53, 123, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Public navbar */
.jobs-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.jobs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jobs-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.jobs-brand-text strong {
    display: block;
    color: var(--muast-blue);
    font-size: 1.1rem;
}

.jobs-brand-text span {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--muast-blue);
    color: var(--white) !important;
}

.btn-primary:hover { background: var(--muast-blue-dark); }

.btn-gold {
    background: var(--muast-gold);
    color: var(--white) !important;
}

.btn-gold:hover { background: var(--muast-gold-hover); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover { background: #f8fafc; }

.btn-sm { padding: 7px 14px; font-size: 0.85rem; }

/* Hero */
.jobs-hero {
    background:
        radial-gradient(ellipse 70% 80% at 90% 10%, rgba(240, 165, 0, 0.18), transparent 55%),
        linear-gradient(135deg, var(--muast-blue) 0%, #1a4a9e 100%);
    color: var(--white);
    padding: 56px 24px 64px;
}

.jobs-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.jobs-kicker {
    display: inline-block;
    background: rgba(240, 165, 0, 0.2);
    color: #ffd56a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.jobs-hero h1 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 16ch;
}

.jobs-hero p {
    margin: 0;
    max-width: 62ch;
    line-height: 1.7;
    opacity: 0.95;
    font-size: 1.05rem;
}

.jobs-container {
    max-width: 1100px;
    margin: -32px auto 48px;
    padding: 0 24px;
}

.jobs-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(19, 53, 123, 0.08);
    padding: 28px;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    color: var(--muast-blue);
}

.section-accent {
    width: 80px;
    height: 4px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--muast-green), var(--muast-blue));
    border-radius: 999px;
}

.notice-box {
    background: #edf9f0;
    border: 1px solid #c8ebd0;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0 28px;
}

.notice-box h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--muast-blue);
}

.notice-box p {
    margin: 0;
    line-height: 1.6;
}

.jobs-intro {
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

.openings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 18px;
}

.openings-title {
    margin: 0;
    color: var(--muast-blue);
    font-size: 1.25rem;
}

.openings-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.openings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opening-card {
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.opening-card:hover,
.opening-card.is-open {
    border-color: #c7d7f5;
    box-shadow: 0 8px 24px rgba(19, 53, 123, 0.08);
}

.opening-card-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
}

.opening-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--muast-blue);
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.opening-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 800;
    color: var(--muast-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.opening-title-text {
    text-transform: capitalize;
    line-height: 1.3;
}

.opening-toggle i {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.opening-toggle.is-open i {
    transform: rotate(180deg);
}

.opening-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.opening-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.opening-meta i {
    color: #94a3b8;
    width: 14px;
    text-align: center;
}

.opening-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.opening-apply-btn {
    white-space: nowrap;
}

.opening-details {
    padding: 0 18px 18px 66px;
    color: var(--muted);
    line-height: 1.6;
}

.opening-details[hidden] {
    display: none !important;
}

.opening-details-footer {
    margin-top: 8px;
}

.openings-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
}

.openings-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--muast-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.openings-empty h4 {
    margin: 0 0 6px;
    color: var(--muast-blue);
}

.openings-empty p {
    margin: 0;
    color: var(--muted);
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th,
.jobs-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.jobs-table th {
    text-align: left;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-title-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--muast-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.job-details {
    display: none;
    margin-top: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.job-details.open { display: block; }

.job-detail-line {
    margin: 0 0 14px;
    line-height: 1.6;
}

.job-detail-heading {
    margin: 0 0 8px;
    color: var(--muast-blue);
    font-size: 0.95rem;
}

.job-detail-body {
    margin: 0 0 16px;
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
}

.job-detail-body:last-child {
    margin-bottom: 0;
}

.deadline-text {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 8px;
}

@media (max-width: 720px) {
    .opening-card-main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .opening-cta {
        grid-column: 1 / -1;
    }

    .opening-apply-btn {
        width: 100%;
        justify-content: center;
    }

    .opening-details {
        padding-left: 18px;
    }
}

/* Login split */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-hero {
    background: var(--muast-blue);
    color: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 12px 0;
    letter-spacing: -0.02em;
    max-width: 12ch;
}

.login-hero p {
    line-height: 1.7;
    opacity: 0.95;
    max-width: 520px;
}

.login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.login-stats div {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(19, 53, 123, 0.1);
}

.auth-card {
    max-width: 460px;
}

.login-brand {
    margin-bottom: 20px;
}

.login-brand img {
    width: 52px;
    height: 52px;
}

.login-title {
    margin: 0 0 6px;
    color: var(--muast-blue);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--muted);
    margin: 0 0 20px;
}

.login-footer-note {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
}

.login-footer-note a {
    color: var(--muast-blue);
    font-weight: 700;
}

.login-forgot {
    margin: -6px 0 16px;
    text-align: right;
}

.login-forgot a {
    color: var(--muast-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.users-page {
    max-width: 980px;
}

.users-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.users-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muast-gold-hover);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.users-title {
    margin: 0 0 6px;
    color: var(--muast-blue);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.users-subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 46ch;
}

.users-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.users-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.users-stat-value {
    display: block;
    color: var(--muast-blue);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.users-stat-label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.users-roster {
    display: grid;
    gap: 12px;
}

.user-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px 12px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0;
    overflow: hidden;
}

.user-card.is-inactive {
    background: #f8fafc;
}

.user-card-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #13357b, #1a4a9e);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-name-row h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.user-email,
.user-joined {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.user-joined {
    font-size: 0.8rem;
    color: #94a3b8;
}

.users-you {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f0ff;
    color: var(--muast-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.user-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.user-badge.is-admin {
    background: #eef4ff;
    color: var(--muast-blue);
}

.user-badge.is-hr {
    background: #f1f5f9;
    color: #475569;
}

.user-badge.is-active {
    background: #e8f8ec;
    color: #2d7a36;
}

.user-badge.is-off {
    background: #f1f5f9;
    color: #64748b;
}

.user-card-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 0 -20px -12px;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
    flex-wrap: wrap;
}

.user-action-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.user-action-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.user-role-form,
.user-action-form {
    margin: 0;
}

.user-role-select,
.user-role-static,
.user-action-btn {
    height: 42px;
    box-sizing: border-box;
}

.user-role-select {
    width: 100%;
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    padding: 0 40px 0 14px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364758b' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 42px;
    cursor: pointer;
}

.user-role-select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: var(--focus-ring);
}

.user-role-static {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--muast-blue);
    font-size: 0.92rem;
    font-weight: 800;
    border: 1px solid #dbe7f8;
}

.user-action-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.user-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #d7e0ec;
    background: #fff;
    color: var(--muast-blue);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.user-action-btn.is-danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff5f5;
}

.user-action-btn.is-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.user-action-btn.is-success {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.user-action-btn.is-success:hover {
    background: #dcfce7;
}

@media (max-width: 720px) {
    .user-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-action-field,
    .user-role-select {
        width: 100%;
        min-width: 0;
    }

    .user-action-btns {
        margin-left: 0;
        width: 100%;
    }

    .user-action-btn {
        flex: 1;
    }
}

.users-empty-state {
    text-align: center;
    background: var(--white);
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 48px 24px;
    color: var(--muted);
}

.users-empty-state i {
    font-size: 1.8rem;
    color: var(--muast-blue);
    margin-bottom: 12px;
}

.users-empty-state h3 {
    margin: 0 0 6px;
    color: var(--muast-blue);
}

.users-empty-state p {
    margin: 0;
}

.users-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.users-modal-overlay.is-open,
.users-modal-overlay:not([hidden]) {
    display: flex;
}

.users-modal-overlay[hidden] {
    display: none !important;
}

.users-modal {
    position: relative;
    width: min(520px, 100%);
    background: var(--white);
    border-radius: 20px;
    padding: 28px 26px 24px;
    box-shadow: var(--shadow-lg);
}

.users-modal h3 {
    margin: 0 0 6px;
    color: var(--muast-blue);
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.users-modal-copy {
    margin: 0 0 18px;
    color: var(--muted);
}

.users-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.users-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .users-hero {
        flex-direction: column;
    }

    .users-stats {
        grid-template-columns: 1fr;
    }

    .user-card-main {
        grid-template-columns: auto 1fr;
    }

    .user-badges {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

.login-footer-link {
    text-align: center;
    margin-top: 10px;
}

.login-footer-link a {
    color: var(--muted);
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.interview-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.install-page:has(.interview-nav) {
    padding-top: 96px;
}

.interview-response-meta,
.interview-response-copy {
    color: var(--muted);
    line-height: 1.7;
}

.interview-response-meta {
    margin-top: 0;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    background: #f8fafc;
}

.form-textarea { min-height: 120px; resize: vertical; }

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.input-icon-wrap .form-control {
    padding-left: 42px;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-error { background: #fdecec; color: #9b1c1c; }
.alert-success { background: #e8f8ec; color: #1f6b28; }

/* Admin layout */
.admin-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-sidebar {
    background: var(--muast-blue);
    color: var(--white);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
}

.admin-user {
    text-align: center;
    margin-bottom: 28px;
}

.admin-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.admin-main {
    padding: 24px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(59, 169, 74, 0.06), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(19, 53, 123, 0.05), transparent 24%),
        var(--bg);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.6rem;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-topbar-left h1 {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.admin-topbar-menu {
    position: relative;
}

.admin-topbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-topbar-btn:hover,
.admin-topbar-btn[aria-expanded="true"] {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--muast-blue);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.admin-topbar-btn-user {
    padding-right: 10px;
}

.admin-topbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--white);
}

.admin-topbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--muast-blue), #2563b8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-topbar-user-avatar-lg {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.admin-topbar-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.admin-topbar-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
}

.admin-topbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    width: min(340px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.admin-topbar-dropdown[hidden] {
    display: none !important;
}

.admin-topbar-dropdown-user {
    width: min(280px, calc(100vw - 32px));
}

.admin-topbar-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.admin-topbar-dropdown-head strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.admin-topbar-dropdown-head span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.admin-notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.admin-notify-list li + li {
    border-top: 1px solid #f1f5f9;
}

.admin-notify-list a {
    display: block;
    padding: 12px 16px;
    transition: background 0.15s ease;
}

.admin-notify-list a:hover {
    background: #f8fafc;
}

.admin-notify-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.admin-notify-meta {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.admin-topbar-dropdown-footer {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muast-blue);
    text-align: center;
}

.admin-topbar-dropdown-footer:hover {
    background: #eef4ff;
}

.admin-topbar-empty {
    margin: 0;
    padding: 22px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.admin-topbar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.admin-topbar-user-card strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    text-transform: capitalize;
}

.admin-topbar-user-card span {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-word;
}

.admin-topbar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}

.admin-topbar-link:first-of-type {
    border-top: 0;
}

.admin-topbar-link:hover {
    background: #f8fafc;
    color: var(--muast-blue);
}

.admin-topbar-link-danger {
    color: #b91c1c;
}

.admin-topbar-link-danger:hover {
    background: #fef2f2;
    color: #991b1b;
}

.admin-topbar-icon {
    color: var(--muted);
}

.admin-topbar-icon-user {
    font-size: 1.4rem;
}

.admin-menu-btn {
    display: none !important;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--muast-blue);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-menu-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.admin-sidebar-close {
    display: none !important;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.admin-logout-btn {
    width: 100%;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.admin-cache-bar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
}

.admin-cache-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--muast-blue);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(19, 53, 123, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-cache-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(19, 53, 123, 0.16);
}

.jobs-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10060;
    max-width: min(360px, calc(100vw - 36px));
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(19, 53, 123, 0.18);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.jobs-toast-success {
    background: #e8f8ec;
    border: 1px solid #c8ebd0;
    color: #1f6b28;
}

.jobs-toast.is-hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

@media (max-width: 576px) {
    .admin-cache-bar {
        right: 12px;
        bottom: 12px;
    }

    .jobs-toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(19, 53, 123, 0.06);
}

.stat-card.primary {
    background: var(--muast-blue);
    color: var(--white);
}

.stat-card .label {
    font-size: 0.82rem;
    color: var(--muted);
}

.stat-card.primary .label { color: rgba(255,255,255,0.8); }

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 6px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: var(--white);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(19, 53, 123, 0.06);
}

.settings-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 980px;
}

.settings-hero {
    background: linear-gradient(135deg, var(--muast-blue) 0%, #1a4a9e 55%, #2563b8 100%);
    border-radius: 18px;
    padding: 24px 28px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(19, 53, 123, 0.18);
}

.settings-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.settings-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.settings-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-card h3 {
    margin: 0 0 6px;
    color: var(--muast-blue);
}

.settings-card-copy {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-hero {
        padding: 20px;
    }

    .settings-title {
        font-size: 1.35rem;
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-open { background: #e8f8ec; color: #1f6b28; }
.badge-closed { background: #fdecec; color: #9b1c1c; }
.badge-pending { background: #fff4e5; color: #b45309; }
.badge-shortlisted { background: #e8f0ff; color: #1d4ed8; }
.badge-rejected { background: #fde8ef; color: #be185d; }

.pipeline-bar {
    height: 10px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.pipeline-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.pipeline-pending span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pipeline-shortlisted span { background: linear-gradient(90deg, #6366f1, #818cf8); }
.pipeline-rejected span { background: linear-gradient(90deg, #ec4899, #f472b6); }

.admin-form-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.admin-form-panel {
    width: 100%;
    max-width: 760px;
}

.post-job-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 860px;
}

.post-job-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--muast-blue) 0%, #1a4a9e 55%, #2563b8 100%);
    border-radius: 18px;
    padding: 24px 28px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(19, 53, 123, 0.18);
}

.post-job-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.post-job-back:hover {
    color: #fff;
}

.post-job-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.post-job-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    max-width: 42rem;
    line-height: 1.5;
}

.post-job-hero-btn {
    align-self: center;
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: transparent !important;
    color: var(--muast-blue) !important;
}

.post-job-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.post-choice-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(19, 53, 123, 0.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.post-choice-card:hover {
    transform: translateY(-2px);
    border-color: #c7d7f5;
    box-shadow: 0 10px 24px rgba(19, 53, 123, 0.1);
    color: inherit;
}

.post-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e8f0ff;
    color: var(--muast-blue);
    font-size: 1.15rem;
}

.post-choice-card strong {
    font-size: 1.05rem;
    color: var(--muast-blue);
}

.post-choice-card span:last-child {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.import-vacancy-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--muast-blue);
    cursor: pointer;
}

.import-vacancy-check input {
    width: 18px;
    height: 18px;
}

@media (max-width: 700px) {
    .post-choice-grid {
        grid-template-columns: 1fr;
    }
}

.post-job-card {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(19, 53, 123, 0.04);
    overflow: hidden;
}

.post-job-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.post-job-step {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--muast-blue);
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-job-card-head h3 {
    margin: 0 0 2px;
    font-size: 1rem;
    color: #0f172a;
}

.post-job-card-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.post-job-fields {
    padding: 18px;
}

.post-job-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.post-job-hint {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
}

.post-job-status {
    width: auto;
}

.post-job-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0 8px;
}

.post-job-actions .btn {
    min-width: 140px;
}

@media (max-width: 700px) {
    .post-job-hero {
        padding: 20px;
    }

    .post-job-title {
        font-size: 1.35rem;
    }

    .post-job-row {
        grid-template-columns: 1fr;
    }

    .post-job-actions {
        flex-direction: column-reverse;
    }

    .post-job-actions .btn {
        width: 100%;
    }
}

/* Dashboard */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--muast-blue) 0%, #1a4a9e 55%, #245fae 100%);
    color: var(--white);
    box-shadow: 0 14px 40px rgba(19, 53, 123, 0.18);
    position: relative;
    overflow: hidden;
}

.dash-welcome::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.dash-welcome-kicker {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}

.dash-welcome-text h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.dash-welcome-text p {
    margin: 0;
    opacity: 0.92;
    max-width: 560px;
    line-height: 1.6;
}

.dash-welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dash-btn-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white) !important;
}

.dash-btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dash-stats .stat-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(19, 53, 123, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dash-stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.dash-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dash-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(19, 53, 123, 0.12);
}

.dash-stat:hover::before {
    opacity: 1;
}

.dash-stat-vacancies::before { background: var(--muast-blue); }
.dash-stat-open::before { background: var(--muast-green); }
.dash-stat-apps::before { background: #6366f1; }
.dash-stat-shortlisted::before { background: var(--muast-gold); }

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-stat-vacancies .dash-stat-icon { background: #e8f0ff; color: var(--muast-blue); }
.dash-stat-open .dash-stat-icon { background: #e8f8ec; color: #1f6b28; }
.dash-stat-apps .dash-stat-icon { background: #eef2ff; color: #6366f1; }
.dash-stat-shortlisted .dash-stat-icon { background: #fff7e6; color: #b45309; }

.dash-stat .value {
    font-size: 2.1rem;
    line-height: 1;
    color: var(--text);
}

.dash-stat-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.dash-panel {
    border: 1px solid rgba(19, 53, 123, 0.06);
    transition: box-shadow 0.25s ease;
}

.dash-panel:hover {
    box-shadow: 0 12px 32px rgba(19, 53, 123, 0.08);
}

.dash-panel-title {
    margin: 0;
    color: var(--muast-blue);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-panel-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.dash-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-feed-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dash-feed-item:hover {
    background: #f8fafc;
    border-color: #e8edf5;
    transform: translateX(4px);
}

.dash-feed-icon,
.dash-feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-feed-icon-job {
    background: linear-gradient(135deg, #e8f0ff, #dbeafe);
    color: var(--muast-blue);
}

.dash-feed-avatar {
    background: linear-gradient(135deg, var(--muast-blue), #245fae);
    color: var(--white);
}

.dash-feed-content strong {
    display: block;
    margin-bottom: 2px;
}

.dash-feed-content span,
.dash-feed-content small {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.dash-feed-content small {
    margin-top: 2px;
    font-size: 0.78rem;
}

.dash-feed-meta {
    text-align: right;
}

.dash-feed-meta time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

.dash-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--muast-blue);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.dash-see-all:hover {
    gap: 12px;
}

.dash-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--muted);
}

.dash-empty i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.dash-empty-inline {
    padding: 20px;
}

.dash-pipeline-panel {
    margin-top: 20px;
}

.dash-pipeline-total {
    background: #f1f5f9;
    color: var(--muast-blue);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.dash-pipeline-chart {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
}

.dash-donut {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        #f59e0b 0 calc(var(--pending) * 1%),
        #6366f1 calc(var(--pending) * 1%) calc((var(--pending) + var(--shortlisted)) * 1%),
        #ec4899 calc((var(--pending) + var(--shortlisted)) * 1%) 100%
    );
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(19, 53, 123, 0.1);
    animation: dashDonutIn 0.8s ease;
}

@keyframes dashDonutIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dash-donut-hole {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.dash-donut-hole strong {
    font-size: 1.5rem;
    color: var(--muast-blue);
}

.dash-donut-hole span {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dash-legend-item:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-all { background: var(--muast-blue); }
.dot-pending { background: #f59e0b; }
.dot-shortlisted { background: #6366f1; }
.dot-rejected { background: #ec4899; }

.dash-pipeline-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-pipeline-row {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.dash-pipeline-row:hover,
.dash-pipeline-row.is-hover,
.dash-pipeline-row.is-highlighted {
    background: #f8fafc;
    border-color: #e8edf5;
}

.dash-pipeline-row.is-dimmed {
    opacity: 0.45;
}

.dash-pipeline-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.dash-pipeline-row-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.dash-pipeline-row-head i {
    color: var(--muted);
}

@media (max-width: 992px) {
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-pipeline-chart {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .dash-feed-item {
        grid-template-columns: auto 1fr;
    }

    .dash-feed-meta {
        grid-column: 2;
        text-align: left;
        margin-top: 4px;
    }
}

.vacancies-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.vacancies-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--muast-blue) 0%, #1a4a9e 55%, #2563b8 100%);
    border-radius: 18px;
    padding: 24px 28px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(19, 53, 123, 0.18);
}

.vacancies-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.vacancies-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vacancies-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.vacancies-post-btn {
    align-self: center;
    white-space: nowrap;
}

.vacancies-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    box-shadow: 0 2px 10px rgba(19, 53, 123, 0.04);
}

.vacancies-search-wrap i {
    color: #94a3b8;
}

.vacancies-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
}

.vacancies-search-clear {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muast-blue);
    white-space: nowrap;
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vacancy-card {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(19, 53, 123, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.vacancy-card:hover {
    border-color: #c7d7f5;
    box-shadow: 0 10px 28px rgba(19, 53, 123, 0.1);
    transform: translateY(-1px);
}

.vacancy-card-open {
    border-left: 3px solid #22c55e;
}

.vacancy-card-closed {
    border-left: 3px solid #94a3b8;
}

.vacancy-card-top {
    padding: 18px 18px 14px;
}

.vacancy-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.vacancy-card-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--muast-blue);
    line-height: 1.3;
    text-transform: capitalize;
}

.vacancy-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vacancy-status-open {
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.vacancy-status-expired {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.vacancy-status-closed {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.vacancies-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.vacancies-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.vacancies-filter:hover {
    border-color: var(--muast-blue);
    color: var(--muast-blue);
}

.vacancies-filter.is-active {
    background: var(--muast-blue);
    border-color: var(--muast-blue);
    color: #fff;
}

.badge-expired {
    background: #fff7ed;
    color: #c2410c;
}

.vacancy-card-expired {
    opacity: 0.92;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.vacancy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vacancy-meta i {
    color: #94a3b8;
    width: 14px;
    text-align: center;
}

.vacancy-excerpt {
    margin: 12px 0 0;
    color: #64748b;
    line-height: 1.55;
    font-size: 0.92rem;
}

.vacancy-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
}

.vacancy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vacancy-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vacancy-action:hover {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: var(--muast-blue);
}

.vacancy-action-danger {
    color: #b91c1c;
}

.vacancy-action-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.vacancy-apps {
    color: #64748b;
    font-size: 0.85rem;
}

.vacancy-apps strong {
    color: var(--muast-blue);
    font-size: 1rem;
}

.vacancies-empty {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(19, 53, 123, 0.04);
}

.vacancies-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--muast-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.vacancies-empty h3 {
    margin: 0 0 8px;
    color: var(--muast-blue);
}

.vacancies-empty p {
    margin: 0 0 16px;
    color: var(--muted);
}

.vacancy-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.status-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.status-toggle label {
    padding: 10px 18px;
    cursor: pointer;
    background: #f8fafc;
}

.status-toggle input { display: none; }

.status-toggle input:checked + span {
    background: #e8f0ff;
    color: var(--muast-blue);
    font-weight: 700;
}

.status-toggle label span { display: block; padding: 10px 18px; margin: -10px -18px; }

/* Application wizard */
.apply-page {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(19, 53, 123, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 169, 74, 0.08), transparent 50%),
        var(--bg);
    min-height: 100vh;
}

.apply-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.apply-nav-brand .jobs-brand-text strong {
    font-size: 1.05rem;
}

.apply-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--muast-blue);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.apply-nav-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.apply-hero {
    background:
        linear-gradient(135deg, rgba(15, 42, 99, 0.94) 0%, rgba(19, 53, 123, 0.92) 48%, rgba(26, 74, 158, 0.9) 100%),
        linear-gradient(120deg, #0f2a63, #1a4a9e);
    color: var(--white);
    padding: 36px 24px 42px;
    position: relative;
    overflow: hidden;
}

.apply-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -40%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 165, 0, 0.22), transparent 68%);
    pointer-events: none;
}

.apply-hero-inner {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.apply-hero-kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(240, 165, 0, 0.2);
    color: #ffd56a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.apply-hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.apply-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.apply-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
    font-weight: 600;
}

.apply-wrap {
    max-width: 920px;
    margin: -28px auto 56px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.apply-progress-panel {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-lg);
    padding: 18px 18px 8px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-label #stepName {
    color: var(--muast-blue);
    font-weight: 800;
}

.progress-track {
    height: 8px;
    background: #e8edf5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--muast-blue), var(--muast-green));
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.upload-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.upload-progress-overlay[hidden] {
    display: none !important;
}

.upload-progress-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.upload-progress-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6f0;
    color: var(--muast-green, #2d7a36);
    font-size: 1.35rem;
}

.upload-progress-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #1f2937;
}

.upload-progress-card p {
    margin: 0 0 1.25rem;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.95rem;
}

.upload-progress-track {
    height: 12px;
    background: #e8edf5;
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-track span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--muast-blue, #1e3a5f), var(--muast-green, #2d7a36));
    border-radius: 999px;
    transition: width 0.2s ease;
}

.upload-progress-track.is-processing span {
    width: 100% !important;
    background-size: 200% 100%;
    animation: upload-progress-pulse 1.2s ease-in-out infinite;
}

@keyframes upload-progress-pulse {
    0% { background-position: 100% 0; opacity: 0.75; }
    50% { background-position: 0 0; opacity: 1; }
    100% { background-position: 100% 0; opacity: 0.75; }
}

.upload-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .upload-progress-track.is-processing span {
        animation: none;
        opacity: 1;
    }

    .progress-track span {
        transition: none;
    }

    .apply-card {
        animation: none;
    }
}

.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 4px;
}

.stepper-item {
    flex: 1;
    text-align: center;
    color: var(--muted);
    min-width: 0;
    position: relative;
}

.stepper-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.stepper-item.done:not(:last-child)::after {
    background: var(--muast-green);
}

.stepper-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    background: #eef2f7;
    color: var(--muted);
    font-weight: 800;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stepper-num {
    font-size: 0.85rem;
    line-height: 1;
}

.stepper-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.stepper-item.done .stepper-dot {
    background: var(--muast-green);
    color: var(--white);
}

.stepper-item.active .stepper-dot {
    background: var(--muast-gold);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.2);
}

.stepper-item.active .stepper-label {
    color: var(--muast-blue);
}

.stepper-item.done .stepper-label {
    color: #166534;
}

@media (max-width: 720px) {
    .stepper-item:not(.active) .stepper-label {
        display: none;
    }

    .stepper-item.active {
        flex: 1.6;
    }

    .stepper-label {
        font-size: 0.8rem;
    }

    .stepper-item:not(:last-child)::after {
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
    }
}

.apply-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.9);
    animation: apply-card-in 0.35s ease;
}

@keyframes apply-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.apply-step-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}

.apply-step-head h2 {
    margin: 0 0 6px;
    color: var(--muast-blue);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.apply-step-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 54ch;
}

.req { color: #c2410c; font-weight: 800; }

.field-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 8px 0 0;
    line-height: 1.45;
}

.field-hint-tight {
    margin: 0 0 12px;
}

.apply-card .form-group {
    margin-bottom: 18px;
}

.apply-card .form-control,
.apply-card .form-select,
.apply-card .form-textarea {
    border-radius: 12px;
    border-color: #d7e0ec;
    min-height: 46px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-card .form-textarea {
    min-height: 110px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.apply-card .form-control:focus,
.apply-card .form-select:focus,
.apply-card .form-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: var(--focus-ring);
}

.apply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
    flex-wrap: wrap;
}

.apply-footer-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.step-counter {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.apply-form-error {
    margin-top: 16px;
}

.apply-form-error[hidden] {
    display: none !important;
}

.apply-trust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 2px 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.apply-trust i {
    color: var(--muast-blue);
    margin-top: 2px;
}

.btn-add-block {
    margin-top: 4px;
}

.qual-block {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 16px 14px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.qual-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef6;
}

.qual-block-head strong {
    color: var(--muast-blue);
    font-size: 0.95rem;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row-two .form-group {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .form-row-two {
        grid-template-columns: 1fr;
    }

    .form-row-two .form-group {
        margin-bottom: 16px;
    }

    .form-row-two .form-group:last-child {
        margin-bottom: 0;
    }

    .apply-card {
        padding: 22px 18px 18px;
    }

    .apply-hero h1 {
        max-width: none;
    }
}

.screening-group {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
}

.screening-group legend {
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0;
}

.yesno-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.yesno-group label {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.yesno-group label:hover {
    border-color: #cbd5e1;
}

.yesno-group input { display: none; }

.yesno-group input:checked + span {
    display: block;
    font-weight: 800;
    color: var(--muast-blue);
}

.yesno-group label:has(input:checked) {
    border-color: var(--muast-blue);
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px rgba(19, 53, 123, 0.08);
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #c9d7ea;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.file-upload:hover,
.file-upload.is-dragover {
    border-color: #93c5fd;
    background: #f0f7ff;
    box-shadow: var(--focus-ring);
}

.file-upload.has-file {
    border-style: solid;
    border-color: #86efac;
    background: #f0fdf4;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #e8f0ff;
    color: var(--muast-blue);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.file-upload-title {
    font-weight: 800;
    color: var(--muast-blue);
    font-size: 1rem;
}

.file-upload-hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 8px 12px;
    border-radius: 999px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    max-width: 100%;
    z-index: 1;
}

.file-chip[hidden] {
    display: none !important;
}

.file-chip em {
    font-style: normal;
    font-weight: 600;
    color: #64748b;
}

.apply-docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 4px;
}

@media (min-width: 992px) {
    .apply-card {
        padding: 32px 34px 26px;
    }

    .apply-docs-summary .summary-box {
        min-height: 100%;
    }

    .apply-docs-fields .form-textarea {
        min-height: 140px;
    }

    .file-upload {
        min-height: 180px;
    }
}

.summary-box {
    background: linear-gradient(180deg, #f3faf5 0%, #edf9f0 100%);
    border: 1px solid #c8ebd0;
    border-radius: 16px;
    padding: 18px;
    height: 100%;
    min-height: 220px;
}

.summary-box-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #166534;
}

.summary-box-head i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #dcfce7;
}

.summary-content {
    margin-top: 0;
    line-height: 1.5;
    color: var(--muted);
}

.summary-list {
    margin: 0;
    display: grid;
    gap: 10px;
}

.summary-list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d1e7d8;
}

.summary-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary-list dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.summary-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 768px) {
    .apply-docs-layout {
        grid-template-columns: 1fr;
    }

    .apply-docs-summary {
        order: 2;
    }

    .apply-docs-fields {
        order: 1;
    }

    .summary-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.show { display: flex; }

.modal-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f8ec;
    color: var(--muast-green);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}

.modal-copy {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.modal-cta {
    margin-top: 16px;
}

/* Legacy apply top/banner (kept for safety) */
.apply-top {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.apply-banner {
    background: var(--muast-blue);
    color: var(--white);
    padding: 18px 24px;
}

.apply-banner h2 { margin: 0 0 4px; }
.apply-banner p { margin: 0; opacity: 0.9; }

/* Applicant status confirm dialog — fixed on top of entire page */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10050;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.confirm-modal-overlay[hidden],
.confirm-modal-overlay[aria-hidden="true"]:not(.show) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.confirm-modal-overlay.show {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.confirm-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--white);
    border-radius: 20px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(19, 53, 123, 0.06),
        0 28px 70px rgba(15, 23, 42, 0.28);
    transform: translateY(24px) scale(0.94);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    border-top: 4px solid var(--muast-blue);
}

.confirm-modal-card.has-shortlist-fields {
    max-width: 520px;
    text-align: left;
}

.confirm-modal-card.has-shortlist-fields .confirm-modal-icon,
.confirm-modal-card.has-shortlist-fields .confirm-modal-kicker,
.confirm-modal-card.has-shortlist-fields .confirm-modal-title,
.confirm-modal-card.has-shortlist-fields .confirm-modal-message,
.confirm-modal-card.has-shortlist-fields .confirm-modal-note {
    text-align: center;
}

.shortlist-popup {
    margin: 18px 0 4px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    border: 1px solid #dbe7f5;
    text-align: left;
}

.shortlist-popup[hidden] {
    display: none !important;
}

.shortlist-popup-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4edf7;
}

.shortlist-popup-banner > i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f5eb;
    color: var(--muast-green);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.shortlist-popup-banner strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.shortlist-popup-banner span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.shortlist-popup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
}

.shortlist-popup-field:last-of-type {
    margin-bottom: 0;
}

.shortlist-popup-field > span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.shortlist-popup-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d5e0ee;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shortlist-popup-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.shortlist-popup-error {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

.shortlist-popup-error[hidden] {
    display: none !important;
}

.confirm-modal-overlay.show .confirm-modal-card {
    transform: translateY(0) scale(1);
}

.confirm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.confirm-modal-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.confirm-modal-card.is-accept {
    border-top-color: var(--muast-green);
}

.confirm-modal-card.is-reject {
    border-top-color: #e11d48;
}

.confirm-modal-card.is-success {
    border-top-color: var(--muast-green);
}

.confirm-modal-card.is-info {
    border-top-color: var(--muast-gold);
}

.confirm-modal-card.is-success .confirm-modal-icon {
    background: #e8f8ec;
    color: var(--muast-green);
}

.confirm-modal-card.is-info .confirm-modal-icon {
    background: #fff7e6;
    color: #b45309;
}

.confirm-modal-card.is-success .confirm-modal-title {
    color: #1f6b28;
}

.confirm-modal-card.is-info .confirm-modal-title {
    color: #b45309;
}

.confirm-modal-actions-single .btn {
    min-width: 160px;
}

.confirm-modal-actions .btn-primary.is-success {
    background: var(--muast-green);
}

.confirm-modal-actions .btn-primary.is-success:hover {
    background: #2f8f3c;
}

.confirm-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    background: #e8f0ff;
    color: var(--muast-blue);
}

.confirm-modal-card.is-accept .confirm-modal-icon {
    background: #e8f8ec;
    color: var(--muast-green);
}

.confirm-modal-card.is-reject .confirm-modal-icon {
    background: #ffe4e6;
    color: #e11d48;
}

.confirm-modal-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.confirm-modal-title {
    margin: 0 0 12px;
    font-size: 1.45rem;
    color: var(--muast-blue);
    line-height: 1.3;
}

.confirm-modal-card.is-reject .confirm-modal-title {
    color: #be123c;
}

.confirm-modal-message {
    margin: 0 0 14px;
    color: var(--text);
    line-height: 1.65;
    font-size: 0.98rem;
}

.confirm-modal-message strong {
    color: var(--muast-blue);
    font-weight: 700;
}

.confirm-modal-card.is-reject .confirm-modal-message strong {
    color: #be123c;
}

.confirm-modal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.confirm-modal-note i {
    color: var(--muast-blue);
    flex-shrink: 0;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-modal-actions .btn {
    min-width: 130px;
    border-radius: 12px;
    padding: 11px 20px;
}

.confirm-modal-actions .btn-primary.is-accept {
    background: var(--muast-green);
}

.confirm-modal-actions .btn-primary.is-accept:hover {
    background: #2f8f3c;
}

.confirm-modal-actions .btn-primary.is-reject {
    background: #e11d48;
}

.confirm-modal-actions .btn-primary.is-reject:hover {
    background: #be123c;
}

@media (max-width: 480px) {
    .confirm-modal-card {
        padding: 26px 20px 22px;
    }

    .confirm-modal-actions {
        flex-direction: column-reverse;
    }

    .confirm-modal-actions .btn {
        width: 100%;
    }
}

.install-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.install-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(19, 53, 123, 0.1);
}

.applicant-table {
    width: 100%;
    border-collapse: collapse;
}

.applicant-table th,
.applicant-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.status-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
}

.applicant-sort {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.applicant-sort .btn.is-active {
    background: var(--muast-blue);
    color: #fff;
    border-color: var(--muast-blue);
}

.rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(59, 169, 74, 0.12);
    color: #2d7a36;
    font-weight: 700;
    font-size: 0.9rem;
}

.applicant-table-ranked th:first-child,
.applicant-table-ranked td:first-child {
    width: 42px;
    text-align: center;
    font-weight: 700;
    color: var(--muast-blue);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.checkbox-inline input {
    width: auto;
}

.interview-response-card {
    text-align: center;
    max-width: 520px;
}

.interview-response-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.interview-response-icon.is-success {
    background: rgba(59, 169, 74, 0.15);
    color: #2d7a36;
}

.interview-response-icon.is-error {
    background: rgba(180, 35, 24, 0.12);
    color: #b42318;
}

.interview-response-status {
    margin: 12px 0;
    font-size: 1.1rem;
}

.interview-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.interview-badge.interview-yes {
    background: rgba(59, 169, 74, 0.15);
    color: #2d7a36;
}

.interview-badge.interview-no {
    background: rgba(180, 35, 24, 0.12);
    color: #b42318;
}

.interview-badge.interview-pending {
    background: rgba(19, 53, 123, 0.1);
    color: var(--muast-blue);
}

/* Admin desktop — keep sidebar + main in a stable two-column layout */
@media (min-width: 993px) {
    .admin-shell {
        display: grid;
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
        min-height: 100vh;
        overflow-x: hidden;
    }

    .admin-sidebar {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: auto;
        height: auto;
        transform: none;
        padding-top: 24px;
        box-shadow: none;
        z-index: auto;
        overflow-y: visible;
    }

    .admin-sidebar-overlay,
    .admin-sidebar-close,
    .admin-menu-btn {
        display: none !important;
    }

    .admin-topbar-left h1 {
        font-size: 1.6rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .panel-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-welcome {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 992px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-hero { display: none; }

    /* Admin: hamburger + slide-out sidebar */
    .admin-shell {
        display: block;
        min-height: 100vh;
    }

    .admin-menu-btn {
        display: inline-flex !important;
    }

    .admin-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    body.admin-nav-open .admin-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 88vw);
        z-index: 1001;
        padding-top: 56px;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
    }

    body.admin-nav-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: inline-flex !important;
    }

    .admin-main {
        padding: 16px;
        min-height: 100vh;
    }

    .admin-topbar {
        margin-bottom: 18px;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .panel-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-welcome {
        padding: 20px;
    }

    .dash-welcome-actions {
        width: 100%;
    }

    .dash-welcome-actions .btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .dash-stat {
        padding: 16px;
        gap: 12px;
    }

    .dash-stat .value {
        font-size: 1.75rem;
    }

    .panel {
        padding: 16px;
    }

    .vacancies-hero {
        padding: 20px;
    }

    .vacancies-title {
        font-size: 1.35rem;
    }

    .vacancy-card-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .vacancy-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vacancy-apps {
        order: -1;
    }

    .panel-header {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-welcome-actions {
        flex-direction: column;
    }

    .dash-welcome-actions .btn {
        width: 100%;
    }

    .dash-stat-hint {
        display: none;
    }

    .admin-topbar-user-name,
    .admin-topbar-chevron {
        display: none;
    }

    .admin-topbar-btn-user {
        padding: 0;
        width: 42px;
    }

    .applicant-table {
        min-width: 720px;
    }
}

@media (max-width: 640px) {
    .jobs-table thead { display: none; }

    .jobs-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px;
    }

    .jobs-table td {
        display: block;
        border: none;
        padding: 8px 0;
    }
}
