@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
    --mo-primary: #0B1F3A;
    --mo-accent: #00A8A8;
    --mo-accent-soft: rgba(0, 168, 168, 0.12);
    --mo-sidebar: #0B1F3A;
    --mo-radius: 12px;
    --mo-bg: #eef3f7;
    --mo-text: #13233b;
    --mo-muted: #5b6b82;
    --mo-border: rgba(11, 31, 58, 0.08);
    --mo-white: #ffffff;
    --mo-danger: #e11d48;
    --mo-success: #0f9f6e;
    --mo-warning: #d97706;
    --mo-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
    --mo-shadow-sm: 0 4px 14px rgba(11, 31, 58, 0.06);
    --mo-glass: rgba(255, 255, 255, 0.78);
    --sidebar-w: 278px;
    --mo-header-offset: 14px;
    --mo-header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.d-none { display: none !important; }

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--mo-text);
    background-color: var(--mo-bg);
    background-image:
        linear-gradient(180deg, rgba(238, 243, 247, 0.88), rgba(238, 243, 247, 0.94)),
        url('../img/bg-orbit.svg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    min-height: 100vh;
}

a { color: var(--mo-accent); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--mo-primary); }

/* Shell */
.mo-shell { display: flex; min-height: 100vh; }

.mo-sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0d2444 0%, #0B1F3A 42%, #072a2a 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    box-shadow: 8px 0 40px rgba(7, 21, 38, 0.25);
    z-index: 30;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,168,168,.4) transparent;
    border-right: 1px solid rgba(0,168,168,.25);
}

.mo-brand {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #0d2748 0%, #0B1F3A 100%);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.mo-brand-link {
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    line-height: 0;
}
.mo-brand-link:hover { opacity: .94; }
.mo-brand-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
}
.mo-brand-tag,
.mo-wordmark,
.mo-wordmark-line,
.mo-wordmark-meta { display: none !important; }
.mo-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mo-border);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.mo-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--mo-primary);
    border-radius: 2px;
}
.mo-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.mo-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 21, 38, .45);
    z-index: 40;
}

.mo-nav { padding: 10px 10px 28px; }
.mo-nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.38);
    padding: 14px 12px 6px;
    font-weight: 700;
}
.mo-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.82);
    padding: 9px 10px;
    border-radius: 11px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    position: relative;
}
.mo-nav a .mo-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    color: var(--mo-accent);
    flex-shrink: 0;
}
.mo-nav a .mo-ico svg { width: 15px; height: 15px; display: block; }
.mo-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.mo-nav a.active {
    background: linear-gradient(90deg, rgba(0,168,168,.3), rgba(0,168,168,.1));
    color: #fff;
    border-color: rgba(0,168,168,.28);
    box-shadow: inset 3px 0 0 var(--mo-accent);
}
.mo-nav a.active .mo-ico {
    background: var(--mo-accent);
    color: #fff;
}

.mo-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mo-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: var(--mo-header-offset) 20px 0;
    height: var(--mo-header-h);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--mo-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 14px;
    box-shadow: var(--mo-shadow-sm);
    box-sizing: border-box;
}
.mo-topbar h1 {
    margin: 0;
    font-family: "Sora", Manrope, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mo-primary);
    letter-spacing: -.02em;
}
.mo-topbar-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--mo-muted);
    font-weight: 500;
}
.mo-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mo-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mo-border);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
a.mo-user-chip:hover {
    border-color: var(--mo-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mo-accent, #00A8A8) 16%, transparent);
}
.mo-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-accent));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
}
.mo-user-chip strong { display: block; font-size: 13px; color: var(--mo-primary); }
.mo-user-chip span { font-size: 11px; color: var(--mo-muted); }

.mo-content { padding: 20px; }

