
:root {
    --color-background-primary: #ffffff;
    --color-background-secondary: #f8fafc;
    --color-background-tertiary: #f5f7fb;
    --color-border-primary: #94a3b8;
    --color-border-secondary: #cbd5e1;
    --color-border-tertiary: #e2e8f0;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #94a3b8;
    --color-text-info: #0C447C;
    --font-mono: 'Courier New', Courier, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--color-text-primary);
    background: var(--color-background-tertiary);
}


.topbar {
    background-image: linear-gradient(to bottom, #f2f2f2, #ffffff);
    background: #e0dada;
    /* color: #fff;*/
    /*color: #0f172a;*/
    color: #c8d8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    font-size: 13px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
    .topbar .logo,
    .topbar .user-pill {
        color: #0f172a;
    }

.logo {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2E75B6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}



.layout {
    display: flex;
    min-height: calc(100vh - 48px);
}

.content {
    flex: 1;
    /*padding: 20px;*/
    /*   background: var(--color-background-tertiary);*/
    /*background: #f3f3f3;*/
    overflow: auto;
    min-width: 0;
}
#s-login {
    background: #ffdfdf;
}


/* ============================================================
   5. SIDEBAR
   ============================================================ */
/*.sidebar {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid var(--color-border-tertiary);
    padding: 12px 0;
    flex-shrink: 0;
}

    .si,
    .sidebar a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        font-size: 13px;
        color: #334155;
        text-decoration: none;
        border-left: 3px solid transparent;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }

        .si:hover,
        .sidebar a:hover {
            background: #eef4fb;
            color: #1F3864;
            border-left-color: #2E75B6;
        }

        .si.on,
        .sidebar a.on {
            color: #1F3864;
            border-left-color: #2E75B6;
            background: #E6F1FB;
            font-weight: 600;
        }*/

/* SIDEBAR CONTAINER Audix*/
.sidebar {
    width: 220px;
    /*  background: #ffffff;*/
    background: #1d1d5d;
    border-right: 1px solid var(--color-border-tertiary);
    padding: 12px 0;
    flex-shrink: 0;
}

    /* MENU ITEMS (restore this — VERY IMPORTANT) */
    .si,
    .sidebar a {
        display: flex;
        align-items: center;
        gap: 10px; /* spacing restored */
        padding: 10px 14px;
        font-size: 13px;
        /*     color: #334155;*/
        color: #fefefe;
        text-decoration: none;
        border-left: 3px solid transparent;
        cursor: pointer;
        transition: all 0.2s ease;
    }

       
        .si:hover,
        .sidebar a:hover,
        .si.on,
        .sidebar a.on {
            background: linear-gradient(135deg, #d44fd9, #ff8625);
            color: #ffffff;
            border-left: 3px solid #ffffff; /* keeps structure */
        }

        /* ICON FIX */
        .sidebar a img {
            filter: none;
            transition: 0.2s;
        }

        /* OPTIONAL: make icons white on hover */
        .sidebar a:hover img,
        .sidebar a.on img {
            filter: brightness(0) invert(1);
        }

        /* TEXT FIX (your issue: text not changing) */
        .sidebar a span {
            color: inherit;
        }

        .sidebar a:hover span,
        .sidebar a.on span {
            color: #ffffff !important;
        }
        .si .ic,
        .sidebar a .ic {
            width: 16px;
            text-align: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        /* Sidebar text color */
        .sidebar a .spn_text {
            color: #fefefe;
        }
.bc {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
}

    .bc span {
        color: var(--color-text-secondary);
    }


/* ============================================================
   7. PAGE HEADER
   ============================================================ */
.pt {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    margin-left: 6px;
}

.ps {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    margin-left: 6px;
}


/* ============================================================
   8. CARD
   ============================================================ */
.card {
    background: #ffffff;
    border: 1px solid var(--color-border-tertiary);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.ct {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.sect-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-tertiary);
    padding-bottom: 7px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ============================================================
   9. KPI TILES
   ============================================================ */
.kpi-g {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi {
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border-tertiary);
    border-radius: 8px;
    padding: 12px 14px;
}

.kl {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.kv {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
}

    .kv.ok {
        color: #3B6D11;
    }

    .kv.w {
        color: #854F0B;
    }

    .kv.d {
        color: #A32D2D;
    }


/* ============================================================
   10. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.g {
    background: #C0DD97;
    color: #27500A;
}

.y {
    background: #FAC775;
    color: #633806;
}

.r {
    background: #F7C1C1;
    color: #791F1F;
}

.b {
    background: #B5D4F4;
    color: #0C447C;
}

.gy {
    background: #D3D1C7;
    color: #444441;
}

.pu {
    background: #CECBF6;
    color: #3C3489;
}

.te {
    background: #9FE1CB;
    color: #085041;
}


/* ============================================================
   11. TABLE
   ============================================================ */
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .tbl th {
        text-align: left;
        padding: 8px 10px;
        font-weight: 600;
        font-size: 11px;
        color: #64748b;
        border-bottom: 1px solid var(--color-border-tertiary);
        background: var(--color-background-secondary);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .tbl td {
        padding: 10px;
        border-bottom: 1px solid var(--color-border-tertiary);
        color: var(--color-text-primary);
        vertical-align: middle;
    }

    .tbl tr:last-child td {
        border-bottom: none;
    }

    .tbl tr:hover td {
        background: var(--color-background-secondary);
    }

.risk-h {
    background: #F7C1C1;
    color: #791F1F;
}

.risk-m {
    background: #FAC775;
    color: #633806;
}

.risk-l {
    background: #C0DD97;
    color: #27500A;
}

.sbar {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border-tertiary);
    background: var(--color-background-secondary);
    align-items: center;
    flex-wrap: wrap;
}

.pag {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid var(--color-border-tertiary);
    font-size: 11px;
    color: var(--color-text-secondary);
    align-items: center;
}


/* ============================================================
   12. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-border-secondary);
    /*    background: #ffffff;*/
    background: linear-gradient(135deg, #d44fd9, #ff8625);
    /*color: var(--color-text-primary);*/
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

    .btn:hover {
        /* background: var(--color-background-secondary);
        color: var(--color-text-primary);*/
        background: linear-gradient(135deg, #c13ac6, #e6761f); /* slightly darker on hover */
        color: #ffffff;
    }

.bp {
    /*background: #1F3864;
    color: #fff;*/
    background: linear-gradient(135deg, #c13ac6, #e6761f); /* slightly darker on hover */
    color: #ffffff;
    border-color: #1F3864;
}

    .bp:hover {
        /*background: #162d52;
        color: #fff;*/
        background: linear-gradient(135deg, #c13ac6, #e6761f); /* slightly darker on hover */
        color: #ffffff;
    }

.bd {
    background: #A32D2D;
    color: #fff;
    border-color: #A32D2D;
}

    .bd:hover {
        background: #8a2424;
        color: #fff;
    }

.bs {
    background: #3B6D11;
    color: #fff;
    border-color: #3B6D11;
}

    .bs:hover {
        background: #2f580d;
        color: #fff;
    }

.bsm {
    padding: 4px 8px;
    font-size: 11px;
}


/* ============================================================
   13. FORM ELEMENTS
   ============================================================ */
.il {
    margin-bottom: 14px;
}

.lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 5px;
    display: block;
}

.inp,
.sel,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 7px;
    font-size: 12px;
    background: #ffffff;
    color: var(--color-text-primary);
    transition: border-color 0.15s;
}

    .inp:focus,
    .sel:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #2E75B6;
        box-shadow: 0 0 0 2px rgba(46, 117, 182, 0.15);
    }

.hint {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 3px;
}

    .hint.ok {
        color: #3B6D11;
    }

    .hint.er {
        color: #A32D2D;
    }

.fr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fr3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}


/* ============================================================
   14. TOGGLE SWITCH
   ============================================================ */
.tog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border-tertiary);
    font-size: 13px;
    color: var(--color-text-primary);
}

    .tog-row:last-child {
        border-bottom: none;
    }

.tog {
    width: 34px;
    height: 20px;
    background: #3B6D11;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

    .tog::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        background: #fff;
        border-radius: 50%;
        top: 3px;
        right: 3px;
        transition: right 0.15s;
    }

    .tog.off {
        background: #cbd5e1;
    }

        .tog.off::after {
            right: 17px;
        }


/* ============================================================
   15. OTP INPUT BOXES
   ============================================================ */
.otp-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0;
}

    .otp-b,
    .otp-row input {
        width: 44px;
        height: 50px;
        border: 1px solid var(--color-border-secondary);
        border-radius: 7px;
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        background: #ffffff;
        color: var(--color-text-primary);
    }

.str-bar {
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
    margin-top: 4px;
}

.str-fill {
    height: 100%;
    border-radius: 3px;
}


/* ============================================================
   16. AUTH SCREENS  (Login / OTP — no sidebar layout)
   ============================================================ */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #eef3fa;
}

.auth-card {
    width: 380px;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--color-border-tertiary);
}


