*{box-sizing:border-box}:root{--navy:#0a1c55;--navy2:#142b78;--blue:#1768e5;--cyan:#14b6e9;--ink:#10204b;--muted:#6f7d9d;--line:#e1e7f2;--bg:#f5f8fd;--white:#fff}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:258px 1fr}.sidebar{background:linear-gradient(180deg,#081747,#0d2266 58%,#12337f);color:white;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;box-shadow:10px 0 30px rgba(12,31,86,.08)}.brand{display:flex;gap:12px;align-items:center;padding:4px 8px 26px}.brand-official{flex-direction:column;align-items:flex-start;gap:8px}.brand-logo{width:184px;max-width:100%;height:auto;display:block;object-fit:contain;object-position:left center}.brand-official span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#a9c6ff}.sidebar nav{display:grid;gap:7px}.sidebar nav a{padding:12px 14px;border-radius:11px;color:#dce7ff;font-size:14px}.sidebar nav a:hover{background:linear-gradient(90deg,rgba(20,182,233,.18),rgba(23,104,229,.18));color:white}.side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:18px 8px 4px;display:grid;gap:8px}.side-bottom small{opacity:.72;overflow:hidden;text-overflow:ellipsis}.side-bottom a{color:#5bd7ff;font-size:13px}.topbar{height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);padding:0 28px;display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:10;backdrop-filter:blur(10px)}.topbar strong,.topbar span{display:block}.topbar strong{color:var(--navy)}.topbar span{font-size:12px;color:var(--muted)}.menu{display:none;background:none;border:0;font-size:22px}.content{padding:28px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.page-head h1{font-size:28px;margin:0 0 5px;color:var(--navy)}.page-head p{margin:0;color:var(--muted)}.primary{background:linear-gradient(135deg,var(--blue),var(--cyan));color:white;border:0;border-radius:10px;padding:12px 16px;font-weight:750;cursor:pointer;box-shadow:0 8px 18px rgba(23,104,229,.18)}.primary:hover{filter:brightness(.98);transform:translateY(-1px)}.btn{display:inline-block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat,.panel{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 26px rgba(21,45,104,.05)}.stat{padding:20px;border-top:3px solid #25a9ef}.stat span,.stat em{display:block}.stat span{font-size:13px;color:var(--muted)}.stat b{display:block;font-size:25px;margin:8px 0 5px;color:var(--navy2)}.stat em{font-size:12px;color:#95a0b8;font-style:normal}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel h3{margin:0;color:var(--navy)}.panel-head a{font-size:13px;color:var(--blue);font-weight:700}.panel-head span{font-size:12px;color:#8793ad}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:720px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #edf1f7;font-size:13px}th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#7e8aa6}td b,td small{display:block}td small{margin-top:3px;color:#8793ad}.badge{display:inline-block!important;padding:5px 9px;border-radius:999px;font-size:11px!important;font-weight:700;text-transform:capitalize}.badge.active,.badge.paid{background:#e5f8f4;color:#0b7a67}.badge.pending{background:#fff4dc;color:#936800}.type-pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#eaf2ff;color:#215cb7;font-size:11px;text-transform:capitalize;font-weight:700}.empty{text-align:center;color:#8994aa;padding:28px}.grid-2{display:grid;grid-template-columns:minmax(330px,450px) 1fr;gap:20px;align-items:start}.form-card{display:grid;gap:14px}.form-card h3{margin-bottom:4px}.form-card label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#43506d}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}input,select,textarea{width:100%;border:1px solid #d6deec;background:#fbfdff;border-radius:9px;padding:11px 12px;font:inherit;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#2a85e9;box-shadow:0 0 0 3px rgba(23,104,229,.09)}.commission-note{background:#eef8ff;border:1px solid #cce9fb;border-radius:11px;padding:12px}.commission-note b,.commission-note span{display:block}.commission-note b{color:#125ea8;font-size:13px}.commission-note span{font-size:11px;color:#647b9f;margin-top:3px}.tiny{border:1px solid #bcd6f4;background:#f4f9ff;color:#155da8;border-radius:8px;padding:7px 10px;font-size:11px;cursor:pointer}.inline-rate-form{display:grid;grid-template-columns:76px 76px auto;gap:6px;align-items:center}.inline-rate-form input{padding:7px 8px}.login-body{min-height:100vh;background:#081747}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr}.login-hero{padding:8vw;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 25% 15%,#146fdc 0,#102b76 36%,#09194e 68%,#061135 100%);color:white;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(86,201,255,.18);border-radius:50%;right:-160px;bottom:-180px;box-shadow:0 0 0 70px rgba(86,201,255,.04),0 0 0 150px rgba(86,201,255,.03)}.login-brand{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:45px;position:relative;z-index:1}.login-brand img{width:min(330px,84%);height:auto;display:block;object-fit:contain;filter:drop-shadow(0 10px 25px rgba(0,0,0,.15))}.login-brand span{font-size:12px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:#b7d9ff}.login-hero h1{font-size:clamp(36px,5vw,66px);line-height:1.03;max-width:720px;margin:0 0 22px;position:relative;z-index:1}.login-hero p{max-width:590px;font-size:17px;color:#cbdcff;line-height:1.7;position:relative;z-index:1}.feature-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px;position:relative;z-index:1}.feature-pills span{padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(104,207,255,.22);font-size:12px;color:#d9efff}.login-card{background:white;align-self:center;justify-self:center;width:min(420px,82%);padding:36px;border-radius:20px;display:grid;gap:17px;box-shadow:0 25px 70px rgba(4,17,56,.22)}.login-card h2{font-size:28px;margin:0;color:var(--navy)}.login-card p{margin:-9px 0 8px;color:#7f8ba4}.login-card label{display:grid;gap:7px;font-size:12px;font-weight:700}.login-card small{text-align:center;color:#9aa4b8}.alert{background:#fff0ef;color:#a3423d;border-radius:9px;padding:10px 12px;font-size:12px}.report-gap{margin-top:20px}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.login-wrap{grid-template-columns:1fr}.login-hero{display:none}.login-body{background:var(--bg)}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:-270px;width:250px;z-index:30;transition:.2s}.nav-open .sidebar{left:0}.topbar{height:66px;padding:0 16px}.menu{display:block}.content{padding:18px 14px}.page-head{align-items:flex-start}.page-head h1{font-size:23px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.stat b{font-size:18px}.panel{padding:14px}.form-row{grid-template-columns:1fr}.login-card{width:min(430px,92%);padding:26px}.login-wrap{display:flex;align-items:center;justify-content:center;padding:20px}.inline-rate-form{grid-template-columns:1fr 1fr auto}}@media(max-width:440px){.stats{grid-template-columns:1fr}.page-head{display:grid}.page-head .btn{justify-self:start}}

/* ===== MBOVerse Brand Refinement ===== */

.sidebar{
    background:
        linear-gradient(180deg,#071b4d 0%,#0a2d7a 55%,#0b3e9f 100%);
}

.brand-official{
    margin: 18px 16px 26px;
    padding: 18px 16px 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    align-items:center;
    text-align:center;
}

.brand-official .brand-logo{
    width: 190px;
    max-width:100%;
    max-height:none;
    height:auto;
    object-fit:contain;
    object-position:center;
    filter:none;
}

.brand-official span{
    margin-top:6px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
    color:#0a2d7a;
    text-transform:uppercase;
}

.sidebar nav a{
    color:#f5f8ff;
    border-radius:10px;
    margin:4px 12px;
    padding:12px 14px;
    transition:.2s ease;
}

.sidebar nav a:hover{
    background:rgba(35,183,255,.14);
    color:#ffffff;
}

.sidebar nav a.active{
    background:linear-gradient(90deg,#1677ff,#20b7e8);
    color:#ffffff;
    box-shadow:0 7px 18px rgba(0,118,255,.24);
}

.sidebar-footer{
    border-top:1px solid rgba(255,255,255,.14);
    color:#dce9ff;
}

.page-header h1,
.page-title,
h1,h2,h3{
    color:#071b4d;
}

.primary,
button.primary,
.btn-primary{
    background:linear-gradient(90deg,#1478ff 0%,#19b8e5 100%);
    border:none;
    color:#fff;
}

.card,
.panel{
    border:1px solid #dbe5f4;
    box-shadow:0 10px 28px rgba(15,55,110,.08);
}

body{
    background:#f4f7fc;
}

input,
select,
textarea{
    border-color:#cbd8eb;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#19aee6;
    box-shadow:0 0 0 3px rgba(25,174,230,.12);
}

@media(max-width:768px){
    .brand-official{
        margin:12px;
        padding:14px;
    }

    .brand-official .brand-logo{
        width:160px;
    }
}

/* ===== Login Page Final Refinement ===== */

html,
body {
    min-height: 100%;
}

body.login-page {
    margin: 0;
    overflow: hidden;
}

.login-shell {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .95fr);
}

.login-hero {
    min-height: 0;
    height: 100vh;
    padding: 38px 8vw 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(32,183,232,.30), transparent 28%),
        linear-gradient(135deg,#0b3a91 0%,#0a2f78 48%,#071b4d 100%);
}

.login-brand {
    display: inline-flex;
    width: fit-content;
    max-width: 340px;
    padding: 16px 20px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
    margin-bottom: 28px;
}

.login-brand img {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.login-brand span {
    color: #0a2d7a;
    margin-top: 5px;
}

.login-hero h1 {
    margin: 0 0 22px;
    max-width: 620px;
    color: #ffffff !important;
    font-size: clamp(40px,4.3vw,68px);
    line-height: .98;
    letter-spacing: -.035em;
}

.login-hero p {
    color: #e8f2ff;
    max-width: 650px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.login-panel {
    height: 100vh;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 6vw;
    overflow: hidden;
    background: #071b4d;
}

.login-card {
    width: min(100%, 455px);
    margin: 0;
    padding: 38px 40px 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 65px rgba(0,0,0,.25);
}

.login-card h2 {
    margin-top: 0;
    color: #071b4d;
}

@media (max-width: 900px) {
    body.login-page {
        overflow: auto;
    }

    .login-shell {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .login-hero,
    .login-panel {
        height: auto;
        min-height: auto;
    }

    .login-hero {
        padding: 34px 24px;
    }

    .login-hero h1 {
        font-size: 42px;
    }

    .login-panel {
        padding: 36px 20px 50px;
    }
}

/* ===== Change Password ===== */

.password-page{
    max-width:560px;
}

.password-card{
    width:100%;
}

.password-card h3{
    margin:0 0 8px;
}

.success-alert{
    background:#e8f8f4;
    border:1px solid #bdebdc;
    color:#08745e;
    border-radius:9px;
    padding:11px 13px;
    font-size:12px;
}

.side-bottom a{
    display:block;
}

.side-bottom a + a{
    margin-top:2px;
}

/* ===== Secure Change Password Modal ===== */

.change-password-link{
    border:0;
    background:none;
    color:#5bd7ff;
    font:inherit;
    font-size:13px;
    padding:0;
    text-align:left;
    cursor:pointer;
}

.change-password-link:hover{
    color:#fff;
}

body.modal-open{
    overflow:hidden;
}

.password-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transition:.2s ease;
}

.password-modal.open{
    opacity:1;
    visibility:visible;
}

.password-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(3,15,48,.68);
    backdrop-filter:blur(8px);
}

.password-modal-dialog{
    position:relative;
    z-index:1;
    width:min(500px,100%);
    max-height:calc(100vh - 32px);
    overflow:auto;
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 30px 90px rgba(0,20,70,.35);
    transform:translateY(15px) scale(.98);
    transition:.2s ease;
}

.password-modal.open .password-modal-dialog{
    transform:none;
}

.modal-close{
    position:absolute;
    right:18px;
    top:16px;
    border:0;
    background:#f2f6fc;
    color:#456;
    width:34px;
    height:34px;
    border-radius:50%;
    font-size:24px;
    cursor:pointer;
}

.password-modal-icon{
    width:54px;
    height:54px;
    border-radius:16px;
    display:grid;
    place-items:center;
    font-size:25px;
    background:linear-gradient(135deg,#e6f1ff,#dffaff);
    margin-bottom:14px;
}

.password-modal-head h2{
    margin:0;
    color:#071b4d;
}

.password-modal-head p{
    margin:6px 0 22px;
    color:#7a88a5;
    font-size:13px;
}

#passwordForm{
    display:grid;
    gap:16px;
}

#passwordForm label{
    display:grid;
    gap:7px;
    font-size:12px;
    font-weight:700;
    color:#344766;
}

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

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

.show-password{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    border:0;
    background:none;
    color:#1768e5;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.field-state{
    min-height:16px;
    font-size:11px;
    font-weight:600;
}

.field-state.valid{
    color:#08785f;
}

.field-state.invalid{
    color:#bc3545;
}

.strength-track{
    height:6px;
    border-radius:999px;
    overflow:hidden;
    background:#edf1f7;
}

#strengthBar{
    width:0;
    height:100%;
    transition:.2s ease;
    background:#dc4353;
}

#strengthBar[data-level="medium"]{
    background:#e5a321;
}

#strengthBar[data-level="strong"]{
    background:#19a977;
}

