/* MyImkon — unified design system */
:root {
    --mi-brand-50: #f5f3ff;
    --mi-brand-100: #ede9fe;
    --mi-brand-500: #8b5cf6;
    --mi-brand-600: #7c3aed;
    --mi-brand-700: #6d28d9;
    --mi-slate-50: #f8fafc;
    --mi-slate-100: #f1f5f9;
    --mi-slate-200: #e2e8f0;
    --mi-slate-400: #94a3b8;
    --mi-slate-600: #475569;
    --mi-slate-800: #1e293b;
    --mi-slate-900: #0f172a;
    --mi-radius-sm: 0.75rem;
    --mi-radius-md: 1rem;
    --mi-radius-lg: 1.25rem;
    --mi-radius-xl: 1.5rem;
    --mi-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --mi-shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
    --mi-shadow-lg: 0 20px 40px -16px rgba(124, 58, 237, 0.18);
}

/* Premium Custom Scrollbars & Overflow styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
    transition: background var(--mi-transition);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Typography & base */
body.mi-theme-light {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--mi-slate-50);
    color: var(--mi-slate-800);
}

body.mi-theme-dark {
    font-family: 'Outfit', system-ui, sans-serif;
    background: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #020617 100%);
    color: #f1f5f9;
    min-height: 100vh;
}

/* Effects */
.glassmorphism {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, var(--mi-brand-500) 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg,
.mi-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, var(--mi-brand-600) 100%);
}

.mi-theme-dark .gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark theme panels */
.mi-theme-dark .glass-sidebar {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mi-theme-dark .glass-card {
    background: rgba(30, 41, 59, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mi-theme-dark .glass-input,
.mi-theme-dark .mi-input-dark {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    transition: border-color var(--mi-transition), box-shadow var(--mi-transition);
}

.mi-theme-dark .glass-input:focus,
.mi-theme-dark .mi-input-dark:focus {
    border-color: var(--mi-brand-500);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    outline: none;
}

.mi-theme-dark .sidebar-link {
    transition: all 0.25s ease;
}

.mi-theme-dark .sidebar-link.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.22) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-left: 4px solid var(--mi-brand-500);
    color: #fff;
}

.mi-theme-dark .neon-glow {
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.14);
}

/* Spinner */
.mi-spinner {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mi-spin 0.65s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

.mi-spinner-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 2px;
}

@keyframes mi-spin {
    to { transform: rotate(360deg); }
}

/* Bulk AI evaluation fullscreen loader */
.mi-bulk-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}

.mi-bulk-ai-overlay.hidden {
    display: none !important;
}

body.mi-bulk-ai-busy {
    overflow: hidden;
}

.mi-bulk-ai-overlay__card {
    width: 100%;
    max-width: 22rem;
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--mi-slate-200);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    text-align: center;
}

body.panel-theme-company.mi-theme-light .mi-bulk-ai-overlay__card,
body.mi-theme-dark .mi-bulk-ai-overlay__card {
    background: #fff;
}

.mi-bulk-ai-overlay__spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 3px;
    color: var(--mi-brand-600);
    margin: 0 auto 1.25rem;
    display: block;
}

.mi-bulk-ai-overlay__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mi-slate-900);
}

.mi-bulk-ai-overlay__text {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mi-slate-600);
    line-height: 1.45;
}

.mi-bulk-ai-overlay__hint {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--mi-slate-400);
}

/* Button loading state */
.btn-action.is-loading,
button.is-loading,
a.btn-action.is-loading {
    pointer-events: none;
    opacity: 0.88;
    cursor: wait;
}

.btn-action.is-loading .mi-btn-icon,
button.is-loading .mi-btn-icon {
    display: none;
}

/* Auth — to'liq ekran split (login / register) */
:root {
    --mi-public-header-h: 3.5rem;
}

@media (min-width: 768px) {
    :root {
        --mi-public-header-h: 4.5rem;
    }
}

body.mi-auth-fullpage {
    overflow: hidden;
    height: 100dvh;
}

body.mi-auth-fullpage .mi-site-footer,
body.mi-auth-fullpage .mi-bottom-nav {
    display: none !important;
}

body.mi-auth-fullpage .mi-app-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

body.mi-auth-fullpage .mi-public-header,
body.mi-auth-fullpage .mi-mobile-drawer,
body.mi-auth-fullpage .mi-mobile-drawer-backdrop {
    display: none !important;
}

.auth-split {
    /* login.mp4 — vertikal (9:16); ustun balandligi = 100dvh, kengligi = balandlik × nisbat */
    --auth-video-ratio: 9 / 16;
    flex: 1;
    min-height: 0;
    height: 100dvh;
    display: grid;
    /* 1) forma — qolgan joy; 2) video — faqat kontentga mos tor panel */
    grid-template-columns: minmax(0, 1fr) calc(100dvh * var(--auth-video-ratio));
    overflow: hidden;
    background: #ffffff;
}