/* ============================================================
   17. ALERTS & BANNERS
   ============================================================ */
.alert {
    background: #FCE4D6;
    border-left: 3px solid #A32D2D;
    border-radius: 0 7px 7px 0;
    padding: 10px 12px;
    font-size: 12px;
    color: #712B13;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-b {
    background: #E6F1FB;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 12px;
    color: #0C447C;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}


/* ============================================================
   18. MODAL
   ============================================================ */
.modal-ov {
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: #ffffff;
    border: 1px solid var(--color-border-tertiary);
    border-radius: 12px;
    width: 440px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.mh {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt {
    font-size: 15px;
    font-weight: 600;
}

.mb {
    padding: 18px;
}

.mf {
    padding: 12px 18px;
    border-top: 1px solid var(--color-border-tertiary);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}


/* ============================================================
   19. ROW-INFO  (key / value pairs)
   ============================================================ */
.row-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-tertiary);
    font-size: 13px;
}

    .row-info:last-child {
        border-bottom: none;
    }

.rk {
    color: var(--color-text-secondary);
}

.rv {
    color: var(--color-text-primary);
    font-weight: 600;
}


/* ============================================================
   20. DASHBOARD STATS  (alternative to .kpi-g)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--color-border-tertiary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 6px;
}

    .stat-value.danger {
        color: #A32D2D;
    }

    .stat-value.warning {
        color: #854F0B;
    }

    .stat-value.success {
        color: #3B6D11;
    }


/* ============================================================
   21. TERMINAL / CODE BLOCK
   ============================================================ */
.term {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #a8ff78;
    min-height: 120px;
    line-height: 1.7;
    overflow-x: auto;
}


/* ============================================================
   22. SPACING HELPERS
   ============================================================ */
.sep {
    height: 12px;
}

.mt8 {
    margin-top: 8px;
}

.mt12 {
    margin-top: 12px;
}

.mt16 {
    margin-top: 16px;
}

.mb8 {
    margin-bottom: 8px;
}

.mb12 {
    margin-bottom: 12px;
}

.mb16 {
    margin-bottom: 16px;
}



.nav-bar {
    background: var(--color-background-secondary);
    border-bottom: 1px solid var(--color-border-tertiary);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding-right: 10px;
    border-right: 1px solid var(--color-border-secondary);
    margin-right: 2px;
}

    .nav-group:last-child {
        border-right: none;
    }

.nav-label {
    font-size: 9px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 2px 0 1px;
    font-weight: 600;
}

.nb {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 5px;
    background: #ffffff;
    color: var(--color-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s;
}

    .nb:hover {
        background: var(--color-background-tertiary);
    }

    .nb.on {
        background: #1F3864;
        color: #fff;
        border-color: #1F3864;
    }


/* ============================================================
   24. RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .kpi-g,
    .stats-grid,
    .fr3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border-tertiary);
    }

    .kpi-g,
    .stats-grid,
    .fr3 {
        grid-template-columns: 1fr;
    }

    .fr {
        grid-template-columns: 1fr;
    }
}




/* ================================
   LOGIN SPLIT SCREEN (AUTHARC UI)
   ================================ */

#s-login {
    height: calc(100vh - 48px); /* adjust for topbar */
    display: flex;
    padding: 0 !important;
}

 

 

    /* REMOVE CARD DEFAULT LOOK */
    #s-login .card {
        background: transparent;
        border: none;
        box-shadow: none;
        width: 100%;
        max-width: 420px;
    }

    /* LOGO (AUTHARC) */
    #s-login .logo-autharc {
        width: 220px;
        margin-bottom: 30px;
    }

    /* INPUT STYLE (PINK BORDER) */
    #s-login .inp {
        border-radius: 30px;
        border: 2px solid #ff4fd8;
        padding: 12px 16px;
        font-size: 14px;
        outline: none;
        transition: 0.3s;
    }

        #s-login .inp:focus {
            border-color: #ff8625;
            box-shadow: 0 0 10px rgba(255, 79, 216, 0.4);
        }

    /* LABEL */
    #s-login .lbl {
        color: #ffffff;
        font-weight: 500;
        margin-bottom: 6px;
    }

    /* BUTTON */
    #s-login .btn {
        border-radius: 30px;
        background: linear-gradient(135deg, #d44fd9, #ff8625);
        border: none;
    }

    /* TEXT LINKS */
    #s-login a {
        color: #ddd;
    }

        #s-login a:hover {
            color: #ff4fd8;
        }

    /* CENTER CONTENT */
    #s-login > div > div {
        width: 100%;
        max-width: 420px;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    #s-login {
        flex-direction: column;
    }

        #s-login::before {
            height: 200px;
        }
}