.strength-wrap span{
    display:block;
    margin-top:6px;
    font-size:11px;
    color:#7d8aa5;
}

.password-rules{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 12px;
    padding:12px;
    background:#f6f9fd;
    border-radius:12px;
    font-size:11px;
    color:#8090aa;
}

.password-rules span.valid{
    color:#08785f;
    font-weight:700;
}

.password-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:4px;
}

.modal-cancel{
    border:1px solid #d8e1ef;
    background:#fff;
    color:#43506d;
    border-radius:10px;
    padding:11px 17px;
    font-weight:700;
    cursor:pointer;
}

#passwordSubmit:disabled{
    opacity:.45;
    cursor:not-allowed;
    transform:none;
}

.password-message{
    padding:11px 13px;
    border-radius:10px;
    font-size:12px;
}

.password-message.error{
    color:#a73140;
    background:#fff0f2;
    border:1px solid #ffd3d9;
}

.password-message.success{
    color:#08715a;
    background:#eaf9f4;
    border:1px solid #c6efdf;
}

@media(max-width:600px){
    .password-modal{
        padding:12px;
    }

    .password-modal-dialog{
        padding:24px 18px;
        border-radius:20px;
    }

    .password-rules{
        grid-template-columns:1fr;
    }

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

/* ===== Compact Password Modal - No Desktop Scroll ===== */

@media (min-width: 701px) {

    .password-modal{
        padding:14px;
    }

    .password-modal-dialog{
        width:min(480px,96vw);
        max-height:none;
        overflow:visible;
        padding:22px 28px 20px;
        border-radius:22px;
    }

    .password-modal-icon{
        width:46px;
        height:46px;
        margin-bottom:8px;
        font-size:21px;
    }

    .password-modal-head h2{
        font-size:25px;
        line-height:1.1;
    }

    .password-modal-head p{
        margin:5px 0 14px;
    }

    #passwordForm{
        gap:11px;
    }

    #passwordForm label{
        gap:5px;
    }

    .password-input-wrap input{
        padding-top:9px;
        padding-bottom:9px;
    }

    .field-state{
        min-height:13px;
        font-size:10px;
    }

    .strength-wrap span{
        margin-top:4px;
    }

    .password-rules{
        padding:9px 11px;
        gap:4px 10px;
    }

    .password-actions{
        margin-top:0;
    }

    .password-actions button{
        padding-top:9px;
        padding-bottom:9px;
    }
}

