:root {
    --navy-950: #061b2f;
    --navy-900: #082943;
    --navy-800: #0b3a5c;
    --navy-700: #14547d;
    --maroon-800: #7d1f35;
    --maroon-700: #992b45;
    --gold-500: #e7b04a;
    --ink: #18324a;
    --muted: #6e7f91;
    --line: #dce5ee;
    --surface: #ffffff;
    --surface-soft: #f4f7fa;
    --danger: #9d293e;
    --success: #176c45;
    --shadow: 0 30px 80px rgba(16, 42, 67, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #eef3f7;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

/* Login page */
.auth-page-body {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 15%, rgba(153,43,69,.15), transparent 25%),
        radial-gradient(circle at 92% 12%, rgba(20,84,125,.17), transparent 28%),
        linear-gradient(145deg, #edf3f8 0%, #fafcfd 50%, #e8eef4 100%);
}
.home-back-btn {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #cddbe7;
    border-radius: 12px;
    color: var(--navy-900);
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(16,42,67,.12);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}
.home-back-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-800), var(--maroon-700));
    border-color: transparent;
}
.home-back-btn span:first-child {
    font-size: 18px;
    line-height: 1;
}
.auth-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-card {
    width: min(1120px, 100%);
    height: min(760px, calc(100vh - 48px));
    min-height: 620px;
    display: grid;
    grid-template-columns: 38% 62%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 28px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
}
.auth-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 42px 38px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.13), transparent 24%),
        linear-gradient(155deg, var(--navy-950), var(--navy-800) 58%, var(--maroon-800));
}
.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
}
.auth-brand-panel::before { width: 360px; height: 360px; right: -190px; top: -130px; }
.auth-brand-panel::after { width: 260px; height: 260px; left: -140px; bottom: -130px; }
.brand-top { display: grid; gap: 30px; }
.brand-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--maroon-800);
    background: linear-gradient(145deg, #fff, #f4dcaa);
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
    font-size: 32px;
    font-weight: 950;
}
.brand-kicker { color: #bcd0e2; font-size: 11px; font-weight: 900; letter-spacing: .19em; }
.auth-brand-panel h1 { margin: 12px 0 16px; font-size: 44px; line-height: 1.04; letter-spacing: 0; }
.auth-brand-panel p { max-width: 350px; margin: 0; color: #d6e2ed; font-size: 14px; line-height: 1.75; }
.brand-points { display: grid; gap: 12px; }
.brand-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}
.brand-point > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.10);
    color: #f6cc78;
    font-size: 10px;
    font-weight: 900;
}
.brand-point strong { display: block; font-size: 12px; }
.brand-point small { display: block; margin-top: 3px; color: #bfd0df; font-size: 10.5px; line-height: 1.35; }
.brand-footer { display: flex; align-items: center; gap: 9px; color: #cfdeea; font-size: 11px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #57d39a; box-shadow: 0 0 0 5px rgba(87,211,154,.12); }

.auth-workspace {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 30px 34px 20px;
    background: rgba(255,255,255,.98);
}
.workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--maroon-700); font-size: 10px; font-weight: 950; letter-spacing: .17em; }
.workspace-header h2 { margin: 6px 0 5px; color: var(--navy-900); font-size: 25px; line-height: 1.2; letter-spacing: -.55px; }
.workspace-header p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.security-badge {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid #cfe0ec;
    border-radius: 14px;
    color: var(--navy-700);
    background: #f2f7fa;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .05em;
}
.access-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 23px 0 20px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #f4f7fa;
}
.access-tab {
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #6a7c8e;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 850;
    transition: transform .18s, color .18s, background .18s, box-shadow .18s;
}
.access-tab:hover { color: var(--navy-800); background: #fff; transform: translateY(-1px); }
.access-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-800), var(--maroon-700));
    box-shadow: 0 9px 18px rgba(28,58,85,.18);
}
.tab-symbol {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--navy-700);
    background: #e6eef4;
    font-size: 10px;
    font-weight: 950;
}
.access-tab.active .tab-symbol { color: var(--maroon-800); background: #fff; }
.google-symbol { color: #3578d4; }

.workspace-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c9d5df transparent;
    padding: 2px 7px 8px 2px;
}
.workspace-content::-webkit-scrollbar { width: 6px; }
.workspace-content::-webkit-scrollbar-thumb { border-radius: 99px; background: #c9d5df; }
.access-panel[hidden] { display: none !important; }
.access-panel { animation: panelIn .2s ease-out; }
@keyframes panelIn { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.panel-title-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--navy-800);
    background: #eaf2f7;
    font-size: 15px;
    font-weight: 950;
}
.google-title-icon { color: #3578d4; }
.panel-heading h3 { margin: 0; color: var(--navy-900); font-size: 20px; letter-spacing: -.3px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.compact-heading { margin-bottom: 14px; }

.notice { margin: 0 0 15px; padding: 11px 13px; border-radius: 12px; font-size: 12px; font-weight: 750; line-height: 1.45; }
.notice.error { color: #8f2033; background: #fff0f2; border: 1px solid #efbec7; }
.notice.success { color: #176440; background: #eefaf3; border: 1px solid #bce3cb; }
.info-box { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid #c9e1f2; border-radius: 12px; color: #215c80; background: #eff8fd; font-size: 11.5px; line-height: 1.5; }
.info-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; color: #215c80; background: #fff; font-size: 11px; font-weight: 950; }

.auth-form { display: grid; gap: 14px; }
.compact-form { gap: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 6px; color: #304b64; font-size: 11px; font-weight: 850; }
input, select, textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #d5dfe8;
    border-radius: 11px;
    outline: none;
    color: #1f3b54;
    background: #fff;
    font-size: 12.5px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 58px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa8b6; }
input:focus, select:focus, textarea:focus { border-color: #6f98b8; box-shadow: 0 0 0 4px rgba(20,84,125,.09); background: #fcfeff; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 74px; }
.show-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    padding: 6px 8px;
    color: #4d6378;
    background: #edf2f6;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}
.primary-btn, .google-btn, .secondary-btn, .danger-btn, .login-user-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, opacity .18s;
}
.primary-btn { width: 100%; color: #fff; background: linear-gradient(135deg, var(--maroon-800), #ad3650); box-shadow: 0 10px 20px rgba(153,43,69,.18); font-size: 12.5px; }
.primary-btn:hover, .login-user-btn:hover { transform: translateY(-1px); }
.primary-btn:disabled, .login-user-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.security-note { margin: 12px 0 0; color: #7b8998; font-size: 10.5px; line-height: 1.55; text-align: center; }
.otp-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.otp-summary > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.otp-summary span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.otp-summary strong { display: block; font-size: 11px; word-break: break-word; }
.otp-input { text-align: center; font-size: 25px; font-weight: 900; letter-spacing: .30em; }
.inline-action-form { margin-top: 10px; text-align: center; }
.text-btn { border: 0; color: var(--maroon-700); background: transparent; font-size: 11px; font-weight: 850; cursor: pointer; }
.google-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; text-align: center; background: linear-gradient(180deg,#fff,#f7f9fb); }
.google-big-logo { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; color: #3578d4; background: #fff; box-shadow: 0 12px 28px rgba(40,75,110,.14); font-size: 30px; font-weight: 950; }
.google-card h4 { margin: 0; color: var(--navy-900); font-size: 20px; }
.google-card p { max-width: 410px; margin: 8px auto 18px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.google-btn { width: min(100%, 340px); margin: auto; color: #fff; background: linear-gradient(135deg,#205fa6,#4285f4); font-size: 12px; }
.google-btn.disabled { opacity: .48; }
.google-logo { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #4285f4; background: #fff; font-weight: 950; }
.workspace-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #edf1f4; color: #8996a4; font-size: 9.5px; font-weight: 700; }

/* Login page clean refresh */
.auth-page-body {
    overflow: auto;
    position: relative;
    font-family: Inter, "Noto Sans Devanagari", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        repeating-linear-gradient(32deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px 132px),
        repeating-linear-gradient(148deg, rgba(183, 219, 214, .16) 0 1px, transparent 1px 168px),
        linear-gradient(115deg, #071d32 0%, #0b4f5a 50%, #123b46 100%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
}
.auth-page-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .13) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, .13) 2px, transparent 2px);
    background-size: 48px 48px;
    opacity: .42;
}
.auth-page-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(7deg, transparent 0 86px, rgba(255, 255, 255, .10) 86px 87px),
        linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 48%, rgba(255, 255, 255, .08)),
        linear-gradient(90deg, rgba(4, 18, 31, .30), rgba(12, 91, 95, .18) 48%, rgba(5, 29, 45, .24));
}
.auth-page {
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 78px 24px 42px;
}
.home-back-btn {
    top: 20px;
    left: 20px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--navy-900);
    background: rgba(255, 255, 255, .94);
}
.auth-card {
    width: min(1040px, calc(100vw - 48px));
    height: min(660px, calc(100vh - 112px));
    min-height: 600px;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    border-radius: 24px;
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 34px 90px rgba(3, 18, 34, .34);
    backdrop-filter: blur(16px);
}
.auth-brand-panel {
    padding: 36px 34px 32px;
    min-height: 0;
    background:
        repeating-linear-gradient(28deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 92px),
        linear-gradient(155deg, #071d32 0%, #0b3a5c 62%, #8d2941 100%);
}
.ganesh-panel-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    opacity: .58;
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.05);
}
.auth-brand-panel::before {
    width: 320px;
    height: 320px;
    right: -150px;
    top: -110px;
}
.auth-brand-panel::after {
    width: 260px;
    height: 260px;
    left: -125px;
    bottom: -120px;
}
.brand-top {
    gap: 24px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.brand-logo {
    width: 68px;
    height: 68px;
    padding: 6px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}
.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 14px;
}
.brand-title-wrap {
    margin-bottom: 44px;
}
.brand-title-main {
    color: #fff6d7;
    font-size: 48px;
    line-height: .95;
    font-weight: 950;
    letter-spacing: 1px;
    text-shadow: 0 8px 26px rgba(0, 0, 0, .58);
}
.brand-title-sub {
    margin-top: 10px;
    color: #f3d38a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .22em;
    text-shadow: 0 5px 16px rgba(0, 0, 0, .5);
}
.brand-kicker {
    color: #bdece0;
    letter-spacing: .16em;
}
.auth-brand-panel h1 {
    margin: 10px 0 14px;
    font-size: 44px;
    line-height: 1.06;
    letter-spacing: 0;
}
.auth-brand-panel p {
    max-width: 320px;
    color: #dbe8f2;
    font-size: 14px;
}
.brand-points {
    gap: 10px;
}
.brand-point {
    padding: 12px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}
.brand-point > span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
}
.brand-footer {
    color: #d9e8f1;
    position: relative;
    z-index: 2;
}
.auth-workspace {
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: start;
    padding: 32px 36px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .94)),
        linear-gradient(135deg, rgba(11, 111, 114, .06), rgba(153, 43, 69, .06));
}
.workspace-header {
    align-items: center;
}
.eyebrow {
    color: var(--maroon-700);
    font-size: 10px;
    letter-spacing: .14em;
}
.workspace-header h2 {
    margin-top: 5px;
    color: #09233a;
    font-size: 28px;
    letter-spacing: 0;
}
.workspace-header p {
    max-width: 520px;
    font-size: 12.5px;
}
.security-badge {
    width: auto;
    height: 36px;
    flex-basis: auto;
    padding: 0 13px;
    border-radius: 999px;
    background: #edf7fb;
}
.access-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin: 22px 0;
    padding: 5px;
    border-radius: 14px;
    background: #eef4f8;
}
.access-tab {
    min-height: 46px;
    flex-direction: row;
    gap: 8px;
    border-radius: 10px;
    font-size: 11.5px;
}
.access-tab:hover {
    box-shadow: 0 8px 18px rgba(16, 42, 67, .08);
}
.access-tab.active {
    background: linear-gradient(135deg, #183e61, var(--maroon-700));
    box-shadow: 0 10px 22px rgba(153, 43, 69, .18);
}
.tab-symbol {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}
.workspace-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 2px 0;
}
.panel-heading {
    margin-bottom: 20px;
}
.panel-title-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
}
.panel-heading h3 {
    color: #09233a;
    font-size: 21px;
    letter-spacing: 0;
}
.panel-heading p {
    font-size: 12.5px;
}
.auth-page-body .field label {
    color: #1d3a52;
    font-size: 12px;
    font-weight: 900;
}
.auth-page-body input,
.auth-page-body select,
.auth-page-body textarea {
    min-height: 46px;
    border-radius: 12px;
    border-color: #ccdae6;
    color: #102b42;
    background: #fbfdff;
    font-size: 13px;
}
.auth-page-body input:focus,
.auth-page-body select:focus,
.auth-page-body textarea:focus {
    border-color: #2c7591;
    box-shadow: 0 0 0 4px rgba(44, 117, 145, .12);
}
.show-password {
    right: 7px;
    border-radius: 9px;
    color: #24465f;
    background: #eef4f8;
}
.primary-btn,
.google-btn {
    min-height: 48px;
    border-radius: 12px;
}
.primary-btn {
    background: linear-gradient(135deg, #8f263b, #b33450);
    box-shadow: 0 14px 28px rgba(153, 43, 69, .20);
    font-size: 13px;
}
.info-box,
.google-card,
.otp-summary > div {
    border-radius: 12px;
}
.workspace-footer {
    margin-top: 28px;
    padding-top: 14px;
    font-size: 10px;
}

/* Developer user list */
.developer-page { min-height: 100vh; }
.developer-header { padding: 28px max(24px, calc((100vw - 1380px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: linear-gradient(135deg,var(--navy-950),var(--navy-800) 58%,var(--maroon-800)); box-shadow: 0 12px 30px rgba(5,31,55,.18); }
.developer-header h1 { margin: 6px 0; font-size: clamp(28px,4vw,42px); letter-spacing: -1px; }
.developer-header p { margin: 0; color: #d7e3ef; }
.brand-pill { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.13); color: #ffdc93; font-size: 11px; letter-spacing: .12em; font-weight: 900; }
.developer-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.secondary-btn, .danger-btn { min-height: 42px; padding: 0 16px; font-size: 13px; }
.secondary-btn { color: var(--navy-900); background: #fff; }
.danger-btn { color: #fff; background: rgba(189,43,67,.92); border: 1px solid rgba(255,255,255,.25); }
.developer-container { width: min(1380px, calc(100% - 38px)); margin: 26px auto 42px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 19px 20px; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(27,52,79,.09); border: 1px solid rgba(255,255,255,.9); }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.stat-card strong { display: block; margin-top: 5px; color: var(--navy-900); font-size: 29px; }
.user-control-card { background: rgba(255,255,255,.97); border-radius: 20px; box-shadow: 0 16px 42px rgba(27,52,79,.10); overflow: hidden; }
.user-toolbar { display: grid; grid-template-columns: minmax(320px,1fr) 210px 180px; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; }
.search-wrap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #789; font-size: 22px; }
.search-wrap input { padding-left: 43px; }
.table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; min-width: 1120px; }
.users-table th { padding: 13px 15px; text-align: left; background: #f4f7fa; color: #5e7185; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.users-table td { padding: 13px 15px; border-bottom: 1px solid #edf1f5; font-size: 13px; vertical-align: middle; }
.users-table tbody tr:hover { background: #f9fbfd; }
.user-cell { display: flex; align-items: center; gap: 11px; min-width: 250px; }
.avatar { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,var(--navy-800),var(--maroon-700)); font-weight: 950; }
.user-cell strong { display: block; color: #203a54; }
.user-cell small, .subline { display: block; margin-top: 3px; color: #7a8999; font-size: 11px; }
.role-badge, .status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 900; }
.role-badge { color: #174f78; background: #eaf5fd; border: 1px solid #c5e3f7; }
.status-badge.online { color: #11683e; background: #eaf8f0; }
.status-badge.offline { color: #6d7782; background: #eef1f4; }
.status-badge.disabled { color: #97283b; background: #ffedf0; }
.login-user-btn { min-height: 38px; padding: 0 13px; color: #fff; background: linear-gradient(135deg,var(--navy-800),#17659f); font-size: 12px; }
.empty-state { padding: 44px; text-align: center; color: var(--muted); }

/* Existing dashboard compatibility */
.dashboard-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.dashboard-card { width: min(540px,100%); background: #fff; border-radius: 24px; padding: 34px; box-shadow: 0 20px 55px rgba(23,48,75,.15); text-align: center; }
.dashboard-card h1 { color: var(--navy-900); }
.user-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; text-align: left; margin: 22px 0; }
.user-grid > div { background: var(--surface-soft); border-radius: 12px; padding: 12px; }
.user-grid span { display: block; color: var(--muted); font-size: 10px; }
.user-grid strong { display: block; margin-top: 4px; word-break: break-word; }
.button-link { width: 100%; color: #fff; background: var(--maroon-700); }
.tiny-note { color: var(--muted); font-size: 12px; }

@media (max-width: 920px) {
    .auth-page-body { overflow: auto; }
    .auth-page { padding: 14px; }
    .auth-card { width: min(690px, 100%); height: auto; min-height: calc(100vh - 28px); grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
    .auth-workspace { min-height: calc(100vh - 28px); padding: 28px; }
    .workspace-content { overflow: visible; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .user-toolbar { grid-template-columns: 1fr 1fr; }
    .search-wrap { grid-column: 1 / -1; }
    .developer-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .auth-page { padding: 0; }
    .home-back-btn {
        top: 10px;
        left: 10px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 10px;
    }
    .home-back-btn span:last-child { display: none; }
    .auth-card { min-height: 100vh; border-radius: 0; border: 0; }
    .auth-workspace { min-height: 100vh; padding: 22px 16px 16px; }
    .workspace-header h2 { font-size: 21px; }
    .workspace-header p { font-size: 11.5px; }
    .access-tabs { grid-template-columns: repeat(5, minmax(58px, 1fr)); overflow-x: auto; }
    .access-tab { min-width: 58px; }
    .access-tab span:last-child { font-size: 9px; }
    .field-grid, .otp-summary, .user-grid { grid-template-columns: 1fr; }
    .workspace-footer { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .developer-container { width: calc(100% - 20px); }
    .user-toolbar { grid-template-columns: 1fr; }
    .search-wrap { grid-column: auto; }
}