#s-login {
    display: flex;
    height: calc(100vh - 48px);
}

/* LEFT SIDE */
.login-left {
    flex: 1;
    background: url('/images/28985566_halftone_square_perspective_2.jpg') no-repeat center;
    background-size: cover;
    position: relative;
}

/* LOGO POSITION */
.autharc-left-logo {
    position: absolute;
    top: 40px;
    left: 60px;
    width: 260px;
}

 

/* MAIN SPLIT */
#s-login {
    display: flex;
    height: calc(100vh - 48px);
}

/* LEFT SIDE */
.login-left {
    flex: 1;
    background-color: #ffffff;
    background-image: url('/images/28985566_halftone_square_perspective_2.jpg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    position: relative;
}

/* LOGO TOP LEFT */
.autharc-left-logo {
    position: absolute;
    top: 40px;
    left: 60px;
    width: 260px;
}

 

/* FORM BOX */
.login-box {
    width: 360px;
}

/* APP BADGE */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1F3864;
    color: #fff;
    padding: 9px 18px;
    border-radius: 9px;
    margin-bottom: 8px;
}

/* TEXT */
.sub-text {
    font-size: 12px;
    color: #ccc;
}


/* LABEL WHITE */
#s-login .lbl {
    color: #fff;
}

.autharc-subtitle {
    position: absolute;
    top: 160px;
    left: 80px;
    color: #ff4fc1;
    font-size: 14px;
}

.autharc-desc {
    position: absolute;
    top: 220px;
    left: 80px;
    color: #000;
    font-size: 16px;
}

.autharc-footer {
    position: absolute;
    bottom: 40px;
    left: 80px;
    color: #ff4fc1;
}