/* Settings page */
.mo-settings-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(11,31,58,.95), rgba(0,168,168,.78)),
        #0B1F3A;
    color: #fff;
    box-shadow: var(--mo-shadow);
}
.mo-settings-hero h2 {
    margin: 0 0 6px;
    font-family: "Sora", Manrope, sans-serif;
    font-size: 22px;
}
.mo-settings-hero p {
    margin: 0;
    opacity: .88;
    font-size: 13.5px;
    max-width: 520px;
}
.mo-settings-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.mo-settings-preview img {
    width: 150px;
    max-width: 38vw;
    height: auto;
    background: transparent !important;
}
.mo-settings-preview strong {
    display: block;
    font-size: 14px;
}
.mo-settings-preview span {
    display: block;
    font-size: 12px;
    opacity: .8;
}
.mo-settings-card { padding-top: 14px; }
.mo-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mo-border);
}
.mo-settings-tabs button {
    border: 1px solid var(--mo-border);
    background: #fff;
    color: var(--mo-primary);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.mo-settings-tabs button.is-active {
    background: linear-gradient(135deg, #00b4b4, var(--mo-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0,168,168,.25);
}
.mo-logo-preview-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}
.mo-logo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 110px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed var(--mo-border);
    box-sizing: border-box;
}
.mo-logo-preview.light {
    background: #f8fafc;
}
.mo-logo-preview.dark {
    background: #0B1F3A;
    border-color: rgba(255,255,255,.12);
}
.mo-logo-preview span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mo-muted);
}
.mo-logo-preview.dark span { color: rgba(255,255,255,.55); }
.mo-logo-preview img {
    max-height: 78px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent !important;
}
.mo-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--mo-muted);
}
.mo-settings-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--mo-border);
    display: flex;
    justify-content: flex-end;
}

/* Cards */
.mo-card {
    background: #ffffff;
    border: 1px solid rgba(11, 31, 58, .08);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--mo-shadow);
    position: relative;
    overflow: visible;
}
.mo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mo-primary), var(--mo-accent));
    opacity: .85;
}
.mo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(11, 31, 58, .06);
}
.mo-card-header h2,
.mo-card-header h3 {
    margin: 0;
    font-family: "Sora", Manrope, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--mo-primary);
    letter-spacing: -.02em;
}

/* Stats */
.mo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.mo-stat {
    background:
        linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.82)),
        radial-gradient(circle at top right, var(--mo-accent-soft), transparent 55%);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mo-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mo-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--mo-shadow);
}
.mo-stat::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,168,168,.18), transparent 70%);
}
.mo-stat .label {
    color: var(--mo-muted);
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.mo-stat .value {
    font-family: "Sora", Manrope, sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--mo-primary);
    letter-spacing: -.03em;
}