.auth-split__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mi-slate-900);
    text-decoration: none;
    flex-shrink: 0;
}

.auth-split__logo:hover {
    color: var(--mi-brand-600);
}

.auth-split__logo-img {
    border-radius: 0.65rem;
    object-fit: contain;
}

.auth-split__form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(155deg, #f1f5f9 0%, #ffffff 42%, #faf5ff 78%, #eef2ff 100%);
}

.auth-split__form::before,
.auth-split__form::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(72px);
    opacity: 0.55;
}

.auth-split__form::before {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    left: -4rem;
    background: rgba(139, 92, 246, 0.22);
}

.auth-split__form::after {
    width: 18rem;
    height: 18rem;
    bottom: -5rem;
    right: 12%;
    background: rgba(99, 102, 241, 0.16);
}

.auth-split__form-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 54rem;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.auth-split__grid {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 900px) {
    .auth-split__grid {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
        gap: clamp(1.5rem, 4vw, 3rem);
    }
}

.auth-split__card-wrap {
    width: 100%;
    min-width: 0;
}

.auth-split__promo {
    min-width: 0;
}

.auth-split__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mi-brand-700);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 999px;
}

.auth-split__hero {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--mi-slate-900);
    max-width: 22rem;
}

.auth-split__lede {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--mi-slate-600);
    max-width: 26rem;
}

.auth-split__highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.125rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    max-width: 20rem;
}

.auth-split__highlight-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--mi-brand-600);
    color: #fff;
    font-size: 1.1rem;
}

.auth-split__highlight-title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mi-slate-500);
}

.auth-split__highlight-value {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mi-brand-700);
    line-height: 1.1;
}

.auth-split__highlight-note {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--mi-slate-500);
}

.auth-split__steps {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 28rem;
}

.auth-split__steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mi-slate-700);
    background: #fff;
    border: 1px solid var(--mi-slate-200);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-split__steps li span {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    background: var(--mi-brand-600);
}

.auth-split__features {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 28rem;
}

.auth-split__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.875rem;
    backdrop-filter: blur(8px);
}

.auth-split__feature-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--mi-brand-50);
    color: var(--mi-brand-600);
    font-size: 0.85rem;
}

.auth-split__feature strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mi-slate-800);
    line-height: 1.25;
}

.auth-split__feature small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--mi-slate-500);
    line-height: 1.3;
}

.auth-split__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    max-width: 28rem;
}

.auth-split__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mi-slate-600);
    background: #fff;
    border: 1px solid var(--mi-slate-200);
    border-radius: 999px;
}

.auth-split__chip i {
    color: var(--mi-brand-500);
    font-size: 0.7rem;
}

.auth-split__navlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    max-width: 28rem;
}

.auth-split__navlink {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mi-slate-600);
    text-decoration: none;
    transition: color var(--mi-transition);
}

.auth-split__navlink:hover {
    color: var(--mi-brand-600);
}

.auth-split__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.auth-split__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mi-slate-900);
    line-height: 1.2;
}

.auth-split__subtitle {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mi-slate-500);
    line-height: 1.45;
}

.auth-split__form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.auth-split__submit {
    margin-top: 0.25rem;
}

.auth-split__footer-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--mi-slate-500);
    margin: 0;
    padding-top: 0.25rem;
}

.auth-split__footer-link a {
    font-weight: 700;
    color: var(--mi-brand-600);
    text-decoration: none;
}

.auth-split__footer-link a:hover {
    text-decoration: underline;
}

.auth-card--split {
    max-width: none;
    width: 100%;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
}

.auth-card-icon--compact {
    width: 3rem;
    height: 3rem;
    margin: 0;
    flex-shrink: 0;
    font-size: 1.15rem;
    border-radius: 0.875rem;
}

.auth-card--split .mi-field {
    margin: 0;
}

.auth-card--split .mi-input {
    background: var(--mi-slate-50);
    border-color: var(--mi-slate-200);
}

.auth-card--split .mi-input:focus {
    background: #fff;
}

.auth-split__media {
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    background: #030712;
}

.auth-split__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Password show/hide */
.mi-input-wrap--toggle .mi-input--toggle {
    padding-right: 2.85rem;
}

.mi-input-toggle {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--mi-slate-400);
    cursor: pointer;
    border-radius: 0 var(--mi-radius-lg) var(--mi-radius-lg) 0;
    transition: color var(--mi-transition), background var(--mi-transition);
}

.mi-input-toggle:hover {
    color: var(--mi-brand-600);
    background: rgba(139, 92, 246, 0.06);
}

.mi-input-toggle:focus-visible {
    outline: 2px solid var(--mi-brand-500);
    outline-offset: -2px;
}

.mi-input-toggle[aria-pressed="true"] {
    color: var(--mi-brand-600);
}

