/**
 * NIKOGREEN SYSTEMS — Application Stylesheet
 * Extracted from SPA template · v2.4
 */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Reference real easte.html palette: vibrant red + deep navy */
            --primary: #e63946;
            --primary-dark: #c92f3b;
            --primary-light: #ff6b6b;
            --primary-muted: rgba(230, 57, 70, 0.14);
            --secondary: #1d3557;
            --secondary-dark: #152a45;
            --accent: #ff6b6b;
            --danger: #dc2626;
            --dark: #1a1a1a;
            --dark-bg: #1d3557;
            --dark-sidebar: #1d3557;
            --light: #fdfdfd;
            --surface: #ffffff;
            --gray: #6c757d;
            --gray-light: #9aa1a8;
            --success: #16a34a;
            --warning: #d97706;
            --border: #eaeaea;
            --border-subtle: #e2e8f0;
            --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
            --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
            --shadow-lg: 0 8px 24px rgba(29, 53, 87, 0.18);
        }

        body {
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            background: var(--light);
            color: #1e293b;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        body.modal-scroll-lock {
            overflow: hidden !important;
            position: fixed;
            width: 100%;
            left: 0;
            right: 0;
            touch-action: none;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 280px;
            height: 100vh;
            background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-dark) 100%);
            color: white;
            padding: 20px 0;
            overflow-y: auto;
            transition: transform 0.3s;
            z-index: 1000;
            box-shadow: 4px 0 24px rgba(12, 10, 9, 0.35);
            border-right: 1px solid rgba(230, 57, 70, 0.22);
        }

        .logo {
            padding: 0 25px 30px;
            border-bottom: 1px solid rgba(230, 57, 70, 0.22);
            margin-bottom: 20px;
        }

        .logo h1 {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo i {
            color: var(--primary-light);
            font-size: 26px;
        }

        .logo span {
            color: var(--primary);
        }

        .logo .logo-tagline {
            font-size: 11px;
            color: var(--primary-light);
            margin-top: 6px;
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .sidebar-brand-top {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .sidebar-company-logo {
            display: block;
            max-width: 100%;
            max-height: 72px;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
            background: transparent;
            padding: 0;
        }

        .branding-logo-preview {
            min-height: 72px;
            padding: 14px;
            border: 1px dashed #cbd5e1;
            border-radius: 10px;
            /* Checkerboard so PNG transparency is visible (not a white matte) */
            background-color: #e2e8f0;
            background-image:
                linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
                linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
                linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
            background-size: 16px 16px;
            background-position: 0 0, 0 8px, 8px -8px, -8px 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .branding-logo-preview img {
            max-height: 64px;
            max-width: 220px;
            object-fit: contain;
            background: transparent;
        }

        .branding-preview-logo {
            max-height: 48px;
            max-width: 180px;
            object-fit: contain;
        }

        .niko-pending-sync-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100000;
            background: #0f172a;
            color: #f8fafc;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
        }
        .niko-pending-sync-inner {
            max-width: 960px;
            margin: 0 auto;
            padding: 10px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 13px;
        }
        .niko-pending-sync-inner .btn {
            margin-left: auto;
            background: var(--primary);
            color: #ffffff;
            border: 0;
            padding: 6px 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }
        body.niko-pending-sync-active { padding-top: 44px; }

        .website-links-grid { display: flex; flex-direction: column; gap: 12px; }
        .website-link-row { display: flex; flex-direction: column; gap: 6px; }
        .website-link-label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; }
        .website-link-copy { display: flex; gap: 8px; align-items: center; }
        .website-link-copy .form-input { flex: 1; font-size: 12px; font-family: ui-monospace, monospace; }
        .website-connection-panel { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--surface); }

        .nav-menu {
            list-style: none;
        }

        .nav-item {
            margin: 3px 12px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            color: #d6d3d1;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            border-left: 3px solid transparent;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
        }

        .nav-link:hover {
            background: rgba(230, 57, 70, 0.1);
            color: #ffffff;
        }

        .nav-link.active {
            background: rgba(230, 57, 70, 0.18);
            color: #ffffff;
            border-left-color: var(--primary-light);
            box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.2);
        }

        .nav-link i {
            width: 22px;
            margin-right: 12px;
            font-size: 16px;
            color: var(--primary-light);
        }

        .nav-link.active i { color: var(--primary-light); }

        .nav-badge {
            margin-left: auto;
            background: var(--primary-light);
            color: var(--dark-bg);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
        }

        /* Main Content */
        .main-content {
            margin-left: 280px;
            padding: 28px 32px;
            min-height: 100vh;
            background: var(--light);
        }

        .header {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            background: var(--surface);
            padding: 12px 18px;
            border-radius: 14px;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border);
            border-left: 4px solid var(--primary);
        }

        .header-actions {
            display: flex;
            gap: 15px;
            align-items: center;
            margin-left: auto;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .search-box {
            position: relative;
        }

        .search-box input {
            padding: 10px 40px 10px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            width: 300px;
            font-size: 14px;
            transition: all 0.3s;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            width: 350px;
        }

        .search-box i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .btn-primary {
            background: var(--primary);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
        }

        .btn-primary:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
            color: #ffffff;
        }

        .btn-success {
            background: var(--secondary);
            color: white;
        }

        .btn-success:hover {
            background: var(--secondary-dark);
            box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 16px;
            background: var(--primary-muted);
            border: 1px solid var(--border);
            border-radius: 25px;
            cursor: pointer;
        }

        .auth-btn-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .auth-btn-group .btn {
            padding: 8px 14px;
            font-size: 13px;
            white-space: nowrap;
        }
        .sidebar-auth {
            padding: 0 20px 12px;
        }
        .sidebar-auth .btn {
            width: 100%;
            justify-content: center;
            margin-bottom: 8px;
            font-size: 13px;
        }
        .auth-switch-link {
            display: block;
            text-align: center;
            margin-top: 14px;
            font-size: 13px;
            color: var(--primary);
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
        }
        .auth-switch-link:hover { text-decoration: underline; }

        .admin-login-gate {
            max-width: 480px;
            margin: 48px auto;
            padding: 32px 28px;
            background: white;
            border-radius: 16px;
            border: 2px solid #e2e8f0;
            box-shadow: 0 8px 32px rgba(0,0,0,0.08);
            text-align: center;
        }
        .admin-login-gate h3 { margin: 0 0 8px; font-size: 20px; }
        .admin-login-gate p { color: var(--gray); font-size: 14px; margin: 0 0 20px; }
        body.admin-logged-out:not(.client-mode) .admin-only:not(.auth-keep-visible) { display: none !important; }
        body.admin-logged-out:not(.client-mode) .admin-login-gate { display: block !important; }
        body:not(.admin-logged-out) .admin-login-gate { display: none !important; }
        body.staff-authenticated #adminLoginGate,
        body.staff-authenticated #staffSwitchModal,
        body.staff-authenticated .admin-login-gate { display: none !important; }
        body.staff-authenticated #adminLogoutBtn,
        body.staff-authenticated #sidebarAdminLogoutBtn,
        body.staff-authenticated #adminProfileWrap { display: flex !important; }
        body.staff-authenticated #adminAuthActions { display: flex !important; }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: var(--surface);
            padding: 25px;
            border-radius: 14px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-subtle);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
            border-color: var(--border);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--primary);
        }

        .stat-card.success::before { background: var(--success); }
        .stat-card.warning::before { background: var(--warning); }
        .stat-card.danger::before { background: var(--danger); }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 15px;
        }

        .stat-title {
            color: var(--gray);
            font-size: 14px;
            font-weight: 500;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .stat-icon.blue { background: var(--primary-muted); color: var(--primary); }
        .stat-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--success); }
        .stat-icon.orange { background: rgba(253, 224, 71, 0.1); color: var(--warning); }
        .stat-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

        .stat-value {
            font-size: 32px;
            font-weight: bold;
            color: var(--dark);
            margin-bottom: 5px;
        }

        .stat-change {
            font-size: 13px;
            color: var(--success);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stat-change.negative {
            color: var(--danger);
        }

        /* Content Grid */
        .content-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        /* Dashboard: compact inbox row + full-width plot explorer */
        #pageDashboard .content-grid {
            grid-template-columns: 1fr;
        }
        #pageDashboard .dashboard-inbox-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        #pageDashboard .dashboard-inbox-row .card {
            padding: 16px 18px;
            margin: 0;
        }
        #pageDashboard .dashboard-inbox-row .card-header {
            margin-bottom: 12px;
            padding-bottom: 12px;
        }
        #pageDashboard .dashboard-inbox-row .card-title {
            font-size: 15px;
        }
        #pageDashboard .dashboard-inbox-row .action-queue-list {
            max-height: 200px;
        }
        #pageDashboard .dashboard-plot-explorer-card {
            grid-column: 1 / -1;
            width: 100%;
        }
        #pageDashboard .dashboard-plot-explorer-card .card-header {
            padding-bottom: 12px;
        }
        #pageDashboard .dashboard-plot-explorer-card .plot-toolbar {
            margin-bottom: 12px;
        }
        #pageDashboard .dashboard-plot-explorer-card .plot-map-container {
            min-height: 0;
            padding: 12px 0 0;
            display: grid;
            grid-template-columns: minmax(520px, 860px) minmax(260px, 1fr);
            gap: 20px;
            align-items: start;
        }
        #pageDashboard .dashboard-plot-explorer-card .map-legend,
        #pageDashboard .dashboard-plot-explorer-card .dashboard-map-kpis,
        #pageDashboard .dashboard-plot-explorer-card .map-recent-activity,
        #pageDashboard .dashboard-plot-explorer-card .plot-status-summary {
            grid-column: 1 / -1;
        }
        #pageDashboard .dashboard-plot-explorer-card .master-plan-section {
            margin-bottom: 0;
            min-width: 0;
        }
        #pageDashboard .dashboard-plot-explorer-card .master-plan-wrapper {
            max-height: none;
        }
        #pageDashboard .dashboard-plot-explorer-card .map-pan-viewport {
            height: auto;
            min-height: 380px;
            max-height: none;
            aspect-ratio: var(--map-aspect, 512 / 339);
        }
        #pageDashboard .dashboard-plot-explorer-card .interactive-map-section {
            border-top: none;
            padding-top: 0;
            max-height: min(560px, 72vh);
            overflow-y: auto;
        }
        #pageDashboard .dashboard-plot-explorer-card .plot-grid {
            min-height: 0;
            max-height: none;
            overflow-y: visible;
        }
        @media (max-width: 1100px) {
            #pageDashboard .dashboard-plot-explorer-card .plot-map-container {
                grid-template-columns: 1fr;
            }
            #pageDashboard .dashboard-plot-explorer-card .interactive-map-section {
                max-height: none;
            }
        }
        #pageDashboard .plot-matcher-details:not([open]) {
            padding-bottom: 8px;
        }
        #pageDashboard .plot-matcher-details .matcher-fields,
        #pageDashboard .plot-matcher-details .matcher-results {
            margin-top: 12px;
        }
        @media (max-width: 1100px) {
            #pageDashboard .dashboard-inbox-row {
                grid-template-columns: 1fr;
            }
        }

        .card {
            background: var(--surface);
            border-radius: 14px;
            padding: 25px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-subtle);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .card-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -0.01em;
        }

        /* Interactive Plot Map */
        .plot-map-container {
            position: relative;
            background: linear-gradient(180deg, #fefce8 0%, #f8fafc 100%);
            border-radius: 12px;
            padding: 20px;
            min-height: 400px;
            border: 1px solid var(--border);
        }

        .map-legend {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }

        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
        }

        .legend-color.available { background: var(--success); }
        .legend-color.reserved { background: var(--warning); }
        .legend-color.sold { background: var(--danger); }
        .legend-color.hold { background: var(--gray); }

        .plot-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 10px;
        }

        body.cc-support-mode #adminAuthActions,
        body.cc-support-mode #adminProfileWrap,
        body.cc-support-mode #sidebarAdminLogoutBtn {
            display: none !important;
        }

        body.cc-support-mode {
            padding-top: 46px;
        }

        body.cc-support-mode .sidebar {
            top: 46px;
            height: calc(100vh - 46px);
        }

        body.cc-support-mode .sidebar-overlay {
            top: 46px;
        }

        #ccSupportBanner {
            box-sizing: border-box;
        }

        .plot-item {
            aspect-ratio: 1;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            border: 2px solid transparent;
            font-size: 12px;
            font-weight: 600;
        }

        .plot-item:hover {
            transform: scale(1.1);
            z-index: 10;
            box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45);
            background: #fef08a !important;
            color: #713f12 !important;
            border-color: #eab308 !important;
        }

        .plot-item.available {
            background: #dcfce7;
            color: #854d0e;
            border-color: var(--success);
        }

        .plot-item.reserved {
            background: #fef9c3;
            color: #a16207;
            border-color: var(--warning);
        }

        .plot-item.sold {
            background: #fee2e2;
            color: #991b1b;
            border-color: var(--danger);
        }

        .plot-item.hold {
            background: #e2e8f0;
            color: #475569;
            border-color: var(--gray);
        }

        .plot-price {
            font-size: 10px;
            opacity: 0.8;
            margin-top: 2px;
        }

        .plot-item.highlighted {
            transform: scale(1.08);
            z-index: 20;
            background: #fef08a !important;
            color: #713f12 !important;
            border-color: #eab308 !important;
            box-shadow: 0 0 0 3px #eab308, 0 6px 20px rgba(234, 179, 8, 0.45);
        }

        @media (max-width: 768px) {
            .modal {
                height: 100dvh;
                height: 100vh;
            }
            .plot-item.highlighted {
                transform: none;
                box-shadow: 0 0 0 2px #eab308;
            }
        }

        .master-plot.highlighted {
            fill: rgba(230, 57, 70, 0.78) !important;
            stroke: #e63946 !important;
            stroke-width: 3 !important;
            filter: brightness(1.05);
        }

        /* Master Site Plan Map */
        .master-plan-section {
            margin-bottom: 24px;
        }

        .master-plan-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .master-plan-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .master-plan-title i {
            color: var(--primary);
        }

        .master-plan-hint {
            font-size: 12px;
            color: var(--gray);
        }

        .master-plan-wrapper {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            border: 3px solid #cbd5e1;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            background: #f8fafc;
        }

        .master-plan-wrapper.zoomed {
            overflow: auto;
            max-height: 70vh;
        }

        .master-plan-stage {
            position: relative;
            width: 100%;
            line-height: 0;
            aspect-ratio: var(--map-aspect, 512 / 339);
            background: #f1f5f9;
            overflow: hidden;
        }

        .master-plan-stage.zoomed {
            width: 180%;
            min-width: 900px;
        }

        .master-plan-bg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: block;
            /* Must stretch like SVG preserveAspectRatio=none — never letterbox */
            object-fit: fill;
            pointer-events: none;
            user-select: none;
            transition: opacity 0.2s ease;
        }

        /* Hide site map picture; keep layout size + interactive plots */
        .master-plan-wrapper.site-map-hidden .master-plan-stage,
        .editor-canvas-wrap.site-map-hidden .master-plan-stage {
            background: #f1f5f9;
        }
        .master-plan-wrapper.site-map-hidden .master-plan-bg,
        .editor-canvas-wrap.site-map-hidden .master-plan-bg {
            opacity: 0;
            visibility: hidden;
        }
        .site-map-visibility-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px 16px;
            padding: 10px 14px;
            margin-bottom: 10px;
            background: #e8eef8;
            border: 1px solid #c5d4eb;
            border-radius: 10px;
        }
        .map-align-panel {
            margin-bottom: 12px;
            padding: 10px 14px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
        }
        .map-align-panel > summary {
            cursor: pointer;
            font-weight: 700;
            font-size: 13px;
            color: #0f172a;
            list-style: none;
        }
        .map-align-panel > summary::-webkit-details-marker { display: none; }
        .map-align-help {
            margin: 8px 0 10px;
            font-size: 12px;
            color: #64748b;
        }
        .map-align-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 10px;
        }
        .map-align-grid label {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 11px;
            font-weight: 600;
            color: #475569;
        }
        .map-align-grid input {
            width: 100%;
            padding: 6px 8px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 13px;
        }
        .map-align-actions,
        .map-align-nudge,
        .map-align-quick-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            margin-top: 8px;
        }
        .map-align-quick-actions {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px dashed #e2e8f0;
        }
        .map-align-nudge > span {
            font-size: 12px;
            font-weight: 700;
            color: #475569;
            margin-right: 4px;
        }
        .align-wizard-dots {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        .align-wizard-dot {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }
        .align-wizard-dot.active {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary-dark);
        }
        @media (max-width: 700px) {
            .map-align-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        .site-map-visibility-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--primary);
            cursor: pointer;
            user-select: none;
        }
        .site-map-visibility-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            accent-color: var(--primary);
            cursor: pointer;
            flex-shrink: 0;
        }
        .site-map-visibility-hint {
            font-size: 12px;
            color: var(--primary-dark);
            opacity: 0.9;
        }
        .editor-site-map-visibility-bar {
            width: 100%;
            margin: 0 0 12px;
            order: 20;
        }
        .editor-toolbar + .site-map-visibility-bar,
        .editor-toolbar ~ .editor-site-map-visibility-bar {
            display: flex;
        }

        .master-plan-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .master-plan-svg .master-plot {
            pointer-events: all;
        }

        .map-zoom-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 5;
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            background: rgba(255,255,255,0.92);
            color: var(--dark);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .map-zoom-btn:hover {
            background: white;
            color: var(--primary);
        }

        .map-plot-tooltip {
            position: fixed;
            background: rgba(30, 41, 59, 0.95);
            color: white;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            pointer-events: none;
            z-index: 3000;
            display: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            white-space: normal;
            max-width: 280px;
            line-height: 1.45;
        }

        .map-plot-tooltip .tooltip-geo {
            display: block;
            margin-top: 4px;
            font-size: 11px;
            font-weight: 500;
            color: #fcd34d;
            font-family: ui-monospace, 'Cascadia Code', monospace;
        }

        .map-plot-tooltip .tooltip-client,
        .map-plot-tooltip .tooltip-due {
            display: block;
            margin-top: 4px;
            font-size: 11px;
            font-weight: 500;
            color: #dbeafe;
        }

        .map-plot-tooltip .tooltip-overdue {
            display: block;
            margin-top: 4px;
            font-size: 11px;
            font-weight: 600;
            color: #fca5a5;
        }

        .plot-geo-panel {
            background: linear-gradient(135deg, #f0f4fa 0%, #e8eef8 100%);
            border: 1px solid #c5d4eb;
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 16px;
        }

        .geo-coords-main {
            font-family: ui-monospace, 'Cascadia Code', monospace;
            font-size: 15px;
            font-weight: 700;
            color: var(--dark);
            margin: 6px 0 10px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .geo-center-label {
            font-family: Inter, sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: #78716c;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .geo-corners-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.4px;
            margin-bottom: 6px;
        }

        .geo-corners-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }
        .geo-corners-grid-all {
            grid-template-columns: 1fr;
            max-height: 280px;
            overflow-y: auto;
            padding-right: 2px;
        }
        @media (min-width: 520px) {
            .geo-corners-grid-all {
                grid-template-columns: 1fr 1fr;
            }
        }

        .geo-corner-item {
            background: white;
            border-radius: 6px;
            padding: 8px 10px;
            font-size: 11px;
            border: 1px solid #c5d4eb;
        }

        .geo-corner-label {
            display: block;
            font-weight: 700;
            color: var(--primary);
            font-size: 11px;
            margin-bottom: 4px;
        }
        .geo-corner-latlng {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-bottom: 4px;
            font-family: ui-monospace, 'Cascadia Code', monospace;
            font-size: 12px;
            font-weight: 600;
            color: #1c1917;
        }
        .geo-corner-latlng em {
            font-style: normal;
            color: #78716c;
            font-weight: 700;
            margin-right: 6px;
            font-family: Inter, sans-serif;
            font-size: 10px;
            text-transform: uppercase;
        }
        .geo-corner-empty {
            grid-column: 1 / -1;
            font-size: 12px;
            color: #78716c;
            padding: 8px;
        }

        .geo-corner-item code {
            font-family: ui-monospace, 'Cascadia Code', monospace;
            font-size: 10px;
            color: #57534e;
            word-break: break-all;
        }

        .geo-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .geo-actions .btn {
            flex: 1;
            min-width: 120px;
            font-size: 12px;
            padding: 8px 10px;
        }

        .btn-google-maps {
            background: #4285f4;
            color: white;
            border: none;
        }

        .btn-google-maps:hover {
            background: #3367d6;
            color: white;
        }

        .master-plan-header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn-map-scheme {
            font-size: 12px;
            padding: 6px 12px;
            white-space: nowrap;
        }

        .geo-cell code {
            font-size: 11px;
            font-family: ui-monospace, 'Cascadia Code', monospace;
        }

        .map-geo-pin circle {
            fill: #ea4335;
            stroke: #fff;
            stroke-width: 0.8;
            pointer-events: none;
        }

        .geo-calibration-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 12px;
        }

        .map-plot-tooltip.visible {
            display: block;
        }

        .dashboard-map-kpis {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }
        .dashboard-kpi-card {
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 10px;
            padding: 12px 14px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .dashboard-kpi-card .kpi-label {
            font-size: 11px;
            color: var(--gray, #64748b);
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .dashboard-kpi-card .kpi-value {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--dark, #1e293b);
            line-height: 1.2;
        }
        .dashboard-kpi-card.kpi-available { border-left: 3px solid #22c55e; }
        .dashboard-kpi-card.kpi-sold { border-left: 3px solid #ef4444; }
        .dashboard-kpi-card.kpi-value { border-left: 3px solid #3b82f6; }
        .dashboard-kpi-card.kpi-clickable {
            cursor: pointer;
            transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
        }
        .dashboard-kpi-card.kpi-clickable:hover {
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
            transform: translateY(-1px);
        }
        .dashboard-kpi-card.kpi-clickable:focus-visible {
            outline: 2px solid var(--primary, #eab308);
            outline-offset: 2px;
        }
        .dashboard-kpi-card.kpi-clickable.kpi-active {
            box-shadow: 0 0 0 2px var(--primary, #eab308);
            background: rgba(250, 204, 21, 0.04);
        }

        .map-recent-activity {
            font-size: 12px;
            color: var(--gray, #64748b);
            margin-bottom: 10px;
            padding: 8px 12px;
            background: rgba(250, 204, 21, 0.06);
            border-radius: 8px;
            border: 1px solid rgba(250, 204, 21, 0.15);
            display: none;
        }
        .map-recent-activity.visible { display: block; }
        .map-recent-activity strong { color: var(--dark, #1e293b); }

        .map-header-btns {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        .map-action-btn { padding: 6px 10px !important; font-size: 12px !important; }
        .map-action-btn.active { background: var(--primary, #eab308) !important; color: #fff !important; border-color: var(--primary) !important; }

        .map-unit-type-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 12px;
        }
        .map-unit-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: var(--light, #f8fafc);
            border-radius: 999px;
            border: 1px solid rgba(0,0,0,0.06);
        }
        .map-unit-legend-swatch {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }

        .map-pan-viewport {
            overflow: hidden;
            touch-action: pan-y;
            cursor: default;
            min-height: 200px;
        }
        .map-pan-viewport.map-interactive {
            touch-action: none;
            cursor: grab;
        }
        .map-pan-viewport.is-dragging { cursor: grabbing; }
        .map-interaction-overlay {
            position: absolute;
            inset: 0;
            z-index: 7;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(248, 250, 252, 0.35);
            cursor: pointer;
            transition: opacity 0.2s ease;
        }
        .map-interaction-overlay.is-hidden {
            display: none;
        }
        .map-interaction-overlay-inner {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid var(--border-subtle, #e2e8f0);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            font-size: 13px;
            font-weight: 600;
            color: var(--dark);
            pointer-events: none;
        }
        .map-interaction-overlay-inner i {
            color: var(--primary);
        }
        body.client-mode .map-interaction-overlay,
        body.client-mode .map-interaction-btn {
            display: none !important;
        }
        .plot-matcher-details > summary {
            cursor: pointer;
            list-style: none;
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }
        .plot-matcher-details > summary::-webkit-details-marker {
            display: none;
        }
        .plot-matcher-details > summary::after {
            content: '▸';
            margin-left: auto;
            font-size: 12px;
            color: var(--gray);
            transition: transform 0.15s ease;
        }
        .plot-matcher-details[open] > summary::after {
            transform: rotate(90deg);
        }
        .map-pan-canvas {
            transform-origin: 0 0;
            will-change: transform;
        }
        .map-pan-hint {
            position: absolute;
            bottom: 10px;
            left: 10px;
            z-index: 4;
            font-size: 11px;
            color: var(--gray);
            background: rgba(255,255,255,0.9);
            padding: 4px 10px;
            border-radius: 6px;
            pointer-events: none;
            opacity: 0.85;
        }
        .map-zoom-out-btn { top: 46px !important; }

        .map-empty-state {
            position: absolute;
            inset: 0;
            z-index: 6;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 24px;
            background: rgba(248, 250, 252, 0.95);
            gap: 8px;
        }
        .map-empty-state i { font-size: 2rem; color: var(--primary); opacity: 0.7; }
        .map-empty-state p { font-size: 13px; color: var(--gray); max-width: 320px; margin: 0; }

        .map-plot-mini-card {
            position: fixed;
            z-index: 1500;
            width: min(300px, calc(100vw - 24px));
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
            border: 1px solid rgba(15, 23, 42, 0.08);
            overflow: hidden;
        }
        .map-mini-card-img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            background: #e2e8f0;
            display: block;
        }
        .map-mini-card-body { padding: 12px 14px; }
        .map-mini-card-title {
            font-weight: 700;
            font-size: 15px;
            margin-bottom: 4px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }
        .map-mini-heat-badge {
            font-size: 10px;
            font-weight: 800;
            color: #fff;
            padding: 2px 8px;
            border-radius: 999px;
            text-shadow: 0 1px 1px rgba(0,0,0,0.2);
        }
        .map-mini-card-meta {
            font-size: 12px;
            color: var(--gray);
            margin-bottom: 10px;
            line-height: 1.5;
        }
        .map-mini-card-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .map-mini-card-actions .btn {
            flex: 1 1 auto;
            padding: 6px 10px !important;
            font-size: 11px !important;
            min-width: 0;
        }
        .map-mini-card-close {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 50%;
            background: rgba(255,255,255,0.95);
            cursor: pointer;
            z-index: 2;
            box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }
        .plot-status-badge.available { background: #dcfce7; color: #166534; }
        .plot-status-badge.reserved { background: #fef9c3; color: #a16207; }
        .plot-status-badge.sold { background: #fee2e2; color: #991b1b; }
        .plot-status-badge.hold { background: #f1f5f9; color: #475569; }

        .master-plot.map-selected {
            stroke: #2563eb !important;
            stroke-width: 3.5 !important;
            filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.5));
        }
        .plot-item.map-selected {
            outline: 3px solid #2563eb;
            outline-offset: 2px;
        }
        .master-plot.near-dim {
            opacity: 0.2 !important;
        }
        .master-plot.near-highlight {
            stroke: #0ea5e9 !important;
            stroke-width: 3 !important;
        }

        .master-plot {
            cursor: pointer;
            transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
            stroke: rgba(250, 204, 21, 0.5);
            stroke-width: 1;
        }

        .master-plot:hover,
        .master-plot:hover.available,
        .master-plot:hover.reserved,
        .master-plot:hover.sold,
        .master-plot:hover.hold {
            fill: rgba(230, 57, 70, 0.78) !important;
            stroke: #e63946 !important;
            stroke-width: 2.5 !important;
            filter: brightness(1.05);
        }

        .master-plot.available { fill: rgba(34, 197, 94, 0.35); }
        .master-plot.reserved { fill: rgba(253, 224, 71, 0.45); }
        .master-plot.sold { fill: rgba(239, 68, 68, 0.5); }
        .master-plot.hold { fill: rgba(100, 116, 139, 0.4); }

        /* Price heatmap layer */
        .master-plan-wrapper.price-heatmap-active {
            box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.25), 0 8px 28px rgba(15, 23, 42, 0.12);
        }
        .master-plan-wrapper.price-heatmap-active .master-plan-bg {
            filter: saturate(0.88) contrast(1.02);
        }
        .master-plot.price-heat-active {
            transition: fill 0.35s ease, stroke 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
        }
        .master-plot.price-heat-active.price-heat-unavailable {
            opacity: 0.48;
        }
        .master-plan-wrapper.price-heatmap-active .master-plot.price-heat-active:hover {
            filter: brightness(1.12) saturate(1.15) !important;
            stroke-width: 2.8 !important;
        }
        .master-plan-wrapper.price-heatmap-active .master-plot.price-heat-active:hover.available,
        .master-plan-wrapper.price-heatmap-active .master-plot.price-heat-active:hover.reserved,
        .master-plan-wrapper.price-heatmap-active .master-plot.price-heat-active:hover.sold,
        .master-plan-wrapper.price-heatmap-active .master-plot.price-heat-active:hover.hold {
            fill: inherit !important;
            stroke: inherit !important;
        }
        .map-plot-label-heat {
            font-weight: 700;
        }
        .map-heat-price-tag {
            font-size: 7px;
            font-weight: 800;
            fill: #7c2d12;
        }
        .map-heatmap-status-note {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #eab308;
            background: linear-gradient(90deg, #fefce8, #fef9c3);
            border: 1px solid #fcd34d;
            border-radius: 8px;
            padding: 8px 12px;
            margin-bottom: 10px;
        }
        .map-heatmap-status-note i {
            color: #ea580c;
        }
        .layer-toggle-heatmap.active {
            background: linear-gradient(135deg, #eab308, #eab308 55%, #be123c) !important;
            border-color: transparent !important;
            color: #fff !important;
            box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
        }
        .map-price-heatmap-legend {
            margin-bottom: 12px;
            padding: 14px 16px;
            border-radius: 12px;
            background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
        }
        .map-heat-legend-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }
        .map-heat-legend-title {
            font-size: 14px;
            font-weight: 800;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .map-heat-legend-title i {
            color: #ea580c;
        }
        .map-heat-mode-toggle {
            display: inline-flex;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
        }
        .map-heat-mode-btn {
            border: none;
            background: transparent;
            padding: 5px 12px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            color: var(--gray);
            transition: background 0.15s, color 0.15s;
        }
        .map-heat-mode-btn.active {
            background: var(--primary, #eab308);
            color: #fff;
        }
        .map-heat-gradient-bar {
            margin-bottom: 10px;
        }
        .map-heat-gradient-fill {
            height: 14px;
            border-radius: 999px;
            background: linear-gradient(90deg, #eab308 0%, #10b981 25%, #eab308 50%, #f97316 75%, #be123c 100%);
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
        }
        .map-heat-gradient-labels {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            font-weight: 700;
            color: var(--gray);
            margin-top: 4px;
        }
        .map-heat-tier-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }
        .map-heat-tier-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid #e2e8f0;
            color: #334155;
        }
        .map-heat-tier-chip i {
            font-size: 7px;
            color: var(--chip-color, #64748b);
        }
        .map-heat-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            font-size: 11px;
            color: var(--gray);
            margin-bottom: 6px;
        }
        .map-heat-stats strong {
            color: var(--dark);
        }
        .map-heat-legend-hint {
            font-size: 10px;
            color: var(--gray);
        }
        .map-plot-tooltip .tooltip-heat {
            color: #c2410c;
            font-weight: 600;
        }

        .master-plot-label {
            font-size: 9px;
            font-weight: 500;
            fill: #0f172a;
            pointer-events: none;
            text-anchor: middle;
            dominant-baseline: middle;
            paint-order: stroke fill;
            stroke: rgba(255, 255, 255, 0.92);
            stroke-width: 2.5px;
            stroke-linejoin: round;
        }

        .master-road {
            fill: none;
            stroke: #475569;
            stroke-width: 14;
            stroke-linecap: round;
        }

        .master-road-label {
            font-size: 11px;
            fill: #334155;
            font-weight: 700;
            text-anchor: middle;
        }

        .master-block-label {
            font-size: 13px;
            font-weight: 800;
            fill: #1e293b;
            text-anchor: middle;
        }

        .master-estate-label {
            font-size: 16px;
            font-weight: 800;
            fill: #1e293b;
            text-anchor: middle;
        }

        .master-compass {
            font-size: 10px;
            fill: #64748b;
            font-weight: 600;
        }

        /* Interactive Map — mirrors master plan blocks */
        .interactive-map-section {
            border-top: 2px dashed #e2e8f0;
            padding-top: 20px;
        }

        .interactive-map-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--gray);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .interactive-map-label i {
            color: var(--primary);
        }

        .estate-blocks-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

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

        .block-map {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            padding: 12px;
            transition: border-color 0.3s;
        }

        .block-map:hover {
            border-color: var(--primary);
        }

        .block-map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e8f0;
        }

        .block-map-title {
            font-weight: 700;
            font-size: 14px;
            color: var(--dark);
        }

        .block-map-count {
            font-size: 11px;
            color: var(--gray);
            background: var(--light);
            padding: 2px 8px;
            border-radius: 10px;
        }

        .block-plots-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }

        .block-plots-grid .plot-item {
            aspect-ratio: 1.2;
            font-size: 11px;
        }

        /* Enhanced Plot Detail Modal */
        .modal-content.plot-detail-wide {
            max-width: 920px;
        }

        .plot-detail-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .plot-image-carousel {
            position: relative;
        }

        .plot-main-image {
            width: 100%;
            height: 280px;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            background: var(--light);
        }

        .plot-main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .plot-image-label {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background: rgba(0,0,0,0.65);
            color: white;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.9);
            color: var(--dark);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            transition: all 0.2s;
            z-index: 2;
        }

        .carousel-nav:hover {
            background: white;
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-nav.prev { left: 10px; }
        .carousel-nav.next { right: 10px; }

        .plot-thumbnails {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            overflow-x: auto;
        }

        .plot-thumbnail {
            width: 72px;
            height: 54px;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            flex-shrink: 0;
            opacity: 0.6;
            transition: all 0.2s;
        }

        .plot-thumbnail.active {
            border-color: var(--primary);
            opacity: 1;
        }

        .plot-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .plot-status-banner {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 10px;
            margin-bottom: 16px;
        }

        .plot-status-banner.available { background: rgba(34, 197, 94, 0.1); }
        .plot-status-banner.reserved { background: rgba(253, 224, 71, 0.1); }
        .plot-status-banner.sold { background: rgba(239, 68, 68, 0.1); }
        .plot-status-banner.hold { background: rgba(100, 116, 139, 0.1); }

        .plot-status-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            flex-shrink: 0;
        }

        .plot-status-icon.available { background: var(--success); }
        .plot-status-icon.reserved { background: var(--warning); }
        .plot-status-icon.sold { background: var(--danger); }
        .plot-status-icon.hold { background: var(--gray); }

        .plot-price-display {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 16px;
        }

        .plot-specs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 16px;
        }

        .plot-spec-item {
            background: var(--light);
            padding: 12px;
            border-radius: 8px;
            text-align: center;
        }

        .plot-spec-item i {
            color: var(--primary);
            font-size: 18px;
            margin-bottom: 6px;
            display: block;
        }

        .plot-spec-label {
            font-size: 11px;
            color: var(--gray);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .plot-spec-value {
            font-size: 13px;
            font-weight: 700;
            margin-top: 2px;
        }

        .plot-features-section {
            margin-bottom: 16px;
        }

        .plot-features-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .plot-features-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .plot-feature-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            color: var(--dark);
        }

        .plot-feature-badge i {
            color: var(--secondary);
            font-size: 11px;
        }

        @media (max-width: 768px) {
            .plot-detail-layout {
                grid-template-columns: 1fr;
            }

            .estate-blocks-layout {
                grid-template-columns: 1fr;
            }

            .block-plots-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .plot-specs-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* Recent Activities */
        .activity-list {
            list-style: none;
        }

        .activity-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #e2e8f0;
            transition: background 0.2s;
        }

        .activity-item:hover {
            background: var(--light);
            margin: 0 -10px;
            padding-left: 10px;
            padding-right: 10px;
            border-radius: 8px;
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .activity-icon.payment { background: rgba(34, 197, 94, 0.1); color: var(--success); }
        .activity-icon.booking { background: var(--primary-muted); color: var(--primary); }
        .activity-icon.alert { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

        .activity-content {
            flex: 1;
        }

        .activity-title {
            font-weight: 600;
            margin-bottom: 3px;
            font-size: 14px;
        }

        .activity-time {
            font-size: 12px;
            color: var(--gray);
        }

        .activity-amount {
            font-weight: 600;
            color: var(--success);
        }

        /* Clients Table */
        .table-container {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        th {
            background: var(--light);
            font-weight: 600;
            color: var(--gray);
            font-size: 13px;
            text-transform: uppercase;
        }

        tr:hover {
            background: var(--light);
        }

        .client-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .client-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .client-name {
            font-weight: 600;
        }

        .client-email {
            font-size: 13px;
            color: var(--gray);
        }

        .status-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-badge.active {
            background: rgba(250, 204, 21, 0.1);
            color: var(--success);
        }

        .status-badge.pending {
            background: rgba(253, 224, 71, 0.1);
            color: var(--warning);
        }

        .status-badge.overdue {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 4px;
            transition: width 0.5s;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 4000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .modal.active {
            display: flex;
            overflow: hidden;
            overscroll-behavior: none;
        }

        #plotDetailModal {
            z-index: 10050;
        }
        #plotDetailModal.active {
            display: flex !important;
        }
        .map-plot-mini-card {
            z-index: 1500;
        }

        #plotDetailModal .modal-content.plot-detail-wide {
            max-width: min(960px, 96vw);
            width: 96%;
            max-height: min(92vh, 920px);
        }

        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlide 0.3s;
        }

        @keyframes modalSlide {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes plotSheetSlideUp {
            from {
                opacity: 0;
                transform: translateY(100%);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-title {
            font-size: 24px;
            font-weight: 700;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--gray);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .modal-close:hover {
            background: var(--light);
            color: var(--dark);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
        }

        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* Charts Placeholder */
        .chart-container {
            height: 300px;
            background: linear-gradient(180deg, rgba(250, 204, 21, 0.04) 0%, rgba(234, 179, 8, 0.04) 100%);
            border-radius: 8px;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            padding: 20px;
            gap: 10px;
        }

        .chart-bar {
            flex: 1;
            background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 8px 8px 0 0;
            min-height: 40px;
            transition: all 0.3s;
            position: relative;
        }

        .chart-bar:hover {
            opacity: 0.8;
            transform: scaleY(1.05);
        }

        .chart-bar::after {
            content: attr(data-value);
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
            font-weight: 600;
            color: var(--dark);
        }

        /* Analytics dashboard */
        .analytics-dashboard { display: flex; flex-direction: column; gap: 20px; }
        .analytics-kpi-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
        @media (max-width: 1100px) { .analytics-kpi-row { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 600px) { .analytics-kpi-row { grid-template-columns: 1fr; } }
        .analytics-kpi {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 18px 20px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        .analytics-kpi-icon {
            width: 44px; height: 44px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex-shrink: 0;
        }
        .analytics-kpi-icon.green { background: #dcfce7; color: #15803d; }
        .analytics-kpi-icon.amber { background: #fef9c3; color: #eab308; }
        .analytics-kpi-icon.teal { background: #ccfbf1; color: #a16207; }
        .analytics-kpi-icon.slate { background: #f1f5f9; color: #475569; }
        .analytics-kpi-label { font-size: 12px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
        .analytics-kpi-value { font-size: 22px; font-weight: 800; color: var(--dark); margin: 4px 0; }
        .analytics-kpi-trend { font-size: 12px; font-weight: 600; }
        .analytics-kpi-trend.up { color: #16a34a; }
        .analytics-kpi-trend.down { color: #dc2626; }
        .analytics-kpi-trend.neutral { color: var(--gray); }
        .analytics-chart-card { overflow: hidden; }
        .analytics-chart-subtitle { font-size: 13px; color: var(--gray); margin-top: 4px; }
        .analytics-period-pills { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
        .analytics-pill {
            padding: 8px 16px; border: none; background: transparent;
            border-radius: 8px; font-size: 13px; font-weight: 600;
            color: var(--gray); cursor: pointer; transition: all 0.2s;
        }
        .analytics-pill.active { background: white; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
        .analytics-chart-layout {
            display: flex; gap: 12px; padding: 0 20px 20px; min-height: 280px;
        }
        .analytics-y-axis {
            display: flex; flex-direction: column; justify-content: space-between;
            font-size: 11px; color: var(--gray); padding: 20px 0 36px; min-width: 52px; text-align: right;
        }
        .analytics-chart-main { flex: 1; display: flex; flex-direction: column; }
        .chart-container.pro {
            flex: 1; min-height: 220px; background: transparent;
            border: 1px solid #f1f5f9; border-radius: 10px;
            padding: 16px 12px 8px; gap: 6px; align-items: flex-end;
        }
        .chart-bar.pro {
            border-radius: 6px 6px 0 0;
            background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
            box-shadow: 0 -2px 8px rgba(230,57,70,0.15);
            min-width: 0;
        }
        .chart-bar.pro.muted { background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%); box-shadow: none; }
        .chart-bar.pro::after { font-size: 10px; top: -22px; white-space: nowrap; }
        .analytics-x-axis {
            display: flex; justify-content: space-around; padding: 8px 12px 0;
            font-size: 11px; font-weight: 600; color: var(--gray);
        }
        .analytics-x-label { flex: 1; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
        .analytics-secondary-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        @media (max-width: 1000px) { .analytics-secondary-grid { grid-template-columns: 1fr; } }
        .analytics-insight-card { padding-bottom: 8px; }
        .analytics-insight-card .card-title { padding: 16px 20px 0; font-size: 15px; }
        .analytics-insight-body { padding: 16px 20px 20px; }
        .analytics-progress-row { margin-bottom: 14px; }
        .analytics-progress-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
        .analytics-progress-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
        .analytics-progress-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
        .analytics-progress-fill.green { background: linear-gradient(90deg, #16a34a, #22c55e); }
        .analytics-progress-fill.amber { background: linear-gradient(90deg, #d97706, #f59e0b); }
        .analytics-progress-fill.red { background: linear-gradient(90deg, #dc2626, #ef4444); }
        .analytics-progress-fill.blue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
        .analytics-progress-fill.teal { background: linear-gradient(90deg, #eab308, #14b8a6); }
        .analytics-donut-wrap { display: flex; align-items: center; gap: 20px; }
        .analytics-donut {
            width: 100px; height: 100px; border-radius: 50%;
            background: conic-gradient(var(--primary) 0deg, var(--primary) calc(var(--pct) * 3.6deg), #e2e8f0 calc(var(--pct) * 3.6deg));
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .analytics-donut-inner {
            width: 68px; height: 68px; border-radius: 50%; background: white;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; font-weight: 800; color: var(--primary);
        }
        .analytics-legend { flex: 1; }
        .analytics-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
        .analytics-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
        .analytics-client-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
        }
        .analytics-client-row:last-child { border-bottom: none; }
        .analytics-summary-row {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
        }
        @media (max-width: 900px) { .analytics-summary-row { grid-template-columns: 1fr; } }

        /* Document center categories */
        .doc-category-tabs {
            display: flex; flex-wrap: wrap; gap: 8px;
            padding: 0 20px 16px; border-bottom: 1px solid #e2e8f0;
        }
        .doc-category-tab {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 10px 16px; border: 2px solid #e2e8f0; border-radius: 10px;
            background: white; cursor: pointer; font-size: 13px; font-weight: 600;
            color: var(--gray); transition: all 0.2s;
        }
        .doc-category-tab:hover { border-color: var(--primary); color: var(--primary); }
        .doc-category-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
        .doc-category-tab .doc-cat-count {
            background: rgba(0,0,0,0.1); padding: 2px 8px; border-radius: 12px; font-size: 11px;
        }
        .doc-category-tab.active .doc-cat-count { background: rgba(255,255,255,0.25); }
        .doc-center-toolbar {
            display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; align-items: center;
        }
        .doc-category-desc {
            padding: 0 20px 12px; font-size: 13px; color: var(--gray);
        }
        .doc-center-list { padding: 0 20px 20px; }
        .doc-item.sent-to-client { border-left: 3px solid var(--primary); }
        .doc-item-category-badge {
            font-size: 10px; font-weight: 700; text-transform: uppercase;
            padding: 2px 8px; border-radius: 4px; background: #f1f5f9; color: #475569;
        }
        .doc-sent-log-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 10px 12px; background: #f8fafc; border-radius: 8px; margin-bottom: 8px; font-size: 13px;
        }
        .doc-send-via { font-size: 11px; color: var(--gray); }

        /* Notifications */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 10060;
            animation: slideIn 0.3s;
            border-left: 4px solid var(--success);
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .notification.error {
            border-left-color: var(--danger);
        }

        .notification.warning {
            border-left-color: var(--warning);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .plot-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .header {
                flex-direction: column;
                gap: 15px;
            }
            
            .search-box input {
                width: 100%;
            }
            
            .search-box input:focus {
                width: 100%;
            }
        }

        /* Animations */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--success);
            font-weight: 600;
        }

        .live-indicator::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        /* Tabs */
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #e2e8f0;
        }

        .tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            font-weight: 600;
            color: var(--gray);
            transition: all 0.3s;
        }

        .tab:hover {
            color: var(--primary);
        }

        .tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Payment Card */
        .payment-card {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }

        .payment-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        }

        .payment-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .payment-card-number {
            font-size: 24px;
            letter-spacing: 2px;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }

        .payment-card-footer {
            display: flex;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }

        .payment-card-label {
            font-size: 12px;
            opacity: 0.8;
        }

        .payment-card-value {
            font-size: 16px;
            font-weight: 600;
            margin-top: 5px;
        }

        /* Page sections */
        .page-section { display: none; }
        .page-section.active { display: block; animation: fadeIn 0.3s; }

        /* Client view mode */
        body.client-mode .sidebar .nav-item.admin-nav { display: none; }
        body.client-mode .sidebar-auth.admin-nav,
        body.client-mode #sidebarAdminLogoutBtn { display: none !important; }
        body.client-mode .admin-only { display: none !important; }
        body.client-mode .content-grid { grid-template-columns: 1fr; }
        body.client-mode .header { flex-wrap: wrap; gap: 12px; }
        body.client-mode .plot-matcher-card { display: none; }
        body.client-mode:not(.portal-mode) #portalWelcomeBanner,
        body.client-mode:not(.portal-mode) #portalQuickActions,
        body.client-mode:not(.portal-mode) #clientServicesStripWrap,
        body.client-mode:not(.portal-mode) #clientPortalWrap {
            display: none !important;
        }
        @media (min-width: 1025px) {
            body.client-mode .sidebar { width: 280px; transform: none; }
            body.client-mode .main-content { margin-left: 280px; padding: 16px; }
        }

        .view-toggle {
            display: flex;
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
            background: var(--light);
            padding: 3px;
            gap: 3px;
        }
        .view-toggle-btn {
            padding: 8px 16px;
            border: none;
            background: transparent;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray);
            transition: all 0.2s;
        }
        .view-toggle-btn.active {
            background: var(--primary);
            color: white;
            box-shadow: var(--shadow-sm);
        }

        /* Plot toolbar */
        .plot-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            margin-bottom: 16px;
            padding: 14px;
            background: var(--surface);
            border-radius: 12px;
            border: 1px solid var(--border);
        }
        .plot-search-input {
            flex: 1;
            min-width: 180px;
            padding: 10px 14px 10px 38px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
        }
        .plot-search-input:focus { outline: none; border-color: var(--primary); }
        .plot-search-wrap { position: relative; flex: 1; min-width: 180px; }
        .plot-search-wrap i {
            position: absolute; left: 12px; top: 50%;
            transform: translateY(-50%); color: var(--gray);
        }
        .plot-select-wrap {
            position: relative;
            min-width: 220px;
            flex: 1;
            max-width: 320px;
        }
        .plot-select-wrap > i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            pointer-events: none;
            z-index: 1;
        }
        .plot-explorer-select {
            width: 100%;
            padding: 10px 14px 10px 38px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            background: white;
            color: var(--dark);
            cursor: pointer;
            appearance: auto;
        }
        .plot-explorer-select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-muted);
        }
        .plot-filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
        .plot-filter-btn {
            padding: 7px 14px;
            border: 2px solid #e2e8f0;
            border-radius: 20px;
            background: white;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            color: var(--gray);
            transition: all 0.2s;
        }
        .plot-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
        .plot-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

        .plot-status-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
        }

        /* Client / buyer land picker on dashboard */
        .client-land-picker {
            margin-bottom: 20px;
            padding: 18px 20px;
            background: linear-gradient(135deg, rgba(250, 204, 21, 0.08) 0%, rgba(253, 224, 71, 0.04) 100%);
            border: 1px solid rgba(250, 204, 21, 0.25);
            border-radius: 12px;
        }
        .client-land-picker-header h3 {
            margin: 0 0 6px;
            font-size: 1.05rem;
            color: var(--dark, #1e293b);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .client-land-picker-header p {
            margin: 0 0 14px;
            font-size: 0.875rem;
            color: var(--gray, #64748b);
        }

        /* Building / floor navigation for structured project types */
        .project-floor-nav {
            margin-bottom: 16px;
            padding: 14px 16px;
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
        }
        .project-floor-nav-inner {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .project-floor-building-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .project-floor-building-row label {
            font-size: 13px;
            font-weight: 600;
            color: var(--dark, #1e293b);
            white-space: nowrap;
        }
        .project-floor-building-select {
            max-width: 280px;
            min-width: 180px;
            padding: 8px 10px;
            font-size: 13px;
        }
        .project-floor-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .project-land-tabs {
            margin-top: 4px;
        }
        .project-land-tab .land-tab-count {
            opacity: 0.85;
            font-weight: 600;
            font-size: 12px;
        }
        .project-floor-tab {
            padding: 8px 14px;
            border: 1px solid rgba(250, 204, 21, 0.35);
            border-radius: 999px;
            background: #fff;
            color: var(--dark, #1e293b);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        .project-floor-tab:hover {
            background: rgba(250, 204, 21, 0.08);
            border-color: var(--primary, #eab308);
        }
        .project-floor-tab.active {
            background: var(--primary, #eab308);
            border-color: var(--primary, #eab308);
            color: #fff;
        }

        .unit-filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            margin-right: 8px;
        }
        .unit-filter-select,
        .unit-filter-input {
            max-width: 160px;
            min-width: 120px;
            padding: 6px 10px;
            font-size: 12px;
        }
        .land-group-row td {
            border-top: 2px solid rgba(250, 204, 21, 0.2);
        }
        .add-land-structure-hint {
            line-height: 1.5;
        }

        .client-land-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 12px;
        }
        .client-land-card {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            padding: 14px 16px;
            background: #fff;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            cursor: pointer;
            text-align: left;
            transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
        }
        .client-land-card:hover {
            border-color: var(--primary, #eab308);
            box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15);
            transform: translateY(-1px);
        }
        .client-land-card.active {
            border-color: var(--primary, #eab308);
            background: rgba(250, 204, 21, 0.06);
            box-shadow: 0 0 0 1px var(--primary, #eab308);
        }
        .client-land-card-icon {
            color: var(--primary, #eab308);
            font-size: 1.1rem;
            margin-bottom: 2px;
        }
        .client-land-card-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--dark, #1e293b);
        }
        .client-land-card-location {
            font-size: 0.8rem;
            color: var(--gray, #64748b);
        }
        .client-land-card-meta {
            font-size: 0.78rem;
            color: var(--primary, #e63946);
            font-weight: 500;
            margin-top: 4px;
        }
        .client-land-card-thumb {
            width: 100%;
            height: 72px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 6px;
            background: #e2e8f0;
        }
        .client-land-card-thumb-placeholder {
            width: 100%;
            height: 72px;
            border-radius: 6px;
            margin-bottom: 6px;
            background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 1.25rem;
        }
        .client-land-pick-prompt {
            grid-column: 1 / -1;
            margin: 8px 0 0;
            padding: 12px 16px;
            background: #fef9c3;
            border-radius: 8px;
            color: #a16207;
            font-size: 0.875rem;
            text-align: center;
        }
        body.client-mode .client-land-picker {
            border-color: rgba(250, 204, 21, 0.4);
        }
        .status-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .status-chip:hover { border-color: var(--primary); }
        .status-chip.active { border-color: var(--primary); background: var(--primary-muted); }
        .status-chip-count { font-weight: 800; font-size: 16px; }
        .status-chip.available .status-chip-count { color: var(--success); }
        .status-chip.reserved .status-chip-count { color: var(--warning); }
        .status-chip.sold .status-chip-count { color: var(--danger); }
        .status-chip.hold .status-chip-count { color: var(--gray); }

        .master-plot.filtered-out, .plot-item.filtered-out {
            opacity: 0.15;
            pointer-events: none;
        }
        .master-plot.pulse {
            animation: plotPulse 1.2s ease 2;
            stroke: var(--primary) !important;
            stroke-width: 4 !important;
        }
        @keyframes plotPulse {
            0%, 100% { fill-opacity: 0.35; }
            50% { fill-opacity: 0.85; }
        }

        /* Payment calculator */
        .payment-calculator {
            background: linear-gradient(135deg, rgba(250, 204, 21, 0.06), rgba(234, 179, 8, 0.06));
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 16px;
            margin: 16px 0;
        }
        .payment-calc-title {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .payment-calc-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e2e8f0;
            font-size: 13px;
        }
        .payment-calc-row:last-child { border-bottom: none; font-weight: 700; font-size: 15px; color: var(--primary); }
        .payment-calc-row span:last-child { font-weight: 600; }
        .payment-calc-row.emi-next span:last-child { color: var(--primary); }
        .payment-calc-row.emi-overdue span:last-child { color: var(--danger); }

        .payments-due-alerts {
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .payments-due-alert {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 10px;
            font-size: 13px;
            line-height: 1.45;
        }
        .payments-due-alert.overdue {
            background: rgba(220, 38, 38, 0.08);
            border: 1px solid rgba(220, 38, 38, 0.25);
            color: #991b1b;
        }
        .payments-due-alert.due-soon {
            background: rgba(253, 224, 71, 0.1);
            border: 1px solid rgba(253, 224, 71, 0.3);
            color: #a16207;
        }
        .payments-due-alert i { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
        .payments-due-alert strong { display: block; margin-bottom: 2px; }

        .plot-action-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 8px;
        }
        .plot-action-buttons .btn-row {
            display: flex;
            gap: 8px;
        }
        .plot-action-buttons .btn-row .btn { flex: 1; }
        .btn-whatsapp { background: #25d366; color: white; }
        .btn-whatsapp:hover { background: #1da851; }
        .btn-outline {
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary);
        }
        .btn-outline:hover { background: var(--primary-muted); }

        /* Compare bar */
        .compare-bar {
            position: fixed;
            bottom: 0;
            left: 280px;
            right: 0;
            background: var(--surface);
            border-top: 2px solid var(--primary);
            padding: 12px 24px;
            display: none;
            align-items: center;
            gap: 16px;
            z-index: 1500;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        }
        body.client-mode .compare-bar { left: 0; }

        .client-only { display: none !important; }
        body.client-mode .client-only { display: flex !important; }
        body.client-mode .client-only.lang-toggle { display: inline-flex !important; }

        /* Language toggle — visible in admin and client views */
        .app-lang-toggle {
            display: inline-flex !important;
            flex-shrink: 0;
        }

        .client-only-nav { display: none; }
        body.client-mode .client-only-nav { display: block; }

        .lang-toggle {
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            background: white;
        }
        .lang-toggle button {
            padding: 7px 12px;
            border: none;
            background: transparent;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            color: var(--gray);
        }
        .lang-toggle button.active {
            background: var(--primary);
            color: white;
        }

        /* Site Visit Mode */
        .site-visit-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9000;
            background: #fefce8;
            flex-direction: column;
        }
        body.site-visit-active .site-visit-overlay {
            display: flex;
        }
        body.site-visit-active .sidebar,
        body.site-visit-active .main-content {
            display: none !important;
        }
        .site-visit-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            color: white;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
        }
        .site-visit-header h2 {
            flex: 1;
            font-size: 18px;
            margin: 0;
        }
        .site-visit-header button {
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
        }
        .site-visit-toolbar {
            padding: 12px 16px;
            background: white;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        .site-visit-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 16px 24px;
            -webkit-overflow-scrolling: touch;
        }
        .site-visit-card {
            background: white;
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 12px;
            border-left: 5px solid var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .site-visit-card.available { border-left-color: #22c55e; }
        .site-visit-card.reserved { border-left-color: #f59e0b; }
        .site-visit-card.sold { border-left-color: #ef4444; }
        .site-visit-card.hold { border-left-color: #64748b; }
        .site-visit-card-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }
        .site-visit-card-title {
            font-size: 18px;
            font-weight: 800;
            color: var(--dark);
        }
        .site-visit-card-price {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary);
        }
        .site-visit-card-meta {
            font-size: 13px;
            color: var(--gray);
            margin-bottom: 6px;
        }
        .site-visit-card-gps {
            font-family: ui-monospace, monospace;
            font-size: 11px;
            color: #475569;
            margin-bottom: 12px;
        }
        .site-visit-card-dist {
            font-size: 12px;
            font-weight: 600;
            color: #0369a1;
            margin-bottom: 10px;
        }
        .site-visit-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }
        .site-visit-actions .btn {
            padding: 12px 10px;
            font-size: 13px;
            font-weight: 600;
        }
        .site-visit-actions .btn-full {
            grid-column: 1 / -1;
        }
        .site-visit-offline-badge {
            font-size: 11px;
            background: #fef9c3;
            color: #a16207;
            padding: 4px 10px;
            border-radius: 20px;
            font-weight: 600;
        }

        /* Shareable Plot Page */
        .plot-share-page {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10000;
            background: #fefce8;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        body.share-mode .plot-share-page {
            display: block;
        }
        body.share-mode .sidebar,
        body.share-mode .main-content,
        body.share-mode .compare-bar,
        body.share-mode .modal.active {
            display: none !important;
        }
        .share-page-inner {
            max-width: 480px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
            box-shadow: 0 0 40px rgba(0,0,0,0.08);
        }
        .share-hero {
            position: relative;
            height: 220px;
            background: #e2e8f0;
        }
        .share-hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .share-hero-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(250,204,21,0.95);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }
        .share-body {
            padding: 20px;
        }
        .share-title {
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 4px;
        }
        .share-price {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 12px;
        }
        .share-meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 16px;
        }
        .share-meta-item {
            background: #fefce8;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
        }
        .share-meta-label {
            font-size: 10px;
            color: var(--gray);
            text-transform: uppercase;
        }
        .share-meta-value {
            font-size: 14px;
            font-weight: 700;
        }
        .share-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 16px;
        }
        .share-brand {
            text-align: center;
            padding: 16px;
            font-size: 12px;
            color: var(--gray);
            border-top: 1px solid #e2e8f0;
        }
        .share-close-bar {
            position: sticky;
            top: 0;
            z-index: 2;
            background: white;
            padding: 10px 16px;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .crud-actions { display: flex; gap: 4px; flex-wrap: wrap; }
        .btn-crud {
            padding: 4px 8px;
            font-size: 11px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .btn-crud.view { background: #dbeafe; color: #1d4ed8; }
        .btn-crud.edit { background: #fef9c3; color: #eab308; }
        .btn-crud.delete { background: #fee2e2; color: #dc2626; }
        .btn-crud.post { background: #dcfce7; color: #15803d; }
        .btn-crud:hover { opacity: 0.85; }

        .nav-link.hidden-by-perm { display: none !important; }
        .perm-denied-banner {
            background: #fef9c3;
            border: 1px solid #fcd34d;
            color: #a16207;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
            font-size: 13px;
        }
        .client-portal-section {
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .client-portal-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .portal-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: #f8fafc;
            border-radius: 8px;
            margin-bottom: 8px;
            font-size: 13px;
        }
        .portal-item:last-child { margin-bottom: 0; }
        .client-profile-hero {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 55%, var(--primary-dark) 100%);
            color: white;
            border-radius: 14px;
            padding: 24px;
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: center;
        }
        .client-profile-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 800;
            border: 3px solid rgba(255,255,255,0.4);
        }
        .client-profile-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }
        .client-stat-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 14px;
            text-align: center;
        }
        .client-stat-value { font-size: 20px; font-weight: 800; color: var(--primary); }
        .client-stat-label { font-size: 11px; color: var(--gray); text-transform: uppercase; margin-top: 4px; }
        .client-profile-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        @media (max-width: 900px) { .client-profile-grid { grid-template-columns: 1fr; } }
        .client-profile-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
        }
        .client-profile-card h4 {
            margin: 0 0 12px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .client-plot-card {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 10px;
            background: #fafafa;
        }
        .client-plot-card:last-child { margin-bottom: 0; }
        .client-plot-card-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }
        .client-timeline-item {
            border-left: 3px solid var(--primary);
            padding: 8px 12px;
            margin-bottom: 8px;
            background: #f8fafc;
            border-radius: 0 8px 8px 0;
            font-size: 13px;
        }
        .client-dossier-tabs {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 16px;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 10px;
        }
        .client-dossier-tab {
            padding: 8px 14px;
            border: none;
            background: #f1f5f9;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            color: var(--gray);
        }
        .client-dossier-tab.active { background: var(--primary); color: white; }
        .client-dossier-panel { display: none; }
        .client-dossier-panel.active { display: block; }
        .client-login-box {
            max-width: 420px;
            margin: 40px auto;
            padding: 28px;
            background: white;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }
        .clients-filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 0 16px 16px;
            align-items: center;
        }
        .clients-summary-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
            padding: 0 16px 16px;
        }
        .modal-content.client-dossier-wide { max-width: 920px; width: 95%; }
        .settings-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        @media (max-width: 768px) {
            .settings-grid { grid-template-columns: 1fr; }
        }
        .settings-section {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .settings-section h4 {
            margin: 0 0 12px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .inline-edit-input {
            width: 90px;
            padding: 4px 6px;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            font-size: 12px;
        }

        .staff-mgmt-card { margin-top: 0; }

        /* Finance Dashboard */
        .finance-dashboard { display: flex; flex-direction: column; gap: 20px; }
        .finance-compare-chart {
            display: flex;
            align-items: flex-end;
            gap: 10px;
            min-height: 220px;
            padding: 20px;
        }
        .finance-compare-group {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }
        .finance-compare-bars {
            display: flex;
            align-items: flex-end;
            gap: 4px;
            width: 100%;
            height: 180px;
        }
        .finance-bar {
            flex: 1;
            border-radius: 6px 6px 0 0;
            min-height: 4px;
            transition: height 0.3s ease;
            position: relative;
        }
        .finance-bar.income { background: linear-gradient(180deg, #22c55e 0%, #15803d 100%); }
        .finance-bar.expense { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
        .finance-bar.net.positive { background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%); }
        .finance-bar.net.negative { background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%); }
        .finance-compare-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--gray);
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .finance-legend {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            padding: 0 20px 16px;
            font-size: 12px;
            font-weight: 600;
        }
        .finance-legend span { display: inline-flex; align-items: center; gap: 6px; }
        .finance-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
        .finance-legend .inc i { background: #22c55e; }
        .finance-legend .exp i { background: #f59e0b; }
        .finance-category-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .finance-category-bar-wrap {
            flex: 1;
            height: 10px;
            background: #e2e8f0;
            border-radius: 5px;
            overflow: hidden;
        }
        .finance-category-bar {
            height: 100%;
            border-radius: 5px;
            transition: width 0.3s ease;
        }
        .finance-category-label { font-size: 12px; font-weight: 600; min-width: 140px; }
        .finance-category-amt { font-size: 12px; font-weight: 700; min-width: 90px; text-align: right; }
        .finance-running-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
        }
        .finance-running-item:last-child { border-bottom: none; }
        .finance-running-meta { font-size: 11px; color: var(--gray); margin-top: 2px; }
        .finance-pl-row {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
        }
        .finance-pl-row.total { font-weight: 800; border-top: 2px solid #e2e8f0; margin-top: 8px; padding-top: 12px; }
        .finance-pl-row .positive { color: #16a34a; }
        .finance-pl-row .negative { color: #dc2626; }
        .finance-toolbar {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            padding: 0 20px 16px;
            align-items: center;
        }
        .expense-detail-grid { display: flex; flex-direction: column; gap: 0; }
        .expense-detail-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            padding: 10px 0;
            border-bottom: 1px solid #e2e8f0;
            font-size: 14px;
        }
        .expense-detail-row span:first-child { color: var(--gray); min-width: 100px; }
        .expense-form-section {
            background: var(--light, #f8fafc);
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 14px;
        }
        .expense-section-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--dark, #1e293b);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .expense-section-title i { color: var(--primary, #e63946); }
        .expense-section-hint {
            font-size: 12px;
            color: var(--gray, #64748b);
            margin: -6px 0 12px;
            line-height: 1.45;
        }
        .expense-receipt-section { border-color: #fef08a; background: #fefce8; }
        .expense-file-input { padding: 8px; font-size: 13px; }
        .expense-receipt-existing {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            background: #fff;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            margin-bottom: 10px;
            font-size: 13px;
        }
        .expense-receipt-preview {
            font-size: 12px;
            color: var(--gray);
            margin-top: 6px;
        }
        .expense-receipt-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary);
            font-weight: 600;
            font-size: 12px;
            text-decoration: none;
        }
        .expense-receipt-link:hover { text-decoration: underline; }
        .expense-payee-staff {
            font-size: 12px;
            font-weight: 600;
            color: #1d4ed8;
        }
        .expense-payee-meta {
            font-size: 10px;
            color: var(--gray);
            margin-top: 2px;
        }
        .service-admin-bar {
            display: flex;
            gap: 6px;
            justify-content: flex-end;
            margin-bottom: 8px;
        }
        .service-card { position: relative; }
            font-size: 10px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 10px;
            background: #dbeafe;
            color: #1d4ed8;
        }
        .system-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .system-info-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 14px;
        }
        .system-info-card .label { font-size: 11px; color: var(--gray); font-weight: 600; text-transform: uppercase; }
        .system-info-card .value { font-size: 18px; font-weight: 800; margin-top: 4px; }

        .settings-tabs {
            display: flex;
            gap: 6px;
            padding: 0 20px 16px;
            border-bottom: 1px solid #e2e8f0;
            flex-wrap: wrap;
        }
        .settings-tab-btn {
            padding: 8px 16px;
            border: 1px solid #e2e8f0;
            background: white;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            color: var(--gray);
        }
        .settings-tab-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        .settings-tab-panel { display: none; padding: 20px; }
        .settings-tab-panel.active { display: block; }

        .dept-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
        }
        .dept-badge.sales { background: #dcfce7; color: #15803d; }
        .dept-badge.finance { background: #fef9c3; color: #eab308; }
        .dept-badge.legal { background: #e0e7ff; color: #4338ca; }
        .dept-badge.survey { background: #cffafe; color: #0e7490; }
        .dept-badge.operations { background: #f3e8ff; color: #7e22ce; }
        .dept-badge.it { background: #f1f5f9; color: #475569; }
        .dept-badge.management { background: #fee2e2; color: #b91c1c; }
        .dept-badge.customer { background: #ffedd5; color: #c2410c; }

        .role-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 4px;
            background: #f1f5f9;
            color: #475569;
            text-transform: uppercase;
        }
        .role-badge.super_admin { background: #1e293b; color: white; }
        .role-badge.dept_manager { background: #16a34a; color: white; }

        .perm-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 8px;
            margin-top: 10px;
        }
        .perm-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            padding: 6px 10px;
            background: #f8fafc;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
        }
        .perm-chip input { accent-color: var(--primary); }
        .staff-status-active { color: #facc15; font-weight: 600; }
        .staff-status-inactive { color: #94a3b8; }

        .staff-switch-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .staff-switch-item:hover { border-color: var(--primary); background: #fefce8; }
        .staff-switch-item.current { border-color: var(--primary); background: var(--primary-muted); }

        .workflow-step {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: #f8fafc;
            border-radius: 8px;
            margin-bottom: 8px;
            font-size: 13px;
        }

        .compare-bar.visible { display: flex; }
        .compare-slots { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
        .compare-slot {
            padding: 8px 14px;
            background: var(--light);
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .compare-slot button {
            background: none; border: none; color: var(--danger);
            cursor: pointer; font-size: 14px;
        }
        .compare-slot.empty { color: var(--gray); font-weight: 400; border: 2px dashed #e2e8f0; }

        /* Booking wizard */
        .wizard-steps {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
        }
        .wizard-step {
            flex: 1;
            text-align: center;
            padding: 10px;
            border-radius: 8px;
            background: var(--light);
            font-size: 12px;
            font-weight: 600;
            color: var(--gray);
        }
        .wizard-step.active { background: var(--primary); color: white; }
        .wizard-step.done { background: var(--secondary); color: white; }
        .wizard-panel { display: none; }
        .wizard-panel.active { display: block; }

        /* Plot management table */
        .mgmt-table-actions { display: flex; gap: 8px; }
        .status-select {
            padding: 4px 8px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            font-size: 12px;
            font-weight: 600;
        }

        /* Plot Layout Editor */
        .mgmt-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 0;
        }
        .mgmt-tab {
            padding: 10px 20px;
            border: none;
            background: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            color: var(--gray);
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
        }
        .mgmt-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
        .mgmt-panel { display: none; }
        .mgmt-panel.active { display: block; }

        .land-page-header {
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e2e8f0;
        }
        .land-page-header h2 {
            margin: 0 0 6px;
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--dark);
        }
        .land-page-header p {
            margin: 0;
            font-size: 14px;
            color: var(--gray);
            max-width: 720px;
        }

        .land-mgmt-filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 0 0 14px;
            align-items: center;
        }
        .land-mgmt-search-wrap {
            position: relative;
            flex: 1;
            min-width: 200px;
            max-width: 360px;
        }
        .land-mgmt-search-wrap i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
            font-size: 13px;
        }
        .land-mgmt-search-wrap input {
            padding-left: 36px;
            width: 100%;
        }
        .land-mgmt-filter-select {
            max-width: 180px;
        }
        .land-bulk-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            margin-bottom: 12px;
            background: #fef9c3;
            border: 1px solid #a7f3d0;
            border-radius: 10px;
            font-size: 13px;
        }
        .land-bulk-bar #landBulkCount {
            font-weight: 700;
            color: var(--primary);
            min-width: 90px;
        }
        .land-health-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }
        .land-health-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid transparent;
        }
        .land-health-chip.ok {
            background: #fef9c3;
            color: #047857;
            border-color: #a7f3d0;
        }
        .land-health-chip.warn {
            background: #fefce8;
            color: #eab308;
            border-color: #fcd34d;
        }
        .land-health-chip.miss {
            background: #fef2f2;
            color: #b91c1c;
            border-color: #fecaca;
        }
        .land-ready-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 999px;
            background: #dbeafe;
            color: #1d4ed8;
            margin-left: 6px;
        }
        .land-target-warn {
            font-size: 11px;
            color: #eab308;
            margin-top: 4px;
        }
        .land-mini-map-wrap {
            margin-bottom: 14px;
            border-radius: 10px;
            overflow: hidden;
            border: 2px solid #e2e8f0;
            max-width: 320px;
            position: relative;
            background: #f8fafc;
        }
        .land-mini-map-wrap img {
            width: 100%;
            height: auto;
            display: block;
            max-height: 140px;
            object-fit: contain;
        }
        .land-mini-map-label {
            display: block;
            font-size: 11px;
            padding: 6px 10px;
            background: rgba(255,255,255,0.95);
            color: var(--gray);
            border-top: 1px solid #e2e8f0;
        }
        .land-plots-panel-layout {
            display: grid;
            grid-template-columns: minmax(200px, 320px) 1fr;
            gap: 16px;
            align-items: start;
        }
        @media (max-width: 900px) {
            .land-plots-panel-layout {
                grid-template-columns: 1fr;
            }
        }
        .land-plot-check {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }
        .editor-gps-panel {
            margin-top: 8px;
            margin-bottom: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            background: #f8fafc;
        }
        .editor-gps-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border: none;
            background: transparent;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
        }
        .editor-gps-toggle .editor-chevron {
            margin-left: auto;
            font-size: 11px;
            color: var(--gray);
            transition: transform 0.15s;
        }
        .editor-gps-panel.is-open .editor-gps-toggle .editor-chevron {
            transform: rotate(180deg);
        }
        .editor-gps-status {
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 999px;
            margin-left: 4px;
        }
        .editor-gps-status.is-ok { background: #ecfdf5; color: #047857; }
        .editor-gps-status.is-warn { background: #fefce8; color: #eab308; }
        .editor-gps-body {
            padding: 0 14px 14px;
            border-top: 1px solid #e2e8f0;
        }
        .editor-gps-desc {
            font-size: 12px;
            color: var(--gray);
            margin: 10px 0 12px;
        }
        .editor-gps-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }
        .editor-shortcuts-popover {
            position: relative;
            z-index: 5;
            margin-bottom: 12px;
            padding: 12px 16px;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            font-size: 12px;
        }
        .editor-shortcuts-popover ul {
            margin: 8px 0 0;
            padding-left: 18px;
        }
        .editor-shortcuts-popover kbd {
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 1px 5px;
            font-size: 11px;
        }

        .layout-editor {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 260px;
            gap: 16px;
            align-items: stretch;
            margin-bottom: 16px;
        }
        .editor-canvas-wrap {
            position: relative;
            border: 3px solid var(--primary);
            border-radius: 12px;
            overflow: auto;
            background: #f8fafc;
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
            min-height: clamp(440px, 68vh, 780px);
            height: clamp(440px, 68vh, 780px);
        }
        .editor-canvas-wrap .master-plan-stage {
            position: relative;
            width: 100%;
            min-height: 100%;
            aspect-ratio: var(--map-aspect, 512 / 339);
            line-height: 0;
            background: #e2e8f0;
            overflow: hidden;
        }
        .editor-canvas-wrap .master-plan-bg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: fill;
            display: block;
            pointer-events: none;
            user-select: none;
            background: #fff;
        }
        .editor-canvas-wrap .editor-plan-svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
        }
        .editor-canvas-wrap:not(.tool-select) {
            box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.15), 0 8px 24px rgba(196, 30, 58, 0.12);
            border-color: #e11d48;
        }
        .editor-canvas-wrap.has-selection {
            box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2), 0 10px 28px rgba(15, 23, 42, 0.1);
        }
        .editor-canvas-wrap .master-plan-stage { cursor: crosshair; }
        .editor-canvas-wrap.tool-select .master-plan-stage { cursor: default; }
        .editor-canvas-wrap.tool-polygon .master-plan-stage { cursor: crosshair; }

        .editor-polygon-preview-line {
            fill: none;
            stroke: var(--primary);
            stroke-width: 2;
            stroke-dasharray: 6 4;
            pointer-events: none;
        }
        .editor-polygon-preview-fill {
            fill: rgba(196, 30, 58, 0.15);
            stroke: var(--primary);
            stroke-width: 1.5;
            pointer-events: none;
        }
        .editor-polygon-preview-vertex {
            fill: #fff;
            stroke: var(--primary);
            stroke-width: 2;
            pointer-events: none;
        }
        .editor-polygon-preview-vertex.first {
            fill: var(--primary);
            stroke: #fff;
        }

        .editor-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 12px;
            background: var(--dark);
            border-radius: 10px;
            margin-bottom: 16px;
        }
        .editor-header-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }
        .editor-save-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            padding: 12px 14px;
            margin-bottom: 16px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 13px;
        }
        .editor-save-bar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .layout-save-status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }
        .layout-save-status.is-saved { color: #eab308; }
        .layout-save-status.is-dirty { color: #eab308; }
        .layout-save-status.is-saving { color: #0369a1; }
        .layout-save-status.is-error { color: #b91c1c; }
        .editor-save-bar .btn-success {
            flex-shrink: 0;
            font-weight: 600;
        }
        .editor-tool-btn {
            padding: 8px 14px;
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            background: rgba(255,255,255,0.08);
            color: white;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .editor-tool-btn:hover { background: rgba(255,255,255,0.15); }
        .editor-tool-btn.active { background: var(--primary); border-color: var(--primary); }
        .editor-tool-btn.danger { border-color: var(--danger); }
        .editor-tool-btn.danger:hover { background: var(--danger); }
        .editor-tool-btn.success { border-color: var(--secondary); }
        .editor-tool-btn.success:hover { background: var(--secondary); }

        .editor-plan-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
        .editor-plan-svg defs { pointer-events: none; }

        /* Layout editor motion */
        @keyframes editorItemEnter {
            0% { opacity: 0; transform: scale(0.82); }
            70% { transform: scale(1.03); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes editorSpawnPop {
            0% { opacity: 0; transform: scale(0.5); }
            55% { transform: scale(1.08); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes editorSelectRing {
            0% { stroke-opacity: 0.25; stroke-width: 1; }
            50% { stroke-opacity: 0.95; stroke-width: 3.5; }
            100% { stroke-opacity: 0.55; stroke-width: 2.5; }
        }
        @keyframes editorSelectGlow {
            0% { filter: brightness(1); }
            40% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(196, 30, 58, 0.55)); }
            100% { filter: brightness(1.12) drop-shadow(0 0 4px rgba(196, 30, 58, 0.35)); }
        }
        @keyframes editorPreviewPulse {
            0%, 100% { fill-opacity: 0.28; }
            50% { fill-opacity: 0.48; }
        }
        @keyframes editorPreviewMarch {
            to { stroke-dashoffset: -18; }
        }
        @keyframes editorHandlePop {
            0% { opacity: 0; transform: scale(0); }
            70% { transform: scale(1.15); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes editorDragLift {
            0% { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
            100% { filter: drop-shadow(0 6px 14px rgba(196, 30, 58, 0.35)); }
        }

        .editor-plot-group,
        .editor-feature-group {
            transform-box: fill-box;
            transform-origin: center;
            transition: opacity 0.28s ease, filter 0.22s ease;
        }
        .editor-canvas-wrap.editor-entrance .editor-plot-group,
        .editor-canvas-wrap.editor-entrance .editor-feature-group {
            animation: editorItemEnter 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
        }
        .editor-plot-group.spawn,
        .editor-feature-group.spawn {
            animation: editorSpawnPop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both !important;
        }
        .editor-canvas-wrap.has-selection:not(.is-interacting) .editor-plot-group:not(.selected):not(.hover),
        .editor-canvas-wrap.has-selection:not(.is-interacting) .editor-feature-group:not(.selected):not(.hover) {
            opacity: 0.58;
        }
        .editor-plot-group.hover,
        .editor-feature-group.hover {
            opacity: 1 !important;
        }
        .editor-plot-group.dragging,
        .editor-feature-group.dragging {
            animation: editorDragLift 0.2s ease forwards;
            opacity: 1 !important;
        }

        .editor-selection-halo {
            fill: none;
            stroke: var(--primary);
            stroke-width: 2;
            stroke-dasharray: 5 4;
            pointer-events: none;
            animation: editorSelectRing 1.6s ease-in-out infinite;
        }
        .editor-feature-group .editor-selection-halo {
            stroke: #0ea5e9;
        }

        .editor-plot {
            cursor: move;
            stroke: rgba(255,255,255,0.85);
            stroke-width: 1.5;
            fill: rgba(250, 204, 21, 0.4);
            transition: fill 0.25s ease, stroke 0.25s ease, stroke-width 0.2s ease, filter 0.25s ease;
        }
        .editor-plot-group:hover .editor-plot,
        .editor-plot-group.hover .editor-plot {
            fill: rgba(230, 57, 70, 0.72) !important;
            stroke: #e63946 !important;
            stroke-width: 2.5;
            filter: brightness(1.08) drop-shadow(0 0 4px rgba(234, 179, 8, 0.45));
        }
        .editor-plot-group.selected .editor-plot {
            stroke: var(--primary);
            stroke-width: 3;
            fill: rgba(196, 30, 58, 0.48);
            animation: editorSelectGlow 0.4s ease forwards;
        }
        .editor-plot.available { fill: rgba(34, 197, 94, 0.48); }
        .editor-plot.reserved { fill: rgba(253, 224, 71, 0.52); }
        .editor-plot.sold { fill: rgba(239, 68, 68, 0.58); }
        .editor-plot.hold { fill: rgba(100, 116, 139, 0.48); }

        .editor-preview {
            fill: rgba(196, 30, 58, 0.32);
            stroke: var(--primary);
            stroke-width: 2.5;
            stroke-dasharray: 8 5;
            stroke-dashoffset: 0;
            pointer-events: none;
            animation: editorPreviewPulse 1.2s ease-in-out infinite, editorPreviewMarch 0.7s linear infinite;
        }
        .editor-preview.feature-preview {
            animation: editorPreviewPulse 1s ease-in-out infinite, editorPreviewMarch 0.55s linear infinite;
        }

        .editor-canvas-wrap.editor-paste-mode,
        .editor-canvas-wrap.editor-paste-mode .editor-plan-svg {
            cursor: crosshair;
        }
        .editor-paste-ghost .editor-plot,
        .editor-plot.paste-ghost {
            fill: rgba(196, 30, 58, 0.28) !important;
            stroke: var(--primary);
            stroke-width: 2.5;
            stroke-dasharray: 8 5;
            pointer-events: none;
            opacity: 0.85;
        }
        .editor-clipboard-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: 12px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            color: var(--primary);
            background: rgba(196, 30, 58, 0.08);
            border: 1px solid rgba(196, 30, 58, 0.18);
        }
        #editorPasteModeBtn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        #editorPasteModeBtn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .editor-handle {
            fill: white;
            stroke: var(--primary);
            stroke-width: 2;
            cursor: pointer;
            transform-box: fill-box;
            transform-origin: center;
            transition: transform 0.15s ease, fill 0.15s ease;
            animation: editorHandlePop 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
        }
        .editor-handle:nth-child(1) { animation-delay: 0.02s; }
        .editor-handle:nth-child(2) { animation-delay: 0.05s; }
        .editor-handle:nth-child(3) { animation-delay: 0.08s; }
        .editor-handle:nth-child(4) { animation-delay: 0.11s; }
        .editor-handle:nth-child(5) { animation-delay: 0.14s; }
        .editor-handle:hover { transform: scale(1.25); fill: #fff7ed; }
        .editor-handle.rotate { fill: var(--primary); cursor: grab; }
        .editor-handle.rotate:active { cursor: grabbing; }

        .editor-plot-label {
            font-size: 8px;
            font-weight: 500;
            fill: #0f172a;
            pointer-events: none;
            text-anchor: middle;
            dominant-baseline: middle;
            transition: opacity 0.2s ease, font-size 0.2s ease;
            paint-order: stroke fill;
            stroke: rgba(255, 255, 255, 0.92);
            stroke-width: 2px;
            stroke-linejoin: round;
        }
        .editor-plot-group.selected .editor-plot-label,
        .editor-plot-group.hover .editor-plot-label {
            font-size: 8.5px;
        }

        .editor-props {
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
            position: sticky;
            top: 20px;
            max-height: clamp(440px, 68vh, 780px);
            overflow-y: auto;
            align-self: start;
        }
        .editor-props-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e2e8f0;
        }
        .editor-props-empty {
            color: var(--gray);
            font-size: 13px;
            text-align: center;
            padding: 30px 10px;
        }
        .prop-field { margin-bottom: 12px; }
        .prop-field label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: var(--gray);
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .prop-field input, .prop-field select {
            width: 100%;
            padding: 8px 10px;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            font-size: 13px;
        }
        .prop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

        .editor-check-list {
            max-height: 140px;
            overflow-y: auto;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px;
            background: #f8fafc;
        }
        .editor-check-row {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 12px;
            padding: 4px 0;
            cursor: pointer;
        }
        .editor-check-row input { margin-top: 2px; flex-shrink: 0; }
        .editor-photo-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 10px;
        }
        .editor-photo-thumb {
            position: relative;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid #e2e8f0;
            background: #f1f5f9;
        }
        .editor-photo-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .editor-photo-remove {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 22px;
            height: 22px;
            border: none;
            border-radius: 50%;
            background: rgba(220, 38, 38, 0.9);
            color: white;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .editor-photo-empty {
            grid-column: 1 / -1;
            font-size: 12px;
            color: var(--gray);
            text-align: center;
            padding: 16px 8px;
            border: 2px dashed #e2e8f0;
            border-radius: 8px;
        }
        .editor-photo-upload-btn {
            width: 100%;
            justify-content: center;
            cursor: pointer;
            margin: 0;
        }
        .editor-photo-upload-btn input { display: none; }

        .editor-link-btn {
            border: none;
            background: none;
            color: var(--primary);
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            padding: 0;
            text-decoration: underline;
        }
        .editor-canvas-wrap.plan-canvas-mode {
            outline: 3px dashed var(--primary);
            outline-offset: 4px;
            border-radius: 12px;
        }
        .editor-canvas-wrap.plan-canvas-mode::after {
            content: 'Plan canvas — draw your plot on the site map';
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(250, 204, 21, 0.92);
            color: white;
            font-size: 12px;
            font-weight: 700;
            padding: 6px 14px;
            border-radius: 20px;
            pointer-events: none;
            z-index: 5;
            white-space: nowrap;
        }

        .land-mgmt-table .land-row { cursor: pointer; transition: background 0.15s; }
        .land-mgmt-table .land-row:hover { background: #fefce8; }
        .land-mgmt-table .land-row-active { background: #fef9c3; }
        .land-expand-cell { width: 36px; text-align: center; color: var(--primary); }
        .land-expand-icon { font-size: 12px; }
        .land-active-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            background: var(--primary);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 6px;
            vertical-align: middle;
        }
        .land-plots-row td { padding: 0 !important; background: #f8fafc; border-top: none; }
        .land-plots-panel { padding: 12px 16px 16px 48px; }
        .land-plots-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 13px;
        }
        .land-plots-nested-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }
        .land-plots-nested-table th {
            background: #f1f5f9;
            padding: 8px 10px;
            text-align: left;
            font-size: 11px;
            text-transform: uppercase;
            color: var(--gray);
        }
        .land-plots-nested-table td { padding: 8px 10px; border-top: 1px solid #f1f5f9; }
        .land-plots-empty { font-size: 13px; color: var(--gray); margin: 8px 0; }
        .land-detail-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
            padding: 12px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
        }
        .land-detail-item span {
            display: block;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--gray);
            margin-bottom: 2px;
        }
        .land-detail-item strong, .land-detail-item code { font-size: 12px; }

        .editor-hint {
            font-size: 12px;
            color: var(--gray);
            margin-bottom: 12px;
            padding: 10px;
            background: var(--light);
            border-radius: 8px;
            line-height: 1.5;
        }

        .editor-toolbar-group {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            padding-right: 12px;
            margin-right: 8px;
            border-right: 1px solid rgba(255,255,255,0.2);
        }
        .editor-toolbar-label {
            font-size: 10px;
            font-weight: 700;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-right: 4px;
        }

        .editor-size-badge {
            position: absolute;
            z-index: 10;
            background: rgba(30, 41, 59, 0.92);
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            pointer-events: none;
            display: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            white-space: nowrap;
        }
        .editor-size-badge.visible { display: block; }
        .editor-size-badge .sqm-value { color: #4ade80; font-size: 15px; }

        .live-sqm-display {
            background: linear-gradient(135deg, rgba(161,98,7,0.12), rgba(250,204,21,0.08));
            border: 2px solid var(--secondary);
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 14px;
            text-align: center;
        }
        .live-sqm-value {
            font-size: 28px;
            font-weight: 800;
            color: var(--secondary);
        }
        .live-sqm-label {
            font-size: 11px;
            color: var(--gray);
            text-transform: uppercase;
            font-weight: 600;
            margin-top: 2px;
        }

        .editor-feature {
            cursor: move;
            stroke-width: 2;
            opacity: 0.88;
            transition: opacity 0.25s ease, stroke-width 0.2s ease, filter 0.25s ease;
        }
        .editor-feature-group:hover .editor-feature,
        .editor-feature-group.hover .editor-feature {
            opacity: 1;
            stroke-width: 2.5;
            filter: brightness(1.12) drop-shadow(0 1px 4px rgba(0,0,0,0.2));
        }
        .editor-feature-group.selected .editor-feature {
            stroke: var(--primary) !important;
            stroke-width: 3 !important;
            opacity: 1;
            filter: brightness(1.18) drop-shadow(0 0 5px rgba(14, 165, 233, 0.45));
            animation: editorSelectGlow 0.4s ease forwards;
        }
        .editor-feature-group[data-feature-type="road"] .editor-feature { opacity: 0.92; }
        .editor-feature-group[data-feature-type="pool"]:hover .editor-feature,
        .editor-feature-group[data-feature-type="pool"].hover .editor-feature {
            filter: brightness(1.2) drop-shadow(0 0 6px rgba(14, 165, 233, 0.55));
        }
        .editor-feature-group[data-feature-type="garden"]:hover .editor-feature,
        .editor-feature-group[data-feature-type="park"]:hover .editor-feature,
        .editor-feature-group[data-feature-type="garden"].hover .editor-feature,
        .editor-feature-group[data-feature-type="park"].hover .editor-feature {
            filter: brightness(1.15) drop-shadow(0 0 5px rgba(250, 204, 21, 0.45));
        }
        .editor-feature-group[data-feature-type="entrance"]:hover .editor-feature,
        .editor-feature-group[data-feature-type="entrance"].hover .editor-feature {
            filter: brightness(1.2) drop-shadow(0 0 6px rgba(253, 224, 71, 0.5));
        }
        .editor-feature-label {
            font-size: 7px;
            font-weight: 700;
            fill: white;
            pointer-events: none;
            text-anchor: middle;
            transition: opacity 0.2s ease;
            paint-order: stroke;
            stroke: rgba(15, 23, 42, 0.5);
            stroke-width: 0.35px;
        }
        .editor-feature-group.selected .editor-feature-label {
            font-size: 7.5px;
        }
        .map-feature {
            pointer-events: none;
            opacity: 0.8;
            transition: opacity 0.3s ease, filter 0.3s ease;
        }
        .map-feature-label {
            font-size: 7px;
            font-weight: 700;
            fill: #1e293b;
            pointer-events: none;
            text-anchor: middle;
        }

        @media (max-width: 1024px) {
            .layout-editor { grid-template-columns: 1fr; }
            .editor-props { position: static; max-height: none; }
            .editor-canvas-wrap {
                min-height: clamp(360px, 55vh, 640px);
                height: clamp(360px, 55vh, 640px);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .editor-plot-group,
            .editor-feature-group,
            .editor-plot,
            .editor-feature,
            .editor-preview,
            .editor-handle,
            .editor-selection-halo {
                animation: none !important;
                transition: none !important;
            }
        }

        /* Mobile plot detail bottom sheet — no page shift */
        @media (max-width: 768px) {
            @keyframes plotSheetSlide {
                from { opacity: 0; transform: translateY(100%); }
                to { opacity: 1; transform: translateY(0); }
            }
            #plotDetailModal {
                align-items: flex-end;
                justify-content: center;
                padding: 0;
                touch-action: none;
            }
            #plotDetailModal .modal-content.plot-detail-wide {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
                border-radius: 16px 16px 0 0;
                position: relative;
                bottom: auto;
                left: auto;
                right: auto;
                max-height: min(85dvh, 85vh);
                overflow-y: auto;
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
                touch-action: pan-y;
                animation: plotSheetSlide 0.3s cubic-bezier(0.32, 0.72, 0, 1);
                box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
            }
            #plotDetailModal .modal-header {
                margin-bottom: 12px;
                position: sticky;
                top: 0;
                background: white;
                z-index: 2;
                padding-bottom: 8px;
            }
            #plotDetailModal .modal-title {
                font-size: 17px;
                line-height: 1.3;
                padding-right: 8px;
            }
            #plotDetailModal .plot-main-image {
                height: 150px;
            }
            #plotDetailModal .plot-detail-layout {
                gap: 12px;
            }
            #plotDetailModal .plot-price-display {
                font-size: 20px;
            }
            #plotDetailModal .plot-action-buttons .btn {
                padding: 12px;
            }
            .plot-toolbar { flex-direction: column; align-items: stretch; }
            .compare-bar { flex-wrap: wrap; left: 0; }
        }

        /* Plot DNA badges */
        .plot-dna-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
        .dna-badge {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
            background: white; border: 1px solid #e2e8f0;
        }
        .dna-badge i { font-size: 11px; }
        .dna-badge.corner { border-color: #f59e0b; color: #eab308; background: rgba(245,158,11,0.08); }
        .dna-badge.road { border-color: #64748b; color: #475569; }
        .dna-badge.park { border-color: #22c55e; color: #15803d; background: rgba(34,197,94,0.08); }
        .dna-badge.quiet { border-color: #8b5cf6; color: #6d28d9; background: rgba(139,92,246,0.08); }
        .dna-badge.sun { border-color: #f97316; color: #c2410c; background: rgba(249,115,22,0.08); }
        .dna-badge.premium { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-muted); }

        /* Social proof */
        .social-proof {
            display: flex; align-items: center; gap: 8px;
            padding: 10px 14px; background: rgba(250,204,21,0.08);
            border: 1px solid rgba(250,204,21,0.25); border-radius: 8px;
            font-size: 13px; color: #eab308; margin-bottom: 12px;
        }
        .social-proof i { color: var(--success); }

        /* Document vault */
        .doc-vault { margin: 16px 0; }
        .doc-vault-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
        .doc-list { display: flex; flex-direction: column; gap: 8px; }
        .doc-item {
            display: flex; align-items: center; gap: 12px; padding: 10px 12px;
            background: var(--light); border-radius: 8px; border: 1px solid #e2e8f0;
        }
        .doc-item i.doc-icon { font-size: 20px; color: var(--primary); width: 28px; text-align: center; }
        .doc-item-info { flex: 1; min-width: 0; }
        .doc-item-name { font-weight: 600; font-size: 13px; }
        .doc-item-meta { font-size: 11px; color: var(--gray); }
        .doc-upload-zone {
            border: 2px dashed #cbd5e1; border-radius: 8px; padding: 16px;
            text-align: center; font-size: 13px; color: var(--gray); cursor: pointer;
            margin-top: 10px; transition: all 0.2s;
        }
        .doc-upload-zone:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-muted); }

        /* Map layers panel */
        .map-layers-panel {
            display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
            padding: 10px 14px; background: #f8fafc; border-radius: 8px;
            border: 1px solid #e2e8f0; margin-bottom: 12px;
        }
        .map-layers-label { font-size: 12px; font-weight: 700; color: var(--gray); margin-right: 4px; }
        .layer-toggle {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
            border: 1px solid #e2e8f0; background: white; cursor: pointer; transition: all 0.2s;
        }
        .layer-toggle.active { background: var(--primary); color: white; border-color: var(--primary); }
        .layer-toggle input { display: none; }

        /* Favorites */
        .fav-btn {
            background: none; border: none; cursor: pointer; font-size: 22px;
            color: #cbd5e1; transition: all 0.2s; padding: 4px;
        }
        .fav-btn.active { color: #ef4444; }
        .fav-btn:hover { transform: scale(1.1); }
        .favorites-bar {
            display: none; align-items: center; gap: 10px; flex-wrap: wrap;
            padding: 10px 16px; background: rgba(239,68,68,0.06);
            border: 1px solid rgba(239,68,68,0.2); border-radius: 8px; margin-bottom: 12px;
        }
        .favorites-bar.visible { display: flex; }
        .fav-chip {
            padding: 5px 12px; background: white; border-radius: 16px;
            font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #fecaca;
        }
        .fav-chip:hover { background: #fef2f2; }
        .plot-item.favorited::after, .master-plot.favorited { outline: 2px solid #ef4444; }

        /* Services hub */
        .services-hero {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 45%, var(--primary) 100%);
            color: white; border-radius: 16px; padding: 28px 24px; margin-bottom: 20px;
            position: relative; overflow: hidden;
        }
        .services-hero::after {
            content: ''; position: absolute; right: -40px; top: -40px;
            width: 200px; height: 200px; border-radius: 50%;
            background: rgba(255,255,255,0.06);
        }
        .services-hero h2 { font-size: 22px; margin-bottom: 8px; position: relative; z-index: 1; }
        .services-hero p { font-size: 14px; opacity: 0.9; max-width: 560px; position: relative; z-index: 1; }
        .gov-trust-strip {
            display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
            background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
            border-radius: 12px; padding: 14px 18px; margin-top: 18px; position: relative; z-index: 1;
        }
        .gov-badge {
            display: inline-flex; align-items: center; gap: 8px;
            background: #fef9c3; color: #a16207; padding: 6px 14px;
            border-radius: 20px; font-size: 12px; font-weight: 700;
        }
        .services-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
        }
        .service-card {
            background: white; border: 1px solid #e2e8f0; border-radius: 14px;
            padding: 20px; display: flex; flex-direction: column; gap: 12px;
            transition: all 0.2s; position: relative;
        }
        .service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
        .service-card.featured { border-color: var(--secondary); background: linear-gradient(180deg, #f0fdfa 0%, white 40%); }
        .service-card-icon {
            width: 48px; height: 48px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center; font-size: 22px;
        }
        .service-card-icon.green { background: #dcfce7; color: #eab308; }
        .service-card-icon.teal { background: #ccfbf1; color: #a16207; }
        .service-card-icon.blue { background: #dbeafe; color: #1d4ed8; }
        .service-card-icon.amber { background: #fef9c3; color: #eab308; }
        .service-card-icon.purple { background: #f3e8ff; color: #7e22ce; }
        .service-card h3 { font-size: 16px; margin: 0; }
        .service-card p { font-size: 13px; color: var(--gray); line-height: 1.5; flex: 1; }
        .service-highlights { list-style: none; font-size: 12px; color: #475569; }
        .service-highlights li { padding: 4px 0; display: flex; gap: 8px; align-items: flex-start; }
        .service-highlights li i { color: var(--primary); margin-top: 2px; }
        .service-card-badge {
            position: absolute; top: 12px; right: 12px;
            font-size: 10px; font-weight: 700; text-transform: uppercase;
            padding: 4px 10px; border-radius: 20px; background: #fef9c3; color: #a16207;
        }
        .service-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
        .client-services-strip {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px; margin-bottom: 16px;
        }
        .client-service-chip {
            display: flex; flex-direction: column; align-items: center; gap: 6px;
            padding: 14px 10px; background: white; border: 2px solid #e2e8f0;
            border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center;
            font-size: 12px; font-weight: 600; color: var(--dark);
        }
        .client-service-chip:hover, .client-service-chip.highlight {
            border-color: var(--primary); background: var(--primary-muted);
        }
        .client-service-chip i { font-size: 22px; color: var(--primary); }
        .client-service-chip.survey i { color: #eab308; }
        .client-service-chip.survey.highlight { border-color: #eab308; background: #f0fdfa; }

        /* Mobile navigation */
        .mobile-menu-btn {
            display: none; align-items: center; justify-content: center;
            width: 42px; height: 42px; border: 1px solid #e2e8f0; border-radius: 10px;
            background: white; cursor: pointer; font-size: 18px; color: var(--dark);
            flex-shrink: 0;
        }
        .sidebar-overlay {
            display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
            z-index: 999; opacity: 0; transition: opacity 0.3s;
        }
        .sidebar-overlay.active { display: block; opacity: 1; }
        .client-bottom-nav {
            display: none; position: fixed; bottom: 0; left: 0; right: 0;
            background: white; border-top: 1px solid #e2e8f0;
            padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
            z-index: 900; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
            justify-content: space-around; gap: 2px;
        }
        .client-bottom-nav button {
            flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
            border: none; background: none; padding: 6px 4px; cursor: pointer;
            font-size: 10px; font-weight: 600; color: var(--gray); min-width: 0;
        }
        .client-bottom-nav button i { font-size: 18px; }
        .client-bottom-nav button.active { color: var(--primary); }

        @media (max-width: 1024px) {
            body.client-mode .sidebar { transform: translateX(-100%); width: 280px; }
            body.client-mode .sidebar.active { transform: translateX(0); }
            body.client-mode .main-content { margin-left: 0 !important; }
            .mobile-menu-btn { display: flex; }
            body.client-mode .client-bottom-nav { display: flex; }
            body.client-mode .main-content { padding-bottom: 80px; }
        }
        @media (max-width: 768px) {
            .main-content { padding: 12px !important; }
            .header { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
            .header-actions {
                width: 100%; flex-wrap: wrap; gap: 8px;
            }
            .header-actions .btn { font-size: 12px; padding: 8px 12px; }
            .header-actions .btn-outline { flex: 1; min-width: calc(50% - 4px); justify-content: center; }
            #clientAccountHeader > div:last-child { display: none; }
            .user-profile.client-only { padding: 6px 10px; }
            .card { border-radius: 10px; }
            .card-header { flex-direction: column; align-items: flex-start !important; gap: 10px; }
            .card-header > div:last-child { width: 100%; }
            .card-header .btn { width: 100%; justify-content: center; }
            .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .table-container table { min-width: 600px; }
            .doc-category-tabs {
                flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px;
                -webkit-overflow-scrolling: touch; scrollbar-width: none;
            }
            .doc-category-tabs::-webkit-scrollbar { display: none; }
            .doc-category-tab { flex-shrink: 0; }
            .analytics-chart-layout { flex-direction: column; }
            .analytics-y-axis { flex-direction: row; justify-content: space-between; padding: 0 0 8px; min-width: 0; }
            .analytics-period-pills { flex-wrap: wrap; width: 100%; }
            .services-hero { padding: 20px 16px; }
            .services-hero h2 { font-size: 18px; }
            .services-grid { grid-template-columns: 1fr; }
            .client-services-strip { grid-template-columns: repeat(2, 1fr); }
            .modal-content { width: calc(100% - 16px) !important; max-width: 100% !important; margin: 8px; max-height: 92vh; overflow-y: auto; }
            .modal-content.plot-detail-wide,
            #plotDetailModal .modal-content.plot-detail-wide {
                width: 100% !important;
                margin: 0 !important;
                max-height: min(88dvh, 88vh);
            }
            .modal-content.client-dossier-wide { width: 100% !important; }
            .client-dossier-tabs { flex-wrap: nowrap; overflow-x: auto; }
            .client-dossier-tab { flex-shrink: 0; }
            .plot-select-wrap, .plot-search-wrap { max-width: 100%; min-width: 0; }
            .plot-filter-group { width: 100%; }
            .plot-filter-btn { font-size: 11px; padding: 6px 10px; }
            .master-plan-header { flex-direction: column; align-items: flex-start !important; }
            .map-layers-panel { gap: 6px; }
            .layer-toggle { font-size: 11px; padding: 4px 10px; }
            .stats-grid { grid-template-columns: 1fr !important; }
            .content-grid { gap: 12px; }
            .form-row { flex-direction: column; }
            .settings-tabs { overflow-x: auto; flex-wrap: nowrap; }
            .settings-tab-btn { flex-shrink: 0; }
        }
        @media (max-width: 480px) {
            .logo h1 { font-size: 18px; }
            .plot-grid { grid-template-columns: repeat(2, 1fr) !important; }
            .client-bottom-nav button span { font-size: 9px; }
            .service-card-actions .btn { width: 100%; }
            .gov-trust-strip { flex-direction: column; text-align: center; }
        }

        /* Plot matcher */
        .plot-matcher-card {
            background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(234, 179, 8, 0.06));
            border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 16px;
        }
        .plot-matcher-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .matcher-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
        .matcher-field label { display: block; font-size: 12px; font-weight: 600; color: var(--gray); margin-bottom: 4px; }
        .matcher-results { margin-top: 12px; display: none; }
        .matcher-results.visible { display: block; }
        .matcher-match-chip {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 8px 14px; margin: 4px; border-radius: 8px;
            background: var(--secondary); color: white; font-size: 13px; font-weight: 600;
            cursor: pointer; border: none;
        }
        .master-plot.matched { stroke: var(--secondary) !important; stroke-width: 4 !important; fill-opacity: 0.7 !important; }
        .map-plot-label {
            font-family: 'Segoe UI', system-ui, sans-serif;
            font-weight: 500;
            fill: #0f172a;
            paint-order: stroke fill;
            stroke: rgba(255, 255, 255, 0.92);
            stroke-width: 2.5px;
            stroke-linejoin: round;
            letter-spacing: 0.01em;
        }

        /* EMI affordability */
        .emi-slider-wrap { margin: 12px 0; }
        .emi-slider-wrap label { font-size: 12px; font-weight: 600; color: var(--gray); }
        .emi-slider-wrap input[type=range] { width: 100%; margin-top: 6px; }
        .affordability-badge {
            padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-top: 8px;
        }
        .affordability-badge.good { background: rgba(34,197,94,0.12); color: #15803d; }
        .affordability-badge.tight { background: rgba(245,158,11,0.12); color: #eab308; }
        .affordability-badge.over { background: rgba(239,68,68,0.12); color: #b91c1c; }

        /* Waitlist */
        .waitlist-box {
            background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3);
            border-radius: 10px; padding: 14px; margin-top: 12px;
        }

        /* QR modal */
        .qr-display { text-align: center; padding: 20px; }
        .qr-display img { max-width: 200px; border-radius: 8px; border: 1px solid #e2e8f0; }
        .qr-link { font-size: 12px; color: var(--gray); word-break: break-all; margin-top: 10px; }

        /* Audit log */
        .audit-log-list { max-height: 400px; overflow-y: auto; }
        .audit-entry {
            display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
        }
        .audit-entry-icon {
            width: 36px; height: 36px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .audit-entry-icon.status { background: var(--primary-muted); color: var(--primary); }
        .audit-entry-icon.booking { background: rgba(250,204,21,0.1); color: var(--success); }
        .audit-entry-icon.layout { background: rgba(37,99,235,0.1); color: #2563eb; }
        .audit-entry-icon.doc { background: rgba(245,158,11,0.1); color: var(--warning); }
        .audit-entry-icon.waitlist { background: rgba(139,92,246,0.1); color: #7c3aed; }

        /* Snap grid */
        .snap-toggle.active { background: var(--secondary); color: white; }

        /* Receipt */
        .receipt-preview { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 24px; font-size: 14px; }
        .receipt-header { text-align: center; border-bottom: 2px solid var(--primary); padding-bottom: 16px; margin-bottom: 16px; }
        .receipt-header h3 { color: var(--primary); margin-bottom: 4px; }

        .header-fav-btn {
            position: relative; padding: 8px 14px;
        }
        .header-fav-count {
            position: absolute; top: -4px; right: -4px;
            background: #ef4444; color: white; font-size: 10px;
            width: 18px; height: 18px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-weight: 700;
        }

        .approval-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid #f1f5f9;
        }

        .site-visit-cal-item {
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
        }

        .google-setup-hint {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            background: #fefce8;
            border: 1px dashed #fcd34d;
            color: #854d0e;
            font-size: 12px;
            line-height: 1.45;
            text-align: left;
        }

        .google-setup-hint i {
            font-size: 16px;
            margin-top: 1px;
            color: #4285f4;
            flex-shrink: 0;
        }

        .google-oauth-status-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px 14px;
            margin-bottom: 14px;
            font-size: 13px;
        }

        .google-oauth-status-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            padding: 6px 0;
            border-bottom: 1px solid #eef2f7;
        }

        .google-oauth-status-row:last-child { border-bottom: none; }

        .google-oauth-status-row span { color: var(--gray); flex-shrink: 0; }

        .google-oauth-code {
            font-size: 11px;
            word-break: break-all;
            text-align: right;
            max-width: 62%;
            color: #334155;
        }

        .google-oauth-badge-ok { color: #eab308; }
        .google-oauth-badge-warn { color: #eab308; }
        .google-oauth-badge-off { color: #94a3b8; }

        /* Dashboard land header meta */
        .dashboard-land-title-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dashboard-land-meta {
            font-size: 12px;
            font-weight: 500;
            color: var(--gray, #64748b);
            margin-top: 4px;
            padding-left: 26px;
        }

        /* Map header overflow menu */
        .map-header-more-wrap { position: relative; }
        .map-header-more-menu {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 50;
            min-width: 160px;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
            padding: 6px;
        }
        .map-header-more-menu.open { display: block; }
        .map-header-more-menu button {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 10px;
            border: none;
            background: none;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            text-align: left;
            color: var(--dark, #1e293b);
        }
        .map-header-more-menu button:hover { background: #f1f5f9; }

        .map-empty-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-top: 4px;
        }

        /* Editor map status badge */
        .editor-map-status {
            display: inline-flex;
            align-items: center;
            margin-left: 10px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            vertical-align: middle;
        }
        .editor-map-status.is-custom {
            background: rgba(250, 204, 21, 0.15);
            color: #eab308;
        }
        .editor-map-status.is-default {
            background: rgba(253, 224, 71, 0.15);
            color: #eab308;
        }

        /* Editor collapsible features + more menu */
        .editor-toolbar-collapsible { position: relative; }
        .editor-features-toggle .editor-chevron {
            font-size: 10px;
            margin-left: 2px;
            transition: transform 0.2s;
        }
        .editor-features-toggle[aria-expanded="true"] .editor-chevron { transform: rotate(180deg); }
        .editor-features-panel {
            display: none;
            flex-wrap: wrap;
            gap: 6px;
            padding-top: 0;
        }
        .editor-features-panel.open,
        .editor-features-panel:not([hidden]) {
            display: flex !important;
        }
        .editor-toolbar-group.editor-toolbar-collapsible {
            flex-wrap: wrap;
            max-width: none;
        }
        .editor-toolbar-more-wrap { position: relative; }
        .editor-more-menu {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 60;
            min-width: 180px;
            background: #1e293b;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            box-shadow: 0 12px 32px rgba(0,0,0,0.25);
            padding: 6px;
        }
        .editor-more-menu button,
        .editor-more-menu .editor-more-import {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 10px;
            border: none;
            background: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
            color: #f8fafc;
        }
        .editor-more-menu button:hover,
        .editor-more-menu .editor-more-import:hover { background: rgba(255,255,255,0.1); }
        .editor-more-import { margin: 0; }

        @media (max-width: 768px) {
            .map-action-label { display: none; }
            .map-header-btns .btn-google-maps .map-action-label { display: inline; }
            .dashboard-land-meta { padding-left: 0; }
            .client-land-cards { grid-template-columns: 1fr; }
        }

        /* Site Map Layout — first-time setup wizard */
        .layout-setup-wizard {
            margin-bottom: 16px;
            padding: 16px 18px;
            background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
            border: 1px solid rgba(250, 204, 21, 0.28);
            border-radius: 12px;
        }
        .layout-wizard-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }
        .layout-wizard-header strong {
            font-size: 14px;
            color: var(--dark, #1e293b);
        }
        .layout-wizard-dismiss {
            border: none;
            background: rgba(15, 23, 42, 0.06);
            width: 28px;
            height: 28px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            color: var(--gray, #64748b);
        }
        .layout-wizard-dismiss:hover { background: rgba(15, 23, 42, 0.1); }
        .layout-wizard-steps {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .layout-wizard-step {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 12px 14px;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            transition: border-color 0.2s, background 0.2s;
        }
        .layout-wizard-step.is-done {
            border-color: rgba(250, 204, 21, 0.35);
            background: rgba(250, 204, 21, 0.04);
        }
        .layout-wizard-step.is-done .layout-wizard-icon {
            color: #eab308;
            background: rgba(250, 204, 21, 0.15);
        }
        .layout-wizard-icon {
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            color: #94a3b8;
            font-size: 12px;
        }
        .layout-wizard-body strong {
            display: block;
            font-size: 13px;
            margin-bottom: 4px;
            color: var(--dark, #1e293b);
        }
        .layout-wizard-body p {
            margin: 0 0 8px;
            font-size: 12px;
            color: var(--gray, #64748b);
            line-height: 1.45;
        }
        @media (min-width: 900px) {
            .layout-wizard-steps {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
        }

        /* ─── Platform enhancements ─── */
        .map-section-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0 4px;
            flex-wrap: wrap;
        }
        .map-section-select { max-width: 180px; padding: 6px 10px; font-size: 12px; }
        .master-plot.section-dimmed { opacity: 0.2 !important; }
        .master-plot.section-highlight { stroke: var(--primary) !important; stroke-width: 3 !important; }
        .map-demand-heatmap-legend .demand-gradient {
            background: linear-gradient(90deg, rgb(59,130,246), rgb(239,68,68));
        }
        .map-reservation-badge .res-badge { fill: rgba(234, 179, 8, 0.95); }
        .map-reservation-badge .res-badge.urgent { fill: rgba(239, 68, 68, 0.95); }
        .map-reservation-badge .res-badge-text {
            fill: #fff;
            font-size: 6px;
            font-weight: 700;
            pointer-events: none;
        }
        .editor-grid-stamp-mode,
        .editor-measure-mode { cursor: crosshair; }
        .editor-overlap-mark {
            fill: rgba(239, 68, 68, 0.45);
            stroke: #dc2626;
            stroke-width: 1;
            pointer-events: none;
        }
        .editor-diagnostics-chip {
            margin-left: 8px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            background: rgba(250, 204, 21, 0.1);
            color: #eab308;
        }
        .editor-diagnostics-chip.has-issues {
            background: rgba(239, 68, 68, 0.1);
            color: #b91c1c;
        }
        .editor-lock-banner {
            margin-left: 8px;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            background: rgba(253, 224, 71, 0.12);
            color: #eab308;
        }
        .editor-plot-group.multi-selected .editor-plot {
            stroke: #7c3aed !important;
            stroke-width: 2.5 !important;
        }
        .editor-measure-line {
            stroke: var(--primary);
            stroke-width: 2;
            stroke-dasharray: 6 4;
            pointer-events: none;
        }
        .editor-measure-point { fill: var(--primary); pointer-events: none; }
        .layout-compare-panel {
            margin: 8px 0;
            padding: 10px 14px;
            border-radius: 10px;
            background: rgba(124, 58, 237, 0.06);
            border: 1px solid rgba(124, 58, 237, 0.2);
        }
        .layout-compare-ghost {
            fill: rgba(124, 58, 237, 0.15);
            stroke: #7c3aed;
            stroke-width: 1;
            stroke-dasharray: 4 3;
            pointer-events: none;
        }
        .layout-history-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #e2e8f0;
        }
        .layout-history-actions { display: flex; gap: 6px; flex-shrink: 0; }
        .pipeline-board {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            overflow-x: auto;
        }
        @media (max-width: 900px) {
            .pipeline-board { grid-template-columns: repeat(2, 1fr); }
        }
        .pipeline-col { background: #f8fafc; border-radius: 10px; min-width: 140px; }
        .pipeline-col-header {
            padding: 10px 12px;
            font-weight: 700;
            font-size: 12px;
            border-bottom: 1px solid #e2e8f0;
        }
        .pipeline-count {
            background: var(--primary);
            color: #fff;
            border-radius: 999px;
            padding: 1px 7px;
            font-size: 10px;
            margin-left: 4px;
        }
        .pipeline-col-body { padding: 8px; min-height: 120px; max-height: 320px; overflow-y: auto; }
        .pipeline-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px 10px;
            margin-bottom: 6px;
            cursor: grab;
            font-size: 12px;
        }
        .pipeline-card strong { display: block; }
        .pipeline-agent { color: var(--gray); display: block; margin-top: 2px; }
        .pipeline-empty { color: var(--gray); font-size: 11px; padding: 8px; text-align: center; }
        .plot-timeline-section { margin: 16px 0; }
        .plot-timeline-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12px; }
        .plot-timeline-list li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
        .plot-timeline-time { color: var(--gray); margin-right: 8px; }
        .plot-compass-section { margin: 12px 0; }
        .plot-compass-readout {
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background: #fefce8;
            border-radius: 10px;
        }
        .compass-arrow { font-size: 28px; color: var(--primary); transition: transform 0.3s ease; }
        .site-visit-route-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: rgba(250, 204, 21, 0.08);
            border-bottom: 1px solid rgba(250, 204, 21, 0.2);
        }
        .route-chip {
            background: #fff;
            border: 1px solid #fef08a;
            border-radius: 999px;
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 600;
        }
        .site-visit-card.route-selected { outline: 2px solid var(--secondary); }
        .route-add-btn.active { background: var(--secondary); color: #fff; }

        /* Tenant onboarding wizard */
        body.onboarding-active .sidebar,
        body.onboarding-active .header { pointer-events: none; opacity: 0.55; }
        body.onboarding-active .main-content { filter: blur(1px); }
        .onboarding-modal .modal-content { max-width: 640px; }
        .onboarding-modal-content { border-top: 4px solid var(--primary); }
        .onboarding-subtitle { font-size: 13px; color: var(--gray); margin: 6px 0 0; font-weight: 400; }
        .onboarding-step-pills {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            padding: 0 20px 12px;
        }
        .onboarding-step-pill {
            font-size: 11px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 999px;
            background: var(--light);
            color: var(--gray);
        }
        .onboarding-step-pill.active { background: var(--primary); color: #fff; }
        .onboarding-step-pill.done { background: #dcfce7; color: #854d0e; }
        .onboarding-progress {
            list-style: none;
            margin: 0 20px 12px;
            padding: 10px 12px;
            background: #f8fafc;
            border-radius: 8px;
            font-size: 12px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }
        .onboarding-progress li { color: var(--gray); }
        .onboarding-progress li.is-done { color: var(--primary); font-weight: 600; }
        .onboarding-progress li i { margin-right: 4px; width: 14px; }
        .onboarding-body { max-height: 52vh; overflow-y: auto; }
        .onboarding-step { display: none; }
        .onboarding-step.active { display: block; }
        .onboarding-step h4 { margin: 0 0 14px; font-size: 15px; }
        .onboarding-muted { font-size: 13px; color: var(--gray); }
        .onboarding-ok { font-size: 13px; color: var(--primary); font-weight: 600; }
        .onboarding-logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        .onboarding-logo-preview {
            width: 72px;
            height: 72px;
            border-radius: 10px;
            border: 1px dashed #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #fff;
        }
        .onboarding-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .onboarding-check {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
            cursor: pointer;
        }
        .onboarding-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            padding: 16px 20px;
            border-top: 1px solid rgba(0,0,0,0.06);
        }
        .onboarding-footer-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }
        .onboarding-skip-btn {
            color: var(--gray);
            font-size: 13px;
            padding: 8px 12px;
        }
        .onboarding-skip-btn:hover { color: var(--primary); }
        .onboarding-dashboard-banner {
            margin-bottom: 16px;
            padding: 14px 16px;
            background: linear-gradient(135deg, rgba(253, 224, 71, 0.12), rgba(251, 191, 36, 0.08));
            border: 1px solid rgba(253, 224, 71, 0.35);
            border-radius: 10px;
        }
        .onboarding-dashboard-banner-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }
        .onboarding-banner-meta {
            display: block;
            font-size: 13px;
            color: var(--gray);
            margin-top: 4px;
        }
        #tenantOnboardingModal.modal.active { z-index: 100010; }

        /* GIS import modal */
        .gis-mapping-grid {
            display: grid;
            gap: 8px;
        }
        .gis-map-row {
            display: grid;
            grid-template-columns: 140px 1fr;
            gap: 10px;
            align-items: center;
            font-size: 13px;
        }
        .gis-warn {
            font-size: 12px;
            color: #183a72;
            background: #e8eef8;
            border: 1px solid #c5d4eb;
            border-radius: 8px;
            padding: 8px 10px;
            margin-bottom: 6px;
        }

        /* Mobile readability pass — larger type without widening the layout. */
        @media (max-width: 768px) {
            body {
                font-size: 15px;
                line-height: 1.5;
            }

            .main-content {
                font-size: 15px;
            }

            .main-content .header-title h2,
            .main-content .card-title {
                font-size: 19px;
            }

            .main-content .header-title p,
            .main-content .form-label,
            .main-content .form-input,
            .main-content select,
            .main-content textarea {
                font-size: 15px !important;
            }

            .main-content .form-input,
            .main-content select {
                min-height: 44px;
            }

            .main-content .btn {
                min-height: 42px;
                padding: 10px 14px;
                font-size: 14px;
            }

            .main-content .btn-sm {
                min-height: 40px;
                font-size: 13.5px;
            }

            .main-content .header-actions .btn {
                font-size: 14px;
                padding: 10px 12px;
            }

            .main-content .modal-title {
                font-size: 20px;
            }

            .main-content .status-badge {
                font-size: 12px;
            }

            .main-content .table-container {
                font-size: 13.5px;
            }

            .main-content .table-container th {
                font-size: 12.5px;
            }

            .main-content .table-container td,
            .main-content .table-container td small {
                font-size: 13.5px;
            }

            .main-content .doc-category-tab,
            .main-content .settings-tab-btn,
            .main-content .plot-filter-btn,
            .main-content .layer-toggle {
                font-size: 13.5px;
            }

            .sidebar .nav-link {
                font-size: 15px;
            }

            .client-bottom-nav button,
            .client-bottom-nav button span {
                font-size: 12px !important;
            }

            .client-bottom-nav button {
                min-height: 44px;
            }

            .client-bottom-nav button i {
                font-size: 20px;
            }

            .main-content .master-plan-hint,
            .main-content .map-layers-label,
            .main-content .help-text {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .main-content h1 {
                font-size: clamp(1.35rem, 7vw, 1.8rem);
            }

            .main-content h2 {
                font-size: clamp(1.2rem, 6vw, 1.55rem);
            }

            .main-content h3 {
                font-size: 1.1rem;
            }
        }