/* Topbar extras */
.mo-topbar-search {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 420px;
    margin: 0 12px;
    padding: 0 12px;
    height: 40px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mo-border);
    position: relative;
}
.mo-topbar-search svg { width: 16px; height: 16px; color: var(--mo-muted); flex-shrink: 0; }
.mo-topbar-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 13px;
    color: var(--mo-text);
    min-width: 0;
}
.mo-topbar-search kbd {
    font-size: 10px;
    font-weight: 700;
    color: var(--mo-muted);
    border: 1px solid var(--mo-border);
    border-radius: 6px;
    padding: 2px 6px;
    background: #f8fafc;
}
.mo-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    background: #fff;
    border: 1px solid var(--mo-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, .14);
    max-height: 380px;
    overflow: auto;
    padding: 6px;
}
.mo-search-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}
.mo-search-item:hover,
.mo-search-item.is-active {
    background: color-mix(in srgb, var(--mo-accent, #00A8A8) 12%, #fff);
}
.mo-search-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mo-accent, #00A8A8);
}
.mo-search-item strong {
    font-size: 13.5px;
    color: var(--mo-primary, #0B1F3A);
}
.mo-search-sub {
    font-size: 12px;
    color: var(--mo-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mo-search-empty {
    padding: 14px 12px;
    font-size: 13px;
    color: var(--mo-muted);
    text-align: center;
}
.mo-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--mo-border);
    background: #fff;
    color: var(--mo-primary);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: .2s ease;
}
.mo-icon-btn svg { width: 17px; height: 17px; }
.mo-icon-btn:hover { border-color: var(--mo-accent); color: var(--mo-accent); }
.mo-bell-wrap {
    position: relative;
}
.mo-bell i {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mo-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-style: normal;
}
.mo-bell-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    z-index: 90;
    background: #fff;
    border: 1px solid var(--mo-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, .14);
    overflow: hidden;
}
.mo-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mo-border);
}
.mo-bell-head strong {
    font-size: 14px;
    color: var(--mo-primary, #0B1F3A);
}
.mo-bell-head a {
    font-size: 12px;
    font-weight: 700;
    color: var(--mo-accent, #00A8A8);
    text-decoration: none;
}
.mo-bell-list {
    max-height: 320px;
    overflow: auto;
    padding: 6px;
}
.mo-bell-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}
a.mo-bell-item:hover {
    background: color-mix(in srgb, var(--mo-accent, #00A8A8) 12%, #fff);
}
.mo-bell-meta {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mo-accent, #00A8A8);
}
.mo-bell-item strong {
    font-size: 13.5px;
    color: var(--mo-primary, #0B1F3A);
}
.mo-bell-sub {
    font-size: 12px;
    color: var(--mo-muted);
    line-height: 1.35;
}
.mo-bell-empty {
    padding: 18px 12px;
    font-size: 13px;
    color: var(--mo-muted);
    text-align: center;
}
.mo-bell-foot {
    display: block;
    text-align: center;
    padding: 11px 14px;
    border-top: 1px solid var(--mo-border);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mo-accent, #00A8A8);
    text-decoration: none;
}
.mo-bell-foot:hover {
    background: #f8fafc;
}
@media (min-width: 993px) {
    .mo-topbar-search { display: flex; }
}

/* Clean dashboard */
.mo-dash-clean { display: grid; gap: 18px; }
.mo-dash-clean-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.mo-dash-clean-head h2 {
    margin: 0 0 4px;
    font-family: "Sora", Manrope, sans-serif;
    font-size: 24px;
    color: var(--mo-primary);
    letter-spacing: -.02em;
}
.mo-dash-clean-head p {
    margin: 0;
    color: var(--mo-muted);
    font-size: 13.5px;
}
.mo-dash-clean-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: rgba(0,168,168,.12);
    border: 1px solid rgba(0,168,168,.18);
}
.mo-dash-pill.alt {
    color: var(--mo-primary);
    background: rgba(11,31,58,.08);
    border-color: rgba(11,31,58,.1);
}

.mo-dash-clean-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.mo-dash-clean-stat {
    background: #fff;
    border: 1px solid rgba(11,31,58,.06);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(11,31,58,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mo-dash-clean-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(11,31,58,.08);
}
.mo-dash-clean-stat-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--mo-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mo-dash-clean-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(0,168,168,.12);
    color: #0f766e;
}
.mo-dash-clean-stat.tone-navy .mo-dash-clean-ico {
    background: rgba(11,31,58,.1);
    color: var(--mo-primary);
}
.mo-dash-clean-stat.tone-gold .mo-dash-clean-ico {
    background: rgba(212,160,23,.14);
    color: #b8860b;
}
.mo-dash-clean-ico svg { width: 16px; height: 16px; }
.mo-dash-clean-value {
    font-family: "Sora", Manrope, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--mo-primary);
    letter-spacing: -.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.mo-dash-clean-stat.tone-gold .mo-dash-clean-value { color: #b8860b; }
.mo-dash-clean-stat p {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--mo-muted);
}

.mo-dash-clean-charts,
.mo-dash-clean-bottom {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 14px;
}
.mo-dash-clean-charts.twin { grid-template-columns: 1fr 1fr; }
.mo-dash-clean-bottom { grid-template-columns: 1fr 1fr; }

.mo-dash-clean-card {
    background: #fff;
    border: 1px solid rgba(11,31,58,.06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(11,31,58,.04);
}
.mo-dash-clean-card.wide { min-width: 0; }
.mo-dash-clean-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.mo-dash-clean-card-head h3 {
    margin: 0 0 3px;
    font-family: "Sora", Manrope, sans-serif;
    font-size: 16px;
    color: var(--mo-primary);
}
.mo-dash-clean-card-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--mo-muted);
}
.mo-dash-clean-card-head a {
    color: var(--mo-accent);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.mo-dash-clean-card-head a:hover { color: var(--mo-primary); }
.mo-dash-clean-canvas { height: 260px; position: relative; }
.mo-dash-clean-canvas.doughnut { height: 280px; }

.mo-dash-clean-empty {
    min-height: 240px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 6px;
    padding: 24px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(11,31,58,.12);
}
.mo-dash-clean-empty strong {
    color: var(--mo-primary);
    font-family: "Sora", Manrope, sans-serif;
}
.mo-dash-clean-empty p {
    margin: 0;
    color: var(--mo-muted);
    font-size: 13px;
}

@media (max-width: 1200px) {
    .mo-dash-clean-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .mo-topbar-search { display: none !important; }
    .mo-dash-clean-charts,
    .mo-dash-clean-charts.twin,
    .mo-dash-clean-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .mo-dash-clean-stats { grid-template-columns: 1fr 1fr; }
    .mo-dash-clean-value { font-size: 22px; }
}

/* Buttons */
.mo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 11px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #00b4b4, var(--mo-accent));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,168,168,.28);
    transition: .2s ease;
}
.mo-btn:hover {
    filter: brightness(1.05);
    color: #fff;
    transform: translateY(-1px);
}
.mo-btn-primary {
    background: linear-gradient(135deg, #123457, var(--mo-primary));
    box-shadow: 0 8px 18px rgba(11,31,58,.25);
}
.mo-btn-outline {
    background: #fff;
    border: 1px solid var(--mo-border);
    color: var(--mo-primary);
    box-shadow: none;
}
.mo-btn-outline:hover { border-color: var(--mo-accent); color: var(--mo-accent); }
.mo-btn-danger {
    background: linear-gradient(135deg, #fb7185, var(--mo-danger));
    box-shadow: 0 8px 18px rgba(225,29,72,.22);
}
.mo-btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }

/* Tables */
.mo-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(11, 31, 58, .08);
    background: #fff;
}
table.mo-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
table.mo-table th,
table.mo-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(11, 31, 58, .06);
    text-align: left;
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--mo-text);
}
table.mo-table th {
    color: #5b6b82;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    background: #f4f7fb;
    white-space: nowrap;
}
table.mo-table tbody tr { transition: background .15s ease; }
table.mo-table tbody tr:nth-child(even) { background: #fafcfd; }
table.mo-table tbody tr:hover { background: rgba(0,168,168,.05); }
table.mo-table tbody tr:last-child td { border-bottom: 0; }
table.mo-table .mo-col-actions { width: 1%; white-space: nowrap; }
table.mo-table .mo-col-num { width: 56px; color: var(--mo-muted); font-weight: 700; }
table.mo-table td.mo-strong { font-weight: 700; color: var(--mo-primary); }

/* Inputs/selects everywhere in admin content (including tables) */
.mo-content input[type="text"],
.mo-content input[type="email"],
.mo-content input[type="number"],
.mo-content input[type="password"],
.mo-content input[type="date"],
.mo-content input[type="url"],
.mo-content input[type="search"],
.mo-content input[type="datetime-local"],
.mo-content select,
.mo-content textarea {
    padding: 10px 12px;
    border: 1px solid rgba(11,31,58,.12);
    border-radius: 11px;
    font-size: 13.5px;
    background: #fff;
    color: var(--mo-text);
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mo-content input:focus,
.mo-content select:focus,
.mo-content textarea:focus {
    outline: none;
    border-color: var(--mo-accent);
    box-shadow: 0 0 0 3px rgba(0,168,168,.12);
}
.mo-content input[type="file"] {
    padding: 8px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

table.mo-table input[type="text"],
table.mo-table input[type="number"],
table.mo-table select {
    min-width: 110px;
    max-width: 180px;
    height: 38px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(11,31,58,.12);
    background: #fff;
    font-size: 13px;
}

.mo-inline-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.mo-inline-edit input[type="number"] { width: 120px; max-width: 120px; }
.mo-inline-edit select { width: 120px; max-width: 120px; }

.mo-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: capitalize;
    white-space: nowrap;
}
.mo-empty {
    text-align: center;
    padding: 36px 16px !important;
    color: var(--mo-muted);
    font-weight: 600;
}
.mo-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--mo-primary);
}

