/*!
 * Staff Client: modern redesign layer (loads after staff.css; staff.css is unchanged)
 * VPSNerds / MrNerds client area on Lagom 2
 * Redesign by Group44 Pty Ltd · https://www.group44.com.au
 * © Copyright 2026 Group44 Pty Ltd ABN: 24 703 434 664 ACN: 703 434 664
 * Parent Company GIGA Pty Ltd ABN: 68 079 638 547 · 079 638 547
 */

:root {
    /* Brand colour (VPSNerds violet). To go back to red: #e91d25 / #d3141c / #b20e2d / #fdecec / rgba(233,29,37,.16) */
    --sm-red: #5b3df5;
    --sm-red-600: #4b2fe0;
    --sm-red-700: #3a22b5;
    --sm-red-soft: #efebff;
    --sm-red-ring: rgba(91, 61, 245, .18);
    --staff-red: #5b3df5;
    --staff-red-dark: #4b2fe0;
    --sm-ink: #0f172a;
    --sm-ink-2: #334155;
    --sm-muted: #64748b;
    --sm-line: #e6eaf1;
    --sm-line-2: #eef1f6;
    --sm-bg: #f5f7fb;
    --sm-surface: #ffffff;
    --sm-surface-2: #f8fafc;
    --sm-side: #0b1122;
    --sm-side-2: #121a31;
    --sm-side-text: #a7b1c8;
    --sm-green: #16a34a;
    --sm-amber: #d97706;
    --sm-blue: #2563eb;
    --sm-radius: 16px;
    --sm-radius-sm: 11px;
    --sm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .04);
    --sm-shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .18), 0 6px 14px -6px rgba(15, 23, 42, .08);
    --sm-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sm-display: Outfit, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --sm-side-w: 264px;
}

/* ============================================================
   Base
   ============================================================ */
body.staff-client {
    background: var(--sm-bg);
    color: var(--sm-ink);
    font-family: var(--sm-font);
    -webkit-font-smoothing: antialiased;
}
body.staff-client:not(.staff-site) h1, body.staff-client:not(.staff-site) h2, body.staff-client:not(.staff-site) h3,
body.staff-client:not(.staff-site) h4, body.staff-client:not(.staff-site) .main-header-title {
    font-family: var(--sm-display);
    letter-spacing: -.015em;
    color: var(--sm-ink);
}
.staff-sidebar, .staff-topbar, .staff-login-wrap, .staff-guest-bar, .staff-user-pill, .staff-account-menu {
    font-family: var(--sm-font);
}
body.staff-client ::selection { background: var(--sm-red-ring); }

/* ============================================================
   Sidebar
   ============================================================ */
.staff-sidebar {
    width: var(--sm-side-w);
    padding: 20px 14px 14px;
    background:
        radial-gradient(420px 260px at -10% -10%, rgba(124, 92, 255, .25), transparent 60%),
        linear-gradient(180deg, var(--sm-side), var(--sm-side-2));
    border-right: 0;
    color: var(--sm-side-text);
}
.staff-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 2px 8px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.staff-brand-logo { display: block; flex-shrink: 0; }
.staff-brand img {
    width: auto;
    max-width: 120px;
    height: 40px;
    max-height: 40px;
    border-radius: 10px;
    padding: 6px 9px;
    background: #fff;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
}
.staff-brand-text { min-width: 0; }
.staff-brand b { font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-brand small { color: #7884a2; font-size: 11.5px; }

.staff-sidebar nav { gap: 1px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; padding-right: 2px; }
.staff-nav-label {
    display: block;
    padding: 16px 12px 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #59637f;
}
.staff-sidebar nav a, .staff-logout {
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 550;
    color: var(--sm-side-text);
    transition: background .15s, color .15s, transform .15s;
}
.staff-sidebar nav a i:first-child { width: 20px; font-size: 15px; opacity: .9; }
.staff-sidebar nav a .staff-ext { margin-left: auto; font-size: 10px; width: auto; opacity: 0; transition: opacity .15s; }
.staff-sidebar nav a:hover .staff-ext { opacity: .55; }
.staff-sidebar nav a:hover, .staff-logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.staff-sidebar nav a.active {
    background: linear-gradient(135deg, var(--sm-red), var(--sm-red-700));
    color: #fff;
    font-weight: 650;
    box-shadow: 0 10px 24px -10px rgba(91, 61, 245, .7);
}
.staff-sidebar-bottom { border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 10px; padding-top: 6px; }
.staff-user { padding: 12px 8px 8px; gap: 11px; }
.staff-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center;
    background: linear-gradient(135deg, var(--sm-red), #8b5cf6) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: .02em;
    overflow: hidden;
}
.staff-user b { color: #fff; font-size: 13.5px; }
.staff-logout { color: #8f9ab4; font-size: 13.5px; }
.staff-logout:hover { color: #fff; background: rgba(124, 92, 255, .2); }

/* ============================================================
   Top bar
   ============================================================ */
.staff-main { margin-left: var(--sm-side-w); width: calc(100% - var(--sm-side-w)); max-width: calc(100% - var(--sm-side-w)); background: var(--sm-bg); }
.staff-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: 72px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--sm-line);
}
.staff-welcome-line { line-height: 1.2; }
.staff-eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--sm-muted); text-transform: none; letter-spacing: 0; }
.staff-welcome-name { display: block; font-family: var(--sm-display); font-size: 19px; font-weight: 700; color: var(--sm-ink); letter-spacing: -.01em; }
.staff-nav-toggle {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--sm-line); background: #fff; color: var(--sm-ink);
    align-items: center; justify-content: center; cursor: pointer;
}
.staff-user-pill {
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--sm-line);
    background: #fff;
    font-weight: 650;
    font-size: 13.5px;
    box-shadow: var(--sm-shadow);
    transition: border-color .15s, box-shadow .15s;
}
.staff-user-pill:hover { border-color: #d5dbe6; box-shadow: var(--sm-shadow-lg); }
.staff-user-pill .fa-circle-user {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
    background: var(--sm-red-soft); color: var(--sm-red);
}
.staff-account-menu {
    border-radius: 14px;
    border-color: var(--sm-line);
    box-shadow: var(--sm-shadow-lg);
    padding: 6px;
    min-width: 210px;
    animation: sm-pop .14s ease;
}
.staff-account-menu a { border-radius: 9px; font-weight: 550; color: var(--sm-ink-2); }
.staff-account-menu a i { color: var(--sm-muted); width: 18px; text-align: center; }
.staff-account-menu a:hover { background: var(--sm-surface-2); color: var(--sm-ink); }
.staff-account-menu a:hover i { color: var(--sm-red); }
@keyframes sm-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   Lagom content inside the staff layout
   ============================================================ */
body.staff-client .main-header { background: transparent !important; border: 0 !important; }
body.staff-client .main-header-title { font-size: 28px !important; font-weight: 700 !important; }
body.staff-client .breadcrumb, body.staff-client .breadcrumb a { color: var(--sm-muted) !important; font-size: 13px; }
body.staff-client .breadcrumb .active { color: var(--sm-ink-2) !important; font-weight: 600; }

/* Cards / panels */
body.staff-client .staff-main .panel,
body.staff-client .staff-main .section .panel,
body.staff-client .staff-main .card,
body.staff-client .staff-main .table-container,
body.staff-client .staff-main .dataTables_wrapper,
body.staff-client .staff-main .invoice,
body.staff-client .staff-main .message-no-data {
    background: var(--sm-surface);
    border: 1px solid var(--sm-line) !important;
    border-radius: var(--sm-radius) !important;
    box-shadow: var(--sm-shadow) !important;
}
body.staff-client .staff-main .panel { overflow: hidden; }
body.staff-client .staff-main .panel-heading, body.staff-client .staff-main .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--sm-line-2) !important;
    padding: 16px 20px !important;
}
body.staff-client .staff-main .panel-title, body.staff-client .staff-main .card-title {
    font-family: var(--sm-display); font-size: 16px !important; font-weight: 700 !important; color: var(--sm-ink) !important; letter-spacing: -.01em;
}
body.staff-client .staff-main .panel-footer { background: var(--sm-surface-2) !important; border-top: 1px solid var(--sm-line-2) !important; }

