        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        /* --- GLOBAL & BACKGROUND iOS GLASS THEME --- */
        body {
            background: radial-gradient(circle at 0% 0%, #e0e7ff 0%, #f1f5f9 40%, #dbeafe 100%);
            background-attachment: fixed;
            min-height: 100vh;
            color: #1c1c1e;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        .hidden {
            display: none !important;
        }

        /* iOS Sleek Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 99px;
            backdrop-filter: blur(10px);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        /* --- KEYFRAMES iOS SLIDING & BLUR ANIMATION --- */
        @keyframes iosSlideUp {
            0% { opacity: 0; transform: translateY(35px) scale(0.96); filter: blur(12px); }
            100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        }

        @keyframes ps5FadeIn {
            0% { opacity: 0; transform: translateY(25px) scale(0.97); filter: blur(10px); }
            100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        }

        @keyframes fadeInOpacity {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        @keyframes pulseGlow {
            0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
            70% { box-shadow: 0 0 0 12px rgba(0, 122, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
        }

        @keyframes centerFadeIn {
            0% { transform: translate(-50%, -40%) scale(0.9); opacity: 0; filter: blur(12px); }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(0); }
        }

        @keyframes skeletonLoading {
            0% { background-position: 150% 0; }
            100% { background-position: -50% 0; }
        }

        /* --- LOGIN PANEL STYLES (iOS Glass Card) --- */
        #loginPanel {
            background: radial-gradient(circle at 50% 20%, rgba(224, 231, 255, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 24px;
            position: relative;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(35px) saturate(200%);
            -webkit-backdrop-filter: blur(35px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 32px;
            width: 100%;
            max-width: 420px;
            padding: 48px 36px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 
                        inset 0 1px 1px rgba(255, 255, 255, 0.8);
            text-align: center;
            animation: iosSlideUp 0.7s cubic-bezier(0.32, 0.72, 0, 1) forwards;
            will-change: transform, opacity;
        }

        .login-card .logo-container {
            margin-bottom: 24px;
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        }
        .login-card .logo-container:hover {
            transform: scale(1.05);
        }

        .login-card .logo-cbn {
            height: 50px;
            object-fit: contain;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
        }

        .login-card h2 {
            color: #1c1c1e;
            font-size: 25px;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 6px;
        }

        .login-card .subtitle {
            color: #8e8e93;
            font-size: 14px;
            margin-bottom: 28px;
            font-weight: 400;
        }

        /* --- INPUTS & FORM GROUPS (iOS Form Style) --- */
        .form-group {
            text-align: left;
            margin-bottom: 20px;
            position: relative;
        }

        .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: #6e6e73;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            padding-left: 4px;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 15px 18px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 16px;
            font-size: 15px;
            font-weight: 400;
            color: #1c1c1e;
            outline: none;
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
            transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            border-color: #007aff;
            background: rgba(255, 255, 255, 0.85);
            box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18);
            transform: scale(1.008);
        }

        .form-group input[readonly], .form-group textarea[readonly] {
            background-color: rgba(230, 230, 235, 0.4) !important;
            color: #8e8e93;
            border-color: rgba(0, 0, 0, 0.04);
            cursor: not-allowed;
            box-shadow: none;
        }

        /* --- BUTTONS STYLE (iOS Squircle Buttons) --- */
        .btn-login, .btn-primary, .btn-search, .btn-share-loc {
            width: 100%;
            background: #007aff;
            color: white;
            border: none;
            padding: 15px;
            font-size: 15px;
            font-weight: 600;
            border-radius: 18px;
            cursor: pointer;
            margin-top: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
            transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
            position: relative;
            overflow: hidden;
        }

        .btn-login:hover, .btn-primary:hover, .btn-search:hover {
            background: #0062cc;
            transform: scale(1.015);
            box-shadow: 0 12px 26px rgba(0, 122, 255, 0.35);
        }

        .btn-login:active, .btn-primary:active, .btn-search:active {
            transform: scale(0.97);
            box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
            opacity: 0.9;
        }

        .btn-primary:disabled {
            background: #e5e5ea !important;
            color: #aeaeb2;
            box-shadow: none !important;
            cursor: not-allowed;
            transform: none !important;
        }

        .login-footer {
            margin-top: 28px;
            font-size: 12px;
            color: #8e8e93;
            font-weight: 400;
            line-height: 1.5;
        }

        /* --- MAIN APP PANEL STYLES --- */
        #appPanel {
            background: transparent;
            min-height: 100vh;
            padding-top: 80px; 
            padding-bottom: 40px;
            animation: fadeInOpacity 0.5s ease-out forwards;
        }

        /* --- NAVBAR SIDEBAR (iOS Translucent Drawer) --- */
        .navbar {
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(40px) saturate(210%);
            -webkit-backdrop-filter: blur(40px) saturate(210%);
            border-right: 1px solid rgba(255, 255, 255, 0.7);
            border-bottom: none;
            color: #1c1c1e;
            padding: 85px 20px 30px 20px;
            width: 280px;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            gap: 20px;
            box-shadow: 15px 0 35px rgba(0, 0, 0, 0.06);
            position: fixed; 
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 1000;
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            transform: translateX(-100%);
            overflow-y: auto;
        }

        .navbar.show {
            transform: translateX(0);
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .nav-logo {
            height: 28px;
            filter: none; 
        }

        .brand-text h1 {
            font-size: 17px;
            font-weight: 700;
            color: #1c1c1e;
            letter-spacing: -0.4px;
        }

        .brand-text p {
            font-size: 11px;
            font-weight: 600;
            color: #007aff;
        }

        .nav-center {
            display: flex;
            align-items: center;
            width: 100%;
        }

        .user-profile {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            font-size: 13px;
            background: rgba(0, 122, 255, 0.06);
            backdrop-filter: blur(10px);
            padding: 12px 16px;
            border-radius: 18px;
            border: 1px solid rgba(0, 122, 255, 0.12);
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
            width: 100%;
        }

        .user-profile:hover {
            background: rgba(0, 122, 255, 0.12);
            transform: scale(1.02);
        }

        .user-name {
            font-weight: 600;
            color: #1c1c1e;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .user-name i {
            color: #007aff;
        }

        .badge-admin {
            background-color: #34c759;
            color: white;
            font-size: 9px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 99px;
            margin-top: 4px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .nav-menu {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            width: 100%;
        }

        .menu-toggle {
            display: flex !important;
            align-items: center;
            justify-content: center;
            position: fixed;
            top: 18px;
            left: 18px;
            z-index: 1001;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(25px) saturate(180%);
            -webkit-backdrop-filter: blur(25px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.8);
            color: #1c1c1e;
            font-size: 18px;
            width: 44px;
            height: 44px;
            border-radius: 14px;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .menu-toggle:hover {
            background: rgba(255, 255, 255, 0.9);
            color: #007aff;
            transform: scale(1.06);
        }

        .menu-toggle:active {
            transform: scale(0.92);
        }

        .nav-btn {
            background: transparent;
            color: #3a3a3c;
            border: none;
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            border-radius: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            text-decoration: none;
            width: 100%;
            transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .nav-btn i {
            font-size: 15px;
            transition: transform 0.25s ease;
        }

        .nav-btn:hover {
            color: #007aff;
            background: rgba(0, 122, 255, 0.08);
            transform: translateX(4px);
        }

        .nav-btn.active {
            background-color: #007aff;
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
        }
        .nav-btn.active:hover {
            color: white;
            background-color: #007aff;
            transform: none;
        }

        .nav-btn.btn-logout {
            background-color: rgba(255, 59, 48, 0.08);
            color: #ff3b30;
            margin-top: 10px;
        }

        .nav-btn.btn-logout:hover {
            background-color: #ff3b30;
            color: white;
            box-shadow: 0 4px 14px rgba(255, 59, 48, 0.3);
        }

        /* --- MAIN PANELS (iOS Translucent Containers) --- */
        .main-container {
            max-width: 1400px;
            margin: 20px auto;
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(35px) saturate(190%);
            -webkit-backdrop-filter: blur(35px) saturate(190%);
            border: 1px solid rgba(255, 255, 255, 0.65);
            border-radius: 32px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 
                        inset 0 1px 1px rgba(255, 255, 255, 0.6);
            padding: 36px;
            transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            animation: iosSlideUp 0.6s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #1c1c1e;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.4px;
            margin-bottom: 6px;
        }
        .section-header i {
            color: #007aff;
            animation: pulseGlow 2.5s infinite;
            border-radius: 50%;
        }

        .section-desc {
            color: #8e8e93;
            font-size: 13.5px;
            font-weight: 400;
            margin-bottom: 24px;
        }

        .search-action-group {
            display: flex;
            gap: 12px;
            margin-top: 12px;
            margin-bottom: 12px;
        }

        .btn-share-loc {
            width: auto;
            background: rgba(52, 199, 89, 0.12);
            color: #34c759;
            box-shadow: none;
            border: 1px solid rgba(52, 199, 89, 0.25);
            font-weight: 600;
        }
        .btn-share-loc:hover {
            background: #34c759;
            color: white;
            box-shadow: 0 8px 20px rgba(52, 199, 89, 0.3);
        }

        /* --- POPUP / MESSAGE BOX (iOS Alert Style) --- */
        #messageBox {
            position: fixed;
            top: 40px;
            left: 50%;
            transform: translate(-50%, 0);
            padding: 14px 28px;
            border-radius: 99px;
            text-align: center;
            font-weight: 600;
            font-size: 14px;
            z-index: 9999;
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
            backdrop-filter: blur(30px) saturate(200%);
            -webkit-backdrop-filter: blur(30px) saturate(200%);
            min-width: 300px;
            max-width: 90%;
            border: 1px solid rgba(255, 255, 255, 0.7);
            animation: centerFadeIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }
        
        .success-msg { background-color: rgba(255, 255, 255, 0.85); color: #34c759; border-left: 4px solid #34c759 !important; }
        .error-msg { background-color: rgba(255, 255, 255, 0.85); color: #ff3b30; border-left: 4px solid #ff3b30 !important; }
        .loading-msg { 
            background-color: rgba(255, 255, 255, 0.85); 
            color: #007aff; 
            background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(229,242,255,0.85) 50%, rgba(255,255,255,0.85) 100%);
            background-size: 200% 100%;
            animation: skeletonLoading 1.5s infinite linear, centerFadeIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        }

        .error {
            color: #ff3b30;
            font-size: 13px;
            margin-top: 8px;
            font-weight: 500;
            padding-left: 4px;
        }

        /* --- SPLIT VIEW LOCATOR --- */
        #panelCariHP {
            display: grid;
            grid-template-columns: 420px 1fr;
            column-gap: 28px;
            row-gap: 12px;
            align-items: start;
        }

        #panelCariHP > .section-header,
        #panelCariHP > .section-desc,
        #panelCariHP > .form-group,
        #panelCariHP > .search-action-group,
        #panelCariHP > #error-msg,
        #panelCariHP > #tabsContainer,
        #panelCariHP > #hasilTitle,
        #panelCariHP > #hasil {
            grid-column: 1;
        }

        #panelCariHP > #map {
            grid-column: 2;
            grid-row: 1 / span 30;
            position: sticky;
            top: 20px;
            height: calc(100vh - 140px) !important;
            min-height: 520px;
            margin-top: 0 !important;
            border-radius: 28px;
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            transition: all 0.3s ease;
            z-index: 1;
        }

        .leaflet-control-zoom {
            display: none !important;
        }

        .leaflet-routing-container {
            display: none !important;
        }

        /* --- CAPSULE TABS ANIMATED (iOS Segmented Controls) --- */
        .tabs-container {
            margin-top: 16px;
            margin-bottom: 12px;
        }

        .tabs-header {
            display: flex;
            gap: 4px;
            border-bottom: none;
            background: rgba(118, 118, 128, 0.12);
            padding: 4px;
            border-radius: 16px;
            overflow-x: auto;
            width: fit-content;
            max-width: 100%;
            backdrop-filter: blur(10px);
        }

        .tab-link {
            background: transparent;
            border: none;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            border-radius: 12px;
            cursor: pointer;
            color: #6e6e73;
            white-space: nowrap;
            transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .tab-link:hover {
            color: #1c1c1e;
        }

        .tab-link.active {
            background-color: #ffffff;
            color: #1c1c1e;
            font-weight: 600;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
        }

        .section-title {
            font-size: 16px;
            font-weight: 700;
            color: #1c1c1e;
            margin: 20px 0 12px 0;
            border-left: 4px solid #007aff;
            padding-left: 12px;
            letter-spacing: -0.3px;
        }

        /* --- SEARCH CARD LIST (iOS Glass Cards) --- */
        #hasil {
            display: flex;
            flex-direction: column;
            gap: 14px;
            max-height: calc(100vh - 460px);
            overflow-y: auto;
            padding-right: 6px;
        }

        .card {
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(25px) saturate(180%);
            -webkit-backdrop-filter: blur(25px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: 22px;
            padding: 20px;
            position: relative;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
            font-size: 13.5px;
            color: #3a3a3c;
            line-height: 1.6;
            cursor: pointer;
            will-change: transform, box-shadow;
            transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
            width: 100%;
        }

        .card:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(0, 122, 255, 0.3);
        }

        .card.active-route {
            border: 2px solid #007aff;
            background-color: #ffffff;
            box-shadow: 0 12px 30px rgba(0, 122, 255, 0.18);
        }

        .card.id-match { border-left: 5px solid #007aff; }
        .card.odp-match { border-left: 5px solid #34c759; }

        .btn-copy {
            position: absolute;
            top: 18px;
            right: 18px;
            background-color: rgba(118, 118, 128, 0.12);
            border: none;
            color: #3a3a3c;
            padding: 6px 12px;
            font-size: 11px;
            font-weight: 600;
            border-radius: 99px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .btn-copy:hover {
            background-color: #007aff;
            color: white;
            transform: scale(1.05);
        }

        .btn-route {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background-color: #636366;
            color: white;
            border: none;
            padding: 8px 14px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 12px;
            cursor: pointer;
            margin-top: 10px;
            margin-bottom: 4px;
            transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .btn-route:hover {
            transform: translateY(-1px);
            filter: brightness(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }

        .badge {
            display: inline-block;
            background-color: rgba(0, 122, 255, 0.1);
            color: #007aff;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 99px;
            margin-left: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        /* --- PROFILE CARD STYLES --- */
        .account-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(25px);
            border-radius: 28px;
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin: 0 auto;
        }

        .account-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 19px;
            font-weight: 700;
            color: #1c1c1e;
            margin-bottom: 24px;
        }

        .account-info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .account-info-label {
            font-size: 14px;
            font-weight: 500;
            color: #6e6e73;
        }

        .account-info-badge {
            background: rgba(0, 122, 255, 0.1);
            color: #007aff;
            font-weight: 700;
            font-size: 14px;
            padding: 6px 16px;
            border-radius: 99px;
            letter-spacing: 0.5px;
        }

        .status-aktif-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #34c759;
            font-weight: 600;
            font-size: 14px;
        }

        /* --- LAYOUT GRID LAYOUT SYSTEM --- */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .full-width {
            grid-column: 1 / -1;
        }

        /* --- PREMIUM LIGHT TABLES WITH SCROLL --- */
        div[style*="overflow-x:auto"], div[style*="overflow-x: auto"] {
            overflow-x: auto !important;
            overflow-y: auto !important;
            max-height: 450px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(20px);
            margin-top: 20px;
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 13.5px;
            margin-top: 0; 
        }

        th, td {
            padding: 14px 18px;
            text-align: left;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            color: #3a3a3c;
            white-space: nowrap; 
        }

        th {
            background: rgba(242, 242, 247, 0.85);
            backdrop-filter: blur(15px);
            color: #1c1c1e;
            font-weight: 700;
            font-size: 12.5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            position: sticky; 
            top: 0;
            z-index: 10;
        }

        tbody tr {
            transition: background-color 0.2s ease;
        }

        tbody tr:hover {
            background-color: rgba(255, 255, 255, 0.7) !important;
        }

        .btn-action-sm {
            padding: 7px 14px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
        }
        .btn-action-sm:hover {
            transform: scale(1.03);
            filter: brightness(0.95);
        }

        #paginationRegis, #paginationMasterODP {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(15px);
            padding: 12px 20px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.6);
        }

        /* --- RESPONSIVE MEDIA QUERIES --- */
        @media (max-width: 1024px) {
            #panelCariHP {
                grid-template-columns: 1fr;
            }

            #panelCariHP > .section-header,
            #panelCariHP > .section-desc,
            #panelCariHP > .form-group,
            #panelCariHP > .search-action-group,
            #panelCariHP > #error-msg,
            #panelCariHP > #tabsContainer,
            #panelCariHP > #hasilTitle,
            #panelCariHP > #hasil,
            #panelCariHP > #map {
                grid-column: 1;
            }

            #panelCariHP > #map {
                grid-row: auto;
                position: static;
                height: 380px !important;
                margin-top: 16px !important;
            }

            #hasil {
                max-height: none;
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 768px) {
            #appPanel {
                padding-top: 80px; 
                min-height: 100vh;
                display: block; 
            }

            .navbar {
                width: 270px;
            }

            .search-action-group {
                flex-direction: column;
                gap: 8px;
            }

            .btn-share-loc {
                width: 100%;
            }

            .main-container {
                padding: 22px;
                margin: 10px;
                border-radius: 26px;
            }
            
            #hasil {
                grid-template-columns: 1fr;
            }
        }

        /* --- PRINT AREA STYLES --- */
        @media print {
            body * {
                visibility: hidden;
            }
            #printArea, #printArea * {
                visibility: visible;
            }
            #printArea {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                color: #000;
                background: #fff;
                padding: 20px;
            }
            #printArea table {
                width: 100%;
                border-collapse: collapse;
            }
            #printArea th, #printArea td {
                border: 1px solid #000 !important;
                padding: 8px !important;
                color: #000 !important;
                background: transparent !important;
            }
        }