/* Badges */
.mo-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}
.mo-badge-success { background: #d1fae5; color: #065f46; }
.mo-badge-warning { background: #fef3c7; color: #92400e; }
.mo-badge-danger { background: #ffe4e6; color: #9f1239; }
.mo-badge-info { background: #cffafe; color: #155e75; }
.mo-badge-muted { background: #e2e8f0; color: #475569; }

/* Forms */
.mo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.mo-form-grid .full { grid-column: 1 / -1; }
.mo-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--mo-primary);
}
.mo-field input,
.mo-field select,
.mo-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(11,31,58,.12);
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    color: var(--mo-text);
    font-family: inherit;
    transition: .2s ease;
}
.mo-field input:focus,
.mo-field select:focus,
.mo-field textarea:focus {
    outline: none;
    border-color: var(--mo-accent);
    box-shadow: 0 0 0 4px rgba(0,168,168,.14);
}
.mo-error { color: var(--mo-danger); font-size: 12px; margin-top: 5px; font-weight: 600; }

.mo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
    background: #f6f9fc;
    border: 1px solid rgba(11,31,58,.08);
    border-radius: 14px;
}
.mo-filters input,
.mo-filters select {
    padding: 10px 12px;
    border: 1px solid rgba(11,31,58,.12);
    border-radius: 11px;
    background: #fff;
    min-width: 160px;
    flex: 1;
    max-width: 260px;
}

.mo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mo-actions form { display: inline-flex; margin: 0; }

.mo-create-bar {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: #f6f9fc;
    border: 1px solid rgba(11,31,58,.08);
    border-radius: 14px;
    margin-bottom: 4px;
}
@media (max-width: 900px) {
    .mo-create-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .mo-create-bar { grid-template-columns: 1fr; }
}

.mo-master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.mo-master-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(11, 31, 58, .08);
    background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mo-master-card:hover {
    border-color: rgba(0, 168, 168, .45);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 31, 58, .08);
}
.mo-master-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mo-master-card-top strong {
    font-family: "Sora", Manrope, sans-serif;
    font-size: 14px;
    color: var(--mo-primary);
}
.mo-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(11, 31, 58, .06);
}
.mo-type-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 31, 58, .1);
    background: #fff;
    color: var(--mo-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.mo-type-tabs a:hover { border-color: rgba(0, 168, 168, .4); }
.mo-type-tabs a.active {
    background: var(--mo-accent);
    border-color: var(--mo-accent);
    color: #fff;
}

.mo-pagination { margin-top: 16px; }
.mo-pagination nav { display: flex; gap: 6px; flex-wrap: wrap; }
.mo-pagination a,
.mo-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--mo-border);
    color: var(--mo-primary);
    font-size: 13px;
    font-weight: 700;
}
.mo-pagination .active span,
.mo-pagination [aria-current="page"] span {
    background: var(--mo-accent);
    border-color: var(--mo-accent);
    color: #fff;
}
.mo-muted { color: var(--mo-muted); }