/* ===== FINAL MOBILE RESPONSIVE PATCH ===== */

@media (max-width: 900px){

    html,body{
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    .app-shell{
        display:block;
        width:100%;
        min-height:100vh;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:-290px;
        width:270px;
        height:100vh;
        z-index:5000;
        transition:left .25s ease;
        overflow-y:auto;
        padding:16px 12px;
        box-shadow:12px 0 32px rgba(0,0,0,.20);
    }

    body.nav-open .sidebar{
        left:0;
    }

    main{
        width:100%;
        min-width:0;
    }

    .topbar{
        position:sticky;
        top:0;
        height:64px;
        padding:0 14px;
        z-index:100;
        width:100%;
    }

    .menu{
        display:block;
        flex:0 0 auto;
        font-size:25px;
        color:#071b4d;
        cursor:pointer;
    }

    .topbar strong{
        font-size:14px;
    }

    .topbar span{
        font-size:10px;
    }

    .content{
        width:100%;
        padding:16px 12px 28px;
    }

    .page-head{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
        margin-bottom:16px;
    }

    .page-head h1{
        font-size:24px;
    }

    .page-head .btn,
    .page-head .primary{
        width:100%;
        text-align:center;
    }

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

    .stat{
        padding:14px;
        border-radius:14px;
    }

    .stat b{
        font-size:19px;
    }

    .grid-2{
        grid-template-columns:1fr !important;
        gap:14px;
    }

    .panel{
        width:100%;
        padding:15px;
        border-radius:15px;
    }

    .form-card{
        width:100%;
    }

    .form-row{
        grid-template-columns:1fr !important;
        gap:12px;
    }

    input,
    select,
    textarea{
        min-height:44px;
        font-size:16px;
    }

    textarea{
        min-height:90px;
    }

    .primary{
        min-height:45px;
        width:100%;
    }

    .table-wrap{
        width:100%;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        border-radius:10px;
    }

    table{
        min-width:720px;
    }

    .brand-official{
        margin:6px 4px 18px;
        padding:14px;
    }

    .brand-official .brand-logo{
        width:160px;
    }

    .side-bottom{
        padding-bottom:22px;
    }

    /* Password Modal */
    .password-modal{
        align-items:center;
        justify-content:center;
        padding:10px;
    }

    .password-modal-dialog{
        width:100%;
        max-width:500px;
        max-height:calc(100dvh - 20px);
        overflow-y:auto;
        padding:20px 16px 18px;
        border-radius:18px;
    }

    .password-modal-icon{
        width:42px;
        height:42px;
        font-size:20px;
        margin-bottom:8px;
    }

    .password-modal-head h2{
        font-size:23px;
    }

    .password-modal-head p{
        font-size:12px;
        margin-bottom:14px;
    }

    #passwordForm{
        gap:12px;
    }

    .password-rules{
        grid-template-columns:1fr;
        gap:5px;
        padding:10px;
    }

    .password-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .password-actions button{
        width:100%;
        min-height:44px;
    }

    .modal-close{
        width:32px;
        height:32px;
        right:12px;
        top:12px;
    }
}