/* Additional user management and modal styles */

        /* --- USER MANAGEMENT ENHANCEMENTS --- */
        .user-action-group { display:flex; align-items:center; justify-content:center; gap:6px; }
        .user-action-group button { width:34px; height:34px; border:0; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, filter .2s ease; }
        .user-action-group button:hover { transform:translateY(-1px) scale(1.04); filter:brightness(.97); }
        .user-action-edit { background:#fff3cd; color:#9a6700; box-shadow:0 4px 10px rgba(245,158,11,.12); }
        .user-action-biometric { background:#e0f2fe; color:#0369a1; box-shadow:0 4px 10px rgba(14,165,233,.12); }
        .user-action-delete { background:#fee2e2; color:#dc2626; box-shadow:0 4px 10px rgba(239,68,68,.12); }
        .biometric-status { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }
        .biometric-status.is-active { background:rgba(52,199,89,.12); color:#15803d; }
        .biometric-status.is-empty { background:rgba(142,142,147,.12); color:#6e6e73; }
        #modalEditCustomer .cbn-form-card { position:relative; }
        .customer-modal-close { position:absolute; top:12px; right:12px; z-index:20; width:40px; height:40px; border:1px solid rgba(255,255,255,.75); border-radius:13px; background:rgba(255,255,255,.78); color:#1c1c1e; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:0 8px 20px rgba(0,0,0,.10); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:17px; transition:all .2s ease; }
        .customer-modal-close:hover { background:#ff3b30; color:#fff; transform:scale(1.05); }
        .sales-register-card { max-width:560px !important; padding:0 !important; overflow:hidden; border:1px solid rgba(255,255,255,.75); box-shadow:0 24px 60px rgba(0,59,115,.16); }
        .sales-register-head { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:20px 22px 14px; background:linear-gradient(135deg,rgba(0,82,156,.08),rgba(0,122,255,.03)); border-bottom:1px solid rgba(0,82,156,.08); }
        .sales-register-icon { width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#007aff,#00529c); color:#fff; box-shadow:0 8px 18px rgba(0,122,255,.22); }
        .sales-register-head h3 { margin:0 0 3px !important; font-size:19px; }
        .sales-register-head p { margin:0 !important; }
        .sales-register-close { width:36px; height:36px; border:0; border-radius:11px; background:rgba(118,118,128,.10); color:#3a3a3c; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s ease; }
        .sales-register-close:hover { background:#ff3b30; color:#fff; transform:scale(1.04); }
        .sales-register-note { margin:14px 22px 4px; padding:10px 12px; border-radius:12px; background:rgba(0,122,255,.06); border:1px solid rgba(0,122,255,.10); color:#475569; font-size:11.5px; line-height:1.5; }
        #salesRegisterForm { padding:10px 22px 22px; }
        #salesRegisterForm label { display:block; margin-bottom:6px; font-size:11px; font-weight:700; color:#475569; text-transform:uppercase; letter-spacing:.45px; }
        #salesRegisterForm input { width:100%; padding:12px 13px; border:1px solid rgba(15,23,42,.10); border-radius:12px; background:rgba(255,255,255,.72); outline:none; transition:all .2s ease; }
        #salesRegisterForm input:focus { border-color:#007aff; box-shadow:0 0 0 3px rgba(0,122,255,.12); background:#fff; }
        @media (max-width:768px) { .sales-register-card { max-width:calc(100vw - 24px) !important; } .sales-register-head { padding:16px; } .sales-register-note { margin:12px 16px 4px; } #salesRegisterForm { padding:8px 16px 16px; } .customer-modal-close { top:8px; right:8px; } }


/* ============================================================
   PREMIUM BLUE NEUMORPHIC SKIN — ADDITIVE OVERRIDES
   Existing PHP, JavaScript, element IDs and application logic
   are intentionally preserved.
   ============================================================ */
:root{
  --neo-blue:#1769ee;
  --neo-blue2:#398cff;
  --neo-ink:#101d3c;
  --neo-muted:#64748b;
  --neo-bg:#eaf1ff;
  --neo-glass:rgba(255,255,255,.66);
  --neo-line:rgba(255,255,255,.88);
  --neo-shadow:0 18px 42px rgba(48,91,164,.13), inset 0 1px 0 rgba(255,255,255,.9);
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 8% 5%,rgba(255,255,255,.98),transparent 28rem),
    radial-gradient(circle at 92% 16%,rgba(115,169,255,.20),transparent 26rem),
    linear-gradient(145deg,#edf3ff 0%,#e6efff 52%,#f5f8ff 100%);
  color:var(--neo-ink);
}
#loginPanel{
  min-height:100svh;
  overflow:hidden;
  padding:28px 18px;
  background:
    radial-gradient(circle at -4% -8%,rgba(79,143,255,.23) 0 18%,transparent 18.2%),
    radial-gradient(circle at 108% 108%,rgba(79,143,255,.20) 0 20%,transparent 20.2%),
    radial-gradient(circle at 50% 42%,rgba(255,255,255,.88),rgba(230,239,255,.76) 58%,#e8f0ff 100%);
}
#loginPanel:before,#loginPanel:after{
  content:"";position:absolute;border-radius:50%;pointer-events:none;
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 0 0 10px rgba(255,255,255,.10),0 12px 36px rgba(57,123,231,.12);
}
#loginPanel:before{width:250px;height:250px;left:-150px;top:-105px}
#loginPanel:after{width:290px;height:290px;right:-190px;bottom:-145px}
.login-card{
  position:relative;z-index:1;
  max-width:470px;
  padding:42px 34px 30px;
  border-radius:34px;
  background:rgba(245,248,255,.58);
  border:1px solid rgba(255,255,255,.94);
  box-shadow:0 28px 70px rgba(43,86,157,.15),inset 0 2px 3px rgba(255,255,255,.95);
  backdrop-filter:blur(28px) saturate(150%);
  -webkit-backdrop-filter:blur(28px) saturate(150%);
}
.login-card .logo-container{
  width:116px;height:116px;margin:0 auto 25px;
  display:flex;align-items:center;justify-content:center;
  border-radius:34px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(224,235,255,.76));
  border:1px solid rgba(255,255,255,.98);
  box-shadow:12px 12px 28px rgba(67,105,168,.12),-10px -10px 25px rgba(255,255,255,.96),inset 1px 1px 3px #fff;
}
.login-card .logo-cbn{height:66px;max-width:82px;object-fit:contain}
.login-card h2{
  color:#101d3c;font-size:clamp(27px,6vw,36px);font-weight:800;
  letter-spacing:-1.2px;margin-bottom:7px;
}
.login-card .subtitle{
  color:#65748f;font-size:14px;letter-spacing:3.2px;
  text-transform:uppercase;margin-bottom:30px;
}
#loginForm .form-group{margin-bottom:17px}
#loginForm .form-group label{
  color:#667795;font-size:11px;letter-spacing:1px;
}
#loginForm .form-group input{
  min-height:62px;padding:17px 20px;border-radius:20px;
  color:#172747;background:rgba(255,255,255,.53);
  border:1px solid rgba(255,255,255,.98);
  box-shadow:inset 4px 4px 10px rgba(85,117,170,.07),inset -4px -4px 10px rgba(255,255,255,.9),0 8px 18px rgba(61,99,161,.07);
}
#loginForm .form-group input::placeholder{color:#7c8ba6}
#loginForm .form-group input:focus{
  border-color:rgba(39,116,245,.55);
  background:rgba(255,255,255,.82);
  box-shadow:0 0 0 4px rgba(42,116,239,.10),0 10px 24px rgba(52,110,211,.10);
  transform:none;
}
.btn-login{
  min-height:62px;border-radius:999px!important;
  background:linear-gradient(105deg,#278bfa 0%,#1765ed 58%,#343eea 100%)!important;
  box-shadow:0 14px 28px rgba(33,103,235,.30),inset 0 1px 1px rgba(255,255,255,.55)!important;
  font-size:17px!important;font-weight:800!important;
  border:1px solid rgba(255,255,255,.8)!important;
}
.btn-login:hover{filter:brightness(1.05);transform:translateY(-2px)!important}
.login-card .register-link{margin-top:22px;color:#1769d8}
.login-footer{color:#8290a8;margin-top:24px}
#login-error{margin-top:12px}

/* Application frame and navigation */
#appPanel{padding:24px 24px 40px!important}
.navbar{
  border:1px solid rgba(255,255,255,.9);
  border-radius:0 30px 30px 0;
  background:rgba(247,250,255,.82);
  box-shadow:18px 0 45px rgba(38,77,140,.12);
}
.nav-brand{padding:16px 12px 22px}
.nav-btn{border-radius:16px;padding:13px 15px;color:#52627e}
.nav-btn.active{
  background:linear-gradient(110deg,#2686f7,#155bdc);
  box-shadow:0 10px 22px rgba(23,105,238,.24);
}
.menu-toggle{
  background:rgba(255,255,255,.78)!important;
  border:1px solid white!important;border-radius:15px!important;
  box-shadow:0 8px 22px rgba(43,87,156,.12)!important;
}

/* Glass panels throughout the application */
.main-container{
  background:rgba(255,255,255,.54);
  border:1px solid rgba(255,255,255,.9);
  border-radius:30px;
  box-shadow:var(--neo-shadow);
  padding:clamp(18px,3vw,34px);
}
.section-header{color:#142344}
.section-header i{color:#1769ee}
.section-desc{color:#71809a}
.card,.account-card,.history-card,.cbn-form-card{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.94);
  box-shadow:0 12px 28px rgba(47,86,148,.08),inset 0 1px 0 #fff;
}
.form-group input,.form-group select,.form-group textarea{
  border-radius:15px;background:rgba(255,255,255,.72);
  border-color:rgba(255,255,255,.95);
}
.btn-primary,.btn-search,.btn-share-loc{border-radius:16px}
.section-title{color:#172747;border-left-color:#287cf0}
.tabs-header{background:rgba(118,145,190,.13);border-radius:15px}
.tab-link.active{color:#145ed0}

/* Dashboard — visual hierarchy inspired by the supplied app home screen */
.dashboard-shell{max-width:1450px;margin:0 auto}
.dashboard-hero{
  min-height:190px;padding:30px 32px;border-radius:28px;
  background:linear-gradient(112deg,#102b52 0%,#174b89 54%,#328ee9 100%);
  box-shadow:0 20px 42px rgba(22,75,143,.22);
}
.dashboard-hero h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.7px}
.dashboard-hero p{max-width:650px;color:rgba(255,255,255,.78)}
.dashboard-eyebrow{letter-spacing:1.5px}
.dashboard-stats{gap:16px}
.dashboard-stat{
  border-radius:22px!important;
  background:rgba(255,255,255,.77)!important;
  border:1px solid rgba(255,255,255,.98)!important;
  box-shadow:0 12px 28px rgba(48,86,148,.09),inset 0 1px 0 white!important;
}
.dashboard-stat-value{color:#145ed0!important}
.dashboard-stat-icon{border-radius:14px!important}
.dashboard-panel{
  border-radius:26px!important;
  background:rgba(255,255,255,.78)!important;
  border:1px solid rgba(255,255,255,.96)!important;
  box-shadow:0 16px 34px rgba(48,86,148,.09)!important;
}
.dashboard-panel-head{padding:22px 24px!important}
.dashboard-panel-title h3{color:#142344}
.dashboard-refresh{
  border-radius:13px!important;
  background:#e8f1ff!important;color:#1769d8!important;
}
.leaderboard-row,.podium-card{
  border-radius:18px!important;
  box-shadow:0 8px 20px rgba(38,78,143,.08)!important;
}
#map,.leaflet-container{border-radius:24px}
table{border-radius:16px;overflow:hidden}
th{background:#eaf1fc!important;color:#243b61!important}

/* Mobile layout */
@media(max-width:768px){
  #loginPanel{padding:22px 16px}
  .login-card{padding:34px 23px 26px;border-radius:29px}
  .login-card .logo-container{width:102px;height:102px;border-radius:30px}
  .login-card h2{font-size:29px}
  .login-card .subtitle{font-size:11px;letter-spacing:2.5px}
  #appPanel{padding:72px 10px 24px!important}
  .main-container{margin:8px!important;padding:18px!important;border-radius:24px}
  .dashboard-hero{padding:24px 21px;border-radius:24px;display:block}
  .dashboard-hero-meta{margin-top:18px}
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px}
  .dashboard-stat{padding:15px!important;min-width:0}
  .dashboard-stat-value{font-size:25px!important}
  .dashboard-panel-head{padding:17px!important;gap:10px;flex-wrap:wrap}
}
@media(max-width:380px){
  .dashboard-stats{grid-template-columns:1fr!important}
  .login-card{padding-left:18px;padding-right:18px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ================================================================
   CBN PORTAL — SOFT GLASS / BLUE–VIOLET UI SYSTEM
   Visual-only layer: keeps all existing PHP, JavaScript and IDs intact.
   ================================================================ */
:root{
  --cbn-blue:#5aa9f8;
  --cbn-blue-deep:#1768dc;
  --cbn-violet:#7660e8;
  --cbn-ink:#20243b;
  --cbn-muted:#7d8298;
  --cbn-surface:rgba(255,255,255,.86);
  --cbn-line:rgba(255,255,255,.96);
  --cbn-shadow:0 16px 38px rgba(65,72,110,.12),0 3px 9px rgba(65,72,110,.06);
}
body{
  background:
    radial-gradient(ellipse at 12% 8%,rgba(255,255,255,.98),transparent 34%),
    radial-gradient(ellipse at 92% 12%,rgba(147,180,255,.22),transparent 31%),
    linear-gradient(135deg,#f4f5fa 0%,#edf1fb 48%,#f7f7fb 100%);
  color:var(--cbn-ink);
}
button,a,.nav-btn,.card,.dashboard-stat,.dashboard-panel,.account-card,.history-card,.cbn-form-card,
.form-group input,.form-group select,.form-group textarea,.tab-link,.btn-action-sm{
  -webkit-tap-highlight-color:transparent;
}
button,.nav-btn,.card,.dashboard-stat,.dashboard-panel,.account-card,.history-card,.cbn-form-card,
.form-group input,.form-group select,.form-group textarea,.tab-link,.btn-action-sm{
  transition:background .28s ease,color .28s ease,border-color .28s ease,box-shadow .32s ease,
    transform .32s cubic-bezier(.2,.75,.25,1),filter .28s ease;
}
@keyframes cbnEnter{
  from{opacity:0;transform:translateY(18px) scale(.985);filter:blur(5px)}
  to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
@keyframes cbnSoftFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes cbnShimmer{0%{background-position:150% 0}100%{background-position:-150% 0}}

/* Login: polished soft-glass surface */
#loginPanel{
  background:
    radial-gradient(circle at -4% -8%,rgba(95,156,255,.24) 0 17%,transparent 17.3%),
    radial-gradient(circle at 105% 105%,rgba(125,105,238,.18) 0 19%,transparent 19.3%),
    linear-gradient(145deg,#f7f8fc,#eaf0ff 55%,#f8f8fc);
}
.login-card{
  border-radius:34px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.98);
  box-shadow:22px 24px 55px rgba(81,98,145,.14),-12px -12px 34px rgba(255,255,255,.88),inset 0 1px 0 #fff;
}
.login-card .logo-container{
  border-radius:38px;
  box-shadow:12px 14px 30px rgba(75,105,169,.13),-10px -10px 26px rgba(255,255,255,.96),inset 0 1px 0 #fff;
  animation:cbnSoftFloat 5s ease-in-out infinite;
}
.login-card h2{letter-spacing:-1.4px}
#loginForm .form-group input{
  border-radius:19px;
  background:rgba(244,247,255,.76);
  box-shadow:inset 4px 4px 10px rgba(89,109,154,.07),inset -4px -4px 10px rgba(255,255,255,.95),0 7px 17px rgba(67,91,143,.06);
}
.btn-login,.btn-primary,.btn-search,.btn-share-loc{
  background:linear-gradient(105deg,#66b8fa 0%,#347ff0 48%,#795ce6 100%);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 12px 25px rgba(82,112,220,.24),inset 0 1px 0 rgba(255,255,255,.42);
}
.btn-login:hover,.btn-primary:hover,.btn-search:hover,.btn-share-loc:hover{
  filter:saturate(1.08) brightness(1.04);
  box-shadow:0 16px 30px rgba(82,112,220,.30),inset 0 1px 0 rgba(255,255,255,.5);
}

/* Navigation: floating vertical rail */
.navbar{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.98);
  border-radius:0 30px 30px 0;
  box-shadow:15px 0 45px rgba(68,79,125,.10),inset -1px 0 0 rgba(255,255,255,.8);
  backdrop-filter:blur(28px) saturate(155%);
}
.nav-brand{border-bottom-color:rgba(91,111,164,.10)}
.brand-text h1{color:#222844}
.brand-text p{color:#6b75d9}
.user-profile{background:linear-gradient(135deg,rgba(99,176,248,.12),rgba(126,98,228,.08));border-color:rgba(113,143,224,.13)}
.nav-btn{border-radius:15px;color:#777d91;font-weight:600}
.nav-btn i{width:20px;text-align:center;color:#9297a9}
.nav-btn:hover{background:linear-gradient(100deg,rgba(94,174,247,.12),rgba(124,99,230,.10));color:#315fd0;transform:translateX(4px)}
.nav-btn.active{background:linear-gradient(105deg,#68bafa,#347cf0 55%,#7860e8);color:#fff;box-shadow:0 10px 22px rgba(91,117,222,.25)}
.nav-btn.active i{color:#fff}
.nav-btn.btn-logout{background:rgba(239,92,112,.08);color:#d34c68}
.menu-toggle{background:rgba(255,255,255,.86)!important;color:#52658b!important}

/* Page frame and page changes */
#appPanel{background:transparent}
.main-container{
  background:rgba(255,255,255,.48);
  border:1px solid rgba(255,255,255,.88);
  border-radius:30px;
  box-shadow:0 20px 55px rgba(77,91,139,.08),inset 0 1px 0 rgba(255,255,255,.9);
}
.main-container > div:not(.hidden),
.main-container > section:not(.hidden),
#panelDashboard:not(.hidden),#panelCariHP:not(.hidden){animation:cbnEnter .48s cubic-bezier(.2,.75,.25,1) both}
.section-header{font-size:clamp(20px,2vw,25px);letter-spacing:-.65px;color:#242943}
.section-header i{color:#4c91ed}
.section-desc{color:#858ba0;line-height:1.65}
.section-title{border-left:4px solid #6a8ef0;padding-left:12px}

/* Reusable cards, data surfaces and forms */
.card,.account-card,.history-card,.cbn-form-card,.dashboard-stat,.dashboard-panel{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.98);
  box-shadow:var(--cbn-shadow),inset 0 1px 0 #fff;
  border-radius:22px;
}
.card:hover,.account-card:hover,.history-card:hover,.dashboard-stat:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 42px rgba(67,88,151,.16),inset 0 1px 0 #fff;
}
.form-group input,.form-group select,.form-group textarea,
#salesRegisterForm input{
  color:#303751;background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.98);border-radius:15px;
  box-shadow:inset 3px 3px 8px rgba(80,101,153,.045),inset -3px -3px 8px rgba(255,255,255,.9),0 5px 14px rgba(75,92,140,.045);
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus,
#salesRegisterForm input:focus{
  border-color:rgba(81,139,239,.58);box-shadow:0 0 0 4px rgba(87,139,239,.10),0 8px 20px rgba(75,113,197,.10);
}
.form-group label{color:#747d97}
.btn-primary,.btn-search,.btn-share-loc{border-radius:14px}
.btn-action-sm,.btn-copy,.btn-route,.dashboard-refresh{border-radius:12px}
.tabs-header{background:rgba(128,148,196,.10);border:1px solid rgba(255,255,255,.85);padding:5px}
.tab-link{border-radius:11px}
.tab-link.active{background:linear-gradient(105deg,#68bafa,#7860e8);color:#fff;box-shadow:0 6px 16px rgba(89,119,220,.20)}

/* Dashboard hero and summary tiles */
.dashboard-shell{width:100%;}
.dashboard-hero{
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(112deg,#172d58 0%,#275ca8 52%,#62b4f4 100%);
  border:1px solid rgba(255,255,255,.42);
  box-shadow:0 22px 42px rgba(40,80,153,.22),inset 0 1px 0 rgba(255,255,255,.24);
}
.dashboard-hero:after{
  content:"";position:absolute;z-index:-1;width:310px;height:310px;right:-100px;top:-190px;
  border:1px solid rgba(255,255,255,.20);border-radius:50%;
  box-shadow:0 0 0 22px rgba(255,255,255,.045),0 0 0 48px rgba(255,255,255,.035);
}
.dashboard-eyebrow{color:rgba(255,255,255,.72);font-size:11px;font-weight:800;text-transform:uppercase}
.dashboard-hero h2{color:#fff;font-weight:800}
.dashboard-hero p{color:rgba(255,255,255,.78);line-height:1.65}
.dashboard-hero-meta{color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:14px;padding:10px 14px;backdrop-filter:blur(12px)}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0}
.dashboard-stat{padding:20px;animation:cbnEnter .55s both}
.dashboard-stat-label{color:#858ba0;font-weight:700}
.dashboard-stat-value{font-size:clamp(25px,3vw,34px);font-weight:850;letter-spacing:-1px;background:linear-gradient(110deg,#397fe8,#7b61e6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.dashboard-stat-foot{color:#9297a8}
.dashboard-stat-icon,.db-title-icon{background:linear-gradient(135deg,#6bbcf8,#7762e8)!important;color:#fff!important;box-shadow:0 8px 18px rgba(91,117,221,.22)}
.dashboard-panel{overflow:hidden}
.dashboard-panel-head{border-bottom:1px solid rgba(92,112,164,.09)}
.dashboard-panel-title h3{color:#272c47}
.dashboard-panel-title p,.dashboard-footnote{color:#8b90a2}
.dashboard-refresh{background:linear-gradient(110deg,rgba(102,185,248,.16),rgba(124,96,230,.13))!important;color:#4c6bd2!important}
.leaderboard-row,.podium-card{border:1px solid rgba(255,255,255,.95);background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,243,255,.9));}

/* Tables, maps, modal surfaces */
table{border-collapse:separate;border-spacing:0;width:100%;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.95);border-radius:16px;overflow:hidden;box-shadow:0 8px 22px rgba(67,85,135,.06)}
th{background:linear-gradient(110deg,#eaf3ff,#f0edff)!important;color:#435477!important;font-weight:800}
td,th{border-color:rgba(106,125,170,.10)!important}
#map,.leaflet-container,#mapKabupaten{border:1px solid rgba(255,255,255,.95);box-shadow:0 12px 28px rgba(61,82,137,.12)}
.modal,.modal-content,[role="dialog"]{border-radius:24px}
.sales-register-card{border-radius:24px!important}

/* Touch-friendly responsive layout */
@media(max-width:1000px){
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){
  body{background-attachment:scroll}
  #appPanel{padding-left:9px!important;padding-right:9px!important}
  .main-container{padding:15px!important;border-radius:23px;margin:8px auto!important}
  .dashboard-hero{min-height:unset;padding:23px 20px}
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dashboard-stat{padding:15px;border-radius:18px!important}
  .dashboard-stat-label{font-size:11px}
  .dashboard-stat-value{font-size:25px}
  .dashboard-panel{border-radius:20px!important}
  .navbar{width:min(290px,86vw);border-radius:0 25px 25px 0}
  .section-header{font-size:20px}
  .form-grid{grid-template-columns:1fr!important}
  .search-action-group{flex-wrap:wrap}
  .search-action-group button{flex:1 1 100%}
  table{min-width:620px}
}
@media(max-width:390px){
  .dashboard-stats{grid-template-columns:1fr}
  .login-card{padding-left:18px;padding-right:18px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