/* Login — animated split layout */
.mo-login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #06101d;
    overflow: hidden;
}
.mo-login-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    padding: 48px;
    background:
        linear-gradient(160deg, rgba(7,21,38,.4), rgba(7,21,38,.78)),
        url('../img/login-hero.svg') center/cover;
}
.mo-login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0,168,168,.28), transparent 45%);
    pointer-events: none;
    animation: moPulseGlow 6s ease-in-out infinite;
}
.mo-orbit-stage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.mo-orbit-ring {
    position: absolute;
    left: 48%;
    top: 38%;
    border: 1.5px solid rgba(0,168,168,.35);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
}
.mo-orbit-ring.r1 {
    width: 280px; height: 100px;
    animation: moOrbitSpin 18s linear infinite;
}
.mo-orbit-ring.r2 {
    width: 420px; height: 150px;
    border-color: rgba(255,255,255,.18);
    animation: moOrbitSpin 28s linear infinite reverse;
}
.mo-orbit-ring.r3 {
    width: 180px; height: 64px;
    border-color: rgba(0,168,168,.55);
    animation: moOrbitSpin 12s linear infinite;
}
.mo-orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mo-accent);
    box-shadow: 0 0 16px rgba(0,168,168,.8);
    left: 48%;
    top: 38%;
    transform: translate(-50%, -50%);
    animation: moDotPulse 2.4s ease-in-out infinite;
}
.mo-float-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    animation: moFloatUp 8s ease-in-out infinite;
}
.mo-float-particle:nth-child(1) { left: 18%; bottom: 10%; animation-delay: 0s; }
.mo-float-particle:nth-child(2) { left: 36%; bottom: 4%; animation-delay: 1.4s; width: 4px; height: 4px; }
.mo-float-particle:nth-child(3) { left: 62%; bottom: 14%; animation-delay: 2.2s; }
.mo-float-particle:nth-child(4) { left: 78%; bottom: 8%; animation-delay: .8s; width: 5px; height: 5px; }
.mo-ekg-line {
    position: absolute;
    left: 12%;
    bottom: 26%;
    width: 46%;
    height: 40px;
    opacity: .55;
    z-index: 0;
}
.mo-ekg-line path {
    fill: none;
    stroke: #00A8A8;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: moEkgDraw 3.2s ease-in-out infinite;
}