@media (max-width: 767px) {
    body.mi-auth-fullpage {
        overflow: auto;
        height: auto;
        min-height: 100dvh;
    }

    body.mi-auth-fullpage .mi-app-main {
        overflow: visible;
        min-height: 100dvh;
    }

    .auth-split {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100dvh - var(--mi-bottom-nav-h) - var(--mi-safe-bottom));
    }

    .auth-split__media {
        display: none !important;
    }

    .auth-split__form {
        min-height: calc(100dvh - var(--mi-bottom-nav-h) - var(--mi-safe-bottom));
        padding: 1rem;
        padding-top: calc(1rem + var(--mi-safe-top));
        align-items: flex-start;
    }

    .auth-split__form-inner {
        max-height: none;
    }

    .auth-split__grid {
        grid-template-columns: 1fr;
    }

    .auth-split__card-wrap {
        order: -1;
    }

    .auth-split__hero {
        max-width: none;
    }

    .auth-split__features {
        grid-template-columns: 1fr;
    }

    .auth-split__promo {
        margin-top: 0.5rem;
    }
}

/* Auth layout (admin va boshqalar) */
.auth-page {
    min-height: calc(100vh - 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    z-index: 0;
    pointer-events: none;
}

.auth-page::before {
    width: 22rem;
    height: 22rem;
    top: 8%;
    left: 12%;
    background: rgba(139, 92, 246, 0.12);
}

.auth-page::after {
    width: 24rem;
    height: 24rem;
    bottom: 8%;
    right: 10%;
    background: rgba(99, 102, 241, 0.1);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    padding: 2rem 2rem 2.25rem;
    border-radius: var(--mi-radius-xl);
    border: 1px solid var(--mi-slate-200);
    box-shadow: var(--mi-shadow-lg);
}

.auth-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: var(--mi-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--mi-brand-50);
    color: var(--mi-brand-600);
    border: 1px solid var(--mi-brand-100);
}

.auth-card-icon.auth-card-icon--admin {
    background: #faf5ff;
    color: #7c3aed;
    border-color: #ede9fe;
}

/* Form controls (light) */
.mi-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mi-slate-400);
    margin-bottom: 0.5rem;
}

.mi-input-wrap {
    position: relative;
}

.mi-input-icon {
    position: absolute;
    inset-block: 0;
    left: 0;
    padding-left: 0.9rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--mi-slate-400);
    font-size: 0.9rem;
}

.mi-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mi-slate-800);
    background: #fff;
    border: 1px solid var(--mi-slate-200);
    border-radius: var(--mi-radius-lg);
    transition: border-color var(--mi-transition), box-shadow var(--mi-transition);
}

.mi-input:not(.mi-input--icon) {
    padding-left: 1rem;
}

.mi-input:focus {
    outline: none;
    border-color: var(--mi-brand-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.mi-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

textarea.mi-input,
select.mi-input {
    padding-left: 1rem;
}

/* Buttons */
.mi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--mi-radius-lg);
    padding: 0.875rem 1.5rem;
    transition: opacity var(--mi-transition), transform var(--mi-transition), box-shadow var(--mi-transition);
    border: none;
    cursor: pointer;
    line-height: 1.25;
}

.mi-btn:active:not(.is-loading) {
    transform: scale(0.98);
}

.mi-btn-primary {
    color: #fff;
    box-shadow: var(--mi-shadow-md);
}

.mi-btn-primary:hover:not(.is-loading) {
    opacity: 0.95;
}

.mi-btn-secondary {
    background: var(--mi-slate-100);
    color: var(--mi-slate-600);
    border: 1px solid var(--mi-slate-200);
}

.mi-btn-secondary:hover:not(.is-loading) {
    background: #e2e8f0;
}

.mi-btn-block {
    width: 100%;
}

.mi-theme-dark .mi-btn-primary-dark {
    background: #4f46e5;
    color: #fff;
}

.mi-theme-dark .mi-btn-primary-dark:hover:not(.is-loading) {
    background: #6366f1;
}

/* Content cards & page headers */
.mi-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--mi-slate-200);
    border-radius: var(--mi-radius-xl);
    box-shadow: var(--mi-shadow-md);
    padding: 2rem;
}

.mi-page-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--mi-slate-200);
}

.mi-page-header-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: var(--mi-radius-md);
    background: var(--mi-brand-50);
    color: var(--mi-brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.mi-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 28rem;
    margin: 0 auto 2.5rem;
}

.mi-step-active .mi-step-num {
    background: var(--mi-brand-600);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.mi-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--mi-slate-200);
    color: var(--mi-slate-600);
}

.mi-step-line {
    flex: 1;
    height: 2px;
    background: var(--mi-slate-200);
    margin: 0 1rem;
}

/* Navbar polish */
.mi-navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mi-nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mi-slate-600);
    transition: color var(--mi-transition), background var(--mi-transition), box-shadow var(--mi-transition);
}

.mi-nav-link:hover {
    color: var(--mi-brand-600);
}