.login-left {
    flex: 1;
    background-color: #ffffff; /* WHITE SIDE */
    background-image: url('/images/28985566_halftone_square_perspective_2.jpg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

/*.login-right {
    flex: 1;
    background: linear-gradient(135deg, #0c1b3a, #1a2f6c);
    display: flex;
    align-items: center;
    justify-content: center;
}
*/

/*.login-right {
    flex: 1;
    background: linear-gradient( 135deg, #090043, #0385b9, #ef52b8, #f55052 );
    display: flex;
    align-items: center;
    justify-content: center;
}*/

.login-right {
    flex: 1;
    background: linear-gradient( 120deg, #090043 0%, #0d1b6f 20%, #0385b9 45%, #ef52b8 75%, #f55052 100% );
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-left {
    flex: 1;
    background-color: #ffffff;
    background-image: url('/images/28985566_halftone_square_perspective_2.jpg');
    background-repeat: no-repeat;
    background-position: left top; 
    background-size: 150% 100%; 

    position: relative;
}

.login-box {
    width: 380px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Tenant Reg*/
.hero {
    background: #1F3864;
    color: #fff;
    padding: 40px 24px 56px;
}

.hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.hero-steps {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.hero-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 11px;
}

.step-num {
    width: 20px;
    height: 20px;
    background: #2E75B6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-active {
    background: rgba(255,255,255,.2);
}

.step-indicator {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-top: -20px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #f4f6f9;
    color: #1f2d3d;
}

/* =========================
   TOPBAR
========================= */
.topbar {
   /* background: #1f3b63;*/
    background: #c8d8f0;
    color: #fff;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 600;
}

/* =========================
   HERO
========================= */
.hero {
    background: #1f3b63;
    color: #fff;
    padding: 40px 20px 80px;
    text-align: center;
}

    .hero h1 {
        font-size: 34px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        opacity: 0.9;
    }

/* =========================
   PAGE BODY
========================= */
.page-body {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
}

/* =========================
   STEP INDICATOR
========================= */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 28px 21px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.si-step:hover {
    opacity: 0.8;
}

/* EACH STEP */
.si-step {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* remove underline */
    color: inherit;
    cursor: pointer;
}

/* NUMBER CIRCLE */
.si-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dce3ec;
    color: #4a5d73;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

    /* ACTIVE STEP */
    .si-num.active {
        background: #1f3b63;
        color: #fff;
    }

    /* COMPLETED STEP */
    .si-num.done {
        background: #28a745;
        color: #fff;
    }

/* TEXT */
.si-text {
    display: flex;
    flex-direction: column;
}

.si-label {
    font-size: 14px;
    font-weight: 600;
}

.si-sub {
    font-size: 11px;
    color: #7a8a9a;
}

/* LINE BETWEEN STEPS */
.si-divider {
    flex: 1;
    height: 2px;
    background: #dce3ec;
    margin: 0 10px;
}

/* =========================
   CARD
========================= */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 3px;
}

.card-head {
    font-weight: 600;
    margin-bottom: 15px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================
   FORM
========================= */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
}

.lbl {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.inp, .sel {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccd6e0;
    font-size: 14px;
}

/* =========================
   PLAN
========================= */
.plan-grid {
    display: flex;
    gap: 15px;
}

.plan-card {
    flex: 1;
    padding: 15px;
    border: 2px solid #ccd6e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

    .plan-card:hover {
        border-color: #1f3b63;
    }

    .plan-card.sel {
        border-color: #1f3b63;
        background: #eef3fb;
    }

.btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;  
    flex-wrap: wrap;  
}
.btn-lg {
    padding: 10px 16px;
    font-size: 14px;
}

.btn-row .btn {
    white-space: nowrap;
}
.tab-row {
    display: flex;
    gap: 24px;
    border-bottom: 2px solid #e5e7eb;
    margin-top: 20px;
    margin-bottom: 20px;
}
.tab {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    padding-bottom: 10px;
    position: relative;
    transition: all 0.2s ease;
}
.tab:hover {
        color: #111827;
 }
.tab.on {
        color: #1f2937;
        font-weight: 600;
  }
.tab.on::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 3px;
        background: #2563eb;
        border-radius: 2px;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bg-section {
    border: 2px solid #f0b24a;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 18px;
    background: #fffdf8;
}

.bg-head {
    background: #fdf5e8;
    border-bottom: 1px solid #f0b24a;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bg-title {
    font-size: 18px;
    font-weight: 600;
    color: #7a4b00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-sub {
    font-size: 14px;
    color: #9a6415;
}

.bg-body {
    padding: 20px 22px 24px;
    background: #fffdf8;
}

.warn-box {
    background: #fdf3df;
    border: 1px solid #f0b24a;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    color: #8a5400;
    margin-bottom: 18px;
    line-height: 1.6;
}

.info-box {
    background: #eaf4ff;
    border: 1px solid #a9caef;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    color: #184d8a;
    line-height: 1.6;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.bg-b {
    background: #b8d6f3;
    color: #114e8b;
}

.bg-g {
    background: #b8d97a;
    color: #355c00;
}

.bg-r {
    background: #f6c4c4;
    color: #8a2323;
}

.bg-amber {
    background: #f6c26b;
    color: #6e4200;
}

.bg-gy {
    background: #d9d9d9;
    color: #505050;
}

.sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    background: #eaf4ff;
    color: #184d8a;
    padding: 8px 14px;
    border-radius: 999px;
}

.sync-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5f8d1b;
    display: inline-block;
}

.tbl th {
    font-size: 13px;
    font-weight: 600;
    color: #3d5875;
    padding: 12px 14px;
}

.tbl td {
    font-size: 15px;
    padding: 14px;
}

.btn.bd {
    background: #b3312d;
    color: #fff;
    border-color: #b3312d;
}

.btn.bd:hover {
        background: #932723;
}

.wide-card {
    width: 100%;
    max-width: 1200px; /* adjust as needed */
    margin: 4px auto;
}

/*Text Field Error*/
/* Red border when invalid */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border: 2px solid #e74c3c !important;
    background-color: #fff6f6;
}

/* Error message styling */
.field-validation-error {
    color: #e74c3c;
    font-size: 12px;
}

/* Optional: green when valid */
input.valid,
select.valid,
textarea.valid {
    border: 2px solid #2ecc71;
}

/*Topbar_Logout*/

.audix-topbar {
    height: 64px;
    /*background: #0f172a;*/
    background: #03245e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 50;
}

.audix-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f43f5e;
    font-size: 18px;
    font-weight: 700;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background: #f43f5e;
    border-radius: 50%;
}

.audix-user-menu {
    position: relative;
}

.audix-user-btn {
    border: 0;
    background: rgba(255,255,255,0.06);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.audix-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.audix-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.audix-user-name {
    font-size: 14px;
    font-weight: 700;
}

.audix-user-meta {
    font-size: 12px;
    color: #94a3b8;
}

.audix-caret {
    font-size: 12px;
    color: #cbd5e1;
}

.audix-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    width: 230px;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.25);
    overflow: hidden;
    z-index: 9999;
}

    .audix-dropdown.open {
        display: block;
    }

.audix-dropdown-header {
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .audix-dropdown-header span {
        color: #64748b;
        font-size: 12px;
    }

.audix-dropdown a,
.audix-dropdown button {
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    background: #fff;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

    .audix-dropdown a:hover {
        background: #f1f5f9;
    }

.audix-dropdown button {
    background: #ef4444;
    color: #fff;
    font-weight: 700;
}

    .audix-dropdown button:hover {
        background: #dc2626;
    }

.audix-company {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.audix-dropdown-header small {
    font-size: 11px;
    color: #64748b;
}
/*
---Logout*/

.audix-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    display: none;
    z-index: 999;
}

.audix-dropdown.open {
    display: block;
}

.logout-btn {
    width: 100%;
    border: none;
    background: #d60000;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .logout-btn:hover {
        background: #b30000;
    }







/* ── Full-page two-column shell ─────────────────────────── */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: 'DM Sans', Arial, sans-serif;
}

/* ── LEFT PANEL — light with dot pattern ────────────────── */
.auth-split-left {
    background-color: #f8f9fa;
    background-image: radial-gradient(circle, #d1d5db 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    overflow: hidden;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand-logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e040fb, #ff6d00);
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .auth-brand-logo-icon svg {
        width: 26px;
        height: 26px;
        fill: #fff;
    }

.auth-brand-name {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1a1a2e;
}

    .auth-brand-name span {
        color: #e040fb;
    }

.auth-brand-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e040fb;
    margin-bottom: 20px;
}

.auth-brand-headline {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.35;
    max-width: 360px;
}

.auth-brand-footer {
    font-size: 13px;
    color: #e040fb;
    font-weight: 500;
}

/* ── RIGHT PANEL — gradient background ──────────────────── */
.auth-split-right {
    background: linear-gradient(135deg, #0d1b4b 0%, #1a3a8f 35%, #6b21a8 70%, #db2777 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

    .auth-split-right::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 80% 20%, rgba(255,100,200,.18) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(56,189,248,.12) 0%, transparent 55%);
        pointer-events: none;
    }

/* ── Glass card ──────────────────────────────────────────── */
.auth-glass-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 44px 40px 36px;
    box-shadow: 0 32px 80px rgba(0,0,0,.35);
    animation: auth-rise .45s cubic-bezier(.22,1,.36,1) both;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Product badge ───────────────────────────────────────── */
.auth-badge-wrap {
    text-align: center;
}

.auth-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15,22,35,.55);
    border-radius: 99px;
    padding: 10px 20px;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}

    .auth-product-badge svg {
        width: 18px;
        height: 18px;
        fill: #fff;
    }

.auth-product-sub {
    font-size: 12px;
    color: rgba(255,255,255,.50);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: .3px;
}

/* ── Headings ────────────────────────────────────────────── */
.auth-glass-card .auth-ttl {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.auth-glass-card .auth-sub {
    font-size: 13px;
    color: rgba(255,255,255,.62);
    line-height: 1.55;
    margin-bottom: 24px;
}

.auth-em {
    color: #fff;
    font-weight: 600;
}

/* ── Labels ──────────────────────────────────────────────── */
.auth-glass-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: .1px;
}

/* ── Field wrapper ───────────────────────────────────────── */
.auth-field {
    margin-bottom: 20px;
}

/* ── Input wrapper ───────────────────────────────────────── */
.auth-input-wrap {
    position: relative;
}

/* ── Inputs ──────────────────────────────────────────────── */
.auth-glass-card input[type="email"],
.auth-glass-card input[type="password"],
.auth-glass-card input[type="text"] {
    width: 100%;
    background: rgba(255,255,255,.92);
    border: 2px solid transparent;
    border-radius: 99px;
    color: #1a1a2e;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    padding: 13px 48px 13px 20px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-shadow: none;
}

    .auth-glass-card input[type="email"]::placeholder,
    .auth-glass-card input[type="password"]::placeholder,
    .auth-glass-card input[type="text"]::placeholder {
        color: #9ca3af;
    }

    .auth-glass-card input[type="email"]:focus,
    .auth-glass-card input[type="password"]:focus,
    .auth-glass-card input[type="text"]:focus {
        border-color: #e040fb;
        box-shadow: 0 0 0 3px rgba(224,64,251,.22);
    }

/* ── Eye toggle ──────────────────────────────────────────── */
.auth-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color .2s;
    display: grid;
    place-items: center;
}

    .auth-eye:hover {
        color: #e040fb;
    }

    .auth-eye svg {
        width: 17px;
        height: 17px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── Field-level error ───────────────────────────────────── */
.auth-err {
    font-size: 12px;
    color: #fca5a5;
    margin-top: 6px;
    display: block;
}

/* ── Validation summary ──────────────────────────────────── */
.auth-val-summary {
    background: rgba(248,113,113,.18);
    border: 1px solid rgba(248,113,113,.45);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #fca5a5;
}

    .auth-val-summary ul {
        padding-left: 16px;
    }

/* ── Notice / info banner ────────────────────────────────── */
.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 13px;
    color: rgba(255,255,255,.70);
    line-height: 1.5;
}

    .auth-notice svg {
        flex-shrink: 0;
        margin-top: 1px;
        stroke: rgba(255,255,255,.60);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── Token badge ─────────────────────────────────────────── */
.auth-token-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: rgba(255,255,255,.80);
    font-family: 'DM Mono', 'Courier New', monospace;
    margin-bottom: 22px;
}

    .auth-token-badge svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