.mo-login-hero-content { position: relative; z-index: 1; max-width: 480px; }
.mo-login-hero h1 {
    margin: 0 0 12px;
    font-family: "Sora", Manrope, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    opacity: 0;
    transform: translateY(24px);
    animation: moFadeUp .8s ease forwards .15s;
}
.mo-login-hero p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(24px);
    animation: moFadeUp .8s ease forwards .35s;
}
.mo-login-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.mo-login-pills span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
    animation: moFadeUp .7s ease forwards;
    transition: transform .25s ease, background .25s ease;
}
.mo-login-pills span:nth-child(1) { animation-delay: .55s; }
.mo-login-pills span:nth-child(2) { animation-delay: .7s; }
.mo-login-pills span:nth-child(3) { animation-delay: .85s; }
.mo-login-pills span:hover {
    background: rgba(0,168,168,.28);
    transform: translateY(-2px);
}

.mo-login-panel {
    display: grid;
    place-items: center;
    padding: 36px 28px;
    position: relative;
    background:
        linear-gradient(180deg, rgba(238,243,247,.96), rgba(238,243,247,.98)),
        url('../img/bg-orbit.svg') center/cover;
}
.mo-login-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,168,168,.18), transparent 70%);
    top: 12%;
    right: 8%;
    animation: moBlobFloat 7s ease-in-out infinite;
}
.mo-login-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11,31,58,.12), transparent 70%);
    bottom: 10%;
    left: 10%;
    animation: moBlobFloat 9s ease-in-out infinite reverse;
}

.mo-login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid rgba(11, 31, 58, 0.07);
    border-radius: 22px;
    padding: 28px 32px 30px;
    box-shadow: 0 28px 70px rgba(7, 21, 38, .16);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(28px) scale(.96);
    animation: moCardIn .85s cubic-bezier(.22,1,.36,1) forwards .25s;
}
.mo-login-card .logo {
    text-align: center;
    margin: 0 auto 18px;
    width: 100%;
    padding: 4px 8px 16px;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08);
    line-height: 0;
}
.mo-login-card .logo img {
    display: block;
    width: 260px;
    max-width: 85%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    opacity: 0;
    transform: scale(.9);
    animation: moLogoPop .7s cubic-bezier(.22,1,.36,1) forwards .55s;
}
.mo-login-card .mo-login-form { width: 100%; margin: 0; }
.mo-login-card h2 {
    text-align: center;
    color: var(--mo-primary);
    margin: 0 0 6px;
    font-family: "Sora", Manrope, sans-serif;
    font-size: 22px;
    font-weight: 700;
}
.mo-login-card .mo-login-form > p {
    text-align: center;
    color: var(--mo-muted);
    margin: 0 0 20px;
    font-weight: 500;
    font-size: 13.5px;
}
.mo-login-card .mo-anim-item {
    opacity: 0;
    transform: translateY(14px);
    animation: moFadeUp .55s ease forwards;
}
.mo-login-card .mo-anim-item:nth-child(1) { animation-delay: .7s; }
.mo-login-card .mo-anim-item:nth-child(2) { animation-delay: .82s; }
.mo-login-card .mo-anim-item:nth-child(3) { animation-delay: .94s; }
.mo-login-card .mo-anim-item:nth-child(4) { animation-delay: 1.06s; }
.mo-login-card .mo-anim-item:nth-child(5) { animation-delay: 1.18s; }
.mo-login-card .mo-anim-item:nth-child(6) { animation-delay: 1.3s; }

.mo-login-card .mo-field { margin-bottom: 14px; }
.mo-login-card .mo-field label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mo-primary);
}
.mo-login-card .mo-field input {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 14.5px;
    border: 1.5px solid rgba(11, 31, 58, 0.12);
    background: #f8fafc;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .2s ease;
}
.mo-login-card .mo-field input:hover { border-color: rgba(0, 168, 168, 0.35); }
.mo-login-card .mo-field input:focus {
    background: #fff;
    border-color: var(--mo-accent);
    box-shadow: 0 0 0 4px rgba(0, 168, 168, 0.14);
    transform: translateY(-1px);
}
.mo-login-card .mo-field input::placeholder { color: #94a3b8; }
.mo-login-card .mo-remember {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 18px;
    font-size: 13.5px;
    color: var(--mo-muted);
    font-weight: 600;
}
.mo-login-card .mo-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--mo-accent);
}
.mo-login-card .mo-btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 12px;
    letter-spacing: .01em;
    box-shadow: 0 10px 22px rgba(0, 168, 168, 0.28);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mo-login-card .mo-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    animation: moBtnShine 3.5s ease-in-out infinite;
}
.mo-login-card .mo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 168, 168, 0.35);
}
.mo-login-card .mo-btn.is-loading {
    pointer-events: none;
    opacity: .9;
}
.mo-login-card .mo-btn.is-loading span { opacity: 0; }
.mo-login-card .mo-btn.is-loading::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
    animation: moSpin .7s linear infinite;
}