/* Desktop header — Vakansiyalar / Kompaniyalar markazda */
@media (min-width: 768px) {
    .mi-header-inner {
        display: flex;
        align-items: center;
    }

    .mi-desktop-nav {
        gap: 0.35rem;
        padding: 0.3rem;
        background: var(--mi-slate-100);
        border: 1px solid var(--mi-slate-200);
        border-radius: 9999px;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .mi-desktop-nav .mi-nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.55rem 1.35rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--mi-slate-600);
        white-space: nowrap;
    }

    .mi-desktop-nav .mi-nav-link i {
        font-size: 0.8rem;
        opacity: 0.85;
    }

    .mi-desktop-nav .mi-nav-link:hover {
        color: var(--mi-brand-700);
        background: rgba(255, 255, 255, 0.65);
    }

    .mi-desktop-nav .mi-nav-link.is-active {
        color: var(--mi-brand-700);
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(124, 58, 237, 0.12);
    }

    .mi-desktop-nav .mi-nav-link.is-active i {
        color: var(--mi-brand-600);
        opacity: 1;
    }
}

.top-glow {
    box-shadow: 0 0 36px rgba(139, 92, 246, 0.12);
}

.animate-float {
    animation: mi-float 6s ease-in-out infinite;
}

@keyframes mi-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== Panel (Dashboard / Admin) ========== */
.panel-main {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

.sidebar-section-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    padding: 0.5rem 0.75rem 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: background var(--mi-transition), color var(--mi-transition);
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(51, 65, 85, 0.45);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-left: 3px solid #818cf8;
    padding-left: calc(0.85rem - 3px);
}

.panel-theme-admin .sidebar-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-left-color: #a78bfa;
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: opacity var(--mi-transition), transform var(--mi-transition);
}

.sidebar-cta:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.panel-theme-admin .sidebar-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.panel-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.panel-page-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: var(--mi-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.panel-theme-admin .panel-page-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.3);
}

.panel-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.panel-page-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.35rem;
    font-weight: 500;
    max-width: 36rem;
}

.panel-stat-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .panel-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.panel-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--mi-radius-lg);
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color var(--mi-transition), box-shadow var(--mi-transition);
}

.panel-stat:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.panel-stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: var(--mi-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.panel-stat-icon--indigo { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.2); }
.panel-stat-icon--purple { background: rgba(168, 85, 247, 0.12); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.2); }
.panel-stat-icon--emerald { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.2); }
.panel-stat-icon--amber { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.2); }

.panel-stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.panel-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
}

.panel-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--mi-radius-xl);
    padding: 1.5rem;
}

.panel-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.panel-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .panel-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.panel-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border-radius: var(--mi-radius-lg);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--mi-transition);
}

.panel-quick-link:hover {
    color: #fff;
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.panel-quick-link i {
    font-size: 1.25rem;
    color: #818cf8;
}

.panel-theme-admin .panel-quick-link:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
}

.panel-theme-admin .panel-quick-link i {
    color: #a78bfa;
}

.panel-table-wrap {
    overflow-x: auto;
    border-radius: var(--mi-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.panel-table thead tr {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-table th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.panel-table td {
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.panel-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.25);
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.panel-badge--active { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.25); }
.panel-badge--frozen { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.25); }
.panel-badge--blocked { background: rgba(244, 63, 94, 0.15); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.25); }

.panel-sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--mi-radius-md);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-sidebar-stat {
    text-align: center;
}