/* ── Success sent banner (ForgotPassword page) ───────────── */
.auth-sent-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(134,239,172,.15);
    border: 1px solid rgba(134,239,172,.35);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #86efac;
    line-height: 1.55;
}

    .auth-sent-banner svg {
        flex-shrink: 0;
        margin-top: 1px;
        stroke: #86efac;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── Gradient primary button ─────────────────────────────── */
.auth-btn-gradient {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #e040fb 0%, #ff6d00 100%);
    color: #fff;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 99px;
    padding: 14px;
    cursor: pointer;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    text-align: center;
    text-decoration: none;
    letter-spacing: .3px;
    margin-top: 4px;
}

    .auth-btn-gradient:hover {
        opacity: .90;
        box-shadow: 0 6px 22px rgba(224,64,251,.40);
        color: #fff;
    }

    .auth-btn-gradient:active {
        transform: scale(.98);
    }

    .auth-btn-gradient:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

/* ── Spinner (inside button) ─────────────────────────────── */
.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
    margin: 0 auto;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Glass links row (footer of card) ───────────────────── */
.auth-glass-links {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255,255,255,.50);
}

    .auth-glass-links a {
        color: rgba(255,255,255,.80);
        text-decoration: underline;
        text-underline-offset: 3px;
        font-weight: 500;
        transition: color .2s;
    }

        .auth-glass-links a:hover {
            color: #fff;
        }

    .auth-glass-links .auth-sep {
        margin: 0 8px;
        opacity: .35;
    }