@keyframes moFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes moCardIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes moLogoPop {
    to { opacity: 1; transform: scale(1); }
}
@keyframes moOrbitSpin {
    to { transform: translate(-50%, -50%) rotate(338deg); }
}
@keyframes moDotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 10px rgba(0,168,168,.6); }
    50% { transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 22px rgba(0,168,168,1); }
}
@keyframes moFloatUp {
    0%, 100% { transform: translateY(0); opacity: .2; }
    50% { transform: translateY(-70px); opacity: .75; }
}
@keyframes moEkgDraw {
    0% { stroke-dashoffset: 420; opacity: .2; }
    40% { stroke-dashoffset: 0; opacity: .8; }
    100% { stroke-dashoffset: -420; opacity: .2; }
}
@keyframes moPulseGlow {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}
@keyframes moBlobFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -22px); }
}
@keyframes moBtnShine {
    0%, 55%, 100% { left: -120%; }
    70% { left: 140%; }
}
@keyframes moSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mo-login-hero h1,
    .mo-login-hero p,
    .mo-login-pills span,
    .mo-login-card,
    .mo-login-card .logo img,
    .mo-login-card .mo-anim-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .mo-orbit-ring, .mo-orbit-dot, .mo-float-particle, .mo-ekg-line path,
    .mo-login-hero::after, .mo-login-panel::before, .mo-login-panel::after,
    .mo-login-card .mo-btn::after {
        animation: none !important;
    }
}