.panel-sidebar-stat strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.panel-sidebar-stat span {
    font-size: 0.5625rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.panel-help-tip {
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.5;
    padding: 0.75rem;
    border-radius: var(--mi-radius-md);
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}

.panel-help-tip i {
    color: #818cf8;
    margin-right: 0.25rem;
}

/* ========== Mobile app shell ========== */
:root {
    --mi-bottom-nav-h: 4.25rem;
    --mi-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mi-safe-top: env(safe-area-inset-top, 0px);
}

/* Footer faqat desktop */
.mi-site-footer {
    display: block;
}

.mi-panel-footer {
    display: block;
}

@media (max-width: 767px) {
    .mi-site-footer,
    .mi-panel-footer {
        display: none !important;
    }

    body.mi-mobile-app {
        padding-bottom: calc(var(--mi-bottom-nav-h) + var(--mi-safe-bottom));
        -webkit-tap-highlight-color: transparent;
        overscroll-behavior-y: none;
    }

    body.mi-mobile-app .mi-app-main {
        min-height: calc(100dvh - 3.5rem - var(--mi-bottom-nav-h) - var(--mi-safe-bottom));
    }

    /* Ommaviy sahifa header */
    .mi-public-header {
        height: 3.5rem;
        padding-top: var(--mi-safe-top);
    }

    .mi-public-header .mi-logo-text {
        font-size: 1.25rem;
    }

    .mi-public-header .mi-logo-img {
        height: 2.25rem;
        width: 2.25rem;
    }

    .mi-hide-mobile {
        display: none !important;
    }

    /* Toast mobil */
    .mi-toast-stack {
        top: calc(3.75rem + var(--mi-safe-top)) !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        max-width: none !important;
    }

    /* Panel shell */
    body.mi-mobile-app .panel-main {
        padding-bottom: 0.5rem;
    }

    body.mi-mobile-app main.panel-content-area {
        padding-bottom: 1rem !important;
    }

    .panel-page-header {
        margin-bottom: 1.25rem;
    }

    .panel-page-title {
        font-size: 1.35rem;
    }

    .panel-page-header .mi-btn {
        width: 100%;
    }

    .panel-quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .panel-stat {
        padding: 1rem;
    }

    .panel-stat-value {
        font-size: 1.5rem;
    }

    /* Sidebar mobil — to'liq ekran drawer */
    #sidebar-multi-level-sidebar {
        width: min(18rem, 88vw) !important;
        z-index: 60 !important;
        padding-top: calc(0.75rem + var(--mi-safe-top)) !important;
    }

    #sidebar-backdrop,
    .mi-mobile-drawer-backdrop {
        z-index: 55 !important;
    }

    body.mi-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Panel header mobil */
    .mi-panel-topbar {
        padding-top: calc(0.5rem + var(--mi-safe-top));
        min-height: 3.25rem;
    }

    /* Auth sahifalar */
    .auth-page {
        min-height: calc(100dvh - 3.5rem - var(--mi-bottom-nav-h) - var(--mi-safe-bottom));
        padding: 1.5rem 1rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    /* Inputlar — katta touch target */
    .mi-input,
    .glass-input,
    select.mi-input {
        min-height: 2.75rem;
        font-size: 16px; /* iOS zoom oldini olish */
    }

    /* Barcha select va input'larda iOS zoom oldini olish */
    select,
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="number"],
    textarea {
        font-size: 16px !important;
    }

    .mi-btn {
        min-height: 2.75rem;
    }

    /* Vakansiya kartalari — tugma doim ko'rinadigan */
    .mi-vacancy-card {
        min-height: auto !important;
        height: auto !important;
    }

    /* Home sahifasi vakansiya kartasi */
    .glassmorphism.flex.flex-col {
        height: auto !important;
        min-height: auto !important;
    }

    /* Navbar hamburger button — to'g'ri o'lcham */
    #mobile-public-open {
        min-width: 2.75rem;
        min-height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Statsitika grid mobile */
    .mi-list-page {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Mobil filter toggle hover ta'siri */
    #mobile-filter-toggle:active {
        background-color: #f8fafc;
    }
}

/* Pastki navigatsiya (ilova uslubi) */
.mi-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .mi-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        height: calc(var(--mi-bottom-nav-h) + var(--mi-safe-bottom));
        padding-bottom: var(--mi-safe-bottom);
        background: rgba(15, 23, 42, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
        align-items: stretch;
        justify-content: space-around;
    }

    .mi-bottom-nav--public {
        background: rgba(255, 255, 255, 0.94);
        border-top-color: rgba(226, 232, 240, 0.9);
        box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    }

    .mi-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.35rem 0.25rem;
        font-size: 0.625rem;
        font-weight: 600;
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item {
        color: #64748b;
    }

    .mi-bottom-nav__item i {
        font-size: 1.15rem;
    }

    .mi-bottom-nav__item.is-active {
        color: #a5b4fc;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item.is-active {
        color: #7c3aed;
    }

    .mi-bottom-nav--admin .mi-bottom-nav__item.is-active {
        color: #c4b5fd;
    }

    .mi-bottom-nav__item--fab {
        position: relative;
        top: -0.65rem;
    }

    .mi-bottom-nav__fab {
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: #fff;
        font-size: 1.1rem;
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
        border: 3px solid rgba(15, 23, 42, 0.95);
    }

    .mi-bottom-nav__item--fab.is-active .mi-bottom-nav__fab {
        transform: scale(1.05);
    }
}

/* Mobil drawer (ommaviy sahifa) */
.mi-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 55;
}

.mi-mobile-drawer-backdrop.hidden {
    display: none;
}

.mi-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(20rem, 90vw);
    z-index: 60;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: var(--mi-safe-top);
    display: flex;
    flex-direction: column;
}

.mi-mobile-drawer.-translate-x-full {
    transform: translateX(-100%);
}

.mi-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mi-mobile-drawer__close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    overflow-y: auto;
}

.mi-mobile-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: background 0.15s ease;
}

.mi-mobile-drawer__nav a:hover,
.mi-mobile-drawer__nav a:active {
    background: rgba(99, 102, 241, 0.15);
}

.mi-mobile-drawer__nav a i {
    width: 1.25rem;
    text-align: center;
    color: #818cf8;
}

/* Filtr — ochilib yopiladigan */
.mi-filter-collapse {
    overflow: hidden;
}

.mi-filter-collapse__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--mi-transition);
}

