/* ============================================================
   KingDesk – Premium Bootstrap 5 Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #7c3aed;
    --primary-rgb: 124, 58, 237;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-soft: rgba(124, 58, 237, 0.08);
    --sidebar-width: 260px;
    --sidebar-bg: #0f0f1a;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active: var(--primary);
    --body-bg: #f4f6fb;
    --card-bg: #ffffff;
    --card-border: #e8ecf4;
    --card-shadow: 0 1px 3px rgba(16,24,40,0.04), 0 1px 2px rgba(16,24,40,0.02);
    --card-shadow-hover: 0 12px 24px rgba(16,24,40,0.08);
    --text-main: #101828;
    --text-muted: #667085;
    --radius: 12px;
    --radius-sm: 8px;
    --topbar-h: 64px;
    --success: #12b76a;
    --warning: #f79009;
    --danger: #f04438;
    --info: #0ba5ec;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    min-height: 100vh;
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---------- Bootstrap overrides ---------- */
.btn {
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(var(--primary-rgb), 0.2);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: #d0d5dd;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.form-control-sm, .form-select-sm { padding: 0.35rem 0.65rem; font-size: 0.8125rem; }

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.01em;
}
.badge-soft-success { background: rgba(18,183,106,0.12); color: var(--success); }
.badge-soft-warning { background: rgba(247,144,9,0.12); color: var(--warning); }
.badge-soft-danger { background: rgba(240,68,56,0.12); color: var(--danger); }
.badge-soft-primary { background: var(--primary-soft); color: var(--primary); }
.badge-soft-info { background: rgba(11,165,236,0.12); color: var(--info); }

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.nav-pills .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
}
.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}
.nav-tabs { border-bottom-color: var(--card-border); }
.nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
}
.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.dropdown-menu {
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(16,24,40,0.1);
    padding: 0.4rem;
    font-size: 0.875rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
}
.dropdown-item:hover { background: var(--primary-soft); color: var(--primary); }

.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * {
    padding: 0.9rem 1.1rem;
    vertical-align: middle;
    border-bottom-color: var(--card-border);
}
.table thead th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}
.table-hover tbody tr:hover { background: rgba(124,58,237,0.03); }

.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.875rem;
}
.alert-success { background: rgba(18,183,106,0.1); color: #027a48; }
.alert-danger { background: rgba(240,68,56,0.1); color: #b42318; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}
.sidebar-brand {
    padding: 1.35rem 1.25rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.02em;
}
.sidebar-brand i { color: var(--primary-light); font-size: 1.4rem; }
.sidebar .nav-link {
    color: rgba(255,255,255,0.55);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0.1rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.sidebar .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; opacity: 0.8; }
.sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}
.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
}
.sidebar .nav-link.active i { opacity: 1; }
.sidebar hr { border-color: rgba(255,255,255,0.08); }

/* ---------- Main layout ---------- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 0 1.5rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar h5 { font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Cards ---------- */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.stat-card .stat-change {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.35rem;
}
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.content-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.35rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

/* ---------- Avatar ---------- */
.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* ---------- Charts ---------- */
.chart-container {
    position: relative;
    height: 240px;
}

/* ---------- Usage bars ---------- */
.usage-bar {
    height: 8px;
    border-radius: 99px;
    background: #eef0f5;
    overflow: hidden;
}
.usage-bar .fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.4s ease;
}

.feature-check-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}
.feature-check-list li i {
    color: var(--success);
    font-size: 1rem;
}

/* ---------- Landing page ---------- */
.landing-hero {
    background: linear-gradient(160deg, #f5f0ff 0%, #ffffff 40%, #f0f4ff 100%);
    min-height: 100vh;
}
.landing-nav { padding: 1rem 0; }
.feature-badge {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.hero-card {
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px rgba(124,58,237,0.12);
    overflow: hidden;
    border: 1px solid rgba(124,58,237,0.08);
}
.feature-list li {
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
}
.feature-list .bi-check-circle-fill { color: var(--primary); }
.logo-placeholder {
    width: 80px;
    height: 28px;
    background: #e9ecef;
    border-radius: 6px;
    display: inline-block;
}

/* ---------- Customer portal ---------- */
.portal-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.75rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.portal-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.portal-hero::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -100px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

/* ---------- Conversation bubbles ---------- */
.chat-bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
}
.chat-bubble-me { background: var(--primary-soft); border-bottom-right-radius: 4px; }
.chat-bubble-them { background: #f3f4f6; border-bottom-left-radius: 4px; }
.chat-bubble-internal {
    background: rgba(247,144,9,0.08);
    border: 1px solid rgba(247,144,9,0.25);
    border-radius: 12px;
}

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    opacity: 0.2;
    display: block;
    margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 8px 0 30px rgba(0,0,0,0.25);
    }
    .main-content {
        margin-left: 0;
    }
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--text-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }

/* Input group polish */
.input-group-text {
    background: #fff;
    border-color: #d0d5dd;
    color: var(--text-muted);
}
.input-group .form-control:focus + .input-group-text,
.input-group .form-control:focus {
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-main); font-weight: 500; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4c9d4; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #a0a7b5; }

/* ---------- Advanced Table ---------- */
th[data-sort] { white-space: nowrap; }
th[data-sort]:hover { color: var(--primary); }
.pagination { gap: 2px; }
.pagination .page-link {
    border-radius: 6px !important;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8125rem;
    min-width: 32px;
    text-align: center;
    padding: 0.35rem 0.6rem;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.pagination .page-item.disabled .page-link {
    background: transparent;
    color: #c4c9d4;
}
.modal-content { border-radius: var(--radius); }
.modal-header .modal-title { font-size: 1.1rem; }
.table .btn-sm {
    padding: 0.25rem 0.45rem;
    line-height: 1;
}
.list-group-item { border-color: var(--card-border); }

/* ---------- Luxury customer portal ---------- */
.customer-portal-body{background:#f4f6fa;color:#172033;min-height:100vh}.customer-sidebar{position:fixed;inset:0 auto 0 0;width:282px;padding:24px 18px;background:linear-gradient(180deg,#08111f 0%,#101c2f 55%,#091321 100%);color:#fff;z-index:1040;display:flex;flex-direction:column;box-shadow:16px 0 50px rgba(3,13,29,.16)}.customer-brand{display:flex;align-items:center;gap:12px;padding:4px 10px 26px;color:#fff;text-decoration:none}.customer-brand-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#d6af57,#f1d58d);color:#162033;font-size:1.25rem;box-shadow:0 8px 24px rgba(214,175,87,.22)}.customer-brand strong,.customer-brand small{display:block}.customer-brand strong{font-size:1.12rem;letter-spacing:.02em}.customer-brand small{font-size:.7rem;color:#96a4b9;text-transform:uppercase;letter-spacing:.14em}.customer-nav{display:flex;flex-direction:column;gap:6px}.customer-nav-label{padding:0 14px 7px;color:#697a92;font-size:.67rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.customer-nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:12px;color:#aab7c8;text-decoration:none;font-size:.88rem;font-weight:600;transition:.2s}.customer-nav a i{width:21px;text-align:center;font-size:1.05rem}.customer-nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(2px)}.customer-nav a.active{background:linear-gradient(135deg,#2764e7,#194fc8);color:#fff;box-shadow:0 10px 25px rgba(39,100,231,.3)}.customer-sidebar-card{margin-top:auto;padding:18px;border:1px solid rgba(214,175,87,.22);background:rgba(214,175,87,.08);border-radius:16px}.customer-sidebar-card i,.customer-sidebar-card strong,.customer-sidebar-card small{display:block}.customer-sidebar-card i{font-size:1.4rem;color:#e7c875;margin-bottom:9px}.customer-sidebar-card small{color:#97a5b8;font-size:.75rem;margin:4px 0 12px}.customer-sidebar-card a{color:#e7c875;font-size:.78rem;font-weight:700}.customer-main{margin-left:282px;min-height:100vh}.customer-topbar{height:86px;padding:0 34px;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid #e8ebf0;display:flex;align-items:center;position:sticky;top:0;z-index:1020}.customer-eyebrow{font-size:.66rem;letter-spacing:.13em;text-transform:uppercase;color:#8b96a8;font-weight:700}.customer-top-icon{width:40px;height:40px;border:1px solid #e5e9f0;border-radius:12px;display:grid;place-items:center;color:#526075;text-decoration:none;background:#fff}.customer-profile{display:flex;align-items:center;gap:10px}.customer-profile strong,.customer-profile small{display:block;line-height:1.2}.customer-profile strong{font-size:.82rem}.customer-profile small{font-size:.68rem;color:#8a96a8}.customer-avatar{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#0d6efd,#5e8ff5);color:#fff;display:grid;place-items:center;font-weight:800}.customer-menu-btn{display:none;font-size:1.4rem}.customer-content{padding:30px 34px}.luxury-hero{position:relative;overflow:hidden;border-radius:24px;padding:32px;background:linear-gradient(125deg,#10213d,#1d4f9f 70%,#2f72e4);color:#fff;box-shadow:0 20px 45px rgba(26,73,145,.2)}.luxury-hero:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-60px;top:-100px;border:55px solid rgba(255,255,255,.07)}.luxury-hero .btn{position:relative;z-index:1}.customer-stat-card{border:0;border-radius:18px;background:#fff;padding:22px;box-shadow:0 8px 28px rgba(28,42,70,.06);height:100%;transition:.2s}.customer-stat-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(28,42,70,.1)}.customer-stat-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:1.2rem}.customer-stat-card .value{font-size:1.7rem;font-weight:800;margin-top:16px}.luxury-card{background:#fff;border:1px solid #e9ecf2;border-radius:20px;box-shadow:0 8px 28px rgba(28,42,70,.05);overflow:hidden}.luxury-card-header{padding:20px 22px;border-bottom:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between}.luxury-table{margin:0}.luxury-table thead th{background:#f8f9fc;border:0;color:#738096;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;padding:14px 18px}.luxury-table tbody td{padding:16px 18px;border-color:#edf0f4;vertical-align:middle}.customer-filterbar{padding:16px 20px;background:#fff;border:1px solid #e9ecf2;border-radius:18px;display:flex;gap:12px;align-items:center}.customer-filterbar .form-control,.customer-filterbar .form-select{border-color:#e5e9ef;background:#f9fafc}.customer-mobile-backdrop{display:none}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.customer-empty{padding:60px 20px;text-align:center;color:#7e899a}.customer-empty i{display:block;font-size:2.8rem;color:#c9d0da;margin-bottom:12px}
@media(max-width:991.98px){.customer-sidebar{transform:translateX(-100%);transition:.25s}.customer-sidebar.show{transform:none}.customer-main{margin-left:0}.customer-menu-btn{display:block;margin-right:12px}.customer-mobile-backdrop.show{display:block;position:fixed;inset:0;background:rgba(3,10,20,.5);z-index:1035}.customer-content{padding:22px 16px}.customer-topbar{padding:0 16px}.luxury-hero{padding:25px}.customer-filterbar{flex-wrap:wrap}}

/* ---------- System-wide luxury polish ---------- */
body{background:#f5f7fb}.content-card{border:1px solid #e8ecf2;border-radius:18px;box-shadow:0 8px 28px rgba(26,39,66,.055)}.topbar{height:78px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid #e9edf3;padding-right:145px;position:sticky;top:0;z-index:1010}.sidebar{background:linear-gradient(180deg,#081321 0%,#102039 58%,#091525 100%);box-shadow:14px 0 42px rgba(6,18,36,.13)}.sidebar-brand{padding-top:1.2rem;padding-bottom:1.2rem}.sidebar .nav-link{border-radius:11px;margin:2px 10px;padding:.72rem .85rem}.sidebar .nav-link.active{background:linear-gradient(135deg,#2764e7,#184fc7);box-shadow:0 9px 22px rgba(39,100,231,.24)}.table thead th{background:#f8f9fc;color:#738095;text-transform:uppercase;letter-spacing:.055em;font-size:.7rem;border-bottom:1px solid #e8ecf2}.table tbody td{border-color:#edf0f4}.btn{border-radius:10px;font-weight:600}.form-control,.form-select{border-radius:10px;border-color:#dfe5ed}.modal-content{border:0;border-radius:20px;box-shadow:0 24px 70px rgba(15,30,54,.2)}.global-portal-logout{position:fixed;right:24px;top:20px;z-index:1060;height:40px;padding:0 14px;border-radius:12px;display:flex;align-items:center;gap:7px;background:#fff;color:#d33d4e;border:1px solid #f0dce0;text-decoration:none;font-size:.78rem;font-weight:700;box-shadow:0 7px 20px rgba(24,35,55,.09)}.global-portal-logout:hover{background:#fff1f3;color:#b42336;transform:translateY(-1px)}.customer-topbar{padding-right:145px}

/* ---------- Luxury technician portal ---------- */
.technician-portal-body{background:#f3f6fa}.technician-sidebar{position:fixed;inset:0 auto 0 0;width:270px;padding:22px 17px;background:linear-gradient(180deg,#061724,#0a2934 55%,#071a27);color:#fff;z-index:1040;display:flex;flex-direction:column;box-shadow:15px 0 45px rgba(4,20,30,.16)}.technician-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;padding:5px 10px 28px}.technician-brand>span{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#25b99a,#77dfbd);color:#06281f;font-size:1.25rem}.technician-brand strong,.technician-brand small{display:block}.technician-brand small{font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;color:#83a7aa}.technician-sidebar nav{display:flex;flex-direction:column;gap:6px}.tech-nav-label{padding:0 14px 6px;color:#597e82;font-size:.66rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700}.technician-sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;color:#a2bdc0;text-decoration:none;font-size:.85rem;font-weight:600}.technician-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}.technician-sidebar nav a.active{color:#fff;background:linear-gradient(135deg,#149b81,#08735f);box-shadow:0 9px 24px rgba(20,155,129,.25)}.technician-sidebar nav a i{width:20px;text-align:center}.technician-user-card{margin-top:auto;border:1px solid rgba(119,223,189,.18);background:rgba(119,223,189,.07);padding:13px;border-radius:14px;display:flex;align-items:center;gap:10px}.technician-user-card>span{width:38px;height:38px;border-radius:11px;background:#1aa88b;display:grid;place-items:center;font-weight:800}.technician-user-card strong,.technician-user-card small{display:block}.technician-user-card strong{font-size:.78rem}.technician-user-card small{font-size:.65rem;color:#89a8aa}.technician-portal-body>nav,.technician-portal-body>main{margin-left:270px}.technician-portal-body>nav{padding-right:145px;min-height:78px;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px);position:sticky;top:0;z-index:1020}.technician-portal-body>main{max-width:none!important;padding:30px 34px!important}.technician-backdrop{display:none}.customer-legacy-body>nav,.customer-legacy-body>main,.customer-legacy-body>div.container{margin-left:282px}.customer-legacy-body>nav{padding-right:145px;min-height:78px;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px);position:sticky;top:0;z-index:1020}.customer-legacy-body>main,.customer-legacy-body>div.container{max-width:none!important;padding:30px 34px!important}
@media(max-width:991.98px){.global-portal-logout{right:12px;top:18px}.global-portal-logout span{display:none}.global-portal-logout{width:40px;padding:0;justify-content:center}.topbar,.customer-topbar{padding-right:65px}.technician-sidebar{transform:translateX(-100%);transition:.25s}.technician-sidebar.show{transform:none}.technician-portal-body>nav,.technician-portal-body>main,.customer-legacy-body>nav,.customer-legacy-body>main,.customer-legacy-body>div.container{margin-left:0}.technician-portal-body>main,.customer-legacy-body>main,.customer-legacy-body>div.container{padding:22px 15px!important}}
.global-build-badge{position:fixed;right:24px;bottom:14px;z-index:1050;padding:5px 9px;border-radius:8px;background:#0b1728;color:#a8bad2;font-size:.61rem;font-weight:700;letter-spacing:.06em;box-shadow:0 5px 15px rgba(6,18,34,.16)}
.global-notification-button{position:fixed;right:132px;top:20px;z-index:1060;width:40px;height:40px;border:1px solid #e2e7ef;border-radius:12px;background:#fff;color:#526176;box-shadow:0 7px 20px rgba(24,35,55,.08)}.global-notification-button span{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e5484d;color:#fff;font-size:.62rem;line-height:20px;font-weight:800}.global-notification-panel{display:none;position:fixed;right:24px;top:70px;z-index:1070;width:min(390px,calc(100vw - 24px));max-height:510px;overflow:auto;background:#fff;border:1px solid #e5e9ef;border-radius:18px;box-shadow:0 25px 70px rgba(15,31,54,.2)}.global-notification-panel.show{display:block}.realtime-notification-item{display:block;padding:14px 16px;border-bottom:1px solid #edf0f4;color:#172033;text-decoration:none}.realtime-notification-item:hover{background:#f7f9fc}.realtime-notification-item strong,.realtime-notification-item small{display:block}.realtime-notification-item small{color:#8793a5;margin-top:3px}.tooltip .tooltip-inner{background:#0b1728;border-radius:8px;padding:7px 10px;font-size:.72rem;box-shadow:0 7px 22px rgba(5,16,30,.18)}
/* Build 12 portal experience */
.tenant-luxury-sidebar{background:linear-gradient(180deg,#071a32,#0d3155 65%,#061426)!important}.tenant-luxury-sidebar .sidebar-brand{display:flex;align-items:center;gap:12px;padding:22px}.tenant-luxury-sidebar .sidebar-brand div{display:flex;flex-direction:column;min-width:0}.tenant-luxury-sidebar .sidebar-brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-luxury-sidebar .sidebar-brand small{color:#8ea8c5;font-size:.68rem;text-transform:uppercase;letter-spacing:.1em}.tenant-brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#5ce1c4,#168873);color:#06231e}.tenant-luxury-sidebar .nav-link{margin:2px 12px;border-radius:11px;color:#b8c9dc!important}.tenant-luxury-sidebar .nav-link:hover,.tenant-luxury-sidebar .nav-link.active{background:rgba(92,225,196,.13);color:#fff!important;box-shadow:inset 3px 0 #5ce1c4}.tenant-luxury-sidebar .nav-link i{color:#5ce1c4}.tech-sidebar-v17 nav{padding-bottom:110px}.tech-sidebar-v17 .tech-nav-label{margin-top:12px}.tech-sidebar-v17 nav a{min-height:43px}.safety-check-row{padding:16px 16px 16px 42px;border:1px solid #dfe8e5;border-radius:13px;margin-bottom:10px;background:#f8fbfa}.safety-check-row .form-check-input{margin-left:-25px}
.ticket-kanban{display:grid;grid-template-columns:repeat(4,minmax(270px,1fr));gap:18px;overflow-x:auto;padding-bottom:12px}.ticket-kanban-column{background:#eef3f8;border:1px solid #dde6f0;border-radius:20px;min-height:520px}.ticket-kanban-column>header{display:flex;align-items:center;gap:9px;padding:18px;border-bottom:1px solid #dce5ef}.status-dot{width:10px;height:10px;border-radius:50%}.ticket-kanban-list{padding:12px}.ticket-kanban-card{background:#fff;border:1px solid #e2e9f2;border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 6px 18px rgba(18,39,70,.06);transition:.2s}.ticket-kanban-card:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(18,39,70,.11)}.sla-card-overdue{border-left:4px solid #dc3545}@media(max-width:1199px){.ticket-kanban{grid-template-columns:repeat(4,290px)}}
.admin-luxury-sidebar{background:linear-gradient(180deg,#07152e,#0d2749 62%,#061224)!important;border-right:1px solid rgba(233,199,125,.18)}.admin-luxury-sidebar .sidebar-brand{display:flex;align-items:center;gap:12px;padding:22px}.admin-luxury-sidebar .sidebar-brand div{display:flex;flex-direction:column}.admin-luxury-sidebar .sidebar-brand small{color:#91a5c2;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}.admin-brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#f5d796,#9c7337);color:#07152e;box-shadow:0 8px 20px rgba(0,0,0,.22)}.sidebar-section-label{padding:18px 24px 7px;color:#7890b0;font-size:.65rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.admin-luxury-sidebar .nav-link{margin:3px 12px;border-radius:12px;color:#b8c7dc!important}.admin-luxury-sidebar .nav-link:hover,.admin-luxury-sidebar .nav-link.active{color:#fff!important;background:linear-gradient(90deg,rgba(233,199,125,.18),rgba(255,255,255,.07));box-shadow:inset 3px 0 #e9c77d}.admin-luxury-sidebar .nav-link i{color:#e9c77d}.sidebar-footer-links{margin-top:18px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
.topbar,.customer-topbar{padding-right:205px!important}.portal-hero{background:linear-gradient(135deg,#07152e 0%,#153f75 58%,#a47b3c 140%);color:#fff;border-radius:24px;padding:28px;box-shadow:0 22px 48px rgba(7,21,46,.22);position:relative;overflow:hidden}.portal-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.08);right:-70px;top:-110px}.portal-hero .eyebrow{color:#e9c77d;text-transform:uppercase;letter-spacing:.15em;font-size:.72rem;font-weight:800}.luxury-icon-card{border:0;border-radius:20px;background:linear-gradient(145deg,#fff,#f7f9fc);box-shadow:0 12px 34px rgba(19,42,77,.09);height:100%;transition:.2s}.luxury-icon-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(19,42,77,.14)}.luxury-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:1.25rem;background:#0f2e5b;color:#f2ce83}.advanced-table-shell{border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 34px rgba(19,42,77,.08)}.advanced-table-shell .table thead th{background:#f1f5fa;color:#526176;text-transform:uppercase;letter-spacing:.07em;font-size:.69rem;border:0}.quick-action{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e7ecf3;border-radius:14px;text-decoration:none;color:#172b4d;transition:.2s}.quick-action:hover{background:#f4f7fb;border-color:#b6c7de;color:#0d6efd}

/* Build 19 superadmin command experience */
.admin-portal-body{background:radial-gradient(circle at 85% 0,#edf3fc 0,transparent 28%),#f4f6fa;color:#17243a}.admin-portal-body .main-content{min-height:100vh}.admin-luxury-sidebar{display:flex;flex-direction:column;padding-bottom:16px;overflow:hidden}.admin-sidebar-brand{display:flex;align-items:center;gap:12px;padding:22px 20px 14px;color:#fff;text-decoration:none}.admin-sidebar-brand>div{min-width:0;flex:1}.admin-sidebar-brand strong,.admin-sidebar-brand small{display:block}.admin-sidebar-brand strong{font-size:1rem}.admin-sidebar-brand small{color:#8198b8;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase}.admin-live-dot{width:9px;height:9px;border-radius:50%;background:#56d89c;box-shadow:0 0 0 5px rgba(86,216,156,.11),0 0 14px rgba(86,216,156,.6)}.admin-platform-chip{margin:0 16px 8px;padding:10px 12px;border:1px solid rgba(232,199,125,.17);border-radius:12px;background:rgba(232,199,125,.07);display:flex;justify-content:space-between;color:#dfc37f;font-size:.65rem}.admin-platform-chip span{font-weight:800;text-transform:uppercase;letter-spacing:.08em}.admin-platform-chip strong{color:#91a5c2}.admin-nav-scroll{overflow-y:auto;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:rgba(232,199,125,.25) transparent}.admin-luxury-sidebar .nav-link{display:flex!important;align-items:center;gap:12px;min-height:44px;padding:11px 13px!important;font-size:.82rem;font-weight:650}.admin-luxury-sidebar .nav-link i{width:20px;text-align:center;font-size:1rem}.admin-luxury-sidebar .nav-link span{flex:1}.admin-luxury-sidebar .nav-link em{min-width:24px;padding:2px 7px;border-radius:12px;background:rgba(232,199,125,.14);color:#e8c77d;font-size:.62rem;font-style:normal;text-align:center}.admin-luxury-sidebar .nav-link em.alert-count{background:rgba(243,88,103,.16);color:#ff929d}.admin-sidebar-footer{margin:auto 14px 0;padding:13px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.045);border-radius:15px;display:flex;align-items:center;gap:10px;color:#fff}.admin-sidebar-footer>div:nth-child(2){min-width:0;flex:1}.admin-sidebar-footer strong,.admin-sidebar-footer small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-sidebar-footer strong{font-size:.76rem}.admin-sidebar-footer small{color:#8296b2;font-size:.62rem}.admin-sidebar-footer>a{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#ff8994;background:rgba(255,104,117,.08)}.admin-avatar{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#efd18a,#9b743a);display:grid;place-items:center;color:#07152e;font-weight:900}.admin-menu-toggle{position:fixed;left:12px;top:18px;z-index:1060;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#183153;box-shadow:0 8px 22px rgba(15,32,58,.12)}.admin-portal-body .topbar{padding-left:30px}.admin-portal-body .portal-hero{padding:34px;background:linear-gradient(125deg,#07152e 0%,#113a6a 54%,#9e793f 145%)}.admin-portal-body .luxury-icon-card{border:1px solid rgba(222,228,237,.7)}.admin-command-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px;position:relative;z-index:1}.admin-command-item{padding:13px 15px;border-radius:14px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(8px)}.admin-command-item small,.admin-command-item strong{display:block}.admin-command-item small{color:#b7c5d8;font-size:.67rem}.admin-command-item strong{color:#fff;font-size:.85rem;margin-top:3px}.admin-activity-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f4}.admin-activity-item:last-child{border:0}.admin-activity-icon{width:38px;height:38px;flex:0 0 auto;border-radius:12px;background:#eef3fa;color:#173e70;display:grid;place-items:center}.admin-activity-item strong,.admin-activity-item small{display:block}.admin-activity-item strong{font-size:.8rem}.admin-activity-item small{font-size:.68rem;color:#8793a5;margin-top:3px}@media(max-width:991.98px){.admin-portal-body .topbar{padding-left:65px}.admin-luxury-sidebar{overflow-y:auto}.admin-command-strip{grid-template-columns:1fr}.admin-portal-body .portal-hero{padding:25px}.admin-portal-body .main-content{margin-left:0}}