/* Custom MedOrbit toast — solid card, bottom-left (avoids Windows watermark) */
.mo-toast-host {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 20px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
.mo-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px 14px 14px;
    border-radius: 12px;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #e6edf5;
    border-left: 4px solid #00A8A8;
    box-shadow:
        0 0 0 1px rgba(255,255,255,1),
        0 12px 32px rgba(11, 31, 58, .2);
    color: #0B1F3A;
    font-family: "Manrope", sans-serif;
    isolation: isolate;
    mix-blend-mode: normal;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
}
.mo-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}
.mo-toast.is-hide {
    opacity: 0;
    transform: translateY(8px);
}
.mo-toast::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #ffffff;
    z-index: -1;
}
.mo-toast-ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.mo-toast-ico svg { width: 15px; height: 15px; display: block; }
.mo-toast-body {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.mo-toast-close {
    border: 0;
    background: transparent;
    color: #7a8799;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.mo-toast-close:hover {
    background: #eef3f7;
    color: #0B1F3A;
}
.mo-toast-success { border-left-color: #00A8A8; }
.mo-toast-success .mo-toast-ico {
    background: #e6f7f7;
    color: #0f766e;
}
.mo-toast-error { border-left-color: #e11d48; }
.mo-toast-error .mo-toast-ico {
    background: #ffe4e9;
    color: #e11d48;
}
.mo-toast-info { border-left-color: #0B1F3A; }
.mo-toast-info .mo-toast-ico {
    background: #e8eef6;
    color: #0B1F3A;
}
.mo-toast-warning { border-left-color: #d97706; }
.mo-toast-warning .mo-toast-ico {
    background: #fff4e5;
    color: #d97706;
}

/* Tom Select — searchable multi-select chips */
.mo-field .ts-wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
}
.mo-field .ts-wrapper.focus {
    z-index: 30;
}
.mo-field .ts-wrapper.multi .ts-control,
.mo-field .ts-wrapper.single .ts-control {
    min-height: 46px;
    border: 1px solid var(--mo-border);
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: none;
    padding: 6px 10px;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: var(--mo-text);
}
.mo-field .ts-wrapper.focus .ts-control,
.mo-field .ts-wrapper.multi.focus .ts-control {
    border-color: var(--mo-accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 168, .12);
}
.mo-field .ts-wrapper.multi .ts-control > div {
    background: #e6f7f7;
    border: 1px solid rgba(0, 168, 168, .28);
    color: #0B1F3A;
    border-radius: 999px;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    font-size: 12.5px;
    font-weight: 650;
}
.mo-field .ts-wrapper.multi .ts-control > div .remove {
    border-left: 0;
    color: #5b6b82;
    margin-left: 4px;
    font-weight: 700;
}
.mo-field .ts-wrapper.multi .ts-control > div .remove:hover {
    background: transparent;
    color: #e11d48;
}
.mo-field .ts-control input {
    font-family: inherit !important;
    font-size: 14px !important;
}

/* Dropdown attached to body — solid overlay, never transparent over fields */
.ts-dropdown.mo-ts-dropdown,
body > .ts-dropdown {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(11, 31, 58, .12) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(11, 31, 58, .18) !important;
    font-family: "Manrope", sans-serif !important;
    z-index: 100050 !important;
    opacity: 1 !important;
    max-height: 260px;
    overflow: auto;
}
body > .ts-dropdown .ts-dropdown-content {
    background: #ffffff !important;
    max-height: 240px;
}
body > .ts-dropdown .option {
    padding: 10px 12px;
    font-size: 13.5px;
    background: #ffffff;
    color: #0B1F3A;
}
body > .ts-dropdown .option.active,
body > .ts-dropdown .option:hover {
    background: #e6f7f7 !important;
    color: #0B1F3A !important;
}
body > .ts-dropdown .no-results {
    padding: 12px;
    color: #5b6b82;
    font-size: 13px;
    background: #ffffff;
}

@media (max-width: 1200px) {
    :root { --sidebar-w: 250px; }
    .mo-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 1100px) {
    .mo-login-wrap { grid-template-columns: 1fr; }
    .mo-login-hero { min-height: 220px; padding: 28px; }
}

@media (max-width: 992px) {
    .mo-menu-btn { display: inline-flex; }
    .mo-sidebar-overlay { display: none; }
    .mo-shell.sidebar-open .mo-sidebar-overlay { display: block; }

    .mo-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(300px, 86vw);
        height: 100vh;
        max-height: 100vh;
        transform: translateX(-105%);
        transition: transform .28s ease;
        z-index: 50;
    }
    .mo-shell.sidebar-open .mo-sidebar { transform: translateX(0); }

    .mo-main { width: 100%; }
    :root {
        --mo-header-offset: 12px;
        --mo-header-h: 64px;
    }
    .mo-brand { padding: 6px; }
    .mo-topbar {
        margin: var(--mo-header-offset) 12px 0;
        height: var(--mo-header-h);
        padding: 0 14px;
        border-radius: 14px;
        flex-wrap: nowrap;
    }
    .mo-topbar h1 { font-size: 18px; }
    .mo-topbar-sub { display: none; }
    .mo-user-meta { display: none; }
    .mo-content { padding: 12px; }
    .mo-form-grid { grid-template-columns: 1fr; }
    .mo-card { padding: 16px; border-radius: 14px; }
    .mo-card-header { align-items: flex-start; }
    .mo-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .mo-filters input,
    .mo-filters select { width: 100%; min-width: 0; }
    .mo-actions { width: 100%; }
    .mo-actions .mo-btn { flex: 1 1 auto; justify-content: center; }
    .mo-table-wrap {
        margin: 0 -4px;
        border-radius: 12px;
    }
    table.mo-table th,
    table.mo-table td {
        padding: 10px 8px;
        font-size: 12.5px;
        white-space: nowrap;
    }
    .mo-stat .value { font-size: 24px; }
    .mo-login-card { max-width: 420px; padding: 24px 22px; }
    .mo-login-card .logo img { width: 230px; max-width: 82%; }
}

@media (max-width: 640px) {
    .mo-top-actions .mo-btn { padding: 7px 10px; font-size: 12px; }
    .mo-user-chip { padding: 4px; }
    .mo-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mo-login-hero h1 { font-size: 26px; }
    .mo-login-panel { padding: 18px 14px; }
    .mo-login-card { padding: 20px 16px; border-radius: 16px; }
    .mo-login-card .logo img { width: 200px; }
    .mo-login-card h2 { font-size: 18px; }
    .mo-settings-hero { padding: 16px; }
    .mo-settings-preview { width: 100%; }
    .mo-logo-preview-row { grid-template-columns: 1fr; }
    .mo-settings-tabs { gap: 6px; }
    .mo-settings-tabs button { padding: 7px 11px; font-size: 12px; }
}

/* ---------- Password eye toggle ---------- */
.password-field {
    position: relative;
    display: block;
    width: 100%;
}
.password-field input {
    width: 100%;
    padding-right: 44px !important;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #8A97AB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    z-index: 2;
}
.password-toggle:hover,
.password-toggle.is-visible {
    color: var(--mo-accent, #00A8A8);
    background: rgba(0, 168, 168, 0.1);
}
.password-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}