/* Dashboard tiles */
body.staff-client .tiles .tile {
    background: var(--sm-surface) !important;
    border: 1px solid var(--sm-line) !important;
    border-radius: var(--sm-radius) !important;
    box-shadow: var(--sm-shadow) !important;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.staff-client .tiles a.tile:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-lg) !important; border-color: #d4c9fd !important; }
body.staff-client .tiles .tile::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--sm-red), #8b5cf6); opacity: 0; transition: opacity .18s;
}
body.staff-client .tiles a.tile:hover::after { opacity: 1; }
body.staff-client .tiles .tile-icon-absolute {
    border-radius: 14px !important;
    background: var(--sm-red-soft) !important;
    color: var(--sm-red) !important;
}
body.staff-client .tiles .tile-icon-absolute svg, body.staff-client .tiles .tile-icon-absolute i { color: var(--sm-red) !important; fill: currentColor; }
body.staff-client .tiles .swiper-slide:nth-child(2) .tile-icon-absolute { background: #e9f1ff !important; color: var(--sm-blue) !important; }
body.staff-client .tiles .swiper-slide:nth-child(2) .tile-icon-absolute i, body.staff-client .tiles .swiper-slide:nth-child(2) .tile-icon-absolute svg { color: var(--sm-blue) !important; }
body.staff-client .tiles .swiper-slide:nth-child(3) .tile-icon-absolute { background: #e8f7ee !important; color: var(--sm-green) !important; }
body.staff-client .tiles .swiper-slide:nth-child(3) .tile-icon-absolute i, body.staff-client .tiles .swiper-slide:nth-child(3) .tile-icon-absolute svg { color: var(--sm-green) !important; }
body.staff-client .tiles .swiper-slide:nth-child(4) .tile-icon-absolute { background: #fff4e5 !important; color: var(--sm-amber) !important; }
body.staff-client .tiles .swiper-slide:nth-child(4) .tile-icon-absolute i, body.staff-client .tiles .swiper-slide:nth-child(4) .tile-icon-absolute svg { color: var(--sm-amber) !important; }
body.staff-client .tiles .tile-stat { font-family: var(--sm-display); font-size: 30px !important; font-weight: 700 !important; color: var(--sm-ink) !important; letter-spacing: -.02em; }
body.staff-client .tiles .tile-title { color: var(--sm-muted) !important; font-weight: 600 !important; font-size: 13.5px !important; }

/* Tables */
body.staff-client .staff-main table.table, body.staff-client .staff-main table.dataTable { border-collapse: separate; border-spacing: 0; }
body.staff-client .staff-main table thead th {
    background: var(--sm-surface-2) !important;
    color: var(--sm-muted) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--sm-line) !important;
    border-top: 0 !important;
    padding: 12px 16px !important;
}
body.staff-client .staff-main table tbody td { border-top: 1px solid var(--sm-line-2) !important; padding: 14px 16px !important; vertical-align: middle; color: var(--sm-ink-2); }
body.staff-client .staff-main tr[data-url]:hover td, body.staff-client .staff-main table.table-hover tbody tr:hover td { background: #f8f6ff !important; }
body.staff-client .staff-main .dataTables_info, body.staff-client .staff-main .dataTables_length { color: var(--sm-muted); font-size: 13px; }

/* Status labels */
body.staff-client .staff-main .label, body.staff-client .staff-main .status, body.staff-client .staff-main .badge {
    border-radius: 999px !important; font-weight: 700 !important; font-size: 11.5px !important; letter-spacing: .02em; padding: .38em .85em !important; border: 0 !important;
}
body.staff-client .label-success, body.staff-client .status-active, body.staff-client .status-paid, body.staff-client .status-completed {
    background: #e8f7ee !important; color: #15803d !important;
}
body.staff-client .label-warning, body.staff-client .status-pending, body.staff-client .status-unpaid, body.staff-client .status-payment-pending {
    background: #fff4e5 !important; color: #b45309 !important;
}
body.staff-client .label-danger, body.staff-client .status-overdue, body.staff-client .status-suspended, body.staff-client .status-terminated, body.staff-client .status-cancelled, body.staff-client .status-fraud {
    background: var(--sm-red-soft) !important; color: #c0141b !important;
}
body.staff-client .label-default, body.staff-client .status-collections, body.staff-client .status-refunded, body.staff-client .status-draft, body.staff-client .status-closed {
    background: #eef1f6 !important; color: var(--sm-muted) !important;
}

/* Buttons */
body.staff-client .staff-main .btn { border-radius: var(--sm-radius-sm); font-weight: 650; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
body.staff-client .staff-main .btn:active { transform: translateY(1px); }
body.staff-client .staff-main .btn-primary, body.staff-client .staff-main .btn-success, body.staff-client .staff-main .btn-order-now {
    background: linear-gradient(135deg, var(--sm-red), var(--sm-red-600)) !important;
    border-color: var(--sm-red) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(91, 61, 245, .75);
}
body.staff-client .staff-main .btn-primary:hover, body.staff-client .staff-main .btn-success:hover { background: var(--sm-red-700) !important; border-color: var(--sm-red-700) !important; }
body.staff-client .staff-main .btn-default, body.staff-client .staff-main .btn-outline, body.staff-client .staff-main .btn-secondary {
    background: #fff !important; border: 1px solid var(--sm-line) !important; color: var(--sm-ink-2) !important;
}
body.staff-client .staff-main .btn-default:hover, body.staff-client .staff-main .btn-outline:hover { border-color: #d4c9fd !important; color: var(--sm-red) !important; }
body.staff-client .staff-main .btn-primary-faded { background: var(--sm-red-soft) !important; color: var(--sm-red) !important; border-color: transparent !important; }

/* Forms */
body.staff-client .staff-main .form-control, body.staff-client .staff-main select, body.staff-client .staff-main textarea {
    border: 1px solid var(--sm-line) !important; border-radius: var(--sm-radius-sm) !important; box-shadow: none !important; min-height: 44px;
    transition: border-color .15s, box-shadow .15s;
}
body.staff-client .staff-main .form-control:focus, body.staff-client .staff-main select:focus, body.staff-client .staff-main textarea:focus {
    border-color: var(--sm-red) !important; box-shadow: 0 0 0 4px var(--sm-red-ring) !important; outline: 0;
}
body.staff-client .staff-main label { font-weight: 600; color: var(--sm-ink-2); }

/* Alerts */
body.staff-client .staff-main .alert { border-radius: 14px !important; border: 1px solid transparent !important; }
body.staff-client .staff-main .alert-warning { background: #fff8eb !important; border-color: #fde3b0 !important; color: #7a4a05 !important; }
body.staff-client .staff-main .alert-danger { background: #fff1f1 !important; border-color: #fbcfd0 !important; color: #8f1218 !important; }
body.staff-client .staff-main .alert-success { background: #ecfaf1 !important; border-color: #bfe9cf !important; color: #14532d !important; }
body.staff-client .staff-main .alert-info { background: #eef5ff !important; border-color: #c9dcff !important; color: #1e3a8a !important; }

/* Tabs */
body.staff-client .staff-main .nav-tabs { border-bottom: 1px solid var(--sm-line) !important; gap: 4px; }
body.staff-client .staff-main .nav-tabs > li > a, body.staff-client .staff-main .nav-tabs .nav-link {
    border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; color: var(--sm-muted) !important; font-weight: 650; background: transparent !important;
}
body.staff-client .staff-main .nav-tabs > li.active > a, body.staff-client .staff-main .nav-tabs .nav-link.active { color: var(--sm-red) !important; border-bottom-color: var(--sm-red) !important; }

/* Dashboard header: account number & verified badge */
body.staff-client.page-clientareahome .customer-account-number-panel.customer-account-number-header {
    border-radius: 999px !important; border: 1px solid var(--sm-line) !important; background: #fff !important; box-shadow: var(--sm-shadow) !important;
}
body.staff-client.page-clientareahome #staff-account-verified {
    border-radius: 999px !important; background: #e8f7ee !important; color: #15803d !important; font-weight: 700 !important;
}

/* Cloud plans */
body.staff-client .cloud-plan-card {
    border-radius: 18px !important; border: 1px solid var(--sm-line) !important; box-shadow: var(--sm-shadow) !important;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
body.staff-client .cloud-plan-card:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-lg) !important; border-color: #d4c9fd !important; }
body.staff-client .cloud-plan-price { font-family: var(--sm-display); letter-spacing: -.02em; }
body.staff-client .cloud-plan-cta { border-radius: 12px !important; background: linear-gradient(135deg, var(--sm-red), var(--sm-red-600)) !important; }

/* Risk lock card */
body.staff-client .vps-risk-lock-card { border-radius: 20px !important; box-shadow: var(--sm-shadow-lg) !important; }

/* ============================================================
   Logged-out pages: guest bar
   ============================================================ */
.staff-guest-bar {
    position: sticky; top: 0; z-index: 12;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--sm-line);
}
.staff-guest-brand img { height: 46px; width: auto; display: block; }
.staff-guest-actions { display: flex; align-items: center; gap: 8px; }
.staff-guest-link, .staff-guest-cta {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px;
    font-weight: 650; font-size: 14px; text-decoration: none !important; transition: background .15s, border-color .15s;
}
.staff-guest-link { color: var(--sm-ink-2) !important; border: 1px solid var(--sm-line); background: #fff; }
.staff-guest-link:hover { border-color: #d5dbe6; }
.staff-guest-cta { color: #fff !important; background: linear-gradient(135deg, var(--sm-red), var(--sm-red-600)); box-shadow: 0 8px 18px -10px rgba(91, 61, 245, .75); }
.staff-guest-cta:hover { background: var(--sm-red-700); }

/* ============================================================
   Login (also 2FA, password reset, logout)
   ============================================================ */
.staff-login-wrap {
    padding: 0;
    display: block;
    min-height: 100vh;
    background: var(--sm-bg);
}
.staff-login-card {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 46%) 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--sm-bg);
}
.staff-login-visual {
    position: relative;
    overflow: hidden;
    align-items: stretch;
    justify-content: space-between;
    min-height: 100vh;
    padding: 44px 56px;
    color: #fff;
    background:
        radial-gradient(800px 480px at 110% -10%, rgba(124, 92, 255, .55), transparent 60%),
        radial-gradient(640px 460px at -20% 120%, rgba(56, 189, 248, .16), transparent 55%),
        linear-gradient(160deg, #0b1122 0%, #141d3a 100%);
}
.slv-top, .slv-hero, .slv-foot { position: relative; z-index: 1; }
.slv-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slv-logo img, .staff-login-visual img {
    width: auto !important; max-width: 230px; height: 58px !important; max-height: 58px !important;
    background: transparent !important; border-radius: 0; padding: 0 !important; object-fit: contain; box-shadow: none !important;
}
.slv-back { color: rgba(255, 255, 255, .78) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; display: inline-flex; align-items: center; gap: 7px; }
.slv-back:hover { color: #fff !important; }
.slv-hero { margin: auto 0; max-width: 480px; padding: 40px 0; }
.slv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: #fff; margin-bottom: 20px;
}
.staff-login-visual h2 {
    font-family: var(--sm-display); font-size: 42px !important; line-height: 1.08; font-weight: 700 !important; letter-spacing: -.025em;
    margin: 0 0 16px !important; color: #fff !important;
}
.staff-login-visual p { color: rgba(255, 255, 255, .72) !important; font-size: 16px; line-height: 1.6; max-width: 420px; margin: 0 0 28px !important; }
.slv-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.slv-points li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.slv-points li span {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #b9a7ff; font-size: 14px;
}
.slv-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.slv-foot i { margin-right: 6px; }
.slv-glow i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); pointer-events: none; }
.slv-glow i:nth-child(1) { width: 560px; height: 560px; right: -220px; bottom: -200px; }
.slv-glow i:nth-child(2) { width: 380px; height: 380px; right: -130px; bottom: -110px; }
.slv-glow i:nth-child(3) { width: 210px; height: 210px; right: -45px; bottom: -25px; background: rgba(255, 255, 255, .03); }

.staff-login-pane {
    padding: 48px 32px;
    align-items: center;
    justify-content: center;
    background: var(--sm-bg);
}
.staff-login-pane > * { width: 100%; max-width: 430px; }
.slp-mobile-brand { display: none; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.slp-mobile-brand img { height: 46px; width: auto; }
.slp-mobile-brand .slv-back { color: var(--sm-muted) !important; }
.slp-head { margin-bottom: 26px; }
.slp-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; font-size: 19px;
    background: var(--sm-red-soft); color: var(--sm-red); box-shadow: inset 0 0 0 1px rgba(91, 61, 245, .16);
}
.staff-login-pane h1 { font-family: var(--sm-display); font-size: 32px !important; font-weight: 700 !important; letter-spacing: -.02em; color: var(--sm-ink) !important; margin: 0 0 8px !important; }
.staff-login-sub { color: var(--sm-muted) !important; font-size: 15px; line-height: 1.55; margin: 0 !important; }
.staff-login-pane form { margin-top: 4px; }
.staff-login-pane label { color: var(--sm-ink-2) !important; font-weight: 650 !important; font-size: 14px; margin: 18px 0 8px !important; }
.staff-login-pane .staff-label-row { margin: 18px 0 8px; }
.staff-login-pane .staff-label-row label { margin: 0 !important; }
.staff-label-row a { font-size: 13.5px; color: var(--sm-red) !important; font-weight: 650 !important; }
.slp-field { position: relative; }
.slp-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 15px; pointer-events: none; }
.staff-login-pane input[type="email"], .staff-login-pane input[type="password"], .staff-login-pane input[type="text"], .staff-login-pane select {
    width: 100%; margin-top: 0 !important; height: 52px; padding: 0 16px !important; font-size: 15px;
    border: 1px solid var(--sm-line) !important; border-radius: 13px !important; background: #fff !important; color: var(--sm-ink) !important;
    box-shadow: var(--sm-shadow); transition: border-color .15s, box-shadow .15s; font-family: var(--sm-font);
}
.staff-login-pane .slp-field input { padding-left: 46px !important; }
.staff-login-pane .slp-field input[type="password"], .staff-login-pane .slp-field input#inputPassword { padding-right: 52px !important; }
.staff-login-pane .slp-field input, .staff-login-pane label > input, .staff-login-pane label > select { box-sizing: border-box; max-width: 100%; }
.staff-login-pane label > input, .staff-login-pane label > select { margin-top: 8px !important; display: block; }
.staff-login-pane input:focus, .staff-login-pane select:focus { border-color: var(--sm-red) !important; box-shadow: 0 0 0 4px var(--sm-red-ring) !important; outline: 0; }
.slp-reveal {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px;
    border: 0; background: transparent; color: #94a3b8; cursor: pointer; font-size: 15px;
}
.slp-reveal:hover { background: var(--sm-surface-2); color: var(--sm-ink); }
.staff-check { margin: 16px 0 0 !important; font-weight: 550 !important; color: var(--sm-ink-2) !important; }
.staff-check input { width: 18px !important; height: 18px !important; accent-color: var(--sm-red); }
.staff-captcha { margin-top: 16px; }
.staff-btn {
    height: 52px; margin-top: 22px; gap: 10px; border-radius: 13px; font-size: 15.5px; font-weight: 700; letter-spacing: .005em;
    background: linear-gradient(135deg, var(--sm-red), var(--sm-red-600));
    box-shadow: 0 14px 28px -14px rgba(91, 61, 245, .8);
    transition: transform .12s, box-shadow .15s, background .15s;
}
.staff-btn:hover { background: var(--sm-red-700); box-shadow: 0 16px 32px -14px rgba(58, 34, 181, .9); }
.staff-btn:active { transform: translateY(1px); }
.staff-btn i { font-size: 14px; transition: transform .15s; }
.staff-btn:hover i { transform: translateX(3px); }
.staff-btn-quiet { background: #fff !important; color: var(--sm-ink-2) !important; border: 1px solid var(--sm-line) !important; box-shadow: none !important; }
.staff-flash, .staff-ok { border-radius: 12px; padding: 13px 15px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.staff-flash { background: #fff1f1; color: #9f1239; border: 1px solid #fbcfd0; }
.staff-ok { background: #ecfaf1; color: #166534; border: 1px solid #bfe9cf; }
.slp-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; color: var(--sm-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.slp-divider::before, .slp-divider::after { content: ""; flex: 1; height: 1px; background: var(--sm-line); }
.staff-login-foot { margin-top: 26px !important; text-align: center; color: var(--sm-muted); font-size: 14.5px; }
.staff-login-foot a { color: var(--sm-red) !important; font-weight: 700; }
.staff-login-pane .social-signin-btns .btn, .staff-login-pane .btn-social { border-radius: 12px !important; height: 46px; border: 1px solid var(--sm-line) !important; background: #fff !important; color: var(--sm-ink) !important; }

/* ============================================================
   Mobile & tablet
   ============================================================ */
@media (max-width: 1200px) and (min-width: 901px) {
    :root { --sm-side-w: 236px; }
    .staff-topbar { padding: 14px 22px; }
}
@media (max-width: 900px) {
    .staff-main { margin-left: 0; width: 100%; max-width: none; }
    .staff-sidebar { width: min(86vw, 290px); box-shadow: none !important; }
    body.staff-nav-open .staff-sidebar { box-shadow: 0 0 60px rgba(0, 0, 0, .45) !important; }
    body.staff-nav-open .staff-backdrop { background: rgba(8, 12, 26, .6); backdrop-filter: blur(2px); }
    .staff-topbar { margin: 0 0 18px; padding: 12px 16px; min-height: 64px; }
    .staff-welcome-name { font-size: 17px; }
    .staff-eyebrow { font-size: 11.5px; }
    .staff-user-pill { padding: 5px 12px 5px 5px; }
    .staff-sidebar nav a, .staff-logout { padding: 12px 12px; min-height: 44px; }
    .staff-guest-bar { padding: 12px 16px; }
    body.staff-client .main-header-title { font-size: 23px !important; }

    .staff-login-card { grid-template-columns: 1fr; }
    .staff-login-visual { display: none; }
    .staff-login-pane { justify-content: flex-start; padding: 22px 20px 40px; min-height: 100vh; }
    .slp-mobile-brand { display: flex; }
    .staff-login-pane h1 { font-size: 27px !important; }
}
@media (max-width: 640px) {
    .staff-user-pill span { display: none; }
    .staff-user-pill .fa-chevron-down { display: none; }
    .staff-user-pill { padding: 4px; }
    .staff-guest-link span { display: none; }
    .staff-guest-link { width: 42px; padding: 0; justify-content: center; }
    body.staff-client .tiles .tile-stat { font-size: 26px !important; }
    body.staff-client .staff-main .form-control, body.staff-client .staff-main select, body.staff-client .staff-main textarea,
    .staff-login-pane input[type="email"], .staff-login-pane input[type="password"], .staff-login-pane input[type="text"] { font-size: 16px !important; }
    body.staff-client .staff-main .btn { min-height: 44px; }
}
@media (pointer: coarse) {
    body.staff-client .tiles a.tile:hover, body.staff-client .cloud-plan-card:hover { transform: none; }
    .staff-sidebar nav a .staff-ext { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
    .staff-account-menu, .staff-btn i, body.staff-client .tiles .tile { animation: none !important; transition: none !important; }
}

/* sizing safety */
.staff-login-pane *, .staff-login-pane *::before, .staff-login-pane *::after { box-sizing: border-box; }
body.staff-client .staff-main .alert { padding: 14px 18px; }
.staff-login-pane #login2faCode, .staff-login-pane #twofabackupcode, .staff-login-pane input[name="key"] {
    text-align: center; font-size: 22px !important; font-weight: 700; letter-spacing: .35em; font-family: var(--sm-display);
}

/* ======================================================================
   v2: VPSNerds dashboard layout
   ====================================================================== */
:root { --sm-side-w: 264px; --sm-side-w-collapsed: 84px; }

/* ---------- Sidebar ---------- */
.staff-sidebar {
    width: var(--sm-side-w);
    padding: 18px 12px 14px;
    color: #c9c3f3;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 22px),
        radial-gradient(520px 320px at 0% 0%, rgba(139, 92, 246, .35), transparent 65%),
        linear-gradient(180deg, #1e1660 0%, #241a6b 45%, #1a1452 100%);
    transition: width .2s ease, transform .22s ease;
}
.staff-brand {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
    padding: 0 6px 16px 8px; margin: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.staff-brand img { height: 44px !important; max-height: 44px !important; width: auto !important; max-width: 170px !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.staff-collapse {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06); color: #ddd6fe; cursor: pointer; display: grid; place-items: center; font-size: 14px;
}
.staff-collapse:hover { background: rgba(255,255,255,.12); color: #fff; }
.staff-sidebar nav { gap: 4px; }
.staff-sidebar nav a, .staff-logout {
    gap: 13px; padding: 11px 13px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #cfc9f5;
    border: 1px solid transparent; white-space: nowrap;
}
.staff-sidebar nav a i, .staff-logout i { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; color: #b8adf7; }
.staff-sidebar nav a span, .staff-logout span, .staff-quick-deploy span { overflow: hidden; text-overflow: ellipsis; }
.staff-sidebar nav a:hover, .staff-logout:hover { background: rgba(255,255,255,.07); color: #fff; }
.staff-sidebar nav a:hover i { color: #fff; }
.staff-sidebar nav a.active {
    background: linear-gradient(135deg, rgba(124, 92, 255, .38), rgba(91, 61, 245, .22));
    border-color: rgba(167, 139, 250, .38);
    color: #fff; box-shadow: 0 10px 26px -14px rgba(91, 61, 245, .9);
}
.staff-sidebar nav a.active i { color: #fff; }
.staff-sidebar-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; margin-top: 10px; display: grid; gap: 10px; }
.staff-logout { color: #cfc9f5; }
.staff-logout:hover { background: rgba(255,255,255,.07); }
.staff-quick-deploy {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 13px; text-decoration: none !important;
    color: #fff !important; font-weight: 700; font-size: 15px; white-space: nowrap;
    background: linear-gradient(135deg, #6d4dff, #5b3df5 55%, #4b2fe0);
    box-shadow: 0 14px 30px -14px rgba(109, 77, 255, .95), inset 0 1px 0 rgba(255,255,255,.18);
    transition: transform .15s, box-shadow .15s;
}
.staff-quick-deploy:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(109, 77, 255, 1), inset 0 1px 0 rgba(255,255,255,.2); }
.staff-quick-deploy i { width: 20px; text-align: center; }

/* Collapsed sidebar (desktop) */
@media (min-width: 901px) {
    body.staff-collapsed { --sm-side-w: var(--sm-side-w-collapsed); }
    body.staff-collapsed .staff-brand { flex-direction: column; padding: 0 0 14px; }
    body.staff-collapsed .staff-brand-logo img { max-width: 52px !important; height: 30px !important; object-fit: cover; object-position: left center; }
    body.staff-collapsed .staff-sidebar nav a span, body.staff-collapsed .staff-logout span, body.staff-collapsed .staff-quick-deploy span { display: none; }
    body.staff-collapsed .staff-sidebar nav a, body.staff-collapsed .staff-logout, body.staff-collapsed .staff-quick-deploy { justify-content: center; padding-left: 0; padding-right: 0; }
}
.staff-main { transition: margin-left .2s ease, width .2s ease; }

/* ---------- Top bar ---------- */
.staff-topbar { min-height: 68px; padding: 12px 28px; background: rgba(255,255,255,.9); }
.staff-page-title { font-family: var(--sm-display); font-size: 19px; font-weight: 700; color: var(--sm-ink); letter-spacing: -.01em; }
.staff-topbar-right { display: flex; align-items: center; gap: 10px; }
.staff-account { position: relative; }
.staff-user-pill { border: 0; box-shadow: none; background: transparent; padding: 4px 10px 4px 4px; gap: 10px; border-radius: 999px; }
.staff-user-pill:hover { background: var(--sm-surface-2); box-shadow: none; }
.staff-user-pill .staff-avatar {
    width: 36px !important; height: 36px !important; min-width: 36px; border-radius: 50% !important; font-size: 12.5px !important;
    background: linear-gradient(135deg, #6d4dff, #4b2fe0) !important;
}
.staff-user-name { font-weight: 700; color: var(--sm-ink); font-size: 14.5px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-account-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--sm-line-2); margin-bottom: 4px; }
.staff-account-head b { display: block; font-size: 14px; color: var(--sm-ink); }
.staff-account-head small { display: block; font-size: 12.5px; color: var(--sm-muted); margin-top: 2px; }
.staff-icon-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--sm-line); background: #fff; color: var(--sm-ink-2) !important;
    display: grid; place-items: center; text-decoration: none !important; transition: border-color .15s, color .15s;
}
.staff-icon-btn:hover { border-color: #d4c9fd; color: var(--sm-red) !important; }

/* ---------- Dashboard ---------- */
body.staff-client.page-clientareahome .main-header-title,
body.staff-client.page-clientareahome .main-header .breadcrumb { display: none !important; }
body.staff-client.page-clientareahome .main-header { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
.sd-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 6px 0 22px; }
.sd-hello h1 { font-family: var(--sm-display); font-size: 30px !important; font-weight: 700 !important; letter-spacing: -.02em; margin: 0 0 6px !important; color: var(--sm-ink); }
.sd-hello p { margin: 0; color: var(--sm-muted); font-size: 15px; }
.sd-hello-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sd-btn {
    display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
    text-decoration: none !important; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.sd-btn:active { transform: translateY(1px); }
.sd-btn-light { background: #fff; border: 1px solid var(--sm-line); color: var(--sm-ink) !important; box-shadow: var(--sm-shadow); }
.sd-btn-light:hover { border-color: #d4c9fd; }
.sd-btn-primary { background: linear-gradient(135deg, #6d4dff, #5b3df5 55%, #4b2fe0); color: #fff !important; box-shadow: 0 12px 26px -14px rgba(91, 61, 245, .95); }
.sd-btn-primary:hover { box-shadow: 0 16px 32px -14px rgba(91, 61, 245, 1); }

.sd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.sd-stat {
    display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--sm-line);
    box-shadow: var(--sm-shadow); text-decoration: none !important; color: var(--sm-ink) !important; transition: transform .18s, box-shadow .18s, border-color .18s;
    min-height: 152px;
}
.sd-stat:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-lg); border-color: #d4c9fd; }
.sd-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sd-stat-head span { font-size: 15px; font-weight: 700; color: var(--sm-ink); }
.sd-stat-head i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #efebff; color: #5b3df5; font-size: 16px; flex-shrink: 0; }
.sd-stat-value { margin-top: auto; color: var(--sm-ink-2); font-size: 15px; font-weight: 500; }
.sd-stat-value b { font-family: var(--sm-display); font-size: 32px; font-weight: 700; color: var(--sm-ink); letter-spacing: -.02em; margin-right: 4px; line-height: 1; }
.sd-stat-sub { font-size: 13.5px; color: var(--sm-muted); display: flex; align-items: center; gap: 7px; }
.sd-stat-sub.sd-link { color: #5b3df5; font-weight: 600; }
.sd-stat-sub.sd-link i { font-size: 10px; }
.sd-stat:hover .sd-stat-sub.sd-link { text-decoration: underline; }
.sd-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sd-dot-ok { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.sd-stat-alert .sd-stat-head i { background: #fff1f1; color: #dc2626; }
.sd-stat-alert .sd-stat-value b { color: #dc2626; }
.sd-stat-alert .sd-stat-sub.sd-link { color: #dc2626; }

.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.sd-main { min-width: 0; }
.sd-main .client-home-panels { margin-top: 0 !important; }
.sd-side { display: grid; gap: 20px; }
.sd-card { background: #fff; border: 1px solid var(--sm-line); border-radius: 18px; box-shadow: var(--sm-shadow); padding: 20px 22px 22px; }
.sd-card-title { font-family: var(--sm-display); font-size: 18px !important; font-weight: 700 !important; margin: 0 0 16px !important; color: var(--sm-ink); }
.sd-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sd-actions a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; min-height: 82px; padding: 12px 6px;
    border-radius: 14px; background: #f7f6fd; border: 1px solid #efedf9; color: var(--sm-ink) !important; font-size: 13px; font-weight: 650;
    text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s;
}
.sd-actions a i { font-size: 18px; color: #5b3df5; }
.sd-actions a:hover { background: #efebff; border-color: #d4c9fd; transform: translateY(-2px); }
.sd-promo { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #f6f3ff, #fbfaff 60%, #fff); border-color: #ebe6fd; }
.sd-promo-icon { position: relative; width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; }
.sd-promo-icon i { font-size: 46px; background: linear-gradient(160deg, #8b6cff, #4b2fe0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 10px rgba(91,61,245,.3)); }
.sd-promo-icon span { position: absolute; color: #fff; font-size: 15px; top: 50%; left: 50%; transform: translate(-50%, -40%); }
.sd-promo h3 { font-family: var(--sm-display); font-size: 18px !important; font-weight: 700 !important; margin: 0 0 6px !important; color: var(--sm-ink); }
.sd-promo p { margin: 0 0 10px; color: var(--sm-muted); font-size: 13.5px; line-height: 1.55; }
.sd-promo a { color: #5b3df5 !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.sd-promo a i { font-size: 12px; transition: transform .15s; }
.sd-promo a:hover i { transform: translateX(3px); }

/* WHMCS panels in the main column (Active Products/Services etc.) */
.sd-main .panel-heading .panel-title { font-size: 18px !important; }
.sd-main .panel .no-data { padding: 40px 20px; text-align: center; }

/* ---------- Footer ---------- */
.staff-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin: 40px 0 0; padding: 22px 28px; background: #fff; border-top: 1px solid var(--sm-line);
    font-size: 12.5px; color: var(--sm-muted);
}
.staff-footer-left, .staff-footer-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.staff-footer-left img { height: 40px; width: auto; }
.staff-footer-left > div, .staff-footer-legal { display: grid; gap: 3px; }
.staff-footer a { color: var(--sm-muted) !important; text-decoration: none !important; }
.staff-footer a:hover { color: #5b3df5 !important; }
.staff-footer-legal { text-align: right; }
.staff-g44 { display: flex; align-items: center; gap: 10px; }
.staff-g44-mark { width: 38px; height: 38px; border-radius: 9px; background: #0f172a; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: -.02em; font-family: var(--sm-display); }
.staff-g44-mark b { color: #38bdf8; font-weight: 800; }
.staff-g44-text b { display: block; color: var(--sm-ink); font-size: 13.5px; }
.staff-g44-text small { display: block; font-size: 11.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) { .sd-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1200px) {
    .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-grid { grid-template-columns: 1fr; }
    .sd-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .staff-collapse { display: none; }
    .staff-topbar { padding: 10px 14px; min-height: 62px; }
    .staff-page-title { font-size: 17px; }
    .staff-user-name, .staff-user-pill .fa-chevron-down { display: none; }
    .staff-user-pill { padding: 3px; }
    .staff-footer { padding: 20px 16px; justify-content: center; text-align: center; }
    .staff-footer-left, .staff-footer-right { justify-content: center; }
    .staff-footer-legal { text-align: center; }
}
@media (max-width: 720px) {
    .sd-side { grid-template-columns: 1fr; }
    .sd-hello h1 { font-size: 24px !important; }
    .sd-hello-actions { width: 100%; }
    .sd-hello-actions .sd-btn { flex: 1; justify-content: center; }
    .sd-stats { gap: 12px; }
    .sd-stat { padding: 16px; min-height: 132px; border-radius: 16px; }
    .sd-stat-value b { font-size: 26px; }
    .sd-stat-head span { font-size: 14px; }
    .sd-stat-head i { width: 36px; height: 36px; font-size: 14px; }
}
@media (max-width: 380px) { .sd-stats { grid-template-columns: 1fr; } }
@media (pointer: coarse) {
    .sd-stat:hover, .sd-actions a:hover, .staff-quick-deploy:hover { transform: none; }
}
.staff-sidebar, .staff-sidebar *, .staff-topbar, .staff-topbar *, .sd-hello, .sd-hello *, .sd-stats, .sd-stats *, .sd-grid, .sd-grid *, .staff-footer, .staff-footer * { box-sizing: border-box; }
.staff-g44-mark { white-space: nowrap; font-size: 12.5px; width: 40px; }
.sd-promo-icon span { transform: translate(-50%, -45%); font-size: 14px; }
.staff-g44-mark { display: flex !important; align-items: center; justify-content: center; gap: 0; }
.sd-btn { white-space: nowrap; }
.sd-stat-sub.sd-link { display: block; }
.sd-stat-sub.sd-link i { margin-left: 4px; }
@media (min-width: 901px) { body.staff-collapsed .staff-brand-logo img { max-width: 40px !important; } }
@media (max-width: 420px) { .sd-btn { padding: 0 12px; font-size: 14px; gap: 7px; } }

/* ======================================================================
   Sidebar hardening: page-level styles (e.g. on custom pages) can't break it
   ====================================================================== */
body.staff-client aside.staff-sidebar { padding: 18px 12px 14px !important; width: var(--sm-side-w) !important; left: 0 !important; box-sizing: border-box !important; }
body.staff-client aside.staff-sidebar .staff-brand { padding: 0 6px 16px 8px !important; margin: 0 0 12px !important; }
body.staff-client aside.staff-sidebar nav { padding: 0 2px 0 0 !important; margin: 0 !important; list-style: none; }
body.staff-client aside.staff-sidebar nav a,
body.staff-client aside.staff-sidebar .staff-logout {
    display: flex !important; align-items: center; gap: 13px; padding: 11px 13px !important; margin: 0 !important;
    color: #cfc9f5 !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.35 !important; text-decoration: none !important;
}
body.staff-client aside.staff-sidebar nav a:hover, body.staff-client aside.staff-sidebar .staff-logout:hover { color: #fff !important; }
body.staff-client aside.staff-sidebar nav a.active { color: #fff !important; }
body.staff-client aside.staff-sidebar .staff-quick-deploy { color: #fff !important; padding: 13px 16px !important; margin: 0 !important; font-size: 15px !important; line-height: 1.3 !important; }
body.staff-client aside.staff-sidebar .staff-sidebar-bottom { padding: 10px 0 0 !important; }
@media (min-width: 901px) {
    body.staff-client.staff-collapsed aside.staff-sidebar nav a,
    body.staff-client.staff-collapsed aside.staff-sidebar .staff-logout,
    body.staff-client.staff-collapsed aside.staff-sidebar .staff-quick-deploy { padding-left: 0 !important; padding-right: 0 !important; justify-content: center; }
}
@media (max-height: 760px) {
    body.staff-client aside.staff-sidebar nav a { padding-top: 8px !important; padding-bottom: 8px !important; }
}

/* ======================================================================
   Cloud Plans page
   ====================================================================== */
body.staff-client.page-cloud-plans .main-content, .cpx { max-width: 1480px; }
.cpx { width: 100%; margin: 0 auto; padding: 4px 0 20px; }
.cpx, .cpx * { box-sizing: border-box; }

/* Hero */
.cpx-hero {
    position: relative; overflow: hidden; border-radius: 24px; padding: 36px 40px; margin: 0 0 34px; color: #fff;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 24px),
        radial-gradient(600px 320px at 100% 0%, rgba(167, 139, 250, .45), transparent 60%),
        linear-gradient(135deg, #2a1b7a 0%, #4b2fe0 55%, #6d4dff 100%);
    box-shadow: 0 24px 50px -26px rgba(75, 47, 224, .75);
}
.cpx-hero-body, .cpx-steps { position: relative; z-index: 1; }
.cpx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); margin-bottom: 14px;
}
body.staff-client .cpx-hero h1 { font-family: var(--sm-display); font-size: 38px !important; font-weight: 700 !important; letter-spacing: -.025em; color: #fff !important; margin: 0 0 10px !important; }
.cpx-hero p { color: rgba(255,255,255,.82) !important; font-size: 15.5px; line-height: 1.6; max-width: 560px; margin: 0 0 18px !important; }
.cpx-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 0 !important; }
.cpx-meta li {
    display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px !important; border-radius: 12px; font-size: 13.5px;
    background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.18); color: #fff !important; margin: 0 !important;
}
.cpx-meta li i { color: #c4b5fd !important; }
.cpx-meta li b { font-weight: 800; }
.cpx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cpx-steps li {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
}
.cpx-steps li span {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-family: var(--sm-display);
    background: #fff; color: #4b2fe0;
}
.cpx-steps li b { display: block; font-size: 14.5px; }
.cpx-steps li small { display: block; font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 1px; }
.cpx-hero-art i { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.cpx-hero-art i:nth-child(1) { width: 420px; height: 420px; right: -140px; bottom: -220px; }
.cpx-hero-art i:nth-child(2) { width: 280px; height: 280px; right: -80px; bottom: -150px; }
.cpx-hero-art i:nth-child(3) { width: 160px; height: 160px; left: -50px; top: -60px; }

/* Section heads */
.cpx-section { margin: 0 0 34px !important; }
.cpx-head { display: flex !important; align-items: center; gap: 14px; margin: 0 0 18px !important; }
.cpx-head-icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 18px;
    background: #efebff; color: #5b3df5; box-shadow: inset 0 0 0 1px rgba(91, 61, 245, .14);
}
.cpx-head-icon-alt { background: #e6f6ff; color: #0284c7; box-shadow: inset 0 0 0 1px rgba(2, 132, 199, .16); }
body.staff-client .cpx-head h2 { font-family: var(--sm-display); font-size: 22px !important; font-weight: 700 !important; margin: 0 0 3px !important; color: var(--sm-ink) !important; letter-spacing: -.015em; }
body.staff-client .cpx-head p { margin: 0 !important; color: var(--sm-muted) !important; font-size: 14px; }

/* Plan grid & cards */
body.staff-client .cpx-grid, body.staff-client .cpx-grid.cloud-plans-grid-reseller {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)) !important; gap: 18px !important;
}
body.staff-client .cpx-card {
    position: relative; display: flex !important; flex-direction: column; gap: 14px; padding: 22px !important; margin: 0 !important;
    background: #fff !important; border: 1px solid var(--sm-line) !important; border-radius: 20px !important; box-shadow: var(--sm-shadow) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden;
}
body.staff-client .cpx-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #6d4dff, #a78bfa);
    opacity: 0; transition: opacity .18s;
}
body.staff-client .cpx-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(75, 47, 224, .45) !important; border-color: #d4c9fd !important; }
body.staff-client .cpx-card:hover::before { opacity: 1; }
.cpx-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cpx-card-icon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 15px;
    background: #efebff; color: #5b3df5;
}
.cpx-card-icon-alt { background: #e6f6ff; color: #0284c7; }
body.staff-client .cpx-card h3 { font-family: var(--sm-display); font-size: 17px !important; font-weight: 700 !important; margin: 0 !important; color: var(--sm-ink) !important; line-height: 1.25; }
body.staff-client .cpx-price {
    font-family: var(--sm-display); font-size: 34px !important; font-weight: 700 !important; letter-spacing: -.025em; line-height: 1 !important;
    color: var(--sm-ink) !important; margin: 4px 0 0 !important; white-space: nowrap;
}
body.staff-client .cpx-price small { font-family: var(--sm-font); font-size: 14px !important; font-weight: 600; color: var(--sm-muted) !important; margin-left: 4px; letter-spacing: 0; }
body.staff-client .cpx-desc { color: var(--sm-muted) !important; font-size: 14px !important; line-height: 1.55; margin: 0 !important; flex: 1; }
body.staff-client .cpx-specs { list-style: none !important; padding: 14px 0 0 !important; margin: 0 !important; border-top: 1px dashed var(--sm-line); display: grid; gap: 9px; flex: 1; }
body.staff-client .cpx-specs li { display: flex !important; align-items: flex-start; gap: 10px; color: var(--sm-ink-2) !important; font-size: 14px !important; padding: 0 !important; margin: 0 !important; }
body.staff-client .cpx-specs li::before { content: none !important; display: none !important; }
body.staff-client .cpx-specs li i { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: #e8f7ee; color: #15803d; }
body.staff-client .cpx-cta {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: auto !important;
    border-radius: 13px !important; font-weight: 700 !important; font-size: 15px !important; color: #fff !important; text-decoration: none !important;
    background: linear-gradient(135deg, #6d4dff, #5b3df5 55%, #4b2fe0) !important; border: 0 !important;
    box-shadow: 0 12px 24px -14px rgba(91, 61, 245, .95); transition: box-shadow .15s, transform .1s;
}
body.staff-client .cpx-cta i { font-size: 13px; transition: transform .15s; }
body.staff-client .cpx-cta:hover { box-shadow: 0 16px 30px -14px rgba(91, 61, 245, 1); color: #fff !important; }
body.staff-client .cpx-cta:hover i { transform: translateX(3px); }
body.staff-client .cpx-cta:active { transform: translateY(1px); }
.cpx-cta-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 18px; border-radius: 13px;
    background: #fff; border: 1px solid var(--sm-line); color: var(--sm-ink) !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
    white-space: nowrap; transition: border-color .15s, color .15s;
}
.cpx-cta-ghost:hover { border-color: #d4c9fd; color: #5b3df5 !important; }

/* Empty state */
body.staff-client .cpx-empty {
    display: flex !important; align-items: center; gap: 22px; flex-wrap: wrap; padding: 26px 28px !important; margin: 0 !important;
    border: 1px dashed #d4c9fd !important; border-radius: 20px !important; background: linear-gradient(135deg, #f7f5ff, #fff) !important;
}
.cpx-empty-icon { width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: #fff; color: #5b3df5; box-shadow: var(--sm-shadow); }
.cpx-empty-text { flex: 1 1 320px; min-width: 0; }
body.staff-client .cpx-empty h3 { font-family: var(--sm-display); font-size: 18px !important; font-weight: 700 !important; margin: 0 0 4px !important; color: var(--sm-ink) !important; }
body.staff-client .cpx-empty p { margin: 0 !important; color: var(--sm-muted) !important; font-size: 14px; line-height: 1.55; }
.cpx-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.staff-client .cpx-empty-actions .cpx-cta { width: auto; padding: 0 20px; }

/* Help card */
.cpx-help {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: 20px;
    background: #fff; border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow);
}
.cpx-help-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 19px; background: #efebff; color: #5b3df5; }
.cpx-help > div { flex: 1 1 280px; }
body.staff-client .cpx-help h3 { font-family: var(--sm-display); font-size: 17px !important; font-weight: 700 !important; margin: 0 0 3px !important; color: var(--sm-ink) !important; }
body.staff-client .cpx-help p { margin: 0 !important; color: var(--sm-muted) !important; font-size: 14px; }

/* Responsive */
@media (max-width: 1100px) { .cpx-hero { grid-template-columns: 1fr; } .cpx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .cpx-hero { padding: 24px 20px; border-radius: 20px; }
    body.staff-client .cpx-hero h1 { font-size: 28px !important; }
    .cpx-steps { grid-template-columns: 1fr; }
    body.staff-client .cpx-grid, body.staff-client .cpx-grid.cloud-plans-grid-reseller { grid-template-columns: 1fr !important; }
    body.staff-client .cpx-empty { padding: 20px !important; }
    .cpx-empty-actions, .cpx-empty-actions a, .cpx-help .cpx-cta-ghost { width: 100%; }
    body.staff-client .cpx-price { font-size: 30px !important; }
}
@media (pointer: coarse) { body.staff-client .cpx-card:hover { transform: none; } }

/* Content added by hooks/add-ons below the page, and the footer when it ends up outside the app layout */
.staff-extra { box-sizing: border-box; padding-left: 28px !important; padding-right: 28px !important; max-width: none; }
.staff-footer-outside { box-sizing: border-box; }
@media (min-width: 901px) {
    body > .staff-extra, body > .staff-footer-outside { margin-left: var(--sm-side-w) !important; width: auto !important; }
    body > .staff-footer-outside { margin-right: 0; }
}
@media (max-width: 900px) { .staff-extra { padding-left: 16px !important; padding-right: 16px !important; } }
.staff-extra h1, .staff-extra h2 { font-family: var(--sm-display); letter-spacing: -.015em; }

/* ---------- Dashboard: My Services card ---------- */
.sd-services { padding: 0 !important; overflow: hidden; margin-bottom: 20px; }
.sd-services-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--sm-line-2); }
.sd-services-head .sd-card-title { margin: 0 !important; }
.sd-viewall { color: #5b3df5 !important; font-weight: 650; font-size: 14px; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.sd-viewall i { font-size: 11px; transition: transform .15s; }
.sd-viewall:hover i { transform: translateX(3px); }
.sd-service-list { display: grid; }
.sd-service {
    display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--sm-line-2);
    color: var(--sm-ink) !important; text-decoration: none !important; transition: background .15s; min-width: 0;
}
.sd-service:first-child { border-top: 0; }
a.sd-service:hover { background: #f8f6ff; }
.sd-service-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: #efebff; color: #5b3df5; font-size: 14px; }
.sd-service-label {
    flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 14.5px; color: var(--sm-ink-2); line-height: 1.4;
}
.sd-service-label strong, .sd-service-label b { color: var(--sm-ink); font-weight: 700; }
.sd-service-label a { color: inherit !important; text-decoration: none !important; }
.sd-service-label br { display: none; }
.sd-service-label .label, .sd-service-label .status, .sd-service-label [class*="status-"] {
    float: none !important; margin-left: auto !important; border-radius: 999px !important; font-size: 11.5px !important; font-weight: 700 !important;
    padding: .35em .85em !important; white-space: nowrap; order: 9;
}
.sd-service-label .label:not([class*="status-"]) { background: #e8f7ee !important; color: #15803d !important; }
.sd-service-badge { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--sm-muted); background: var(--sm-surface-2); border: 1px solid var(--sm-line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.sd-service-go { color: #c4bdf0; font-size: 12px; flex-shrink: 0; transition: transform .15s, color .15s; }
a.sd-service:hover .sd-service-go { color: #5b3df5; transform: translateX(3px); }
.sd-empty { text-align: center; padding: 44px 24px 40px; }
.sd-empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: #efebff; color: #5b3df5; font-size: 22px; }
body.staff-client .sd-empty h4 { font-family: var(--sm-display); font-size: 18px !important; font-weight: 700 !important; margin: 0 0 6px !important; color: var(--sm-ink) !important; }
.sd-empty p { margin: 0 0 18px; color: var(--sm-muted); font-size: 14.5px; }
@media (max-width: 720px) {
    .sd-service { padding: 13px 16px; gap: 12px; }
    .sd-services-head { padding: 16px; }
    .sd-service-icon { width: 34px; height: 34px; }
}
@media (max-width: 720px) {
    .sd-service { display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; grid-template-areas: "icon label go" "icon badge go"; column-gap: 12px; row-gap: 6px; align-items: center; }
    .sd-service-icon { grid-area: icon; align-self: start; }
    .sd-service-label { grid-area: label; display: block; font-size: 14px; overflow-wrap: anywhere; }
    .sd-service-label strong, .sd-service-label b { display: block; }
    .sd-service-label .label, .sd-service-label .status, .sd-service-label [class*="status-"] { display: inline-block; margin: 6px 6px 0 0 !important; }
    .sd-service-badge { grid-area: badge; justify-self: start; }
    .sd-service-go { grid-area: go; }
}

/* ---------- My Services: tidied rows ---------- */
.sd-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; }
.sd-service-tidy { padding: 14px 22px !important; min-height: 0 !important; }
.sd-service-tidy .sd-service-label { display: flex !important; align-items: center; gap: 14px; flex-wrap: nowrap; }
.sd-svc-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sd-svc-main b { font-size: 15px; font-weight: 700; color: var(--sm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-svc-main small { font-size: 13px; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-svc-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sd-svc-side .label, .sd-svc-side .status, .sd-svc-side [class*="status-"] { margin: 0 !important; order: 0 !important; }
body.staff-client .sd-svc-btn {
    display: inline-flex !important; align-items: center; height: 36px; padding: 0 16px !important; border-radius: 10px !important; margin: 0 !important;
    background: #fff !important; border: 1px solid var(--sm-line) !important; color: var(--sm-ink) !important; font-weight: 650 !important; font-size: 13.5px !important;
    text-decoration: none !important; box-shadow: none !important; float: none !important; transition: border-color .15s, color .15s;
}
body.staff-client .sd-svc-btn:hover { border-color: #d4c9fd !important; color: #5b3df5 !important; }
.sd-service-tidy .sd-service-label > br, .sd-service-tidy .sd-service-label .pull-right { float: none !important; }
@media (max-width: 720px) {
    .sd-service-tidy { display: flex !important; padding: 13px 16px !important; }
    .sd-service-tidy .sd-service-label { flex-wrap: wrap; gap: 8px 12px; }
    .sd-svc-main { flex: 1 1 100%; }
    .sd-svc-main b, .sd-svc-main small { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 720px) { .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 340px) { .sd-stats { grid-template-columns: 1fr !important; } }


/* ======================================================================
   MrNerds edition: logo sizing (wider logo with mascot)
   ====================================================================== */
body.staff-client .staff-brand img { height: 46px !important; max-height: 46px !important; max-width: 196px !important; }
@media (min-width: 901px) {
    body.staff-collapsed .staff-brand-logo { width: 46px; overflow: hidden; display: block; }
    body.staff-collapsed .staff-brand-logo img { max-width: none !important; height: 40px !important; width: auto !important; object-fit: initial; }
}
.slv-logo img, .staff-login-visual img { height: 64px !important; max-height: 64px !important; max-width: 280px !important; }
.slp-mobile-brand img { height: 48px; }
.staff-guest-brand img { height: 48px; }
.staff-footer-left img { height: 46px; }
.staff-footer-legal a { color: #5b3df5 !important; font-weight: 600; }