/* ── Password strength meter ─────────────────────────────── */
.auth-strength-wrap {
    margin-top: 10px;
}

.auth-strength-track {
    height: 5px;
    background: rgba(255,255,255,.15);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 7px;
}

#pwdStrength {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width .3s ease, background .3s ease;
}

.auth-strength-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,.50);
}

/* ── Requirements checklist ──────────────────────────────── */
.auth-req-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-top: 12px;
    padding: 0;
}

    .auth-req-list li {
        font-size: 12px;
        color: rgba(255,255,255,.50);
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color .2s;
    }

.req-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}

.auth-req-list li.pass {
    color: #86efac;
}

    .auth-req-list li.pass .req-dot {
        background: #86efac;
        border-color: #86efac;
    }

/* ── Confirm match indicator ─────────────────────────────── */
.auth-match {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
}

    .auth-match.ok {
        color: #86efac;
    }

    .auth-match.fail {
        color: #fca5a5;
    }

/* ── Centred icon ring (error / expired page) ────────────── */
.auth-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 28px;
}

    .auth-icon-wrap svg {
        width: 32px;
        height: 32px;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .auth-icon-wrap.err {
        background: rgba(252,165,165,.15);
        border: 1px solid rgba(252,165,165,.35);
        animation: auth-pulse-red 2.6s ease-in-out infinite;
    }

        .auth-icon-wrap.err svg {
            stroke: #fca5a5;
        }

@keyframes auth-pulse-red {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(252,165,165,.22);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(252,165,165,.0);
    }
}

/* ── Tips / reason box ───────────────────────────────────── */
.auth-tips-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 28px;
    text-align: left;
}

.auth-tips-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255,255,255,.45);
    margin-bottom: 12px;
}

.auth-tips-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 0;
}

.auth-tips-box li {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.45;
}

.auth-dot-err {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fca5a5;
    opacity: .7;
    flex-shrink: 0;
}

/* ── Divider inside glass card ───────────────────────────── */
.auth-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.15);
    margin: 0 0 20px;
}

/* ── Login page — reset-success banner ───────────────────── */
.auth-success-banner {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(134,239,172,.15);
    border: 1px solid rgba(134,239,172,.35);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #86efac;
}

    .auth-success-banner svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split-left {
        display: none;
    }

    .auth-split-right {
        min-height: 100vh;
        padding: 32px 20px;
    }

    .auth-glass-card {
        padding: 36px 24px 28px;
    }

    .auth-req-list {
        grid-template-columns: 1fr;
    }
}

.auth-sending-hint {
    display: none; 
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    animation: auth-fade-in .3s ease both;
}

@keyframes auth-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*Target View CSS*/
.screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-cell {
    display: flex;
    gap: 3px;
    align-items: center;
}

.form-inline {
    display: inline;
}

.form-actions {
    margin-top: 12px;
}