.mi-filter-collapse__trigger::-webkit-details-marker {
    display: none;
}

.mi-filter-collapse__trigger::marker {
    content: '';
}

.mi-filter-collapse__trigger:hover {
    background: rgba(139, 92, 246, 0.04);
}

.mi-filter-collapse__trigger-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.mi-filter-collapse__icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: var(--mi-brand-50);
    color: var(--mi-brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mi-filter-collapse__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mi-slate-800);
}

.mi-filter-collapse__subtitle {
    font-size: 0.75rem;
    color: var(--mi-slate-400);
    font-weight: 500;
    margin-top: 0.1rem;
}

.mi-filter-collapse__chevron {
    color: var(--mi-slate-400);
    font-size: 0.875rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mi-filter-collapse[open] .mi-filter-collapse__chevron {
    transform: rotate(180deg);
}

.mi-filter-collapse__badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: var(--mi-brand-100);
    color: var(--mi-brand-700);
    margin-left: 0.35rem;
}

.mi-filter-collapse__body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--mi-slate-200);
}

.mi-filter-collapse__body .mi-filter-form-inner {
    padding-top: 1.25rem;
}

/* Ro'yxat sahifalari (vakansiyalar, kompaniyalar) — mobil ixcham */
@media (max-width: 767px) {
    .mi-list-page {
        padding-top: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }

    .mi-list-page__hero {
        margin-bottom: 0.5rem !important;
    }

    .mi-list-page__title {
        font-size: 1.2rem !important;
        letter-spacing: -0.02em;
    }

    .mi-filter-collapse--compact {
        margin-bottom: 0.65rem !important;
        border-radius: var(--mi-radius-md) !important;
        box-shadow: var(--mi-shadow-sm) !important;
    }

    .mi-filter-collapse--compact .mi-filter-collapse__trigger {
        padding: 0.55rem 0.75rem;
    }

    .mi-filter-collapse--compact .mi-filter-collapse__icon-wrap {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.7rem;
        border-radius: 0.5rem;
    }

    .mi-filter-collapse--compact .mi-filter-collapse__title {
        font-size: 0.8125rem;
        line-height: 1.2;
    }

    .mi-filter-collapse--compact .mi-filter-collapse__subtitle {
        display: none;
    }

    .mi-filter-collapse--compact .mi-filter-collapse__body {
        padding: 0 0.75rem 0.75rem;
    }

    .mi-filter-collapse--compact .mi-filter-form-inner {
        padding-top: 0.65rem;
    }

    .mi-filter-collapse--compact .mi-filter-form-inner .grid {
        gap: 0.65rem !important;
    }

    .mi-filter-collapse--compact .mi-label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }

    .mi-filter-collapse--compact .mi-input {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.875rem;
        min-height: 2.5rem;
    }

    .mi-vacancy-card {
        padding: 0.85rem !important;
    }

    .mi-vacancy-card h3 {
        font-size: 1rem !important;
    }

    /* Home sahifasi glassmorphism vacancy kartasi - ariza tugmasi fix */
    .glassmorphism.flex.flex-col.justify-between {
        height: auto !important;
        min-height: unset !important;
    }

    .glassmorphism .pt-3.mt-auto {
        margin-top: auto !important;
    }

    /* Pastki nav: Ishlar markazda, Panel/Kirish va Kompaniya o'ngda */
    .mi-bottom-nav--public {
        --mi-bottom-nav-h: 3.65rem;
        display: grid;
        grid-template-columns: 1fr 1.2fr 1fr 1fr;
        align-items: stretch;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item {
        padding: 0.3rem 0.15rem;
        font-size: 0.5625rem;
        gap: 0.15rem;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item i {
        font-size: 1.05rem;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item--main {
        position: relative;
        color: var(--mi-brand-600);
        font-weight: 700;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item--main.is-active {
        color: var(--mi-brand-700);
    }

    .mi-bottom-nav--public .mi-bottom-nav__item--main::before {
        content: '';
        position: absolute;
        top: 0.2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 1.75rem;
        height: 3px;
        border-radius: 999px;
        background: var(--mi-brand-600);
        opacity: 0;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item--main.is-active::before {
        opacity: 1;
    }

    .mi-bottom-nav--public .mi-bottom-nav__item--side span {
        max-width: 3.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ========== Kompaniya paneli — Light soft (landing uslubi) ========== */
body.panel-theme-company.mi-theme-light {
    background: linear-gradient(160deg, #f8fafc 0%, #ffffff 42%, #f5f3ff 100%);
    color: var(--mi-slate-800);
}

body.panel-theme-company.mi-theme-light .glass-sidebar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--mi-slate-200);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

body.panel-theme-company.mi-theme-light .glass-card {
    background: #ffffff;
    border: 1px solid var(--mi-slate-200);
    box-shadow: var(--mi-shadow-sm);
}

body.panel-theme-company.mi-theme-light .glass-input,
body.panel-theme-company.mi-theme-light .mi-input {
    background: #ffffff;
    border: 1px solid var(--mi-slate-200);
    color: var(--mi-slate-800);
}

body.panel-theme-company.mi-theme-light .glass-input:focus,
body.panel-theme-company.mi-theme-light .mi-input:focus {
    border-color: var(--mi-brand-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    outline: none;
}

body.panel-theme-company.mi-theme-light .sidebar-section-label {
    color: var(--mi-slate-400);
}

body.panel-theme-company.mi-theme-light .sidebar-link {
    color: var(--mi-slate-600);
}

body.panel-theme-company.mi-theme-light .sidebar-link:hover {
    color: var(--mi-brand-700);
    background: var(--mi-brand-50);
}

body.panel-theme-company.mi-theme-light .sidebar-link.active {
    color: var(--mi-brand-700);
    background: linear-gradient(90deg, var(--mi-brand-50) 0%, rgba(245, 243, 255, 0.4) 100%);
    border-left: 3px solid var(--mi-brand-600);
    padding-left: calc(0.85rem - 3px);
}

body.panel-theme-company.mi-theme-light .sidebar-link i {
    color: var(--mi-brand-500);
}

body.panel-theme-company.mi-theme-light .sidebar-cta {
    background: linear-gradient(135deg, #6366f1 0%, var(--mi-brand-600) 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

body.panel-theme-company.mi-theme-light .panel-content-area {
    background: transparent;
}

body.panel-theme-company.mi-theme-light .panel-page-icon {
    background: var(--mi-brand-50);
    color: var(--mi-brand-600);
    border: 1px solid var(--mi-brand-100);
}

body.panel-theme-company.mi-theme-light .panel-page-title {
    color: var(--mi-slate-900);
}

body.panel-theme-company.mi-theme-light .panel-page-subtitle {
    color: var(--mi-slate-500);
}

body.panel-theme-company.mi-theme-light .panel-stat {
    background: #ffffff;
    border: 1px solid var(--mi-slate-200);
    box-shadow: var(--mi-shadow-sm);
}

body.panel-theme-company.mi-theme-light .panel-stat:hover {
    border-color: var(--mi-brand-100);
    box-shadow: var(--mi-shadow-md);
}

body.panel-theme-company.mi-theme-light .panel-stat-icon--indigo {
    background: var(--mi-brand-50);
    color: var(--mi-brand-600);
    border-color: var(--mi-brand-100);
}

body.panel-theme-company.mi-theme-light .panel-stat-icon--purple {
    background: #faf5ff;
    color: #9333ea;
    border-color: #e9d5ff;
}

body.panel-theme-company.mi-theme-light .panel-stat-icon--emerald {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

body.panel-theme-company.mi-theme-light .panel-stat-value {
    color: var(--mi-slate-900);
}

body.panel-theme-company.mi-theme-light .panel-stat-label {
    color: var(--mi-slate-500);
}

body.panel-theme-company.mi-theme-light .panel-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--mi-slate-200);
    box-shadow: var(--mi-shadow-sm);
}

body.panel-theme-company.mi-theme-light .panel-card-title {
    color: var(--mi-slate-900);
}

body.panel-theme-company.mi-theme-light .panel-quick-link {
    background: #ffffff;
    border: 1px solid var(--mi-slate-200);
    color: var(--mi-slate-600);
    box-shadow: var(--mi-shadow-sm);
}

body.panel-theme-company.mi-theme-light .panel-quick-link:hover {
    color: var(--mi-brand-700);
    border-color: var(--mi-brand-200);
    background: var(--mi-brand-50);
}

body.panel-theme-company.mi-theme-light .panel-quick-link i {
    color: var(--mi-brand-600);
}

body.panel-theme-company.mi-theme-light .panel-badge--active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

body.panel-theme-company.mi-theme-light .panel-inner-box {
    background: var(--mi-slate-50);
    border: 1px solid var(--mi-slate-200);
}

body.panel-theme-company.mi-theme-light .panel-table-wrap {
    border-color: var(--mi-slate-200);
}

body.panel-theme-company.mi-theme-light .panel-table thead tr {
    background: var(--mi-slate-50);
    border-bottom-color: var(--mi-slate-200);
}

body.panel-theme-company.mi-theme-light .panel-table th {
    color: var(--mi-slate-500);
}

body.panel-theme-company.mi-theme-light .panel-table td {
    color: var(--mi-slate-700);
    border-bottom-color: var(--mi-slate-100);
}

body.panel-theme-company.mi-theme-light .panel-table tbody tr:hover {
    background: var(--mi-brand-50);
}

body.panel-theme-company.mi-theme-light .panel-help-tip {
    background: var(--mi-slate-50);
    border-color: var(--mi-slate-200);
    color: var(--mi-slate-500);
}

body.panel-theme-company.mi-theme-light .panel-help-tip i {
    color: var(--mi-brand-600);
}

/* Ichki sahifalardagi qolgan dark klasslar */
body.panel-theme-company.mi-theme-light main .text-white {
    color: var(--mi-slate-900) !important;
}

body.panel-theme-company.mi-theme-light main .text-slate-200,
body.panel-theme-company.mi-theme-light main .text-slate-300 {
    color: var(--mi-slate-600) !important;
}

body.panel-theme-company.mi-theme-light main .text-slate-400 {
    color: var(--mi-slate-500) !important;
}

body.panel-theme-company.mi-theme-light main [class*="bg-slate-9"] {
    background-color: var(--mi-slate-50) !important;
    border-color: var(--mi-slate-200) !important;
}

body.panel-theme-company.mi-theme-light main [class*="border-slate-8"] {
    border-color: var(--mi-slate-200) !important;
}

body.panel-theme-company.mi-theme-light .mi-label {
    color: var(--mi-slate-500);
}

@media (max-width: 767px) {
    body.panel-theme-company.mi-theme-light .mi-bottom-nav--company {
        background: rgba(255, 255, 255, 0.96);
        border-top-color: var(--mi-slate-200);
        box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
    }

    body.panel-theme-company.mi-theme-light .mi-bottom-nav--company .mi-bottom-nav__item {
        color: var(--mi-slate-500);
    }

    body.panel-theme-company.mi-theme-light .mi-bottom-nav--company .mi-bottom-nav__item.is-active {
        color: var(--mi-brand-600);
    }

    body.panel-theme-company.mi-theme-light .mi-bottom-nav__fab {
        border-color: #ffffff;
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    }
}

/* Xato sahifalari (400, 403, 404, 500, 503) */
.mi-error-body {
    background: linear-gradient(160deg, var(--mi-slate-50) 0%, #fff 45%, var(--mi-brand-50) 100%);
}

.mi-error-card {
    box-shadow: var(--mi-shadow-lg);
}

.mi-error-code {
    font-size: clamp(4rem, 18vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--mi-brand-600), #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.35;
}

/* =====================================================
   MI-SELECT — Premium Custom Select Component
   ===================================================== */

.mi-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Trigger button */
.mi-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.15s ease;
    outline: none;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.mi-select-trigger:hover {
    border-color: #a78bfa;
    background: #faf5ff;
}

.mi-select-trigger.is-open,
.mi-select-trigger:focus-visible {
    border-color: var(--mi-brand-500);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
    background: #faf5ff;
}

.mi-select-trigger .mi-select-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.mi-select-trigger .mi-select-label {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mi-select-trigger .mi-select-label.placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.mi-select-trigger .mi-select-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.7rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-select-trigger.is-open .mi-select-chevron {
    transform: rotate(180deg);
    color: var(--mi-brand-500);
}

/* Dropdown panel */
.mi-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid #e2e8f0;
    border-radius: 1.125rem;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 16px 40px -8px rgba(124, 58, 237, 0.14);
    overflow: hidden;

    /* Animation default (closed) */
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.mi-select-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Search inside dropdown */
.mi-select-search-box {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #faf5ff;
}

.mi-select-search-box i {
    color: #a78bfa;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mi-select-search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e293b;
    font-family: inherit;
}

.mi-select-search-input::placeholder {
    color: #94a3b8;
}

/* Options list */
.mi-select-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.375rem;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.mi-select-options::-webkit-scrollbar {
    width: 4px;
}
.mi-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.mi-select-options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 99px;
}

/* Individual option */
.mi-select-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition:
        background 0.14s ease,
        color 0.14s ease,
        transform 0.1s ease;
    user-select: none;
}

.mi-select-option:hover {
    background: #f5f3ff;
    color: var(--mi-brand-600);
    transform: translateX(2px);
}

.mi-select-option.is-selected {
    background: linear-gradient(90deg, #ede9fe 0%, #f5f3ff 100%);
    color: var(--mi-brand-600);
    font-weight: 700;
}

.mi-select-option.is-placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
}

.mi-select-option .mi-select-opt-icon {
    font-size: 0.7rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
    color: inherit;
}

.mi-select-option .mi-select-check {
    margin-left: auto;
    opacity: 0;
    font-size: 0.7rem;
    color: var(--mi-brand-500);
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: scale(0.6);
}

.mi-select-option.is-selected .mi-select-check {
    opacity: 1;
    transform: scale(1);
}

/* No results */
.mi-select-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Hidden original select */
.mi-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Compact variant (for filter bars) */
.mi-select-wrapper.compact .mi-select-trigger {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    border-radius: 0.75rem;
}

.mi-select-wrapper.compact .mi-select-dropdown {
    border-radius: 0.875rem;
}

/* Focus animation ring */
@keyframes mi-select-ring {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.35); }
    100% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
}

.mi-select-trigger.just-selected {
    animation: mi-select-ring 0.4s ease-out forwards;
}

/* Overlay to close on outside click */
.mi-select-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
}
