﻿* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
            background:
                radial-gradient(ellipse at 15% 40%, rgba(0,100,200,0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 15%, rgba(0,200,255,0.10) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 85%, rgba(0,60,180,0.12) 0%, transparent 50%),
                linear-gradient(160deg, #030814 0%, #060E1E 45%, #0A1628 100%);
            background-attachment: fixed;
            color: rgba(255, 255, 255, 0.9);
            min-height: 100vh;
        }

        .app-container { display: flex; height: 100vh; overflow: hidden; }

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: 200px; min-width: 200px;
            background: rgba(4, 10, 28, 0.82);
            backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
            border-right: 1px solid rgba(0, 240, 255, 0.08);
            box-shadow: 4px 0 32px rgba(0,0,0,0.4), inset -1px 0 0 rgba(0,240,255,0.04);
            display: flex; flex-direction: column;
            padding: 20px 10px; gap: 4px; overflow-y: auto;
        }
        .sidebar-header { text-align: center; margin-bottom: 10px; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, 0.92); padding: 10px; letter-spacing: 0.3px; }
        .sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #00D4FF 0%, #0074CC 100%); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 16px; margin: 0 auto 4px auto; box-shadow: 0 0 18px rgba(0,212,255,0.45), 0 0 36px rgba(0,212,255,0.15); }
        .sidebar-role { font-size: 11px; color: rgba(0, 240, 255, 0.45); text-align: center; margin-bottom: 20px; letter-spacing: 0.3px; }
        .sidebar-logout-icon { display: none; }
        .sidebar-item { padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: all 0.22s ease; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.42); background: transparent; border-left: 2px solid transparent; }
        .sidebar-item:hover { background: rgba(0, 240, 255, 0.07); color: rgba(0, 240, 255, 0.82); border-left-color: rgba(0, 240, 255, 0.25); }
        .sidebar-item.active { background: rgba(0, 240, 255, 0.1); color: #00F0FF; border-left-color: #00F0FF; box-shadow: inset 0 0 14px rgba(0,240,255,0.07), 2px 0 0 rgba(0,240,255,0.25); text-shadow: 0 0 14px rgba(0,240,255,0.55); }
        .sidebar-icon { font-size: 16px; width: 20px; text-align: center; }

        /* ===== MAIN CONTENT ===== */
        .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .header { padding: 14px 30px; border-bottom: 1px solid rgba(0, 240, 255, 0.07); display: flex; justify-content: space-between; align-items: center; background: rgba(3, 8, 22, 0.65); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 200; position: relative; box-shadow: 0 1px 0 rgba(0,240,255,0.04), 0 4px 24px rgba(0,0,0,0.2); }
        .header-title { font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, 0.95); letter-spacing: -0.3px; }
        .header-controls { display: flex; gap: 12px; align-items: center; }
        .quick-links { display: flex; gap: 6px; align-items: center; }
        .quick-link-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(0,240,255,0.06); border: 1px solid rgba(0,240,255,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.22s ease; font-size: 16px; padding: 0; }
        .quick-link-btn:hover { background: rgba(0,240,255,0.13); border-color: rgba(0,240,255,0.28); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,240,255,0.12); }

        .btn-primary { background: linear-gradient(135deg, #00C8EE 0%, #0088CC 100%); color: #fff; border: none; padding: 8px 16px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13px; transition: all 0.22s ease; box-shadow: 0 2px 14px rgba(0,180,230,0.38), inset 0 1px 0 rgba(255,255,255,0.18); }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,180,230,0.55), 0 0 32px rgba(0,200,255,0.2); }
        .btn-secondary { background: rgba(0, 240, 255, 0.06); color: rgba(0, 240, 255, 0.82); border: 1px solid rgba(0, 240, 255, 0.16); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; font-size: 13px; transition: all 0.22s ease; }
        .btn-secondary:hover { background: rgba(0, 240, 255, 0.12); border-color: rgba(0, 240, 255, 0.32); box-shadow: 0 0 16px rgba(0,240,255,0.1); }
        .btn-danger { background: rgba(255, 59, 48, 0.1); color: #FF453A; border: 1px solid rgba(255, 59, 48, 0.22); padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: 11px; transition: all 0.22s ease; }
        .btn-danger:hover { background: rgba(255, 59, 48, 0.2); box-shadow: 0 0 12px rgba(255,59,48,0.18); }
        /* Compact photo upload button — small look, 44px touch area via min-height */
        .btn-photo-upload { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; min-height:36px; min-width:44px; font-size:12px; font-weight:600; color:#00DDFF; background:rgba(0,200,255,0.07); border:1px solid rgba(0,200,255,0.22); border-radius:8px; cursor:pointer; transition:background .18s ease, border-color .18s ease; touch-action:manipulation; }
        .btn-photo-upload:hover { background:rgba(0,200,255,0.14); border-color:rgba(0,200,255,0.4); }
        .btn-photo-upload:active { transform:scale(0.93) !important; transition:transform .09s ease !important; }
        .btn-photo-upload:disabled { opacity:0.45; cursor:default; }
        .btn-yandex { background: linear-gradient(135deg, #FC3F1D 0%, #E03310 100%); color: white; border: none; padding: 12px 24px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; transition: all 0.25s ease; box-shadow: 0 2px 12px rgba(252,63,29,0.42); display: flex; align-items: center; gap: 8px; justify-content: center; }
        .btn-yandex:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(252,63,29,0.55); }

        .search-box { background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.1); padding: 8px 12px; border-radius: 9px; color: rgba(255, 255, 255, 0.82); font-size: 13px; width: 200px; outline: none; transition: all 0.22s ease; font-family: inherit; }
        .search-box:focus { border-color: rgba(0, 240, 255, 0.38); background: rgba(0, 240, 255, 0.09); box-shadow: 0 0 0 3px rgba(0,240,255,0.07), 0 0 20px rgba(0,240,255,0.06); }
        .search-box::placeholder { color: rgba(255, 255, 255, 0.25); }

        .content-area { flex: 1; overflow-y: auto; padding: 25px 30px; }

        /* ===== CARDS GRID ===== */
        .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        @media (max-width: 1200px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }

        /* ===== MOBILE RESPONSIVE ===== */
        @media (max-width: 800px) {
            .cards-grid { grid-template-columns: 1fr; }
            .sidebar { width: 56px; min-width: 56px; padding: 12px 6px; }
            .sidebar-header, .sidebar-role { display: none; }
            .sidebar-avatar { width: 36px; height: 36px; font-size: 13px; margin-bottom: 8px; }
            .sidebar-item { padding: 10px 8px; gap: 0; justify-content: center; border-left: none; border-bottom: 2px solid transparent; }
            .sidebar-item span:not(.sidebar-icon) { display: none; }
            .sidebar-item.active { border-left: none; border-bottom-color: #00DDFF; }
            .sidebar-icon { font-size: 20px; width: auto; }
            .header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }

            .header-title { font-size: 16px; }
            .header-controls { gap: 6px; flex-wrap: wrap; }
            .quick-links { gap: 4px; }
            .quick-link-btn { width: 28px; height: 28px; font-size: 14px; }
            .search-box { width: 130px; font-size: 12px; }
            .content-area { padding: 14px 12px; }
            /* Modal: anchor to top on mobile — no empty space at bottom */
            .modal-overlay { align-items: flex-start !important; padding-top: 10px !important; padding-bottom: 10px !important; }
            .modal { width: 97%; padding: 18px 14px; max-height: 88vh; border-radius: 16px 16px 12px 12px; margin: 0 auto; }
            .modal-title { font-size: 16px; }
            .kanban-board { flex-direction: column; gap: 10px; padding: 10px; overflow-x: hidden; overflow-y: auto; }
            .kanban-column { min-width: unset; }
            .kanban-cards { max-height: min(54vh, 420px); }
            .kanban-cards > .card { flex: 0 0 auto; min-height: 104px; }
            .kanban-order-number, .kanban-order-date, .kanban-order-client { display: none !important; }
            .kanban-order-location { display: block !important; margin-bottom: 8px; padding-right: 18px; }
            .kanban-order-city { color: rgba(255,255,255,0.96); font-size: 14px; font-weight: 750; line-height: 1.25; }
            .kanban-order-address { color: rgba(255,255,255,0.62); font-size: 12px; line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .stat-value { font-size: 20px; }
            /* Salary: allow horizontal scroll */
            .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            table { min-width: 420px; }
            .salary-desc-cell { white-space: normal !important; min-width: 100px; }
            /* Notification panel: fixed position on mobile so it never overflows */
            .notification-panel { position: fixed !important; top: 58px !important; right: 10px !important; left: 10px !important; width: auto !important; max-width: 400px; margin: 0 auto; }
            .btn-primary, .btn-secondary { padding: 9px 12px; font-size: 13px; }
            /* Кнопка выхода в мобильном сайдбаре */
            .sidebar-logout-btn { width: 36px !important; height: 36px !important; padding: 0 !important; margin: 4px auto 0 !important; border-radius: 8px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 18px !important; }
            .sidebar-logout-btn .logout-text { display: none !important; }
            .sidebar-logout-icon { display: inline !important; }
            /* Map list: slightly smaller max-height on mobile */
            .map-order-list { max-height: 180px; }
            .login-card { padding: 28px 20px; margin: 0 16px; }
            .toast { min-width: 220px; max-width: 90vw; }
            .toast-container { bottom: 10px; right: 10px; }
            /* Photo thumbnails: slightly bigger on touch */
            .photo-thumbnail { width: 72px; height: 72px; }
            /* Order chat widget inside modal: shorter height and contained */
            .order-chat-widget { height: 340px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
            /* Lightbox close button larger on touch */
            .lightbox-close { padding: 10px 16px; font-size: 18px; }
            .lightbox-actions button { padding: 11px 20px; font-size: 15px; }
        }
        @media (max-width: 480px) {
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .header-controls .quick-links { display: none; }
            .search-box { width: 100px; }
            /* On very small screens, hide Расчёт column — show desc inline instead */
            .salary-desc-hide { display: none !important; }
            .salary-desc-mobile { display: block !important; }
            .notification-panel { left: 6px !important; right: 6px !important; }
            table { min-width: 240px !important; }
            /* Kanban cards — slightly reduced padding */
            .card { padding: 14px 12px; }
            /* Chat messages slightly smaller gap */
            .chat-messages { padding: 10px 8px; }
            /* Photo thumbnails: full row on small phones */
            .photo-thumbnails { gap: 6px; }
            .photo-thumbnail { width: 64px; height: 64px; }
        }

        /* ===== CHAT MOBILE ===== */
        .chat-layout { display: flex; height: calc(100vh - 120px); gap: 16px; }
        .chat-sidebar { width: 220px; flex-shrink: 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; transition: width 0.2s; }
        .chat-main { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
        .chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
        .chat-input-area { border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 16px; flex-shrink: 0; }
        .chat-input-row { display: flex; gap: 6px; align-items: flex-end; }
        .chat-textarea-input { flex: 1; min-width: 0; background: rgba(0,30,80,0.4); border: 1px solid rgba(0,200,255,0.1); border-radius: 10px; padding: 10px 14px; color: rgba(255,255,255,0.88); font-size: 14px; resize: none; min-height: 48px; max-height: 180px; outline: none; line-height: 1.5; font-family: inherit; transition: border-color 0.2s; overflow-y: auto; box-sizing: border-box; }
        .chat-textarea-input:focus { border-color: rgba(0,200,255,0.35); box-shadow: 0 0 0 3px rgba(0,200,255,0.06); }
        .chat-btn-attach { width: 32px; height: 32px; border-radius: 8px; background: rgba(0,200,255,0.06); border: 1px solid rgba(0,200,255,0.12); color: rgba(0,220,255,0.6); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; touch-action: manipulation; }
        .chat-btn-send { height: 40px; padding: 0 14px; border-radius: 8px; background: linear-gradient(135deg,#00C8EE,#0088CC); border: none; color: white; font-weight: 700; font-size: 15px; cursor: pointer; flex-shrink: 0; touch-action: manipulation; box-shadow: 0 4px 14px rgba(0,200,255,0.25); }
        .chat-tab { padding: 10px 14px; cursor: pointer; border-left: 2px solid transparent; transition: all 0.2s; display: flex; align-items: center; gap: 8px; position: relative; }
        .chat-tab.active { background: rgba(0,200,255,0.08); border-left-color: #00DDFF; }
        .chat-tab-badge { position: absolute; top: 6px; right: 8px; background: #DC3545; color: white; font-size: 9px; font-weight: 700; border-radius: 8px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
        .chat-back-btn { display: none; background: none; border: none; color: rgba(255,255,255,0.6); font-size: 18px; cursor: pointer; padding: 4px 8px; margin-right: 4px; touch-action: manipulation; }

        @media (max-width: 800px) {
            .chat-layout { gap: 0; height: calc(100vh - 110px); position: relative; }
            .chat-sidebar { width: 100%; border-radius: 12px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; transition: transform 0.25s ease; }
            .chat-sidebar.hidden { transform: translateX(-110%); pointer-events: none; }
            .chat-main { border-radius: 12px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; transform: translateX(110%); transition: transform 0.25s ease; }
            .chat-main.visible { transform: translateX(0); z-index: 3; }

            .chat-back-btn { display: flex; align-items: center; }
            .chat-input-area { padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
            .chat-input-row { gap: 4px; }
            .chat-btn-attach { width: 30px; height: 30px; font-size: 12px; }
            .chat-btn-send { height: 38px; min-width: 38px; padding: 0 10px; font-size: 15px; }
            .chat-textarea-input { font-size: 16px; min-height: 44px; flex: 1; min-width: 0; } /* 16px prevents iOS zoom */
        }
        @media (max-width: 480px) {
            .chat-messages { padding: 12px 10px; }
        }

        /* ===== CHAT BUBBLE DELETE BUTTON ===== */
        .chat-bubble-wrap { position: relative; }
        .chat-delete-btn {
            position: absolute;
            top: -10px;
            width: 22px; height: 22px;
            border-radius: 50%;
            background: rgba(220,53,69,0.92);
            border: 1.5px solid rgba(255,255,255,0.28);
            color: #fff;
            font-size: 11px; font-weight: 700;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            opacity: 0;
            transform: scale(0.6);
            transition: opacity 0.18s ease, transform 0.18s ease;
            z-index: 30;
            box-shadow: 0 2px 10px rgba(0,0,0,0.45);
            line-height: 1; padding: 0;
            touch-action: manipulation;
            -webkit-user-select: none; user-select: none;
            pointer-events: none;
        }
        .chat-bubble-wrap:hover .chat-delete-btn,
        .chat-bubble-wrap.show-delete .chat-delete-btn {
            opacity: 1; transform: scale(1); pointer-events: auto;
        }
        .chat-delete-right { right: -10px; }
        .chat-delete-left  { left:  -10px; }
        @media (max-width: 768px) {
            .chat-delete-btn { width: 28px; height: 28px; font-size: 12px; top: -12px; }
            .chat-delete-right { right: -12px; }
            .chat-delete-left  { left:  -12px; }
        }

        .card { background: rgba(8, 20, 55, 0.52); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(0, 200, 255, 0.1); border-radius: 14px; padding: 18px; position: relative; transition: all 0.28s ease; cursor: pointer; box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); }
        .card:hover { background: rgba(0, 50, 120, 0.42); transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 24px rgba(0,200,255,0.1), inset 0 1px 0 rgba(0,240,255,0.08); border-color: rgba(0, 200, 255, 0.22); }
        .card-status-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor, 0 0 16px currentColor; }
        .card-number { font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, 0.95); margin-bottom: 4px; }
        .card-date { font-size: 11px; color: rgba(0, 200, 255, 0.4); margin-bottom: 12px; }
        .card-client { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin-bottom: 4px; }
        .card-amount { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.92); margin-bottom: 10px; }
        .kanban-order-location { display: none; }

        /* ===== VOLUMETRIC BADGES ===== */
        .badge { display: inline-block; border-radius: 12px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: white; margin-right: 6px; letter-spacing: 0.2px; }
        .badge-processing { background: linear-gradient(135deg, #F0C040 0%, #C49A1C 100%); box-shadow: 0 2px 10px rgba(212,160,23,0.45), 0 0 18px rgba(212,160,23,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-completed { background: linear-gradient(135deg, #00E676 0%, #00A855 100%); box-shadow: 0 2px 10px rgba(0,200,100,0.45), 0 0 18px rgba(0,200,100,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-pending { background: linear-gradient(135deg, #00D4FF 0%, #0088CC 100%); box-shadow: 0 2px 10px rgba(0,180,240,0.45), 0 0 18px rgba(0,180,240,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-rejected { background: linear-gradient(135deg, #FF453A 0%, #C42D3C 100%); box-shadow: 0 2px 10px rgba(220,53,69,0.45), 0 0 18px rgba(220,53,69,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-urgent { background: linear-gradient(135deg, #FF9F0A 0%, #CC6600 100%); box-shadow: 0 2px 10px rgba(255,149,0,0.45), 0 0 18px rgba(255,149,0,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

        /* ===== MODALS ===== */
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,5,20,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 1000; }
        .modal { background: rgba(6, 14, 40, 0.88); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: 1px solid rgba(0, 200, 255, 0.14); border-radius: 18px; padding: 28px; width: 90%; max-width: 560px; max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,255,0.05), inset 0 1px 0 rgba(0,240,255,0.08); }
        .modal-title { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, 0.95); margin-bottom: 20px; letter-spacing: -0.2px; }
        .form-group { margin-bottom: 16px; }
        .form-label { display: block; font-size: 11px; font-weight: 600; color: rgba(0, 200, 255, 0.6); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.6px; }
        .form-input, .form-select, .form-textarea { width: 100%; background: rgba(0, 30, 80, 0.4); border: 1px solid rgba(0, 200, 255, 0.12); padding: 10px 12px; border-radius: 9px; color: rgba(255, 255, 255, 0.9); font-size: 13px; transition: all 0.22s ease; outline: none; font-family: inherit; }
        .form-textarea { resize: vertical; min-height: 60px; }
        .form-input:focus, .form-select:focus, .form-textarea:focus { background: rgba(0, 50, 120, 0.35); border-color: rgba(0, 220, 255, 0.4); box-shadow: 0 0 0 3px rgba(0,220,255,0.08), 0 0 20px rgba(0,200,255,0.06); }
        .form-input::placeholder, .form-textarea::placeholder { color: rgba(255, 255, 255, 0.22); }
        .form-select option { background: #060E2A; color: #fff; }
        .modal-buttons { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }
        .photo-gallery { margin-top: 16px; }
        .photo-gallery-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
        .photo-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
        .photo-thumbnail { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; position: relative; }
        .photo-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
        .photo-thumbnail:hover::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
        .photo-thumbnail-delete { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(220, 53, 69, 0.85); border: none; border-radius: 4px; color: white; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; z-index: 3; touch-action: manipulation; }
        .photo-thumbnail:hover .photo-thumbnail-delete { opacity: 1; }
        /* #17 — admin: delete always visible (no hover needed on touch) */
        .photo-thumb-admin .photo-thumbnail-delete { opacity: 1 !important; background: rgba(220, 53, 69, 0.92) !important; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }

        .photo-upload-input { display: none; }

        /* ===== DEADLINE CARD INDICATORS ===== */
        @keyframes dl-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(220,53,69,0.5)} 50%{box-shadow:0 0 0 6px rgba(220,53,69,0)} }
        @keyframes dl-dot-blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
        .card-dl-overdue { border-color: rgba(220,53,69,0.55) !important; background: rgba(220,53,69,0.06) !important; animation: dl-pulse 2s ease-in-out infinite; }
        .card-dl-warning { border-color: rgba(255,214,10,0.45) !important; background: rgba(255,214,10,0.04) !important; }
        .dl-dot { width:9px;height:9px;border-radius:50%;display:inline-block;flex-shrink:0; }
        .dl-dot-overdue { background:#FF453A; animation: dl-dot-blink 1.4s ease-in-out infinite; }
        .dl-dot-warning { background:#FFD60A; }

        /* ===== THEME: dark only ===== */

        /* ===== DARK THEME POLISH ===== */
        /* Card glow on hover */
        .card { transition: box-shadow 0.25s, background 0.25s, transform 0.2s; }
        .card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 20px rgba(0,200,255,0.10), inset 0 1px 0 rgba(255,255,255,0.06) !important; }
        /* Kanban card glow */
        .kanban-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 14px rgba(0,200,255,0.09) !important; }
        /* Glassmorphism sidebar glow */
        .sidebar { box-shadow: 4px 0 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,200,255,0.05) !important; }
        /* Icon / hint visibility improvements for dark theme */
        .form-label { color: rgba(0,200,255,0.55); letter-spacing: 0.01em; }
        .no-data { color: rgba(255,255,255,0.28); }
        /* Better accent on active sidebar */
        .sidebar-item.active { text-shadow: 0 0 12px rgba(0,200,255,0.5); }
        /* Chat textarea focus ring */
        .chat-textarea-input:focus { border-color: rgba(0,200,255,0.4) !important; box-shadow: 0 0 0 3px rgba(0,200,255,0.08) !important; }

        /* #12 - Mobile salary overflow fix */
        @media (max-width: 480px) {
            .salary-total-row td:last-child { font-size: 15px !important; }
            .table-container { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
        }

        /* ===== QUICK FILTER CHIPS ===== */
        .filter-chips { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
        .filter-chip { padding:5px 13px; border-radius:20px; font-size:12px; font-weight:600; cursor:pointer; border:1px solid rgba(0,200,255,0.12); background:rgba(0,200,255,0.04); color:rgba(0,200,255,0.5); transition:all 0.2s; white-space:nowrap; }
        .filter-chip:hover { background:rgba(0,200,255,0.1); color:rgba(0,220,255,0.85); border-color:rgba(0,200,255,0.25); }
        .filter-chip.active { background:rgba(0,200,255,0.14); border-color:rgba(0,220,255,0.45); color:#00DDFF; box-shadow:0 0 12px rgba(0,200,255,0.15); }
        .filter-chip.active-red { background:rgba(255,59,48,0.14); border-color:rgba(255,59,48,0.4); color:#FF453A; }
        .filter-chip.active-yellow { background:rgba(255,200,0,0.12); border-color:rgba(255,200,0,0.38); color:#FFD60A; }
        .pulse-view-switch { display:flex; gap:4px; padding:4px; border-radius:14px; background:rgba(4,16,42,.72); border:1px solid rgba(0,200,255,.12); }
        .pulse-view-btn { border:0; cursor:pointer; padding:7px 12px; border-radius:10px; color:rgba(255,255,255,.55); background:transparent; font-size:12px; font-weight:700; transition:all .18s ease; }
        .pulse-view-btn.active { color:#071326; background:linear-gradient(135deg,#38E8FF,#4CF0B5); box-shadow:0 5px 18px rgba(0,220,255,.22); }
        .pulse-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,.7fr); gap:14px; padding:0 2px 18px; }
        .pulse-main { min-width:0; }
        .pulse-hero { padding:18px; margin-bottom:12px; border-radius:18px; overflow:hidden; position:relative; background:linear-gradient(135deg,rgba(7,32,75,.94),rgba(5,19,47,.92)); border:1px solid rgba(48,222,255,.18); box-shadow:0 14px 38px rgba(0,0,0,.22); }
        .pulse-hero:after { content:""; position:absolute; width:190px; height:190px; right:-72px; top:-105px; border-radius:50%; background:rgba(0,220,255,.13); filter:blur(2px); }
        .pulse-kicker { color:#55E8FF; font-size:11px; text-transform:uppercase; letter-spacing:.14em; font-weight:800; }
        .pulse-title { position:relative; z-index:1; color:#fff; font-size:22px; line-height:1.15; font-weight:800; margin:6px 0 3px; }
        .pulse-subtitle { color:rgba(255,255,255,.5); font-size:12px; }
        .pulse-metrics { position:relative; z-index:1; display:grid; grid-template-columns:repeat(5,minmax(82px,1fr)); gap:8px; margin-top:15px; }
        .pulse-metric { padding:10px; border-radius:13px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.075); }
        .pulse-metric-value { color:#fff; font-size:20px; font-weight:850; line-height:1; }
        .pulse-metric-label { color:rgba(255,255,255,.48); font-size:10px; margin-top:5px; line-height:1.2; }
        .pulse-list { display:flex; flex-direction:column; gap:9px; }
        .pulse-card { cursor:pointer; padding:14px; border-radius:16px; background:linear-gradient(135deg,rgba(8,24,57,.88),rgba(5,16,39,.92)); border:1px solid rgba(0,200,255,.1); box-shadow:0 8px 24px rgba(0,0,0,.18); transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
        .pulse-card:hover { transform:translateY(-2px); border-color:rgba(0,220,255,.3); box-shadow:0 12px 30px rgba(0,0,0,.28); }
        .pulse-card-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
        .pulse-location { min-width:0; }
        .pulse-city { color:#fff; font-size:15px; font-weight:800; line-height:1.2; }
        .pulse-address { color:rgba(255,255,255,.58); font-size:12px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .pulse-risk { flex:0 0 auto; font-size:10px; font-weight:800; padding:4px 8px; border-radius:999px; background:rgba(72,232,173,.11); color:#55E8B9; border:1px solid rgba(72,232,173,.2); }
        .pulse-risk.overdue { color:#FF766D; background:rgba(255,70,70,.12); border-color:rgba(255,70,70,.28); }
        .pulse-risk.today { color:#FFD85A; background:rgba(255,202,40,.11); border-color:rgba(255,202,40,.25); }
        .pulse-card-meta { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; color:rgba(255,255,255,.55); font-size:11px; }
        .pulse-card-meta strong { color:rgba(255,255,255,.88); }
        .pulse-progress-row { display:flex; align-items:center; gap:9px; margin-top:11px; }
        .pulse-progress { flex:1; height:6px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.08); }
        .pulse-progress > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#24C6FF,#48E8AD); }
        .pulse-progress-label { color:rgba(255,255,255,.52); font-size:10px; min-width:66px; text-align:right; }
        .pulse-evidence { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
        .pulse-evidence-chip { padding:3px 7px; border-radius:8px; font-size:10px; color:rgba(255,255,255,.52); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07); }
        .pulse-evidence-chip.ready { color:#55E8B9; background:rgba(72,232,173,.08); border-color:rgba(72,232,173,.18); }
        .pulse-next { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:11px; padding-top:10px; border-top:1px solid rgba(255,255,255,.07); }
        .pulse-next-label { color:rgba(255,255,255,.48); font-size:10px; }
        .pulse-next strong { display:block; color:#65E8FF; font-size:12px; margin-top:2px; }
        .pulse-open-btn { border:0; cursor:pointer; border-radius:10px; padding:7px 11px; font-size:11px; font-weight:800; color:#071326; background:linear-gradient(135deg,#3DE5FF,#55ECB7); }

        .pulse-rail { display:flex; flex-direction:column; gap:12px; }
        .pulse-panel { padding:14px; border-radius:16px; background:rgba(6,20,48,.82); border:1px solid rgba(0,200,255,.1); box-shadow:0 8px 24px rgba(0,0,0,.16); }
        .pulse-panel-title { color:#fff; font-size:13px; font-weight:800; margin-bottom:10px; }
        .pulse-radar-item,.pulse-route-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06); color:rgba(255,255,255,.6); font-size:11px; }
        .pulse-radar-item:last-child,.pulse-route-item:last-child { border-bottom:0; }
        .pulse-radar-count { min-width:26px; text-align:center; padding:3px 7px; border-radius:9px; color:#fff; font-weight:800; background:rgba(0,200,255,.12); }
        .pulse-route-text { min-width:0; }
        .pulse-route-city { color:rgba(255,255,255,.88); font-weight:700; }
        .pulse-route-address { color:rgba(255,255,255,.42); margin-top:2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
        .pulse-map-link { flex:0 0 auto; color:#55E8FF; text-decoration:none; padding:4px 6px; border-radius:7px; background:rgba(0,200,255,.08); }
        .pulse-empty { padding:28px; text-align:center; border-radius:16px; color:rgba(255,255,255,.4); background:rgba(5,18,44,.7); border:1px dashed rgba(0,200,255,.15); }
        @media (max-width: 900px) { .pulse-layout { grid-template-columns:1fr; } .pulse-rail { display:grid; grid-template-columns:1fr 1fr; } }
        @media (max-width: 640px) {
          .pulse-view-switch { width:100%; }
          .pulse-view-btn { flex:1; }
          .pulse-hero { padding:15px; }
          .pulse-title { font-size:19px; }
          .pulse-metrics { grid-template-columns:repeat(2,1fr); }
          .pulse-metric:last-child { grid-column:span 2; }
          .pulse-rail { display:flex; }
          .pulse-card { padding:13px; }
          .pulse-address { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
        }

        /* ===== BULK DEADLINE BAR ===== */
        .bulk-bar { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:rgba(4,12,36,0.95); border:1px solid rgba(0,220,255,0.3); border-radius:14px; padding:12px 18px; display:flex; align-items:center; gap:12px; z-index:3000; box-shadow:0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,200,255,0.12); backdrop-filter:blur(24px); flex-wrap:wrap; }

        /* ===== ORDER HISTORY TAB ===== */
        .order-history-entry { padding:10px 0; border-bottom:1px solid rgba(0,200,255,0.06); display:flex; gap:10px; align-items:flex-start; }
        .order-history-entry:last-child { border-bottom:none; }
        .order-history-dot { width:8px;height:8px;border-radius:50%;background:#00DDFF;flex-shrink:0;margin-top:5px;box-shadow:0 0 8px rgba(0,220,255,0.6); }

        /* ===== ORDER 2.0: speed + mobile field mode ===== */
        .bp-order-modal { width:min(760px,96vw); padding:0 !important; max-height:92vh; overflow-y:auto !important; overflow-x:hidden !important; -webkit-overflow-scrolling:touch; }
        .bp-order-modal > * { padding-left:22px; padding-right:22px; }
        .bp-order-top { padding-top:20px; padding-bottom:12px; background:linear-gradient(135deg,rgba(5,24,62,.98),rgba(4,13,36,.96)); border-bottom:1px solid rgba(0,220,255,.12); position:sticky; top:0; z-index:5; backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); }
        .bp-order-title-main { color:#fff; font-size:20px; line-height:1.15; font-weight:850; letter-spacing:-.02em; }
        .bp-order-title-sub { color:rgba(255,255,255,.52); font-size:12px; margin-top:4px; line-height:1.35; }
        .bp-order-tech { display:inline-flex; margin-top:7px; padding:3px 7px; border-radius:8px; color:rgba(255,255,255,.38); background:rgba(255,255,255,.055); font-size:10px; letter-spacing:.04em; }
        .bp-order-summary { margin:12px 0 10px; padding:12px; border-radius:16px; background:rgba(0,200,255,.055); border:1px solid rgba(0,220,255,.12); }
        .bp-order-summary-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
        .bp-order-summary-card { padding:9px 10px; border-radius:12px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.07); min-width:0; }
        .bp-order-summary-label { color:rgba(255,255,255,.42); font-size:10px; margin-bottom:4px; }
        .bp-order-summary-value { color:rgba(255,255,255,.92); font-size:12px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .bp-readiness-bar { height:7px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; margin-top:10px; }
        .bp-readiness-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,#28D7FF,#58E7B2); transition:width .25s ease; }
        .bp-warning-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
        .bp-warning-chip { padding:4px 8px; border-radius:999px; font-size:10.5px; font-weight:800; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.055); color:rgba(255,255,255,.58); }
        .bp-warning-chip.ok { color:#58E7B2; background:rgba(72,232,173,.09); border-color:rgba(72,232,173,.20); }
        .bp-warning-chip.warn { color:#FFD60A; background:rgba(255,214,10,.09); border-color:rgba(255,214,10,.22); }
        .bp-warning-chip.danger { color:#FF6B63; background:rgba(255,69,58,.10); border-color:rgba(255,69,58,.24); }
        .bp-quick-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:10px; }
        .bp-quick-action { min-height:40px; border:1px solid rgba(0,220,255,.16); border-radius:12px; background:rgba(0,220,255,.07); color:#BDF6FF; cursor:pointer; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:6px; padding:8px 10px; font-size:12px; font-weight:800; transition:transform .15s ease, background .15s ease, border-color .15s ease; }
        .bp-quick-action:hover { transform:translateY(-1px); background:rgba(0,220,255,.12); border-color:rgba(0,220,255,.30); }
        .bp-quick-action.primary { color:#06162C; background:linear-gradient(135deg,#3FE4FF,#5BE8B2); border-color:transparent; }
        .bp-detail-tabs { padding-left:22px !important; padding-right:22px !important; overflow-x:auto; -webkit-overflow-scrolling:touch; }
        .bp-order-card-polish { border:1px solid rgba(0,220,255,.12) !important; background:linear-gradient(135deg,rgba(7,22,55,.86),rgba(4,14,36,.92)) !important; }
        .bp-card-checklist { display:flex; gap:5px; flex-wrap:wrap; margin-top:8px; }
        .bp-card-check { padding:3px 6px; border-radius:7px; font-size:10px; background:rgba(255,255,255,.05); color:rgba(255,255,255,.44); border:1px solid rgba(255,255,255,.06); }
        .bp-card-check.ready { color:#58E7B2; background:rgba(72,232,173,.08); border-color:rgba(72,232,173,.18); }
        .bp-load-more-wrap { text-align:center; margin:16px 0 6px; }
        .bp-load-more { min-width:190px; }
        @media (max-width: 640px) {
          .bp-order-modal { width:100% !important; max-height:96vh !important; border-radius:18px 18px 0 0 !important; padding-bottom:76px !important; }
          .bp-order-modal > * { padding-left:14px; padding-right:14px; }
          .bp-order-top { padding-top:15px; }
          .bp-order-tech { display:none; }
          .bp-order-title-main { font-size:18px; }
          .bp-order-title-sub { font-size:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
          .bp-order-summary-grid { grid-template-columns:1fr 1fr; }
          .bp-order-summary-card.next { grid-column:span 2; }

          .bp-quick-actions { position:fixed; left:8px; right:8px; bottom:8px; z-index:5000; grid-template-columns:repeat(4,1fr); padding:8px; border-radius:18px; background:rgba(3,10,28,.92); border:1px solid rgba(0,220,255,.18); box-shadow:0 12px 36px rgba(0,0,0,.55); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); }
          .bp-quick-action { min-height:48px; padding:7px 5px; font-size:11px; flex-direction:column; gap:2px; }
          .bp-detail-tabs { padding-left:14px !important; padding-right:14px !important; }
        }

        /* ===== LOGIN ===== */
        .login-container { display: flex; justify-content: center; align-items: center; height: 100vh;
            background: radial-gradient(ellipse at 30% 50%, rgba(0,80,180,0.2) 0%, transparent 55%),
                        radial-gradient(ellipse at 80% 20%, rgba(0,200,255,0.1) 0%, transparent 50%),
                        linear-gradient(160deg, #030814 0%, #060E1E 100%); }
        .login-card { background: rgba(6, 14, 40, 0.86); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: 1px solid rgba(0,200,255,0.14); border-radius: 20px; padding: 40px; width: 100%; max-width: 380px; box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,255,0.05), inset 0 1px 0 rgba(0,240,255,0.08); }
        .login-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 28px; color: rgba(255, 255, 255, 0.96); letter-spacing: -0.3px; }

        .login-error { color: #FF453A; font-size: 12px; margin-bottom: 12px; text-align: center; }

        /* ===== STATS ===== */
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
        .stat-card { background: rgba(8, 20, 55, 0.52); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(0,200,255,0.1); border-radius: 14px; padding: 18px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(0,240,255,0.06); transition: all 0.25s ease; }
        .stat-card:hover { border-color: rgba(0,220,255,0.22); box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 20px rgba(0,200,255,0.08); }
        .stat-label { font-size: 11px; color: rgba(0,200,255,0.5); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
        .stat-value { font-size: 26px; font-weight: 800; color: rgba(255, 255, 255, 0.95); }
        .no-data { text-align: center; padding: 50px 20px; color: rgba(0,200,255,0.3); font-size: 14px; }

        /* ===== TABLES ===== */
        .table-container { background: rgba(6, 14, 40, 0.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(0,200,255,0.1); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
        table { width: 100%; border-collapse: collapse; }
        th { background: rgba(0, 50, 120, 0.4); padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 700; color: rgba(0,200,255,0.6); text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid rgba(0,200,255,0.1); }
        td { padding: 12px 14px; border-bottom: 1px solid rgba(0,200,255,0.05); font-size: 13px; color: rgba(255, 255, 255, 0.8); }
        tr:hover { background: rgba(0, 100, 200, 0.06); }
        .salary-total-row { font-weight: 700; background: rgba(0,200,255,0.07); }
        .salary-total-row:hover { background: rgba(0,200,255,0.12); }

        /* ===== MAP ORDER LIST ===== */
        .map-order-list { display: flex; flex-direction: column; gap: 0; overflow-y: auto; max-height: 220px; border: 1px solid rgba(0,200,255,0.08); border-radius: 12px; background: rgba(4,12,36,0.5); }
        .map-order-item { padding: 10px 14px; border-bottom: 1px solid rgba(0,200,255,0.06); cursor: pointer; transition: all 0.2s ease; background: transparent; }
        .map-order-item:last-child { border-bottom: none; }
        .map-order-item:hover { background: rgba(0,180,255,0.06); }
        .map-order-item.selected { background: rgba(0,200,255,0.1); border-left: 3px solid rgba(0,220,255,0.55); padding-left: 11px; }
        .map-smart-page { display:flex; flex-direction:column; height:calc(100vh - 120px); min-height:520px; }
        .map-smart-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:10px; }
        .map-smart-title { color:#fff; font-size:18px; font-weight:850; line-height:1.15; }
        .map-smart-subtitle { color:rgba(255,255,255,.42); font-size:11px; margin-top:4px; }
        .map-filter-row { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
        .map-smart-filter { border:1px solid rgba(0,200,255,.13); background:rgba(0,200,255,.045); color:rgba(255,255,255,.5); border-radius:999px; padding:6px 10px; font-size:10px; font-weight:750; cursor:pointer; transition:all .17s ease; }
        .map-smart-filter:hover { color:#74EAFF; border-color:rgba(0,220,255,.3); background:rgba(0,200,255,.09); }
        .map-smart-filter.active { color:#071326; border-color:transparent; background:linear-gradient(135deg,#42E7FF,#57ECB5); box-shadow:0 5px 16px rgba(0,220,255,.18); }
        .map-smart-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(265px,.68fr); gap:10px; flex:1 1 auto; min-height:250px; margin-bottom:10px; }
        .map-frame-smart { min-height:250px; border-radius:14px; overflow:hidden; border:1px solid rgba(0,200,255,.1); box-shadow:0 8px 26px rgba(0,0,0,.22); background:rgba(4,12,36,.6); }
        .map-autopilot { position:relative; overflow:hidden; padding:15px; border-radius:14px; background:linear-gradient(145deg,rgba(7,31,69,.94),rgba(5,17,43,.96)); border:1px solid rgba(72,231,255,.17); box-shadow:0 8px 26px rgba(0,0,0,.22); }
        .map-autopilot:after { content:""; position:absolute; width:130px; height:130px; border-radius:50%; right:-58px; top:-65px; background:rgba(0,220,255,.11); }
        .map-auto-kicker { position:relative; z-index:1; color:#59E9FF; font-size:9px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
        .map-auto-title { position:relative; z-index:1; color:#fff; font-size:15px; font-weight:850; margin-top:5px; }
        .map-auto-location { position:relative; z-index:1; margin-top:12px; padding:11px; border-radius:12px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.07); }
        .map-auto-city { color:#fff; font-size:14px; font-weight:800; }
        .map-auto-address { color:rgba(255,255,255,.52); font-size:11px; margin-top:3px; line-height:1.35; }
        .map-auto-reason { display:inline-flex; margin-top:9px; padding:4px 7px; border-radius:8px; color:#FFD767; background:rgba(255,197,35,.09); border:1px solid rgba(255,197,35,.18); font-size:9px; font-weight:750; }
        .map-auto-next { color:rgba(255,255,255,.45); font-size:10px; margin-top:11px; }
        .map-auto-next strong { display:block; color:#5FE9FF; font-size:12px; margin-top:3px; }
        .map-auto-progress { height:5px; margin-top:10px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.08); }
        .map-auto-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#25C8FF,#54EAB4); }
        .map-auto-actions { display:flex; gap:6px; margin-top:12px; }
        .map-auto-btn { flex:1; border:0; border-radius:9px; padding:7px 8px; cursor:pointer; font-size:10px; font-weight:800; text-align:center; text-decoration:none; color:#071326; background:linear-gradient(135deg,#3EE5FF,#54EBB7); }
        .map-auto-btn.secondary { color:#68E9FF; background:rgba(0,200,255,.08); border:1px solid rgba(0,200,255,.18); }
        .map-route-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; padding:9px 11px; border-radius:12px; background:rgba(5,20,48,.78); border:1px solid rgba(0,200,255,.09); }
        .map-route-summary { min-width:0; }

        .map-route-summary strong { display:block; color:rgba(255,255,255,.88); font-size:12px; }
        .map-route-summary span { display:block; color:rgba(255,255,255,.4); font-size:10px; margin-top:2px; }
        .map-route-open { flex:0 0 auto; text-decoration:none; color:#071326; background:linear-gradient(135deg,#FFCC4A,#FF9D35); border-radius:9px; padding:7px 11px; font-size:10px; font-weight:850; }
        .map-stop-badge { flex:0 0 auto; width:24px; height:24px; display:flex; align-items:center; justify-content:center; border-radius:9px; color:#071326; font-size:10px; font-weight:900; background:#56E8FF; box-shadow:0 0 12px rgba(0,220,255,.2); }
        .map-order-item.smart-overdue { box-shadow:inset 3px 0 0 #FF625A; }
        .map-order-item.smart-today { box-shadow:inset 3px 0 0 #FFD04D; }
        .map-order-item.smart-urgent { box-shadow:inset 3px 0 0 #FF8B4A; }
        .map-order-item.smart-normal { box-shadow:inset 3px 0 0 rgba(72,232,173,.45); }
        .map-order-item.selected { box-shadow:inset 3px 0 0 #44E5FF,0 0 0 1px rgba(0,220,255,.16); border-left:0; padding-left:14px; }
        .map-priority-label { display:inline-flex; margin-top:4px; padding:2px 6px; border-radius:7px; font-size:9px; color:rgba(255,255,255,.46); background:rgba(255,255,255,.045); }
        @media (max-width: 820px) {
          .map-smart-page { height:auto; min-height:calc(100vh - 110px); }
          .map-smart-head { flex-direction:column; }
          .map-filter-row { justify-content:flex-start; width:100%; overflow-x:auto; flex-wrap:nowrap; padding-bottom:3px; }
          .map-smart-filter { flex:0 0 auto; }
          .map-smart-grid { grid-template-columns:1fr; min-height:0; }
          .map-frame-smart { min-height:300px; height:42vh; }
          .map-autopilot { order:-1; }
          .map-order-list { max-height:360px; }
        }

        /* ===== KANBAN BOARD ===== */
        .kanban-board { display: flex; gap: 12px; flex: 1; overflow: hidden; padding: 16px; }
        .kanban-column { flex: 1; display: flex; flex-direction: column; background: rgba(5,14,42,0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; border: 1px solid rgba(0,200,255,0.09); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
        .kanban-header { padding: 14px 16px; border-bottom: 1px solid rgba(0,200,255,0.08); display: flex; align-items: center; gap: 8px; background: rgba(0,40,100,0.25); }
        .kanban-header-title { font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.88); }
        .kanban-count { background: rgba(0,200,255,0.1); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; color: rgba(0,220,255,0.65); border: 1px solid rgba(0,200,255,0.15); }
        .kanban-cards { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
        .kanban-empty { text-align: center; padding: 30px 10px; color: rgba(0,200,255,0.2); font-size: 13px; }

        /* ===== NOTIFICATIONS ===== */
        .notification-bell { position: relative; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 9px; background: rgba(0,200,255,0.07); border: 1px solid rgba(0,200,255,0.14); transition: all 0.22s ease; }
        .notification-bell:hover { background: rgba(0,200,255,0.14); box-shadow: 0 0 14px rgba(0,200,255,0.15); }
        .notification-badge { position: absolute; top: -4px; right: -4px; background: #FF453A; color: white; font-size: 9px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px rgba(255,59,48,0.5); }
        .notification-panel { position: absolute; top: 42px; right: 0; width: 340px; max-height: 420px; overflow-y: auto; background: rgba(4,12,38,0.97); border: 1px solid rgba(0,200,255,0.14); border-radius: 14px; box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 20px rgba(0,150,255,0.08); z-index: 9999; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
        .notification-item { padding: 12px 14px; border-bottom: 1px solid rgba(0,200,255,0.05); cursor: pointer; transition: background 0.2s; }
        .notification-item:hover { background: rgba(0,150,255,0.06); }
        .notification-item.unread { border-left: 3px solid #00DDFF; }
        .notification-group-count { display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:19px; margin-left:6px; padding:0 5px; border-radius:9px; font-size:9px; font-weight:800; color:#071326; background:#54E8FF; vertical-align:middle; }
        .notification-empty { padding: 30px; text-align: center; color: rgba(0,200,255,0.3); font-size: 13px; }
        /* ===== STATUS ACTION BUTTONS ===== */
        .status-action-btn { padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.22s ease; border: none; display: flex; align-items: center; gap: 6px; justify-content: center; }
        .status-action-btn:hover { transform: translateY(-2px); }
        .btn-send-review { background: linear-gradient(135deg, #00D4FF 0%, #0088CC 100%); color: white; box-shadow: 0 3px 14px rgba(0,180,240,0.45); }
        .btn-accept-order { background: linear-gradient(135deg, #00E676 0%, #00A855 100%); color: white; box-shadow: 0 3px 14px rgba(0,200,100,0.45); }
        .btn-return-work { background: linear-gradient(135deg, #F0C040 0%, #C49A1C 100%); color: white; box-shadow: 0 3px 14px rgba(212,160,23,0.4); }
        .accrual-badge { display: inline-block; background: rgba(0,220,255,0.1); color: #00DDFF; border: 1px solid rgba(0,220,255,0.22); border-radius: 9px; padding: 6px 12px; font-size: 12px; font-weight: 600; margin-top: 8px; box-shadow: 0 0 12px rgba(0,200,255,0.08); }

        /* ===== МУЛЬТИВЫБОР МОНТАЖНИКОВ ===== */
        .multi-assignee-wrap { position: relative; }
        .multi-assignee-trigger { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; min-height: 38px; }
        .multi-assignee-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 300; background: rgba(4,12,36,0.98); border: 1px solid rgba(0,200,255,0.16); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.65), 0 0 20px rgba(0,150,255,0.08); max-height: 210px; overflow-y: auto; backdrop-filter: blur(20px); }
        .multi-assignee-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 13px; border-bottom: 1px solid rgba(0,200,255,0.05); transition: background 0.15s; }
        .multi-assignee-option:hover { background: rgba(0,180,255,0.07); }
        .multi-assignee-option.selected { background: rgba(0,200,255,0.09); color: #00DDFF; }
        .assignee-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.22); border-radius: 10px; padding: 2px 7px; color: #00DDFF; }
        .assignee-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }

        /* ===== WB АКТ ===== */
        .wb-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; background: rgba(255,193,7,0.12); border: 1px solid rgba(255,193,7,0.3); border-radius: 6px; padding: 2px 7px; color: #FFC107; letter-spacing: 0.3px; box-shadow: 0 0 10px rgba(255,193,7,0.12); }
        .wb-act-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        .wb-act-table th { background: rgba(0,40,100,0.35); padding: 8px 10px; font-size: 11px; font-weight: 600; color: rgba(0,200,255,0.55); border: 1px solid rgba(0,200,255,0.08); text-align: left; }
        .wb-act-table td { padding: 6px 8px; border: 1px solid rgba(0,200,255,0.06); font-size: 12px; }

        .wb-act-table td input { background: transparent; border: none; outline: none; color: rgba(255,255,255,0.85); font-size: 12px; width: 100%; padding: 2px 4px; font-family: inherit; }
        .wb-act-table td input:focus { background: rgba(0,200,255,0.07); border-radius: 4px; }
        .wb-act-table .required-cell input:not(:placeholder-shown) { color: #00DDFF; }
        .wb-act-table .required-cell { background: rgba(255,193,7,0.04); }
        .wb-act-table .required-cell input { color: rgba(255,255,255,0.9); }
        .wb-act-header-field { display: flex; flex-direction: column; gap: 4px; }
        .wb-act-header-field label { font-size: 11px; color: rgba(0,200,255,0.4); }
        .wb-act-header-field input { background: rgba(0,30,80,0.4); border: 1px solid rgba(0,200,255,0.12); border-radius: 7px; padding: 7px 10px; font-size: 13px; color: rgba(255,255,255,0.88); outline: none; font-family: inherit; }
        .wb-act-header-field input:focus { border-color: rgba(0,220,255,0.4); }
        .wb-act-header-field.required input { border-color: rgba(255,193,7,0.3); background: rgba(255,193,7,0.04); }
        .wb-act-total { text-align: right; font-size: 15px; font-weight: 700; color: #00DDFF; padding: 12px 10px; border-top: 1px solid rgba(0,200,255,0.1); }

        /* ===== DIEM / PAYMENT ===== */
        .diem-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.25); border-radius: 7px; padding: 3px 9px; color: #00DDFF; }
        .diem-badge.pending { background: rgba(255,149,0,0.1); border-color: rgba(255,149,0,0.28); color: #FF9500; }
        .pay-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
        .pay-method-card { border: 2px solid rgba(0,200,255,0.1); border-radius: 13px; padding: 14px 12px; cursor: pointer; transition: all 0.2s; background: rgba(0,30,80,0.35); display: flex; flex-direction: column; align-items: center; gap: 6px; }
        .pay-method-card:hover { border-color: rgba(0,200,255,0.4); background: rgba(0,80,180,0.2); box-shadow: 0 0 18px rgba(0,180,255,0.1); }
        .pay-method-card.selected { border-color: #00DDFF; background: rgba(0,150,220,0.14); box-shadow: 0 0 0 1px rgba(0,200,255,0.2), 0 0 20px rgba(0,200,255,0.12); }
        .pay-method-card .pay-icon { font-size: 28px; }
        .pay-method-card .pay-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); text-align: center; }
        .pay-method-card .pay-tag { font-size: 10px; color: rgba(0,200,255,0.4); }
        .pay-method-card.selected .pay-name { color: #00DDFF; text-shadow: 0 0 12px rgba(0,200,255,0.5); }
        .pay-qr-box { background: #fff; border-radius: 14px; padding: 8px; display: flex; align-items: center; justify-content: center; margin: 10px auto; width: 196px; height: 196px; box-shadow: 0 0 30px rgba(0,200,255,0.2); overflow: hidden; }
        .pay-amount-big { font-size: 36px; font-weight: 800; color: #00DDFF; text-align: center; margin: 8px 0; letter-spacing: -1px; text-shadow: 0 0 24px rgba(0,200,255,0.45); }
        .pay-purpose { background: rgba(0,40,100,0.38); border: 1px solid rgba(0,200,255,0.1); border-radius: 10px; padding: 10px 14px; font-size: 12px; color: rgba(255,255,255,0.62); margin: 10px 0; }
        .pay-progress { height: 4px; background: rgba(0,200,255,0.1); border-radius: 2px; overflow: hidden; margin: 12px 0; }
        .pay-progress-bar { height: 100%; background: linear-gradient(90deg, #00DDFF, #0088CC); border-radius: 2px; transition: width 0.15s linear; box-shadow: 0 0 8px rgba(0,200,255,0.5); }
        .pay-success-screen { text-align: center; padding: 20px 10px; }
        .pay-success-icon { font-size: 64px; margin-bottom: 12px; animation: pay-bounce 0.4s ease; }
        @keyframes pay-bounce { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
        .pay-history-entry { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,200,255,0.07); }
        .pay-history-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
        @media (max-width: 800px) {
            .pay-method-grid { grid-template-columns: 1fr 1fr; }
            .pay-amount-big { font-size: 28px; }
        }
        @media (max-width: 480px) {
            .pay-method-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
            .pay-method-card { padding: 10px 8px; }
        }

        /* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar { width: 5px; height: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(0, 200, 255, 0.15); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0, 200, 255, 0.28); }

        /* ===== TOAST NOTIFICATIONS ===== */
        .toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
        .toast { background: rgba(4,12,36,0.96); border: 1px solid rgba(0,200,255,0.16); border-radius: 12px; padding: 12px 16px; min-width: 280px; max-width: 360px; backdrop-filter: blur(28px); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,150,255,0.08); animation: toastIn 0.3s ease-out; border-left: 3px solid #00DDFF; pointer-events: auto; }
        @keyframes toastIn { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
        .toast-exit { animation: toastOut 0.3s ease-in forwards; }
        @keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100px); } }

        /* ===== LIGHTBOX ===== */
        .lightbox-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.93); z-index: 10010; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
        .lightbox-img { max-width: 92vw; max-height: 80vh; border-radius: 8px; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 40px rgba(0,200,255,0.08); }
        .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.2); color: #00DDFF; font-size: 28px; padding: 10px 16px; cursor: pointer; border-radius: 8px; transition: all 0.2s; z-index: 2; }
        .lightbox-nav:hover { background: rgba(0,200,255,0.2); box-shadow: 0 0 16px rgba(0,200,255,0.3); }
        .lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.18); color: rgba(255,255,255,0.85); font-size: 20px; padding: 8px 12px; cursor: pointer; border-radius: 8px; z-index: 2; transition: all 0.2s; }
        .lightbox-close:hover { background: rgba(0,200,255,0.18); color: #00DDFF; }
        .lightbox-actions { display: flex; gap: 10px; margin-top: 14px; z-index: 2; }
        .lightbox-actions button { padding: 9px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
        @media (max-width: 800px) { .lightbox-img { max-width: 96vw; max-height: 75vh; } .lightbox-nav { font-size: 22px; padding: 8px 12px; } }

        /* ===== PHOTO GROUPS ===== */
        .photo-group { margin-bottom: 10px; border: 1px solid rgba(0,200,255,0.08); border-radius: 8px; overflow: hidden; }
        .photo-group-header { padding: 8px 12px; background: rgba(0,200,255,0.04); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(0,220,255,0.7); transition: background 0.2s; }
        .photo-group-header:hover { background: rgba(0,200,255,0.08); color: #00DDFF; }
        .photo-group-body { padding: 8px; }

        .lazy-img-placeholder { width: 60px; height: 60px; border-radius: 8px; background: rgba(0,200,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 10px; color: rgba(0,200,255,0.25); }

        /* ===== ACT TABLE ===== */
        .act-table-container { background: rgba(0,20,60,0.3); border-radius: 12px; border: 1px solid rgba(0,200,255,0.1); overflow: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; max-height: 60vh; }
        .act-table { min-width: 100%; border-collapse: collapse; }
        .act-table th { background: rgba(0,200,255,0.08); padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 600; color: rgba(0,220,255,0.7); border: 1px solid rgba(0,200,255,0.1); position: sticky; top: 0; white-space: nowrap; }
        .act-table td { padding: 6px 8px; border: 1px solid rgba(0,200,255,0.06); font-size: 12px; color: rgba(255,255,255,0.8); min-width: 80px; }
        .act-table td[contenteditable]:focus { background: rgba(0,200,255,0.08); outline: 1px solid rgba(0,200,255,0.3); }
        @media (max-width: 600px) {
          .act-editor-modal { width: 100% !important; margin: 0 !important; border-radius: 16px 16px 0 0 !important; max-height: 94vh !important; overflow-y: auto; padding: 16px 12px 24px !important; }
          .modal-overlay:has(.act-editor-modal) { align-items: flex-end !important; padding: 0 !important; }
          .act-table-container { max-height: 48vh; border-radius: 8px; }
          .act-table { min-width: 600px; }
          .act-table th { font-size: 14px; padding: 12px 14px; min-width: 120px; }
          .act-table td { font-size: 15px; padding: 11px 14px; min-width: 120px; min-height: 44px; line-height: 1.5; }
          .act-table td[contenteditable] { min-height: 44px; }
          .act-table td[contenteditable]:focus { font-size: 16px; }
          .act-editor-actions { margin-top: 16px !important; gap: 10px !important; }
          .act-editor-actions .btn-secondary, .act-editor-actions .btn-primary { min-height: 44px; font-size: 14px !important; padding: 10px 14px !important; }
        }

        /* ===== CHAT TEXTAREA ===== */
        .chat-textarea { background: rgba(0,30,80,0.4); border: 1px solid rgba(0,200,255,0.1); border-radius: 8px; padding: 8px 12px; color: rgba(255,255,255,0.88); font-size: 13px; resize: none; outline: none; transition: border-color 0.2s; }
        .chat-textarea:focus { border-color: rgba(0,200,255,0.35); box-shadow: 0 0 0 3px rgba(0,200,255,0.06); }
        .chat-textarea::placeholder { color: rgba(0,200,255,0.25); }

        /* ===== SYNC INDICATOR ===== */
        .sync-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
        .sync-online { background: #00DDFF; box-shadow: 0 0 6px #00DDFF; }
        .sync-offline { background: #666; }

        /* ===== PRINT ===== */
        @media print {
            body { background: white !important; color: black !important; }
            .sidebar, .header, .notification-panel, .toast-container, .modal-overlay { display: none !important; }
            .app-container { display: block !important; }
            .main-content { display: block !important; }
            .content-area { padding: 10px !important; overflow: visible !important; }
            .act-table-container { max-height: none !important; overflow: visible !important; border-color: #ccc !important; }
            .act-table th { background: #f0f0f0 !important; color: black !important; border-color: #ccc !important; }
            .act-table td { color: black !important; border-color: #ccc !important; }
            .btn-primary, .btn-secondary, .btn-danger, .btn-yandex { display: none !important; }
            .card, .kanban-board, .cards-grid { display: none !important; }
            .no-data { display: none !important; }
        }

        /* ╔══════════════════════════════════════════════════════╗
           ║  v9.2 — UNIFIED GLASSMORPHISM UPGRADE               ║
           ║  Единый glassmorphism-стиль по всему дашборду       ║
           ╚══════════════════════════════════════════════════════╝ */

        /* ── Keyframes ── */
        @keyframes fadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
        @keyframes glowPulse { 0%,100%{box-shadow:0 4px 24px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05)} 50%{box-shadow:0 8px 32px rgba(0,0,0,.4),0 0 22px rgba(0,200,255,.1),inset 0 1px 0 rgba(0,240,255,.07)} }

        /* ── Cards ── */
        .card {
            background: rgba(5,16,52,0.58) !important;
            backdrop-filter: blur(22px) !important;
            -webkit-backdrop-filter: blur(22px) !important;
            border: 1px solid rgba(0,200,255,0.14) !important;
            border-radius: 16px !important;
            box-shadow: 0 4px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05) !important;
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease !important;
            overflow: hidden;
            position: relative;
        }
        .card::before {
            content: '';
            position: absolute;
            top: -40px; right: -40px;
            width: 130px; height: 130px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0,200,255,.07) 0%, transparent 70%);
            pointer-events: none;
        }
        .card:hover {
            background: rgba(0,50,130,.52) !important;
            border-color: rgba(0,220,255,.30) !important;
            transform: translateY(-5px) scale(1.012) !important;
            box-shadow: 0 18px 48px rgba(0,0,0,.50), 0 0 28px rgba(0,200,255,.15), inset 0 1px 0 rgba(0,240,255,.10) !important;
        }

        /* ── Stat cards ── */
        .stat-card {
            background: rgba(5,16,52,0.56) !important;
            backdrop-filter: blur(22px) !important;
            -webkit-backdrop-filter: blur(22px) !important;
            border: 1px solid rgba(0,200,255,0.13) !important;
            border-radius: 16px !important;
            box-shadow: 0 4px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05) !important;
            transition: all .25s ease !important;
            position: relative;
            overflow: hidden;
        }
        .stat-card::after {
            content: '';
            position: absolute;
            bottom: -22px; right: -22px;
            width: 90px; height: 90px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0,200,255,.11) 0%, transparent 70%);
            pointer-events: none;
        }
        .stat-card:hover {
            border-color: rgba(0,220,255,.28) !important;
            box-shadow: 0 10px 32px rgba(0,0,0,.40), 0 0 24px rgba(0,200,255,.13) !important;
            transform: translateY(-3px) !important;
        }
        .stat-value {
            font-size: 28px !important;
            font-weight: 800 !important;
            background: linear-gradient(135deg, rgba(255,255,255,.98) 20%, #00DDFF 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 10px rgba(0,200,255,.28));
        }
        .stat-label {
            font-size: 11px !important;
            color: rgba(0,220,255,.58) !important;
            letter-spacing: .8px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
        }

        /* ── Kanban columns ── */
        .kanban-column {
            background: rgba(4,12,42,.62) !important;
            backdrop-filter: blur(24px) !important;
            -webkit-backdrop-filter: blur(24px) !important;
            border: 1px solid rgba(0,200,255,.10) !important;
            border-radius: 18px !important;
            box-shadow: 0 4px 24px rgba(0,0,0,.28) !important;
        }

        .kanban-header {
            background: rgba(0,40,105,.30) !important;
            border-bottom: 1px solid rgba(0,200,255,.09) !important;
            border-radius: 18px 18px 0 0 !important;
        }
        .kanban-count {
            background: rgba(0,200,255,.13) !important;
            border: 1px solid rgba(0,200,255,.22) !important;
            color: rgba(0,230,255,.85) !important;
            box-shadow: 0 0 8px rgba(0,200,255,.09) !important;
            font-weight: 800 !important;
        }

        /* ── Tables ── */
        .table-container {
            background: rgba(4,12,42,.62) !important;
            backdrop-filter: blur(22px) !important;
            -webkit-backdrop-filter: blur(22px) !important;
            border: 1px solid rgba(0,200,255,.11) !important;
            border-radius: 16px !important;
            box-shadow: 0 4px 24px rgba(0,0,0,.28) !important;
        }
        th {
            background: rgba(0,40,112,.36) !important;
            border-bottom: 1px solid rgba(0,200,255,.12) !important;
            color: rgba(0,210,255,.68) !important;
        }
        td { border-bottom: 1px solid rgba(0,200,255,.05) !important; color: rgba(255,255,255,.83) !important; }
        tr:hover { background: rgba(0,100,200,.07) !important; }

        /* ── Modals ── */
        .modal {
            background: rgba(3,10,38,.93) !important;
            backdrop-filter: blur(38px) !important;
            -webkit-backdrop-filter: blur(38px) !important;
            border: 1px solid rgba(0,200,255,.17) !important;
            border-radius: 22px !important;
            box-shadow: 0 30px 80px rgba(0,0,0,.65),
                        0 0 0 1px rgba(0,200,255,.06),
                        0 0 60px rgba(0,150,255,.06),
                        inset 0 1px 0 rgba(0,240,255,.10) !important;
        }
        .modal-overlay {
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            background: rgba(0,5,20,.78) !important;
        }

        /* ── Sidebar ── */
        .sidebar {
            background: rgba(2,7,24,.90) !important;
            backdrop-filter: blur(34px) !important;
            -webkit-backdrop-filter: blur(34px) !important;
            border-right: 1px solid rgba(0,220,255,.09) !important;
            box-shadow: 4px 0 36px rgba(0,0,0,.52), 0 0 0 1px rgba(0,200,255,.04), inset -1px 0 0 rgba(0,240,255,.04) !important;
        }
        .sidebar-avatar { box-shadow: 0 0 24px rgba(0,212,255,.55), 0 0 48px rgba(0,212,255,.22), 0 0 8px rgba(0,212,255,.9) !important; }
        .sidebar-item { border-radius: 11px !important; transition: all .2s ease !important; }
        .sidebar-item:hover { background: rgba(0,220,255,.09) !important; color: rgba(0,240,255,.92) !important; box-shadow: inset 0 0 20px rgba(0,220,255,.04) !important; }
        .sidebar-item.active { background: rgba(0,220,255,.13) !important; color: #00F0FF !important; border-left-color: #00F0FF !important; box-shadow: inset 0 0 20px rgba(0,240,255,.09), 2px 0 0 rgba(0,240,255,.32) !important; }

        /* ── Header ── */
        .header {
            background: rgba(2,6,20,.74) !important;
            backdrop-filter: blur(30px) !important;
            -webkit-backdrop-filter: blur(30px) !important;
            border-bottom: 1px solid rgba(0,220,255,.08) !important;
            box-shadow: 0 1px 0 rgba(0,240,255,.05), 0 4px 30px rgba(0,0,0,.26) !important;
        }

        /* ── Chat panels ── */
        .chat-sidebar, .chat-main {
            background: rgba(4,12,42,.60) !important;
            backdrop-filter: blur(24px) !important;
            -webkit-backdrop-filter: blur(24px) !important;
            border: 1px solid rgba(0,200,255,.10) !important;
            border-radius: 14px !important;
            box-shadow: 0 4px 24px rgba(0,0,0,.28) !important;
        }
        .chat-tab { transition: all .18s ease !important; }
        .chat-tab:hover { background: rgba(0,200,255,.07) !important; }
        .chat-tab.active { background: rgba(0,200,255,.10) !important; border-left-color: #00DDFF !important; box-shadow: inset 0 0 14px rgba(0,200,255,.06) !important; }
        .chat-textarea-input {
            background: rgba(0,24,68,.46) !important;
            border: 1px solid rgba(0,200,255,.13) !important;
            border-radius: 12px !important;
        }
        .chat-textarea-input:focus { border-color: rgba(0,220,255,.44) !important; box-shadow: 0 0 0 3px rgba(0,200,255,.08), 0 0 20px rgba(0,200,255,.06) !important; }
        .chat-btn-send { border-radius: 10px !important; box-shadow: 0 4px 16px rgba(0,200,255,.30) !important; transition: all .2s !important; }
        .chat-btn-send:hover { box-shadow: 0 6px 22px rgba(0,200,255,.48) !important; transform: translateY(-1px) !important; }

        /* ── Map order list ── */
        .map-order-list {
            background: rgba(4,12,42,.62) !important;
            border: 1px solid rgba(0,200,255,.10) !important;
            border-radius: 14px !important;
            box-shadow: 0 4px 20px rgba(0,0,0,.28) !important;
        }
        .map-order-item:hover { background: rgba(0,200,255,.08) !important; }
        .map-order-item.selected { background: rgba(0,200,255,.13) !important; border-left: 3px solid rgba(0,220,255,.68) !important; box-shadow: inset 0 0 14px rgba(0,200,255,.06) !important; }

        /* ── Notification panel ── */
        .notification-panel {
            background: rgba(2,8,30,.98) !important;
            border: 1px solid rgba(0,200,255,.17) !important;
            border-radius: 16px !important;
            box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 24px rgba(0,150,255,.09) !important;
            backdrop-filter: blur(34px) !important;
            -webkit-backdrop-filter: blur(34px) !important;
        }
        .notification-item:hover { background: rgba(0,150,255,.07) !important; }
        .notification-item.unread { border-left: 3px solid #00DDFF !important; background: rgba(0,200,255,.04) !important; }

        /* ── Form inputs ── */
        .form-input, .form-select, .form-textarea {
            background: rgba(0,24,68,.42) !important;
            border: 1px solid rgba(0,200,255,.14) !important;
            border-radius: 10px !important;
            transition: all .22s ease !important;
        }
        .form-input:focus, .form-select:focus, .form-textarea:focus {
            background: rgba(0,40,110,.38) !important;
            border-color: rgba(0,220,255,.46) !important;
            box-shadow: 0 0 0 3px rgba(0,220,255,.09), 0 0 22px rgba(0,200,255,.07) !important;
        }

        /* ── Buttons ── */
        .btn-primary {
            background: linear-gradient(135deg, #00C8EE 0%, #007ECC 100%) !important;
            box-shadow: 0 2px 16px rgba(0,180,230,.44), inset 0 1px 0 rgba(255,255,255,.22) !important;
            border-radius: 10px !important;
        }
        .btn-primary:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 28px rgba(0,180,230,.60), 0 0 36px rgba(0,200,255,.24) !important; }
        .btn-secondary { background: rgba(0,220,255,.07) !important; border: 1px solid rgba(0,220,255,.19) !important; border-radius: 10px !important; }
        .btn-secondary:hover { background: rgba(0,220,255,.14) !important; border-color: rgba(0,220,255,.38) !important; box-shadow: 0 0 18px rgba(0,220,255,.13) !important; }

        /* ── Login card ── */
        .login-card {
            background: rgba(3,10,38,.92) !important;
            border: 1px solid rgba(0,200,255,.17) !important;
            border-radius: 22px !important;
            box-shadow: 0 36px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(0,200,255,.06), inset 0 1px 0 rgba(0,240,255,.10) !important;
        }

        /* ── Act table ── */
        .act-table-container { background: rgba(0,18,55,.40) !important; border: 1px solid rgba(0,200,255,.11) !important; border-radius: 14px !important; }


        /* ── Quick link buttons ── */
        .quick-link-btn { border-radius: 10px !important; background: rgba(0,220,255,.07) !important; border: 1px solid rgba(0,220,255,.12) !important; }
        .quick-link-btn:hover { background: rgba(0,220,255,.15) !important; border-color: rgba(0,220,255,.32) !important; box-shadow: 0 0 14px rgba(0,220,255,.14) !important; transform: translateY(-1px) !important; }

        /* ── Search box ── */
        .search-box { background: rgba(0,24,68,.42) !important; border: 1px solid rgba(0,200,255,.12) !important; border-radius: 10px !important; }
        .search-box:focus { border-color: rgba(0,220,255,.44) !important; background: rgba(0,40,110,.40) !important; box-shadow: 0 0 0 3px rgba(0,220,255,.09), 0 0 20px rgba(0,200,255,.07) !important; }

        /* ── Filter chips ── */
        .filter-chip { border-radius: 22px !important; border: 1px solid rgba(0,200,255,.14) !important; background: rgba(0,200,255,.05) !important; transition: all .2s ease !important; }
        .filter-chip:hover { background: rgba(0,200,255,.12) !important; border-color: rgba(0,200,255,.28) !important; box-shadow: 0 0 12px rgba(0,200,255,.10) !important; }
        .filter-chip.active { background: rgba(0,200,255,.17) !important; border-color: rgba(0,220,255,.50) !important; box-shadow: 0 0 16px rgba(0,200,255,.18) !important; }

        /* ── Payment method cards ── */
        .pay-method-card { background: rgba(0,24,72,.42) !important; border: 2px solid rgba(0,200,255,.13) !important; border-radius: 14px !important; transition: all .22s ease !important; }
        .pay-method-card:hover { border-color: rgba(0,200,255,.44) !important; background: rgba(0,70,170,.24) !important; box-shadow: 0 0 22px rgba(0,180,255,.15) !important; transform: translateY(-2px) !important; }
        .pay-method-card.selected { border-color: #00DDFF !important; background: rgba(0,150,220,.17) !important; box-shadow: 0 0 0 1px rgba(0,200,255,.24), 0 0 26px rgba(0,200,255,.16) !important; }

        /* ── Bulk bar ── */
        .bulk-bar { background: rgba(2,8,30,.98) !important; border: 1px solid rgba(0,220,255,.34) !important; border-radius: 16px !important; box-shadow: 0 16px 48px rgba(0,0,0,.65), 0 0 26px rgba(0,200,255,.15) !important; backdrop-filter: blur(30px) !important; }

        /* ── Multi-assignee dropdown ── */
        .multi-assignee-dropdown { background: rgba(2,8,30,.99) !important; border: 1px solid rgba(0,200,255,.19) !important; border-radius: 14px !important; box-shadow: 0 18px 48px rgba(0,0,0,.72), 0 0 26px rgba(0,150,255,.11) !important; }

        /* ── Photo groups ── */
        .photo-group { border: 1px solid rgba(0,200,255,.10) !important; border-radius: 10px !important; background: rgba(0,18,55,.30) !important; }
        .photo-group-header { background: rgba(0,200,255,.05) !important; }
        .photo-group-header:hover { background: rgba(0,200,255,.10) !important; }

        /* ── Toast ── */
        .toast { background: rgba(2,8,30,.97) !important; border: 1px solid rgba(0,200,255,.18) !important; border-radius: 14px !important; box-shadow: 0 14px 44px rgba(0,0,0,.55), 0 0 24px rgba(0,150,255,.09) !important; }

        /* ── Scrollbar refined ── */
        ::-webkit-scrollbar { width: 4px; height: 4px; }
        ::-webkit-scrollbar-track { background: rgba(0,0,0,.10); border-radius: 4px; }
        ::-webkit-scrollbar-thumb { background: rgba(0,200,255,.20); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,200,255,.38); }

        /* dark-only theme */

        /* ╔════════════════════════════════════════════════════════════╗
           ║  v9.3+ — MOBILE ANIMATIONS (Safari-safe)                   ║
           ║  Rules: only transform + opacity (GPU-only, no filter/      ║
           ║  backdrop-filter in keyframes — Safari crashes on those)    ║
           ╚════════════════════════════════════════════════════════════╝ */

        /* ════════════════════════════════════════════════════════════
           KEYFRAMES — только transform + opacity (GPU, Safari OK)
           ════════════════════════════════════════════════════════════ */

        @keyframes overlayFadeIn  { from{opacity:0} to{opacity:1} }
        @keyframes overlayFadeOut { from{opacity:1} to{opacity:0} }

        /* Modal — slide from bottom, spring overshoot */
        @keyframes modalSlideUp {
            0%   { opacity:0; transform:translateY(80px) scale(0.95); }
            50%  { opacity:1; transform:translateY(-6px) scale(1.006); }
            75%  { transform:translateY(3px)  scale(0.999); }
            100% { opacity:1; transform:translateY(0)    scale(1); }
        }
        @keyframes modalSlideDown {
            0%   { opacity:1; transform:translateY(0)    scale(1); }
            100% { opacity:0; transform:translateY(60px) scale(0.95); }
        }

        /* Lightbox — scale + opacity only (no filter!) */
        @keyframes lightboxBgIn  { from{opacity:0} to{opacity:1} }
        @keyframes lightboxBgOut { from{opacity:1} to{opacity:0} }
        @keyframes lightboxImgIn {
            0%   { opacity:0; transform:scale(0.75) translateY(16px); }
            55%  { opacity:1; transform:scale(1.04) translateY(-3px); }
            80%  { transform:scale(0.988) translateY(1px); }
            100% { opacity:1; transform:scale(1)    translateY(0); }
        }
        @keyframes lightboxImgOut {
            from { opacity:1; transform:scale(1); }
            to   { opacity:0; transform:scale(0.76) translateY(10px); }
        }

        /* Page transition */
        @keyframes pageEnter {
            from { opacity:0; transform:translateY(16px); }
            to   { opacity:1; transform:translateY(0); }
        }

        /* Toast — bounce, no filter */
        @keyframes toastBounce {
            0%   { opacity:0; transform:translateY(24px) scale(0.88); }
            50%  { opacity:1; transform:translateY(-6px) scale(1.022); }
            75%  { transform:translateY(3px)  scale(0.998); }
            100% { opacity:1; transform:translateY(0)    scale(1); }
        }
        @keyframes toastOut {
            from { opacity:1; transform:translateY(0) scale(1); }
            to   { opacity:0; transform:translateY(12px) scale(0.90); }
        }

        /* Photo / card stagger — no filter */
        @keyframes photoSlideIn {
            from { opacity:0; transform:translateY(10px) scale(0.92); }
            to   { opacity:1; transform:translateY(0)    scale(1); }
        }
        @keyframes cardStagger {
            from { opacity:0; transform:translateY(18px) scale(0.95); }
            to   { opacity:1; transform:translateY(0)    scale(1); }
        }

        /* Chat bubble */
        @keyframes chatBubbleIn {
            from { opacity:0; transform:translateY(12px) scale(0.94); }
            to   { opacity:1; transform:translateY(0)    scale(1); }
        }

        /* Notification */
        @keyframes notifSlideIn {
            from { opacity:0; transform:translateX(20px); }
            to   { opacity:1; transform:translateX(0); }
        }
        @keyframes notifPanelIn {
            from { opacity:0; transform:translateY(-10px) scale(0.96); }
            to   { opacity:1; transform:translateY(0)     scale(1); }
        }

        /* Login card — no filter */
        @keyframes loginCardIn {
            0%   { opacity:0; transform:translateY(36px) scale(0.94); }
            55%  { opacity:1; transform:translateY(-5px) scale(1.005); }
            80%  { transform:translateY(2px) scale(0.999); }
            100% { opacity:1; transform:translateY(0)    scale(1); }
        }

        /* Sidebar mobile slide */
        @keyframes sidebarSlideIn {
            from { opacity:0; transform:translateX(-100%); }
            to   { opacity:1; transform:translateX(0); }
        }

        /* Accent pulse */
        @keyframes accentPulse {
            0%,100% { box-shadow: 0 0 0 0 rgba(0,200,255,0); }

            50%      { box-shadow: 0 0 0 6px rgba(0,200,255,0.12); }
        }


        /* ════════════════════════════════════════════════════════════
           MODAL ANIMATIONS
           ════════════════════════════════════════════════════════════ */
        .modal-overlay {
            animation: overlayFadeIn .20s ease;
            will-change: opacity;
        }
        .modal {
            animation: modalSlideUp .42s cubic-bezier(0.32,0.72,0,1);
            will-change: transform, opacity;
        }
        /* Close */
        .modal-overlay.anim-closing        { animation: overlayFadeOut .28s cubic-bezier(.4,0,1,1) forwards !important; }
        .modal-overlay.anim-closing .modal { animation: modalSlideDown .28s cubic-bezier(.4,0,1,1) forwards !important; }


        /* ════════════════════════════════════════════════════════════
           LIGHTBOX ANIMATIONS
           ════════════════════════════════════════════════════════════ */
        .lightbox-overlay {
            animation: lightboxBgIn .24s ease;
            will-change: opacity;
        }
        .lightbox-img {
            animation: lightboxImgIn .38s cubic-bezier(0.32,0.72,0,1);
            will-change: transform, opacity;
        }
        /* Close */
        .lightbox-overlay.anim-closing              { animation: lightboxBgOut .20s ease forwards !important; }
        .lightbox-overlay.anim-closing .lightbox-img { animation: lightboxImgOut .18s cubic-bezier(.4,0,1,1) forwards !important; }


        /* ════════════════════════════════════════════════════════════
           PAGE TRANSITION
           ════════════════════════════════════════════════════════════ */
        .page-enter {
            animation: pageEnter .32s cubic-bezier(0.2,0,0,1);
            will-change: transform, opacity;
        }


        /* ════════════════════════════════════════════════════════════
           TOAST
           ════════════════════════════════════════════════════════════ */
        .toast      { animation: toastBounce .44s cubic-bezier(0.32,0.72,0,1) !important; will-change: transform, opacity; }
        .toast-exit { animation: toastOut    .24s cubic-bezier(.4,0,1,1) forwards !important; }


        /* ════════════════════════════════════════════════════════════
           PHOTO THUMBNAILS — stagger by nth-child
           ════════════════════════════════════════════════════════════ */
        .photo-thumbnail {
            animation: photoSlideIn .30s ease both;
        }
        .photo-thumbnail img { display: block; }
        .photo-thumbnail:nth-child(2) { animation-delay: .04s; }
        .photo-thumbnail:nth-child(3) { animation-delay: .08s; }
        .photo-thumbnail:nth-child(4) { animation-delay: .12s; }
        .photo-thumbnail:nth-child(5) { animation-delay: .16s; }
        .photo-thumbnail:nth-child(n+6) { animation-delay: .20s; }


        /* ════════════════════════════════════════════════════════════
           KANBAN CARDS — stagger appear
           ════════════════════════════════════════════════════════════ */
        .page-enter .card {
            animation: cardStagger .34s cubic-bezier(0.2,0,0,1) both;
        }
        .page-enter .kanban-cards .card:nth-child(1) { animation-delay: .03s; }
        .page-enter .kanban-cards .card:nth-child(2) { animation-delay: .07s; }
        .page-enter .kanban-cards .card:nth-child(3) { animation-delay: .11s; }
        .page-enter .kanban-cards .card:nth-child(4) { animation-delay: .15s; }
        .page-enter .kanban-cards .card:nth-child(5) { animation-delay: .19s; }
        .page-enter .kanban-cards .card:nth-child(n+6) { animation-delay: .23s; }


        /* ════════════════════════════════════════════════════════════
           CHAT BUBBLES — new messages slide up
           ════════════════════════════════════════════════════════════ */
        .chat-bubble {
            animation: chatBubbleIn .30s cubic-bezier(0.2,0,0,1) both;
        }


        /* ════════════════════════════════════════════════════════════
           NOTIFICATION PANEL + ITEMS
           ════════════════════════════════════════════════════════════ */
        .notification-panel {
            animation: notifPanelIn .22s cubic-bezier(0.2,0,0,1) both;
            transform-origin: top right;
        }
        .notification-item {
            animation: notifSlideIn .26s cubic-bezier(0.2,0,0,1) both;
        }
        .notification-item:nth-child(2) { animation-delay: .04s; }
        .notification-item:nth-child(3) { animation-delay: .08s; }
        .notification-item:nth-child(4) { animation-delay: .12s; }


        /* ════════════════════════════════════════════════════════════
           LOGIN CARD
           ════════════════════════════════════════════════════════════ */
        .login-card { animation: loginCardIn .48s cubic-bezier(0.32,0.72,0,1); will-change: transform, opacity; }


        /* ════════════════════════════════════════════════════════════
           TAP / ACTIVE STATES — GPU-only (transform + opacity)
           ════════════════════════════════════════════════════════════ */
        .btn-primary:active    { transform:scale(0.93) !important; transition:transform .09s ease !important; }
        .btn-secondary:active  { transform:scale(0.93) !important; transition:transform .09s ease !important; }
        .btn-danger:active     { transform:scale(0.93) !important; transition:transform .09s ease !important; }
        .btn-yandex:active     { transform:scale(0.93) !important; transition:transform .09s ease !important; }
        .status-action-btn:active { transform:scale(0.91) !important; transition:transform .09s ease !important; }
        .card:active           { transform:scale(0.968) !important; transition:transform .11s ease !important; }
        .sidebar-item:active   { transform:scale(0.95)  !important; transition:transform .09s ease !important; }
        .filter-chip:active    { transform:scale(0.88)  !important; transition:transform .09s ease !important; }
        .quick-link-btn:active { transform:scale(0.84)  !important; transition:transform .09s ease !important; }
        .pay-method-card:active { transform:scale(0.95) !important; transition:transform .10s ease !important; }
        .chat-tab:active       { transform:scale(0.96)  !important; transition:transform .09s ease !important; }
        .notification-bell:active { transform:scale(0.88) rotate(-12deg) !important; transition:transform .12s ease !important; }
        .photo-thumbnail:active { transform:scale(0.94) !important; transition:transform .09s ease !important; }
        .kanban-card:active    { transform:scale(0.97)  !important; transition:transform .10s ease !important; }
        /* Accent pulse for notification bell on ring */
        .notification-bell.has-notif { animation: accentPulse 2.2s ease infinite; }


        /* ════════════════════════════════════════════════════════════
           SMOOTH TRANSITIONS (hover → active)
           ════════════════════════════════════════════════════════════ */
        .btn-primary, .btn-secondary, .btn-danger, .btn-yandex,
        .status-action-btn, .filter-chip, .quick-link-btn,
        .pay-method-card, .photo-thumbnail, .kanban-card {
            transition: transform .18s cubic-bezier(0.2,0,0,1),
                        box-shadow .18s ease,
                        border-color .18s ease;
        }
        /* Don't fight with hover animations on desktop */
        @media (hover: none) {
            .card:hover { transform:none !important; }
            .btn-primary:hover { transform:none !important; }
        }


        /* ════════════════════════════════════════════════════════════
           WILL-CHANGE HINTS
           ════════════════════════════════════════════════════════════ */
        .chat-sidebar, .sidebar { will-change: transform; }
        .modal-overlay, .modal, .lightbox-overlay, .lightbox-img { will-change: transform, opacity; }



        /* ════════════════════════════════════════════════════════════
           IOS MOMENTUM SCROLLING
           ════════════════════════════════════════════════════════════ */
        .kanban-board, .kanban-cards, .content-area,
        .chat-messages, .modal { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }


        /* ════════════════════════════════════════════════════════════
           PREFERS REDUCED MOTION — accessibility
           ════════════════════════════════════════════════════════════ */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .01ms !important;
            }
            .modal-overlay.anim-closing, .lightbox-overlay.anim-closing {
                animation: overlayFadeOut .15s ease forwards !important;
            }
        }

        /* ===== AUTH LAYOUT FIX ===== */
        html,
        body,
        #root {
            width: 100% !important;
            min-width: 100% !important;
            min-height: 100% !important;
        }

        .login-container {
            position: fixed !important;
            inset: 0 !important;
            width: 100vw !important;
            min-width: 100vw !important;
            min-height: 100vh !important;
            min-height: 100dvh !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
            box-sizing: border-box !important;
        }

        .login-container .login-card {
            margin: 0 auto !important;
            width: min(100%, 430px) !important;
            max-width: 430px !important;
            box-sizing: border-box !important;
        }

        @media (max-width: 520px) {
            .login-container {
                align-items: center !important;
                padding: 14px !important;
            }

            .login-container .login-card {
                width: 100% !important;
                max-width: 420px !important;
                padding: 28px 20px !important;
            }
        }