@media (max-width: 600px){

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

    .content{
        padding:14px 10px 24px;
    }

    .page-head h1{
        font-size:22px;
    }

    .panel{
        padding:13px;
    }

    .topbar{
        padding:0 10px;
    }

    .topbar span{
        display:none;
    }

    .password-modal{
        padding:6px;
    }

    .password-modal-dialog{
        max-height:calc(100dvh - 12px);
        padding:18px 14px 14px;
        border-radius:16px;
    }

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

    .password-actions .modal-cancel{
        order:2;
    }

    .password-actions .primary{
        order:1;
    }
}

/* Mobile login */
@media (max-width: 900px){

    .login-wrap{
        min-height:100dvh;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:20px 12px;
        background:
            radial-gradient(circle at 20% 10%,rgba(24,135,240,.28),transparent 34%),
            linear-gradient(145deg,#071b4d,#0a2d7a);
    }

    .login-hero{
        display:none !important;
    }

    .login-card{
        width:min(100%,430px);
        padding:28px 20px;
        border-radius:20px;
    }

    .login-card h2{
        font-size:26px;
    }
}

/* ===== FINAL MOBILE RESPONSIVE PATCH ===== */

@media (max-width: 900px){

    html,body{
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    .app-shell{
        display:block;
        width:100%;
        min-height:100vh;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:-290px;
        width:270px;
        height:100vh;
        z-index:5000;
        transition:left .25s ease;
        overflow-y:auto;
        padding:16px 12px;
        box-shadow:12px 0 32px rgba(0,0,0,.20);
    }

    body.nav-open .sidebar{
        left:0;
    }

    main{
        width:100%;
        min-width:0;
    }

    .topbar{
        position:sticky;
        top:0;
        height:64px;
        padding:0 14px;
        z-index:100;
        width:100%;
    }

    .menu{
        display:block;
        flex:0 0 auto;
        font-size:25px;
        color:#071b4d;
        cursor:pointer;
    }

    .topbar strong{
        font-size:14px;
    }

    .topbar span{
        font-size:10px;
    }

    .content{
        width:100%;
        padding:16px 12px 28px;
    }

    .page-head{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
        margin-bottom:16px;
    }

    .page-head h1{
        font-size:24px;
    }

    .page-head .btn,
    .page-head .primary{
        width:100%;
        text-align:center;
    }

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

    .stat{
        padding:14px;
        border-radius:14px;
    }

    .stat b{
        font-size:19px;
    }

    .grid-2{
        grid-template-columns:1fr !important;
        gap:14px;
    }

    .panel{
        width:100%;
        padding:15px;
        border-radius:15px;
    }

    .form-card{
        width:100%;
    }

    .form-row{
        grid-template-columns:1fr !important;
        gap:12px;
    }

    input,
    select,
    textarea{
        min-height:44px;
        font-size:16px;
    }

    textarea{
        min-height:90px;
    }

    .primary{
        min-height:45px;
        width:100%;
    }

    .table-wrap{
        width:100%;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        border-radius:10px;
    }

    table{
        min-width:720px;
    }

    .brand-official{
        margin:6px 4px 18px;
        padding:14px;
    }

    .brand-official .brand-logo{
        width:160px;
    }

    .side-bottom{
        padding-bottom:22px;
    }

    /* Password Modal */
    .password-modal{
        align-items:center;
        justify-content:center;
        padding:10px;
    }

    .password-modal-dialog{
        width:100%;
        max-width:500px;
        max-height:calc(100dvh - 20px);
        overflow-y:auto;
        padding:20px 16px 18px;
        border-radius:18px;
    }

    .password-modal-icon{
        width:42px;
        height:42px;
        font-size:20px;
        margin-bottom:8px;
    }

    .password-modal-head h2{
        font-size:23px;
    }

    .password-modal-head p{
        font-size:12px;
        margin-bottom:14px;
    }

    #passwordForm{
        gap:12px;
    }

    .password-rules{
        grid-template-columns:1fr;
        gap:5px;
        padding:10px;
    }

    .password-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .password-actions button{
        width:100%;
        min-height:44px;
    }

    .modal-close{
        width:32px;
        height:32px;
        right:12px;
        top:12px;
    }
}

@media (max-width: 600px){

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

    .content{
        padding:14px 10px 24px;
    }

    .page-head h1{
        font-size:22px;
    }

    .panel{
        padding:13px;
    }

    .topbar{
        padding:0 10px;
    }

    .topbar span{
        display:none;
    }

    .password-modal{
        padding:6px;
    }

    .password-modal-dialog{
        max-height:calc(100dvh - 12px);
        padding:18px 14px 14px;
        border-radius:16px;
    }

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

    .password-actions .modal-cancel{
        order:2;
    }

    .password-actions .primary{
        order:1;
    }
}

/* Mobile login */
@media (max-width: 900px){

    .login-wrap{
        min-height:100dvh;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:20px 12px;
        background:
            radial-gradient(circle at 20% 10%,rgba(24,135,240,.28),transparent 34%),
            linear-gradient(145deg,#071b4d,#0a2d7a);
    }

    .login-hero{
        display:none !important;
    }

    .login-card{
        width:min(100%,430px);
        padding:28px 20px;
        border-radius:20px;
    }

    .login-card h2{
        font-size:26px;
    }
}

/* ===== FINAL MOBILE RESPONSIVE PATCH ===== */

@media (max-width: 900px){

    html,body{
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    .app-shell{
        display:block;
        width:100%;
        min-height:100vh;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:-290px;
        width:270px;
        height:100vh;
        z-index:5000;
        transition:left .25s ease;
        overflow-y:auto;
        padding:16px 12px;
        box-shadow:12px 0 32px rgba(0,0,0,.20);
    }

    body.nav-open .sidebar{
        left:0;
    }

    main{
        width:100%;
        min-width:0;
    }

    .topbar{
        position:sticky;
        top:0;
        height:64px;
        padding:0 14px;
        z-index:100;
        width:100%;
    }

    .menu{
        display:block;
        flex:0 0 auto;
        font-size:25px;
        color:#071b4d;
        cursor:pointer;
    }

    .topbar strong{
        font-size:14px;
    }

    .topbar span{
        font-size:10px;
    }

    .content{
        width:100%;
        padding:16px 12px 28px;
    }

    .page-head{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
        margin-bottom:16px;
    }

    .page-head h1{
        font-size:24px;
    }

    .page-head .btn,
    .page-head .primary{
        width:100%;
        text-align:center;
    }

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

    .stat{
        padding:14px;
        border-radius:14px;
    }

    .stat b{
        font-size:19px;
    }

    .grid-2{
        grid-template-columns:1fr !important;
        gap:14px;
    }

    .panel{
        width:100%;
        padding:15px;
        border-radius:15px;
    }

    .form-card{
        width:100%;
    }

    .form-row{
        grid-template-columns:1fr !important;
        gap:12px;
    }

    input,
    select,
    textarea{
        min-height:44px;
        font-size:16px;
    }

    textarea{
        min-height:90px;
    }

    .primary{
        min-height:45px;
        width:100%;
    }

    .table-wrap{
        width:100%;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        border-radius:10px;
    }

    table{
        min-width:720px;
    }

    .brand-official{
        margin:6px 4px 18px;
        padding:14px;
    }

    .brand-official .brand-logo{
        width:160px;
    }

    .side-bottom{
        padding-bottom:22px;
    }

    /* Password Modal */
    .password-modal{
        align-items:center;
        justify-content:center;
        padding:10px;
    }

    .password-modal-dialog{
        width:100%;
        max-width:500px;
        max-height:calc(100dvh - 20px);
        overflow-y:auto;
        padding:20px 16px 18px;
        border-radius:18px;
    }

    .password-modal-icon{
        width:42px;
        height:42px;
        font-size:20px;
        margin-bottom:8px;
    }

    .password-modal-head h2{
        font-size:23px;
    }

    .password-modal-head p{
        font-size:12px;
        margin-bottom:14px;
    }

    #passwordForm{
        gap:12px;
    }

    .password-rules{
        grid-template-columns:1fr;
        gap:5px;
        padding:10px;
    }

    .password-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .password-actions button{
        width:100%;
        min-height:44px;
    }

    .modal-close{
        width:32px;
        height:32px;
        right:12px;
        top:12px;
    }
}

@media (max-width: 600px){

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

    .content{
        padding:14px 10px 24px;
    }

    .page-head h1{
        font-size:22px;
    }

    .panel{
        padding:13px;
    }

    .topbar{
        padding:0 10px;
    }

    .topbar span{
        display:none;
    }

    .password-modal{
        padding:6px;
    }

    .password-modal-dialog{
        max-height:calc(100dvh - 12px);
        padding:18px 14px 14px;
        border-radius:16px;
    }

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

    .password-actions .modal-cancel{
        order:2;
    }

    .password-actions .primary{
        order:1;
    }
}

/* Mobile login */
@media (max-width: 900px){

    .login-wrap{
        min-height:100dvh;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:20px 12px;
        background:
            radial-gradient(circle at 20% 10%,rgba(24,135,240,.28),transparent 34%),
            linear-gradient(145deg,#071b4d,#0a2d7a);
    }

    .login-hero{
        display:none !important;
    }

    .login-card{
        width:min(100%,430px);
        padding:28px 20px;
        border-radius:20px;
    }

    .login-card h2{
        font-size:26px;
    }
}

/* ===== MOBILE COMPACT UX V2 ===== */

@media (max-width: 600px){

    body{
        font-size:14px;
    }

    .topbar{
        height:58px;
        padding:0 14px;
    }

    .topbar strong{
        font-size:15px;
    }

    .menu{
        font-size:22px;
        margin-right:6px;
    }

    .content{
        padding:14px 10px 20px;
    }

    .page-head{
        margin-bottom:12px;
        gap:5px;
    }

    .page-head h1{
        font-size:21px;
        line-height:1.15;
        margin:0;
    }

    .page-head p{
        font-size:13px;
        line-height:1.45;
    }

    .panel{
        padding:14px 12px;
        border-radius:15px;
    }

    .panel h3,
    .form-card h3{
        font-size:19px;
        margin-bottom:6px;
    }

    .form-card{
        gap:11px;
    }

    .form-card label{
        gap:4px;
        font-size:13px;
        line-height:1.25;
    }

    input,
    select,
    textarea{
        min-height:40px;
        padding:8px 10px;
        font-size:16px;
        border-radius:9px;
    }

    textarea{
        min-height:72px;
    }

    .form-row{
        gap:10px;
    }

    .commission-note{
        padding:9px 10px;
    }

    .commission-note b{
        font-size:12px;
    }

    .commission-note span{
        font-size:10px;
        line-height:1.4;
    }

    .primary{
        min-height:42px;
        padding:9px 12px;
        font-size:14px;
    }

    .grid-2{
        gap:12px;
    }

    .stats{
        gap:8px;
    }

    .stat{
        padding:12px;
    }

    .stat span{
        font-size:11px;
    }

    .stat b{
        font-size:18px;
        margin:5px 0 3px;
    }

    .stat em{
        font-size:10px;
    }

    .table-wrap{
        margin-top:4px;
    }

    th,td{
        padding:10px 9px;
        font-size:12px;
    }

    th{
        font-size:10px;
    }

    /* Sidebar mobile */
    .sidebar{
        width:245px;
        left:-255px;
        padding:12px 10px;
    }

    .brand-official{
        margin:4px 2px 12px;
        padding:10px;
    }

    .brand-official .brand-logo{
        width:135px;
    }

    .brand-official span{
        font-size:9px;
    }

    .sidebar nav{
        gap:4px;
    }

    .sidebar nav a{
        padding:10px 11px;
        font-size:13px;
    }

    .side-bottom{
        padding:12px 6px 18px;
    }

    /* Password modal compact mobile */
    .password-modal-dialog{
        width:calc(100vw - 16px);
        max-height:calc(100dvh - 16px);
        padding:16px 14px;
        border-radius:16px;
    }

    .password-modal-icon{
        width:38px;
        height:38px;
        font-size:18px;
        margin-bottom:6px;
    }

    .password-modal-head h2{
        font-size:21px;
    }

    .password-modal-head p{
        font-size:11px;
        margin:4px 0 10px;
    }

    #passwordForm{
        gap:9px;
    }

    #passwordForm label{
        font-size:11px;
        gap:4px;
    }

    .password-input-wrap input{
        min-height:38px;
        padding:7px 56px 7px 9px;
    }

    .show-password{
        font-size:10px;
    }

    .password-rules{
        padding:8px;
        gap:3px;
        font-size:10px;
    }

    .strength-wrap span{
        font-size:10px;
    }

    .password-actions{
        grid-template-columns:1fr 1fr;
        gap:7px;
    }

    .password-actions button{
        min-height:40px;
        font-size:12px;
    }
}

@media (max-width: 390px){

    .content{
        padding-left:8px;
        padding-right:8px;
    }

    .panel{
        padding:12px 10px;
    }

    .page-head h1{
        font-size:20px;
    }

    .form-card label{
        font-size:12px;
    }
}