.card-table {
    background: #ffffff;
    border: 1px solid var(--color-border-tertiary);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-warn {
    background: #FDE8E8;
    border: 1px solid #F5C6C6;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.text-online {
    color: #3B6D11;
}

.text-offline {
    color: #A32D2D;
}

.text-danger {
    color: #A32D2D;
}

.fs-11 {
    font-size: 11px;
}

.fs-12 {
    font-size: 12px;
}

.fs-13 {
    font-size: 13px;
}

.td-name {
    font-weight: 500;
}

.td-mono {
    font-family: var(--font-mono);
    font-size: 11px;
}

.td-account-name {
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 12px;
}

.td-secondary {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.td-expired {
    color: #A32D2D;
    font-size: 11px;
}

.td-overdue {
    color: #A32D2D;
    font-weight: 500;
}

.td-ellipsis {
    font-size: 12px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.net {
    background: #FCE4D6;
    color: #712B13;
}

.cl {
    background: #EDE0F7;
    color: #5B1D8A;
}

.row-warn {
    background: #FFF8F0;
}

    .row-warn:hover td {
        background: #FFF0E0 !important;
    }

.tbl-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.tbl-empty-sub {
    display: block;
    font-size: 11px;
    color: #bbb;
    margin-top: 6px;
}

.inp-sm {
    padding: 5px 9px !important;
    font-size: 12px !important;
}

.sel-sm {
    padding: 5px 9px !important;
    font-size: 12px !important;
}

.inp-search {
    max-width: 190px;
}

.sel-type {
    width: 130px;
}

.sel-env {
    width: 120px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-container {
    max-width: 560px;
}

.req {
    color: #A32D2D;
}

.inp-err {
    border-color: #D94040 !important;
    box-shadow: 0 0 0 2px rgba(211, 64, 64, 0.12);
}

.field-err {
    color: #D94040;
    font-size: 11px;
    margin-top: 2px;
    display: block;
}

.info-b-err {
    background: #FDE8E8;
    border: 1px solid #F5C6C6;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 12px;
    color: #A32D2D;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.il-last {
    margin-top: 10px;
    margin-bottom: 0;
}

.sel-duration {
    max-width: 200px;
}

.lbl-mandatory {
    color: #A32D2D;
    font-size: 11px;
}

.tog-label {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.tog-chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

    .tog-chk:checked + .tog {
        background: #3B6D11;
    }

        .tog-chk:checked + .tog::after {
            right: 3px;
        }
    .tog-chk:not(:checked) + .tog {
        background: #cbd5e1;
    }

        .tog-chk:not(:checked) + .tog::after {
            right: 17px;
        }

.test-conn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.test-conn-result {
    font-size: 12px;
    color: #888;
}

.test-conn-testing {
    color: #888;
}

.test-conn-ok {
    color: #3B6D11;
}

.test-conn-fail {
    color: #A32D2D;
}

.target-selector {
    border: 1px solid var(--color-border-secondary);
    border-radius: 6px;
    padding: 8px 10px;
    max-height: 140px;
    overflow-y: auto;
    background: #ffffff;
    margin-bottom: 4px;
}

.target-selector-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

    .target-selector-item:hover {
        color: var(--color-text-primary);
    }

.overdue-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.overdue-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.bc a {
    color: var(--color-text-tertiary);
    text-decoration: none;
}

    .bc a:hover {
        color: var(--color-text-secondary);
        text-decoration: underline;
    }

.toast-success {
    position: fixed;
    top: 18px;
    right: 18px;
    background: #3B6D11;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: opacity 0.4s ease;
}
/* End of Targets Module */





/* ── Vault — Checkout modal info tile ───────────────────────── */
.vault-checkout-info {
    background: var(--color-background-secondary);
    border-radius: 7px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.vault-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border-tertiary);
}

    .vault-checkout-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.vault-checkout-label {
    color: var(--color-text-secondary);
}

.vault-checkout-value {
    font-weight: 500;
}


/* ── Vault — Password Policy sidebar list items ─────────────── */
.vault-policy-item {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

    .vault-policy-item:hover {
        background: var(--color-background-secondary);
        color: var(--color-text-primary);
    }

.vault-policy-item--active {
    background: #E6F1FB;
    border-left-color: #2E75B6;
    font-weight: 500;
    color: var(--color-text-primary);
}

.tbl tr:has(td .badge.r) td {
    background: #fff8f8;
}

.apikey-reveal-banner {
    background: #fdf5e8;
    border: 2px solid #f0b24a;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
    animation: pamFadeIn .3s ease both;
}

.apikey-reveal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #f0b24a;
    border-radius: 7px;
    padding: 8px 12px;
}

.apikey-code {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #7a4b00;
    flex: 1;
    word-break: break-all;
    letter-spacing: .5px;
    user-select: all;
}
#decisionModal {
    animation: pamFadeIn .18s ease both;
}

@keyframes pamFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.badge.critical-badge {
    background: #F7C1C1;
    color: #791F1F;
    animation: pamPulse 2s ease-in-out infinite;
}

@keyframes pamPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }
}

.jit-active-row td {
    background: #f0fdf4;
}

.tbl tr:has(td.apilog-slow) {
    background: #fff8f0;
}

.pam-page-content {
    padding: 20px;
    flex: 1;
    overflow: auto;
    min-width: 0;
}


/* Request Access*/

#decisionModal {
    animation: pamFadeIn .18s ease both;
}

@keyframes pamFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.jit-active-row td {
    background: #f0fdf4;
}

.jit-active-row:hover td {
    background: #dcfce7;
}

.badge.critical-badge {
    background: #F7C1C1;
    color: #791F1F;
    animation: pamPulse 2s ease-in-out infinite;
}

@keyframes pamPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }
}

.vault-checkout-info {
    background: var(--color-background-secondary);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 12px;
}

.vault-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border-tertiary);
}

    .vault-checkout-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.vault-checkout-label {
    color: var(--color-text-secondary);
}

.vault-checkout-value {
    font-weight: 500;
}

