        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #050505;
            overflow: hidden;
        }

        * {
            box-sizing: border-box;
        }

        :root {
            --sb-w: 240px;
        }

        #map,
        .leaflet-container {
            cursor: default !important;
        }

        .leaflet-interactive {
            cursor: pointer !important;
        }

        #map {
            position: fixed;
            top: 0;
            left: var(--sb-w);
            height: 100vh;
            width: calc(100% - var(--sb-w));
            background: #111;
            z-index: 1;
        }

        #sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sb-w);
            height: 100vh;
            background: linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(9, 12, 18, 0.98));
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            z-index: 7000;
            color: #e9eef7;
            display: none;
            flex-direction: column;
        }

        #sb-brand {
            padding: 16px 14px;
            font-weight: 900;
            letter-spacing: 0.5px;
            font-size: 13px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        #sb-role {
            font-size: 10px;
            opacity: 0.7;
            margin-top: 6px;
            font-weight: 700;
        }

        #sb-menu {
            padding: 12px 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            overflow-y: auto;
        }

        .sb-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            color: #cdd7e7;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.03);
            font-size: 12px;
            font-weight: 800;
        }

        .sb-item:hover {
            background: rgba(243, 186, 47, 0.10);
            border-color: rgba(243, 186, 47, 0.25);
            color: #fff;
        }

        .sb-item.active {
            background: rgba(243, 186, 47, 0.18);
            border-color: rgba(243, 186, 47, 0.35);
            color: #fff;
        }

        .sb-item i {
            width: 16px;
            text-align: center;
        }

        #sb-bottom {
            padding: 12px 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        #pageContainer select,
        #sidebar select {
            color: #e9eef7;
            background: #0b1220;
            border: 1px solid rgba(255, 255, 255, 0.10);
        }

        #pageContainer option,
        #sidebar option {
            color: #e9eef7;
            background: #0b1220;
        }

        #pageContainer {
            position: fixed;
            top: 0;
            left: var(--sb-w);
            right: 0;
            bottom: 0;
            z-index: 6500;
            background: linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(6, 8, 12, 0.98));
            overflow: auto;
            display: none;
            padding: 18px;
        }

        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        .page-title {
            font-size: 16px;
            font-weight: 900;
            color: #e9eef7;
            margin-bottom: 6px;
        }

        .page-sub {
            font-size: 11px;
            color: rgba(233, 238, 247, 0.7);
            margin-bottom: 14px;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 12px;
        }

        .card {
            grid-column: span 12;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 14px;
            color: #e9eef7;
        }

        .card h3 {
            margin: 0 0 10px 0;
            font-size: 12px;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            opacity: 0.9;
        }

        .stat-row {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .stat {
            flex: 1;
            min-width: 150px;
            padding: 10px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .stat .k {
            font-size: 10px;
            opacity: 0.7;
            font-weight: 900;
            text-transform: uppercase;
        }

        .stat .v {
            font-size: 22px;
            font-weight: 900;
            margin-top: 6px;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
        }

        .table th {
            text-align: left;
            padding: 10px 8px;
            color: rgba(233, 238, 247, 0.75);
            font-weight: 900;
            border-bottom: 1px solid rgba(255, 255, 255, 0.10);
            position: sticky;
            top: 0;
            background: rgba(8, 10, 14, 0.95);
        }

        .table td {
            padding: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 900;
            border: 1px solid rgba(255, 255, 255, 0.10);
        }

        .b-online {
            background: rgba(40, 167, 69, 0.15);
            color: #3eea68;
            border-color: rgba(40, 167, 69, 0.25);
        }

        .b-offline {
            background: rgba(220, 53, 69, 0.15);
            color: #ff6a7a;
            border-color: rgba(220, 53, 69, 0.25);
        }

        .b-isolir {
            background: rgba(111, 66, 193, 0.18);
            color: #c2a0ff;
            border-color: rgba(111, 66, 193, 0.28);
        }

        body.view-maps #pageContainer {
            display: none;
        }

        body:not(.view-maps) #pageContainer {
            display: block;
        }

        body.view-maps #map {
            left: 0;
            width: 100%;
        }

        body.view-maps #sidebar {
            display: none !important;
        }




        body:not(.view-maps) .btn-logout,
        body:not(.view-maps) .btn-history,
        body:not(.view-maps) .btn-cloud,
        body:not(.view-maps) .btn-autoref,
        body:not(.view-maps) .layer-switch,
        body:not(.view-maps) .hud-panel,
        body:not(.view-maps) .list-box,
        body:not(.view-maps) .btn-toggle-label,
        body:not(.view-maps) .fab-menu,
        body:not(.view-maps) .main-fab,
        body:not(.view-maps) #drawHeader {
            display: none !important;
        }




        .btn-dashboard {
            position: absolute;
            left: 20px;
            top: 15px;
            z-index: 1000;
            padding: 10px 20px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            background: rgba(0, 40, 80, 0.9);
            border: 2px solid rgba(243, 186, 47, 0.8);
            color: #cfe2ff;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.2s;
        }

        .btn-dashboard:hover {
            background: rgba(243, 186, 47, 0.3);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(243, 186, 47, 0.4);
        }

        .btn-logout,
        .btn-history,
        .btn-cloud {
            position: absolute;
            right: 15px;
            z-index: 1000;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        }

        .btn-logout {
            top: 15px;
            background: rgba(20, 0, 0, 0.8);
            border: 2px solid #dc3545;
            color: #dc3545;
        }

        .btn-history {
            top: 55px;
            background: rgba(0, 20, 50, 0.8);
            border: 2px solid #f3ba2f;
            color: #f3ba2f;
        }

        .btn-cloud {
            top: 95px;
            background: rgba(0, 20, 50, 0.8);
            border: 2px solid #17a2b8;
            color: #17a2b8;
        }

        .ar-switch,
        .layer-switch {
            position: absolute;
            top: 15px;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid #555;
            border-radius: 20px;
            display: flex;
            align-items: center;
            height: 35px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            font-family: 'Segoe UI', sans-serif;
            overflow: hidden;
        }

        .ar-switch {
            right: 320px;
            font-size: 10px;
            font-weight: bold;
            width: 85px;
            justify-content: center;
            cursor: pointer;
            color: #ccc;
            transition: 0.3s;
        }

        .ar-switch.active {
            background: #28a745;
            color: white;
            border-color: #28a745;
        }

        .layer-switch {
            right: 60px;
            font-size: 10px;
            font-weight: bold;
        }

        .ls-opt {
            padding: 0 12px;
            height: 100%;
            display: flex;
            align-items: center;
            cursor: pointer;
            color: #ccc;
            transition: 0.2s;
            border-right: 1px solid #444;
        }

        .ls-opt:last-child {
            border-right: none;
        }

        .ls-opt:hover {
            background: #333;
        }

        .ls-opt.active {
            background: #f3ba2f;
            color: white;
        }

        @keyframes pulse-red {
            0% {
                box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
            }

            70% {
                box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
            }
        }

        .marker-base {
            border: 2px solid #fff;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            font-weight: bold;
        }

        .marker-online {
            background: #28a745;
        }

        .marker-offline {
            background: #dc3545;
            animation: pulse-red 1.5s infinite;
            border-color: #fff !important;
        }

        .marker-isolir {
            background: #6f42c1;
            border-color: #fff !important;
        }

        .marker-poe {
            background: #f3ba2f;
        }

        .odp-box {
            border-radius: 4px;
            border: 2px solid #fff;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
            color: white;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: center;
            text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.8);
        }

        .olt-active {
            background: #f3ba2f;
            border: 2px solid #fff;
        }

        .odp-full {
            background: #dc3545;
        }

        .odp-warn {
            background: #f1c40f;
            color: white;
        }

        .odp-safe {
            background: #28a745;
        }

        .odp-jb {
            background: #6f42c1;
        }

        .odp-alert-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 18px;
            height: 18px;
            background: #dc3545;
            border-radius: 50%;
            border: 2px solid #fff;
            color: #fff;
            font-size: 11px;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            animation: pulse-red 1.0s infinite;
        }


        .hud-panel {
            position: absolute;
            top: 15px;
            left: 50px;
            z-index: 1000;
            background: rgba(10, 10, 10, 0.9);
            backdrop-filter: blur(5px);
            border-left: 4px solid #28a745;
            color: #eee;
            padding: 8px 15px;
            border-radius: 0 10px 10px 0;
            font-size: 11px;
            text-transform: uppercase;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
            pointer-events: none;
            font-family: 'Segoe UI', monospace;
        }

        .hud-val {
            color: #28a745;
            font-weight: bold;
            font-size: 13px;
            margin-left: 8px;
            float: right;
        }


        /* .list-box {
            position: absolute;
            top: 70px;
            left: -260px;
            width: 260px;
            background: rgba(15, 15, 20, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid #444;
            border-left: none;
            border-radius: 0 8px 8px 0;
            max-height: 60vh;
            display: flex;
            flex-direction: column;
            font-family: 'Segoe UI', sans-serif;
            z-index: 3000;
            transition: left 0.3s;
            box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
        } */

        .list-box.open {
            left: 0;
        }

        /* .list-handle {
            position: absolute;
            top: 0;
            right: -40px;
            width: 40px;
            height: 40px;
            background: #f3ba2f;
            border-radius: 0 5px 5px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            pointer-events: auto;
        } */

        .list-head {
            padding: 10px;
            border-bottom: 1px solid #444;
            font-weight: bold;
            color: #f3ba2f;
            font-size: 12px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }

        .stat-sub {
            display: flex;
            gap: 10px;
            font-size: 10px;
            color: #ccc;
        }

        .search-area {
            padding: 8px;
            border-bottom: 1px solid #444;
            display: flex;
            gap: 5px;
            background: rgba(0, 0, 0, 0.3);
        }

        .search-input {
            flex: 1;
            background: #333;
            border: 1px solid #555;
            color: white;
            padding: 4px 8px;
            font-size: 11px;
            border-radius: 4px;
            outline: none;
        }

        .search-input:focus {
            border-color: #f3ba2f;
        }

        .filter-btn {
            background: #333;
            border: 1px solid #555;
            color: #888;
            padding: 4px 8px;
            font-size: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }

        .filter-btn.active {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }

        .list-body {
            overflow-y: auto;
            padding: 0;
            flex: 1;
        }

        .list-body::-webkit-scrollbar {
            width: 4px;
        }

        .list-body::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 2px;
        }

        .l-item {
            padding: 10px 10px;
            border-bottom: 1px solid #333;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: 0.2s;
        }

        .l-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-left: 3px solid #fff;
        }

        .l-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }


        .map-label {
            position: absolute;
            top: 26px;
            left: 50%;
            transform: translateX(-50%);
            color: #ffffff;
            font-weight: 900;
            font-size: 11px;
            text-shadow: 0px 0px 3px #000;
            white-space: nowrap;
            pointer-events: none;
            text-align: center;
            z-index: 1000;
            font-family: 'Segoe UI', sans-serif;
            letter-spacing: 0.5px;
        }

        .force-hide-labels .map-label {
            display: none !important;
        }

        .hide-labels .map-label {
            display: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .btn-toggle-label {
            position: absolute;
            bottom: 38px;
            right: 90px;
            z-index: 2000;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            border: 2px solid #555;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
            transition: all 0.2s;
        }

        .btn-toggle-label.active {
            background: #dc3545;
            border-color: red;
            color: white;
        }


        .leaflet-tooltip.hud-style {
            background: rgba(15, 15, 15, 0.75);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 0;
            color: #ffffff;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
            min-width: 250px;
            overflow: hidden;
            pointer-events: none;
        }

        .ht-head {
            padding: 12px 15px;
            background: linear-gradient(90deg, rgba(243, 186, 47, 0.2), rgba(243, 186, 47, 0.05));
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-transform: uppercase;
            color: #facc15;
        }

        .ht-body {
            padding: 12px 15px;
            font-size: 12px;
            line-height: 1.5;
        }

        .ht-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 6px 0;
            margin-bottom: 2px;
        }

        .ht-row:last-child {
            border-bottom: none;
        }

        .ht-label {
            color: rgba(255, 255, 255, 0.5);
            font-size: 11px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .ht-val {
            color: #efefef;
            font-weight: 600;
            text-align: right;
        }

        .port-matrix {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 8px;
            background: rgba(0, 0, 0, 0.2);
            padding: 8px;
            border-radius: 8px;
        }

        .pm-slot {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
        }

        .bw-row {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 8px 10px;
            border-radius: 8px;
            margin: 8px 0;
            font-family: 'JetBrains Mono', 'Consolas', monospace;
            font-size: 11px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .col-green {
            color: #2ecc71;
            text-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
        }

        .col-orange {
            color: #f39c12;
            text-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
        }

        .col-red {
            color: #e74c3c;
            text-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 6px;
        }

        .status-online {
            background: #2ecc71;
            box-shadow: 0 0 8px #2ecc71;
        }

        .status-offline {
            background: #e74c3c;
            box-shadow: 0 0 8px #e74c3c;
        }

        .status-isolir {
            background: #f39c12;
            box-shadow: 0 0 8px #f39c12;
        }


        .main-fab {
            position: absolute;
            bottom: 30px;
            right: 20px;
            z-index: 3000;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #f3ba2f, #d97706);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 5px 20px rgba(243, 186, 47, 0.4);
            cursor: pointer;
            transition: transform 0.2s;
        }

        .main-fab:hover {
            transform: scale(1.1) rotate(90deg);
        }

        .fab-menu {
            position: absolute;
            bottom: 100px;
            right: 25px;
            z-index: 3000;
            display: none;
            flex-direction: column;
            gap: 10px;
        }

        .fab-opt {
            background: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 12px;
            cursor: pointer;
            box-shadow: 0 2px 10px black;
            text-align: right;
            font-family: 'Segoe UI', sans-serif;
        }

        body.guest-mode .main-fab,
        body.guest-mode .btn-cloud {
            display: none !important;
        }

        body.guest-mode .admin-only {
            display: none !important;
        }


        #editModal,
        #logModal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 95%;
            max-width: 350px;
            background: #fff;
            z-index: 4000;
            border-radius: 8px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
            max-height: 90vh;
            overflow-y: auto;
            font-family: sans-serif;
            transition: left 0.3s ease, transform 0.3s ease;
        }

        #editModal.modal-side {
            left: 10px;
            transform: translateY(-50%);
            margin: 0;
            box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
        }

        .m-head {
            background: #f0f2f5;
            padding: 15px;
            font-weight: bold;
            border-bottom: 1px solid #ddd;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .m-body {
            padding: 15px;
        }

        .input-group {
            margin-bottom: 12px;
        }

        .input-group label {
            display: block;
            font-size: 11px;
            font-weight: bold;
            color: #555;
            margin-bottom: 4px;
        }

        .input-group input:not([type="checkbox"]),
        .input-group select,
        .small-input input:not([type="checkbox"]) {
            width: 100%;
            padding: 8px;
            border: 1px solid #999;
            border-radius: 4px;
            font-family: inherit;
            box-sizing: border-box;
            background-color: #e0e0e0 !important;
            color: #000 !important;
        }

        .input-group input[type="checkbox"] {
            width: 18px !important;
            height: 18px !important;
            margin: 0 8px 0 0 !important;
            cursor: pointer;
            vertical-align: middle;
        }

        .chk-group {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .chk-group label {
            display: flex !important;
            align-items: center;
            margin-bottom: 0 !important;
            cursor: pointer;
            font-size: 11px;
            font-weight: bold;
            color: #555;
        }

        #dynamic-ip-info {
            margin-top: 10px;
            font-size: 11px;
            background: #fef3c7;
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #fcd34d;
            color: #333;
            display: none;
        }

        .info-header {
            font-weight: 800;
            color: #d97706;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #fde68a;
            padding-bottom: 5px;
            margin-bottom: 8px;
            font-size: 10px;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .info-label {
            font-weight: bold;
            color: #555;
            font-size: 10px;
        }

        .info-val {
            font-weight: bold;
            color: #000;
            font-family: monospace;
            font-size: 12px;
            background: rgba(255, 255, 255, 0.5);
            padding: 2px 5px;
            border-radius: 3px;
        }

        .btn {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 4px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 5px;
        }

        .btn-save {
            background: #28a745;
            color: white;
        }

        option:disabled {
            color: #dc3545;
            font-style: italic;
            background: #f0f0f0;
        }

        option.opt-ok {
            color: #28a745;
            font-weight: bold;
        }

        #btn-remote,
        #btn-wa,
        #btn-bill {
            display: block;
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border: none;
            border-radius: 4px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            box-sizing: border-box;
            font-size: 11px;
        }

        #btn-remote {
            background: gray;
            margin-top: 10px;
        }

        #btn-remote.online {
            background: #28a745;
            pointer-events: auto;
            cursor: pointer;
        }

        #btn-remote.offline {
            background: #95a5a6;
            pointer-events: none;
            cursor: not-allowed;
            opacity: 0.8;
        }

        #btn-wa {
            background: #128C7E;
        }

        #btn-bill {
            background: #d35400;
        }


        #drawHeader {
            display: none;
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: auto;
            background: rgba(255, 165, 0, 0.95);
            color: black;
            text-align: center;
            padding: 10px 20px;
            z-index: 5000;
            font-weight: bold;
            border-radius: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }

        #drawHeader button {
            margin: 0 3px;
            padding: 6px 12px;
            border: none;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            font-size: 11px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .log-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
            color: #e9eef7;
        }

        .log-table th {
            background: rgba(255, 255, 255, 0.05);
            color: #f3ba2f;
            padding: 8px 10px;
            text-align: left;
            border-bottom: 2px solid rgba(243, 186, 47, 0.3);
            position: sticky;
            top: 0;
            font-weight: bold;
        }

        .log-table td {
            padding: 8px 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .log-row-offline {
            background: rgba(239, 68, 68, 0.08);
            color: #f87171;
            font-weight: bold;
        }

        .log-row-online {
            background: rgba(74, 222, 128, 0.08);
            color: #4ade80;
        }

        .small-input label {
            font-size: 9px;
            color: #888;
            margin-bottom: 1px;
            display: block;
        }

        @media (max-width: 600px) {
            .hud-panel {
                display: none !important;
            }

            /* Top Left: Back Icon */
            .btn-dashboard {
                top: 8px !important;
                left: 8px !important;
                width: 38px !important;
                height: 38px !important;
                padding: 0 !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                border-radius: 50% !important;
                background: rgba(15, 23, 42, 0.9) !important;
                border: 1px solid rgba(255, 255, 255, 0.2) !important;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
                z-index: 9999;
            }

            .mobile-hide-text {
                display: none !important;
            }

            /* Top Right: Logout */
            .btn-logout {
                top: 8px !important;
                right: 8px !important;
                width: 38px !important;
                height: 38px !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                background: rgba(220, 53, 69, 0.9) !important;
                border: 1px solid rgba(255, 255, 255, 0.3) !important;
                border-radius: 50% !important;
                color: white !important;
                z-index: 9999;
            }

            /* Top Center-Right: Map Switcher */
            .layer-switch {
                top: 8px !important;
                right: 52px !important;
                height: 38px !important;
                background: rgba(15, 23, 42, 0.95) !important;
                border: 1px solid rgba(255, 255, 255, 0.2) !important;
                border-radius: 19px !important;
                padding: 2px !important;
                gap: 2px !important;
                z-index: 9998;
            }

            .ls-opt {
                padding: 0 8px !important;
                font-size: 8px !important;
                border: none !important;
                border-radius: 15px !important;
                height: 100% !important;
            }

            .ls-opt.active {
                background: #3b82f6 !important;
            }

            /* Utility Buttons Stack (Right Side) - Fixed 6px gaps */
            .ar-switch {
                top: 52px !important;
                right: 8px !important;
                height: 30px !important;
                font-size: 8px !important;
                width: 75px !important;
                border-radius: 15px !important;
                background: rgba(0, 0, 0, 0.7) !important;
            }

            .btn-history {
                top: 88px !important;
                right: 8px !important;
                width: 34px !important;
                height: 34px !important;
            }

            .btn-cloud[data-lang="sb_hotspot"] {
                top: 128px !important;
                right: 8px !important;
                width: 34px !important;
                height: 34px !important;
            }

            .btn-cloud[data-lang="sb_pppoe"] {
                top: 168px !important;
                right: 8px !important;
                width: 34px !important;
                height: 34px !important;
            }

            #btnAutoRefresh {
                top: 208px !important;
                right: 8px !important;
                width: 34px !important;
                height: 34px !important;
            }

            #btnAnimToggle {
                top: 248px !important;
                right: 8px !important;
                width: 34px !important;
                height: 34px !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
            }

            .list-box {
                top: 50px;
                width: 85%;
                left: -85%;
                z-index: 9000;
            }

            .list-box.open {
                left: 0;
            }

            .map-label {
                font-size: 10px;
                top: 28px;
                left: 50%;
                transform: translateX(-50%);
                background: rgba(0, 0, 0, 0.4);
                padding: 1px 4px;
                border-radius: 4px;
                white-space: nowrap;
            }

            #editModal,
            #logModal {
                width: 95%;
                max-height: 85vh;
                z-index: 20000 !important;
            }

            .btn-accent,
            .btn-primary,
            button:not(.tab):not(#btnToggle):not(.btn-sm) {
                width: 100%;
                max-width: 400px;
                margin: 8px auto;
                padding: 12px 16px;
                font-size: 13px;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 8px;
            }

            .btn-sm {
                padding: 6px 12px !important;
                font-size: 11px !important;
                width: auto !important;
                min-width: unset !important;
                margin: 0 !important;
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                gap: 4px;
            }

            .fab-menu {
                bottom: 85px;
                right: 20px;
            }
        }

        @keyframes blink-effect {

            0%,
            100% {
                opacity: 1;
                stroke-opacity: 1;
            }

            50% {
                opacity: 0.1;
                stroke-opacity: 0.1;
            }
        }

        .cable-offline-anim {
            animation: blink-effect 0.2s infinite linear;
            stroke-dasharray: 10, 10;
        }

        .peta-abu {
            filter: brightness(2.5) contrast(0.7);
        }
        /* Dark map: OSM tile diinvert jadi dark clean, tanpa API key */
        .peta-dark {
            filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.5);
        }

        .btn-autoref {
            position: absolute;
            right: 15px;
            top: 135px;
            z-index: 1000;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            background: rgba(20, 0, 0, 0.8);
            border: 2px solid #777;
            color: #ccc;
            font-size: 10px;
            font-weight: 900;
            font-family: sans-serif;
            transition: 0.3s;
        }

        .btn-autoref.active {
            background: #28a745;
            border-color: #28a745;
            color: white;
            box-shadow: 0 0 10px #28a745;
        }

        .saving-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            z-index: 10000;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 18px;
            font-weight: bold;
            backdrop-filter: blur(3px);
        }

        .saving-spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #fff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }


        .list-box.open {
            left: 0;
        }

        .list-handle {
            position: absolute;
            top: 0;
            right: -40px;
            width: 40px;
            height: 40px;
            background: #f3ba2f;
            border-radius: 0 5px 5px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            pointer-events: auto;
        }

        .list-head {
            padding: 10px;
            border-bottom: 1px solid #444;
            font-weight: bold;
            color: #f3ba2f;
            font-size: 12px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }

        .stat-sub {
            display: flex;
            gap: 10px;
            font-size: 10px;
            color: #ccc;
        }

        .search-area {
            padding: 8px;
            border-bottom: 1px solid #444;
            display: flex;
            gap: 5px;
            background: rgba(0, 0, 0, 0.3);
        }

        .search-input {
            flex: 1;
            background: #333;
            border: 1px solid #555;
            color: white;
            padding: 4px 8px;
            font-size: 11px;
            border-radius: 4px;
            outline: none;
        }

        .search-input:focus {
            border-color: #f3ba2f;
        }

        .filter-btn {
            background: #333;
            border: 1px solid #555;
            color: #888;
            padding: 4px 8px;
            font-size: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }

        .filter-btn.active {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }

        #server-locations-list {
            max-height: 120px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #444 transparent;
        }

        #server-locations-list::-webkit-scrollbar {
            width: 4px;
        }

        #server-locations-list::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 2px;
        }

        .list-body {
            overflow-y: auto;
            padding: 0;
            flex: 1;
        }

        .list-body::-webkit-scrollbar {
            width: 4px;
        }

        .list-body::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 2px;
        }

        .l-item {
            padding: 10px 10px;
            border-bottom: 1px solid #333;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: 0.2s;
        }

        .l-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-left: 3px solid #fff;
        }

        .l-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }


        .btn-dashboard {
            position: absolute;
            top: 15px;
            left: 15px !important;
            z-index: 4000;
            background: #f3ba2f;
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            display: none;
            transition: transform 0.2s;
        }

        .btn-dashboard:active {
            transform: scale(0.95);
        }

        body.view-maps .btn-dashboard {
            display: block;
        }


        body.view-maps #sidebar {
            display: none !important;
        }

        @media (max-width: 600px) {
            .btn-dashboard {
                top: 60px;
                left: 15px !important;
                transform: none;
            }
        }


        .list-box {
            position: absolute;
            top: 70px;
            left: -260px;
            width: 260px;
            background: rgba(15, 15, 20, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid #444;
            border-left: none;
            border-radius: 0 8px 8px 0;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            font-family: 'Segoe UI', sans-serif;
            z-index: 3000;
            transition: left 0.3s;
            box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
        }

        .list-box.open {
            left: 0;
        }


        .list-handle {
            position: absolute;
            top: 0;
            right: -40px;
            width: 40px;
            height: 40px;
            background: #f3ba2f;
            border-radius: 0 5px 5px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            pointer-events: auto;
        }

        .list-head {
            padding: 10px;
            border-bottom: 1px solid #444;
            font-weight: bold;
            color: #f3ba2f;
            font-size: 12px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }

        .stat-sub {
            display: flex;
            gap: 10px;
            font-size: 10px;
            color: #ccc;
        }

        .search-area {
            padding: 8px;
            border-bottom: 1px solid #444;
            display: flex;
            gap: 5px;
            background: rgba(0, 0, 0, 0.3);
        }

        .search-input {
            flex: 1;
            background: #333;
            border: 1px solid #555;
            color: white;
            padding: 4px 8px;
            font-size: 11px;
            border-radius: 4px;
            outline: none;
        }

        .search-input:focus {
            border-color: #f3ba2f;
        }

        .filter-btn {
            background: #333;
            border: 1px solid #555;
            color: #888;
            padding: 4px 8px;
            font-size: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }

        .filter-btn.active {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }

        .list-body {
            overflow-y: auto;
            padding: 0;
            flex: 1;
        }

        .list-body::-webkit-scrollbar {
            width: 4px;
        }

        .list-body::-webkit-scrollbar-thumb {
            background: #444;
            border-radius: 2px;
        }

        .l-item {
            padding: 10px 10px;
            border-bottom: 1px solid #333;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: 0.2s;
        }

        .l-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-left: 3px solid #fff;
        }

        .l-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* NEW ODP USER LIST STYLES (Cyber-Gold Optimized) */
        #div-odp-users-list {
            background: rgba(255, 255, 255, 0.05);
            padding: 8px;
            border-radius: 5px;
            margin-top: 5px;
            border: 1px solid rgba(243, 186, 47, 0.3);
        }

        .odp-user-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 11px;
            color: #e9eef7;
        }

        .odp-user-item:last-child {
            border-bottom: none;
        }

        .odp-user-info {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }

        .odp-user-port {
            background: #f3ba2f;
            color: #060913;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 9px;
            font-weight: 800;
            white-space: nowrap;
            box-shadow: 0 2px 5px rgba(243, 186, 47, 0.3);
        }

        .no-users-text {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            text-align: center;
            padding: 10px;
            font-style: italic;
        }

        @media (max-width: 600px) {
            .btn-dashboard {
                top: 60px;
                left: 50%;
                transform: translateX(-50%);
            }

            .list-box {
                top: 70px;
                width: 75%;
                left: -75%;
            }

            .list-box.open {
                left: 0;
            }
        }

        @keyframes ant-path-turbo-anim {
            from {
                stroke-dashoffset: 300;
            }

            to {
                stroke-dashoffset: 0;
            }
        }

        .ant-path-turbo {
            stroke: #ffffff !important;
            stroke-dasharray: 10, 290;
            animation: ant-path-turbo-anim 0.8s linear infinite;
            stroke-linecap: round;
            filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
            will-change: stroke-dashoffset, stroke-dasharray;
        }

        @keyframes ant-path-turbo-ordinary-anim {
            from {
                stroke-dashoffset: 20;
            }
            to {
                stroke-dashoffset: 0;
            }
        }

        .ant-path-turbo-ordinary {
            stroke-dasharray: 10, 10 !important;
            animation: ant-path-turbo-ordinary-anim 0.5s linear infinite;
            stroke-linecap: round;
            will-change: stroke-dashoffset, stroke-dasharray;
        }

        .search-results-box {
            position: absolute;
            background: #1a1a1a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
            z-index: 10000;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            display: none;
            margin-top: 4px;
        }

        .search-result-item {
            padding: 10px 14px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 12px;
            color: #ccc;
            transition: all 0.2s;
        }

        .search-result-item:hover {
            background: rgba(243, 186, 47, 0.2);
            color: #fff;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        /* ProfSelect Custom Dropdown */
        .prof-select-wrapper {
            position: relative;
            width: 100%;
        }

        .prof-select-trigger {
            width: 100%;
            background: #e0e0e0;
            border: 1px solid #999;
            color: #000;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
            min-height: 34px;
            box-sizing: border-box;
        }

        .prof-select-trigger:hover {
            border-color: #666;
            background: #d5d5d5;
        }

        .prof-select-trigger::after {
            content: '\f0d7';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 10px;
            opacity: 0.8;
            color: #333;
            transition: transform 0.2s;
        }

        .prof-options-list {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            width: 100%;
            background: #1a1a1a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
            z-index: 10001;
            max-height: 250px;
            overflow-y: auto;
            display: none;
            margin-top: 0;
        }

        .prof-option-item {
            padding: 10px 14px;
            cursor: pointer;
            font-size: 12px;
            color: #ccc;
            transition: all 0.2s;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .prof-option-item:last-child {
            border-bottom: none;
        }

        .prof-option-item:hover {
            background: rgba(243, 186, 47, 0.2);
            color: #fff;
        }

        .prof-option-item.selected {
            background: rgba(243, 186, 47, 0.1);
            color: #2e97ff;
            font-weight: bold;
        }

        #editModal select:not([multiple]) {
            display: none !important;
        }

        #editModal select[multiple] {
            display: block !important;
            background: rgba(12, 16, 24, 0.7) !important;
            color: #e9eef7 !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 8px !important;
            padding: 8px 10px !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            width: 100% !important;
            min-height: 120px !important;
            outline: none !important;
            transition: all 0.2s ease-in-out !important;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5) !important;
        }
        #editModal select[multiple] option {
            background: #11141a;
            color: #e9eef7;
        }
        #editModal select[multiple] option:hover {
            background: #1c2330;
            color: #ffffff;
        }
        #editModal select[multiple] option:checked {
            background: #33270a !important;
            color: #f3ba2f !important;
            font-weight: bold !important;
        }
        #editModal select[multiple] option:disabled {
            background: #2b0d0d !important;
            color: #ff4d4d !important;
        }
        #editModal select[multiple]:focus {
            border-color: #f3ba2f !important;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* Specific Accent Colors for Select[Multiple] option check/focus state */
        #editModal.modal-mode-odp select[multiple] option:checked,
        #editModal.modal-mode-real_olt select[multiple] option:checked,
        #editModal.modal-mode-router select[multiple] option:checked,
        #editModal.modal-mode-client select[multiple] option:checked {
            background: #33270a !important;
            color: #f3ba2f !important;
        }
        #editModal.modal-mode-odp select[multiple],
        #editModal.modal-mode-real_olt select[multiple],
        #editModal.modal-mode-router select[multiple],
        #editModal.modal-mode-client select[multiple] {
            border: 1px solid rgba(243, 186, 47, 0.15) !important;
        }
        #editModal.modal-mode-odp select[multiple]:focus,
        #editModal.modal-mode-real_olt select[multiple]:focus,
        #editModal.modal-mode-router select[multiple]:focus,
        #editModal.modal-mode-client select[multiple]:focus {
            border-color: #f3ba2f !important;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* Dark Glass Buttons for Manual/List Toggles inside modal */
        #editModal .btn-icon {
            background: rgba(255, 255, 255, 0.05) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            color: rgba(233, 238, 247, 0.8) !important;
            border-radius: 4px !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
        }
        #editModal .btn-icon:hover {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(255, 255, 255, 0.25) !important;
            color: #fff !important;
        }

        /* CYBER-GOLD THEME OVERRIDES FOR BLUE ACCENTS */
        .btn-dashboard {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 4px 15px rgba(243, 186, 47, 0.4) !important;
            border: none !important;
        }
        .btn-dashboard:hover {
            background: #ffd700 !important;
            color: #000000 !important;
        }
        .list-handle {
            background: #f3ba2f !important;
            color: #050505 !important;
        }
        .ls-opt.active {
            background: #f3ba2f !important;
            color: #050505 !important;
        }
        .btn-history {
            background: rgba(40, 30, 0, 0.8) !important;
            border: 2px solid #f3ba2f !important;
            color: #f3ba2f !important;
        }
        .btn-history:hover {
            background: rgba(243, 186, 47, 0.2) !important;
        }
        .btn-cloud.admin-only[onclick*="/pppoe"] {
            background: rgba(243, 186, 47, 0.8) !important;
            border-color: #f3ba2f !important;
            color: #050505 !important;
        }
        .sb-item:hover {
            background: rgba(243, 186, 47, 0.1) !important;
            border-color: rgba(243, 186, 47, 0.25) !important;
            color: #fff !important;
        }
        .sb-item.active {
            background: rgba(243, 186, 47, 0.18) !important;
            border-color: rgba(243, 186, 47, 0.35) !important;
            color: #fff !important;
        }
        .ht-head {
            background: linear-gradient(90deg, rgba(243, 186, 47, 0.2), rgba(243, 186, 47, 0.05)) !important;
            color: #f3ba2f !important;
        }
        .main-fab {
            background: linear-gradient(135deg, #f3ba2f, #ffd700) !important;
            color: #050505 !important;
            box-shadow: 0 5px 20px rgba(243, 186, 47, 0.4) !important;
        }
        .search-input:focus {
            border-color: #f3ba2f !important;
        }
        .prof-option-item:hover {
            background: rgba(243, 186, 47, 0.2) !important;
            color: #fff !important;
        }
        .prof-option-item.selected {
            background: rgba(243, 186, 47, 0.1) !important;
            color: #f3ba2f !important;
        }
        .list-head {
            color: #f3ba2f !important;
        }
        .olt-active {
            background: #f3ba2f !important;
        }
        .marker-poe {
            background: #f3ba2f !important;
        }

        /* SYSTEM TAB & ISOLASI CSS MODAL EDIT */
        .modal-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            margin-bottom: 15px;
            overflow: hidden;
            padding: 2px;
        }
        .modal-tab {
            flex: 1;
            text-align: center;
            padding: 8px 4px;
            font-size: 11px;
            font-weight: 800;
            color: #cdd7e7;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 6px;
            border: none;
            background: transparent;
            font-family: inherit;
        }
        .modal-tab:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }
        .modal-tab.active {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 2px 8px rgba(243, 186, 47, 0.3);
        }
        .modal-tab-page {
            display: none;
            animation: fadeInTab 0.25s ease-out;
        }
        @keyframes fadeInTab {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==================================================== */
        /* AREA KHUSUS ISOLASI CSS UNTUK REVISI DI MASA DEPAN   */
        /* ==================================================== */

        /* 1. MIKROTIK & CABANG MIKROTIK (Cyber Gold Theme) */
        #editModal.modal-mode-router .modal-tab.active {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 2px 8px rgba(243, 186, 47, 0.4);
        }
        #editModal.modal-mode-router .m-head {
            color: #f3ba2f !important;
        }
        #editModal.modal-mode-router #grp-router-select,
        #editModal.modal-mode-router #grp-mk-login,
        #editModal.modal-mode-router #grp-server-config {
            background: rgba(243, 186, 47, 0.03) !important;
            border: 1px solid rgba(243, 186, 47, 0.15) !important;
            border-radius: 8px !important;
            color: #e9eef7 !important;
        }
        #editModal.modal-mode-router input:not([type="checkbox"]):focus,
        #editModal.modal-mode-router select:focus,
        #editModal.modal-mode-router textarea:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.05) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* 2. REAL OLT ONLY (Cyber Gold Theme) */
        #editModal.modal-mode-real_olt .modal-tab.active {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 2px 8px rgba(243, 186, 47, 0.4);
        }
        #editModal.modal-mode-real_olt .m-head {
            color: #f3ba2f !important;
        }
        #editModal.modal-mode-real_olt #field-real-olt {
            background: rgba(243, 186, 47, 0.03) !important;
            border: 1px solid rgba(243, 186, 47, 0.15) !important;
            border-radius: 8px !important;
            color: #e9eef7 !important;
        }
        #editModal.modal-mode-real_olt input:not([type="checkbox"]):focus,
        #editModal.modal-mode-real_olt select:focus,
        #editModal.modal-mode-real_olt textarea:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.05) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* 3. ODP ONLY (Cyber Gold Theme) */
        #editModal.modal-mode-odp .modal-tab.active {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 2px 8px rgba(243, 186, 47, 0.4);
        }
        #editModal.modal-mode-odp .m-head {
            color: #f3ba2f !important;
        }
        #editModal.modal-mode-odp #grp-odp-config,
        #editModal.modal-mode-odp #field-htb,
        #editModal.modal-mode-odp #field-olt,
        #editModal.modal-mode-odp #field-jb-config,
        #editModal.modal-mode-odp #div-odp-users-section {
            background: rgba(243, 186, 47, 0.03) !important;
            border: 1px solid rgba(243, 186, 47, 0.15) !important;
            border-radius: 8px !important;
            color: #e9eef7 !important;
        }
        #editModal.modal-mode-odp input:not([type="checkbox"]):focus,
        #editModal.modal-mode-odp select:focus,
        #editModal.modal-mode-odp textarea:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.05) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* 4. CLIENT ONLY (Cyber Gold Theme) */
        #editModal.modal-mode-client .modal-tab.active {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 2px 8px rgba(243, 186, 47, 0.4);
        }
        #editModal.modal-mode-client .m-head {
            color: #f3ba2f !important;
        }
        #editModal.modal-mode-client #grp-client-type,
        #editModal.modal-mode-client #grp-connect > div,
        #editModal.modal-mode-client #grp-client-detail,
        #editModal.modal-mode-client #form-static > div,
        #editModal.modal-mode-client #form-pppoe > div,
        #editModal.modal-mode-client #dynamic-ip-info,
        #editModal.modal-mode-client #div-manual-packet,
        #editModal.modal-mode-client #grp-client-detail-extra > div {
            background: rgba(243, 186, 47, 0.03) !important;
            border: 1px solid rgba(243, 186, 47, 0.15) !important;
            border-radius: 8px !important;
            color: #e9eef7 !important;
        }
        #editModal.modal-mode-client #grp-connect label {
            color: #ffd54f !important;
        }
        #editModal.modal-mode-client input:not([type="checkbox"]):focus,
        #editModal.modal-mode-client select:focus,
        #editModal.modal-mode-client textarea:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.05) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* PREMIUM DYNAMIC HIGHLIGHTS FOR DROPDOWNS */
        #editModal.modal-mode-router .prof-select-trigger:hover,
        #editModal.modal-mode-router .prof-select-trigger:focus,
        #editModal.modal-mode-real_olt .prof-select-trigger:hover,
        #editModal.modal-mode-real_olt .prof-select-trigger:focus,
        #editModal.modal-mode-odp .prof-select-trigger:hover,
        #editModal.modal-mode-odp .prof-select-trigger:focus,
        #editModal.modal-mode-client .prof-select-trigger:hover,
        #editModal.modal-mode-client .prof-select-trigger:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.05) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }

        /* GLOBAL STYLING OVERRIDES FOR DROPDOWNS & INFO LABELS */
        #editModal .prof-select-trigger {
            background: rgba(255, 255, 255, 0.03) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-radius: 6px !important;
            transition: all 0.2s ease !important;
            font-weight: bold !important;
        }
        #editModal .prof-select-trigger:hover {
            border-color: rgba(255, 255, 255, 0.25) !important;
            background: rgba(255, 255, 255, 0.06) !important;
        }
        #editModal .prof-select-trigger::after {
            color: rgba(255, 255, 255, 0.6) !important;
        }

        /* HIGH-LEGIBILITY DARK CONTRAST LABELS */
        #editModal #dynamic-ip-info {
            background: rgba(243, 186, 47, 0.03) !important;
            border: 1px solid rgba(243, 186, 47, 0.15) !important;
            color: #e9eef7 !important;
        }
        #editModal .info-header {
            color: #f3ba2f !important;
            border-bottom: 1px solid rgba(243, 186, 47, 0.2) !important;
        }
        #editModal .info-label {
            color: rgba(233, 238, 247, 0.85) !important;
            font-weight: bold !important;
        }
        #editModal .info-val {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.05) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            padding: 2px 6px !important;
            border-radius: 4px !important;
        }
        #editModal .chk-group label {
            color: #cdd7e7 !important;
        }

        /* PREMIUM DARK CYBER-GOLD THEME FOR EDIT & LOG MODALS */
        #editModal,
        #logModal {
            background: rgba(10, 12, 18, 0.98) !important;
            color: #e9eef7 !important;
            border: 1px solid rgba(243, 186, 47, 0.25) !important;
            backdrop-filter: blur(25px) !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(243, 186, 47, 0.15) !important;
        }
        #editModal.modal-side {
            border-left: none !important;
        }
        #editModal .m-head,
        #logModal .m-head {
            background: rgba(255, 255, 255, 0.03) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }
        #editModal .input-group label {
            color: rgba(233, 238, 247, 0.85) !important;
        }
        #editModal input:not([type="checkbox"]),
        #editModal select,
        #editModal textarea,
        #editModal .small-input input {
            background: rgba(255, 255, 255, 0.02) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-radius: 6px !important;
            transition: all 0.2s ease !important;
            font-size: 12px;
        }
        #editModal input:not([type="checkbox"]):focus,
        #editModal select:focus,
        #editModal textarea:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.04) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.35) !important;
            outline: none;
        }
        #editModal input::placeholder,
        #editModal textarea::placeholder {
            color: rgba(255, 255, 255, 0.45) !important;
            font-weight: normal;
        }
        #editModal details {
            background: rgba(255, 255, 255, 0.02) !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            color: #cdd7e7 !important;
            border-radius: 6px;
            padding: 5px 8px;
        }
        #editModal details summary {
            color: #f3ba2f !important;
            outline: none;
            cursor: pointer;
            transition: color 0.2s;
        }
        #editModal details summary:hover {
            color: #ffd700 !important;
        }
        #editModal select option {
            background: #11141a !important;
            color: #fff !important;
        }
        #editModal .chk-group label {
            color: #cdd7e7 !important;
        }
        #editModal #div-photo-section {
            background: rgba(255, 255, 255, 0.02) !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            border-radius: 8px !important;
            color: #cdd7e7 !important;
        }

        /* HIGH-LEGIBILITY GLOBAL OVERRIDES FOR SMALL LABELS AND HINTS */
        #editModal small {
            color: rgba(233, 238, 247, 0.75) !important;
            font-size: 10px !important;
            display: inline-block;
            margin-top: 4px;
            font-weight: normal !important;
        }
        /* Specific yellow highlights for manual warning details */
        #editModal small[style*="#f3ba2f"],
        #editModal small[data-lang="hint_manual_detect"],
        #editModal small[data-lang="lbl_billing_hint"],
        #editModal #div-billing-toggle div[data-lang="lbl_billing_hint"] {
            color: #ffd54f !important;
        }
        /* Specific red highlights for warnings */
        #editModal small[style*="#dc3545"],
        #editModal small[style*="red"],
        #editModal #help-multi {
            color: #ff6b6b !important;
        }

        /* BUTTON RESTYLINGS */
        /* Save button */
        #editModal .btn-save {
            background: linear-gradient(135deg, #f3ba2f, #ffc107) !important;
            color: #050505 !important;
            box-shadow: 0 4px 15px rgba(243, 186, 47, 0.35) !important;
            transition: all 0.2s ease !important;
            border: none !important;
            font-weight: 800 !important;
            border-radius: 6px !important;
        }
        #editModal .btn-save:hover {
            background: linear-gradient(135deg, #ffd700, #ffb300) !important;
            box-shadow: 0 4px 20px rgba(243, 186, 47, 0.5) !important;
        }
        /* Cancel button */
        #editModal button[onclick="closeModal()"] {
            background: rgba(255, 255, 255, 0.05) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
            transition: all 0.2s ease !important;
            border-radius: 6px !important;
            font-weight: 800 !important;
        }
        #editModal button[onclick="closeModal()"]:hover {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(255, 255, 255, 0.25) !important;
        }
        /* Delete button */
        #editModal #btn-hapus {
            background: rgba(244, 63, 94, 0.12) !important;
            border: 1px solid rgba(244, 63, 94, 0.3) !important;
            color: #fb7185 !important;
            transition: all 0.2s ease !important;
            margin-top: 10px !important;
            border-radius: 6px !important;
            font-weight: 800 !important;
        }
        #editModal #btn-hapus:hover {
            background: #f43f5e !important;
            color: #ffffff !important;
            box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4) !important;
        }
        /* Edit Path button */
        #editModal button[onclick="startGeomanEdit()"] {
            background: rgba(243, 186, 47, 0.1) !important;
            border: 1px solid rgba(243, 186, 47, 0.3) !important;
            color: #f3ba2f !important;
            transition: all 0.2s ease !important;
            border-radius: 6px !important;
            font-weight: 800 !important;
        }
        #editModal button[onclick="startGeomanEdit()"]:hover {
            background: #f3ba2f !important;
            color: #050505 !important;
            box-shadow: 0 4px 12px rgba(243, 186, 47, 0.3) !important;
        }
        /* Take Photo button */
        #editModal button[onclick*="file-input"] {
            background: rgba(23, 162, 184, 0.12) !important;
            border: 1px solid rgba(23, 162, 184, 0.3) !important;
            color: #17a2b8 !important;
            transition: all 0.2s ease !important;
            border-radius: 6px !important;
            font-weight: 800 !important;
        }
        #editModal button[onclick*="file-input"]:hover {
            background: #17a2b8 !important;
            color: #ffffff !important;
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3) !important;
        }

        /* HOTSPOT ACTIVE MODAL CUSTOM CSS */
        #hotspotActiveModal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 580px;
            max-width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            background: rgba(10, 12, 18, 0.98) !important;
            color: #e9eef7 !important;
            border: 1px solid rgba(243, 186, 47, 0.25) !important;
            backdrop-filter: blur(25px) !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(243, 186, 47, 0.15) !important;
            border-radius: 12px;
            z-index: 9000;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }
        #hotspotActiveModal select option {
            background: #11141a !important;
            color: #fff !important;
        }
        .hs-active-table th, .hs-active-table td {
            padding: 10px;
            vertical-align: middle;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .hs-active-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.02);
        }
        .hs-active-table tbody tr:last-child td {
            border-bottom: none;
        }
        #hsRouterSelect:focus {
            border-color: #f3ba2f !important;
            background: rgba(243, 186, 47, 0.05) !important;
            box-shadow: 0 0 8px rgba(243, 186, 47, 0.3) !important;
        }
        #hsBtnPrev, #hsBtnNext {
            width: auto !important;
            min-width: 100px !important;
        }
        #hsBtnPrev:hover:not(:disabled), #hsBtnNext:hover:not(:disabled) {
            background: rgba(243, 186, 47, 0.2) !important;
            border-color: #f3ba2f !important;
            color: #fff !important;
        }
        #hsBtnPrev:disabled, #hsBtnNext:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .hs-kick-btn {
            background: rgba(220, 53, 69, 0.15) !important;
            border: 1px solid rgba(220, 53, 69, 0.4) !important;
            color: #ff6b6b !important;
            padding: 4px 8px !important;
            font-size: 10px !important;
            border-radius: 4px !important;
            cursor: pointer !important;
            font-weight: 800 !important;
            transition: all 0.2s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            height: auto !important;
            width: auto !important;
            line-height: normal !important;
        }
        .hs-kick-btn:hover {
            background: #dc3545 !important;
            color: #fff !important;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
        }
        @media (max-width: 768px) {
            #hotspotActiveModal {
                width: 95%;
                border-radius: 8px;
            }
            .hs-active-table th, .hs-active-table td {
                padding: 8px 6px;
                font-size: 10px;
            }
        }
        @media (max-width: 600px) {
            #hotspotActiveModal {
                width: 98% !important;
                border-radius: 8px;
            }
            .hs-active-table th, .hs-active-table td {
                padding: 6px 4px !important;
                font-size: 9px !important;
            }
            .hs-kick-btn {
                padding: 2px 4px !important;
                font-size: 9px !important;
            }
        }