.vault-policy-item {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

    .vault-policy-item:hover {
        background: var(--color-background-secondary);
        color: var(--color-text-primary);
    }

.vault-policy-item--active {
    background: #E6F1FB;
    border-left-color: #2E75B6;
    font-weight: 500;
    color: var(--color-text-primary);
}

.tbl tr:has(td .badge.r) td {
    background: #fff8f8;
}

.apikey-reveal-banner {
    background: #fdf5e8;
    border: 2px solid #f0b24a;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
    animation: pamFadeIn .3s ease both;
}

.apikey-reveal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #f0b24a;
    border-radius: 7px;
    padding: 8px 12px;
}

.apikey-code {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #7a4b00;
    flex: 1;
    word-break: break-all;
    letter-spacing: .5px;
    user-select: all;
}

.pam-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.4;
}

    .pam-checkbox-label input[type="checkbox"] {
        width: auto;
        margin-top: 2px;
        flex-shrink: 0;
        accent-color: #2E75B6;
    }

.pam-strength-bar {
    height: 4px;
    background: var(--color-border-tertiary);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.pam-strength-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .3s ease, background .3s ease;
}

.modal-ov {
    animation: pamFadeIn .15s ease both;
}
/* Request Access END*/



/* ─────────────────────────────────────────
   RDP Launch Modal
───────────────────────────────────────── */

.rdp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rdp-modal {
    width: 620px;
    max-width: 95%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.rdp-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.rdp-modal__title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rdp-modal__close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

.rdp-modal__sub {
    padding: 18px 22px 0;
    color: #666;
    font-size: 14px;
}

.rdp-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 22px;
}

.rdp-option {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

    .rdp-option:hover {
        transform: translateY(-2px);
    }

.rdp-option__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
}

.rdp-option__label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rdp-option__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.rdp-option__badge {
    margin-top: 14px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.rdp-option__badge--recommended {
    background: #dcfce7;
    color: #166534;
}

.rdp-modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 22px 22px;
}




.page-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    overflow: auto;
}



.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    width: 700px;
    max-width: 95%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal__body {
    padding: 20px;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.modal__close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

.fr--nowrap {
    display: flex;
    gap: 14px;
}

    .fr--nowrap .il {
        min-width: 0;
    }







/* ════════════════════════════════════════════════════
   SIDEBAR — sb classes (replaces all previous sb-* rules)
   ════════════════════════════════════════════════════ */

.sb {
    width: 220px;
    min-width: 220px;
    background: #1d1d5d;
    border-right: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0 24px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    align-self: flex-start;
}

    .sb::-webkit-scrollbar {
        width: 3px;
    }

    .sb::-webkit-scrollbar-track {
        background: transparent;
    }

    .sb::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.14);
        border-radius: 2px;
    }

/* ── Dashboard item ──────────────────────────────────── */
.sb-item.sb-dashboard {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    border-left: 3px solid transparent;
}

/* ── All nav items ───────────────────────────────────── */
.sb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 22px;
    font-size: 12.5px;
    color: rgba(226,232,240,0.82);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-left-color 0.18s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

    .sb-item:hover {
        background: linear-gradient(135deg, rgba(212,79,217,0.22), rgba(255,134,37,0.15));
        color: #fff;
        border-left-color: rgba(255,255,255,0.35);
    }

    .sb-item.on {
        background: linear-gradient(135deg, #d44fd9, #ff8625);
        color: #fff;
        border-left-color: #fff;
    }

        .sb-item.on .sb-ic,
        .sb-item:hover .sb-ic {
            opacity: 1;
        }

.sb-ic {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.15s;
}

.sb-lbl {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ── Group header ────────────────────────────────────── */
.sb-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s, border-left-color 0.15s;
    border-left: 3px solid transparent;
    background: none;
    /* reset any accidental inheritance */
    border-radius: 0;
    text-decoration: none;
}

    .sb-group:hover {
        background: rgba(255,255,255,0.05);
        color: rgba(255,255,255,0.75);
        border-left-color: transparent;
    }

    .sb-group.open {
        color: rgba(255,255,255,0.92);
        background: rgba(212,79,217,0.12);
        border-left-color: #d44fd9;
    }

.sb-group-ic {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.65;
}

.sb-group.open .sb-group-ic {
    opacity: 1;
}

.sb-group-label {
    flex: 1;
}

.sb-group-chevron {
    font-size: 10px;
    opacity: 0.35;
    transition: transform 0.22s ease, opacity 0.15s;
    display: inline-block;
    margin-left: auto;
}

.sb-group.open .sb-group-chevron {
    transform: rotate(-180deg);
    opacity: 0.8;
}

.sb-group:hover .sb-group-chevron {
    opacity: 0.6;
}

/* ── Collapsible panel ───────────────────────────────── */
.sb-group-items {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.sidebar {
    display: none !important;
}






/* Nested layout fix — inner layout ko override karo */
.layout .layout {
    display: contents; /* inner layout invisible ho jaye */
}

.layout .sidebar {
    display: none; /* inner duplicate sidebar hide */
}

.layout .content .content {
    padding: 0; /* double padding remove */
}

.screen {
    display: contents; /* screen wrapper ignore */
}

.content .screen {
    display: contents;
}

    .content .screen > .layout {
        display: contents;
    }

/* Inner duplicate sidebar hide karo */
.content .sidebar {
    display: none;
}

/* Inner duplicate content wrapper remove karo */
.content .content {
    display: contents;
}

/* Sidebar fixed rakho — scroll ke saath nahi hile */
.sb {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Layout full height hona chahiye */
.layout {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

/* Body/html scroll allow karo */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}