
.lawyer-dashboard-mode #navNotifBtn:hover {
    color: white !important;
}


.lawyer-dashboard-mode #navContactLink {
    color: rgba(255, 255, 255, 0.9) !important;
}

.lawyer-dashboard-mode #navContactLink:hover {
    color: white !important;
}


.lawyer-dashboard-mode .profile-picture {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.3) !important;
}


.lawyer-dashboard-mode .account-menu {
    border: 1px solid rgba(26, 64, 128, 0.2) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.lawyer-dashboard-mode .account-menu div:hover {
    background: #f0f5ff !important;
    color: var(--secondary) !important;
}


#chatContainer {
    position: fixed !important;
    bottom: 80px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 9999 !important;
    display: none !important;
}


.citizen-dashboard-mode #chatContainer,
.lawyer-dashboard-mode #chatContainer {
    display: block !important;
}









.admin-dashboard-mode #chatContainer.lcdjp-chat-open {
    display: block !important;
}


#chatWindow {
    width: 300px !important;
    height: 380px !important;
    max-width: 90vw !important;
    max-height: 70vh !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}


#chatLabels {
    max-width: 160px !important;
    padding: 10px 14px 14px 14px !important;
    border-radius: 14px !important;
}

#chatLabels button {
    font-size: 12px !important;
    padding: 6px 12px !important;
}


#chatMessages {
    /* Fill whatever height the window has so the input/footer sit at the bottom
       (a fixed max-height here left a blank gap under the footer bar). */
    flex: 1 1 auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}


#chatInput {
    font-size: 16px !important; /* 16px stops iOS zooming the page on focus */
    padding: 5px 10px !important;
}


#voiceRecordBtn {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
}


@media (max-height: 700px) {
    #chatWindow {
        height: 300px !important;
    }
    
    #chatMessages {
        max-height: none !important;
        min-height: 0 !important;
    }
}


#chatMessages::-webkit-scrollbar {
    width: 4px;
}

#chatMessages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
    background: #0e2045;
}


.voice-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    min-width: 100px;
    max-width: 200px;
}

.voice-message .play-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.voice-message .play-btn:hover {
    transform: scale(1.1);
}

.voice-message .play-btn.sent {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.voice-message .play-btn.received {
    background: var(--secondary);
    color: white;
}

.voice-message .waveform {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.voice-message .waveform .bar {
    width: 3px;
    background: currentColor;
    opacity: 0.5;
    border-radius: 2px;
    transition: height 0.1s;
}

.voice-message .duration {
    font-size: 9px;
    opacity: 0.6;
    min-width: 28px;
}


#lawyerDashboard {
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

#lawyerDashboard .stats-grid {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#lawyerDashboard .case-section {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


#mainSidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 280px !important;
    min-width: 280px !important;
    background: white !important;
    border-right: 1px solid #cfe0ff !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
}

.dashboard-layout {
    display: flex !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    gap: 0 !important;
}


.citizen-dashboard-mode .welcome-banner {
    padding: 12px 20px !important;
    margin-bottom: 14px !important;
    gap: 14px !important;
}


.citizen-dashboard-mode .welcome-text h1 {
    font-size: 19px !important;
    margin-bottom: 5px !important;
}


.citizen-dashboard-mode .welcome-text p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
}


.citizen-dashboard-mode .welcome-text button {
    padding: 6px 16px !important;
    font-size: 12px !important;
}


.citizen-dashboard-mode .welcome-image img {
    height: 110px !important;
}


.citizen-dashboard-mode #homePage > div:first-child {
    padding: 14px 20px 18px 20px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}


.citizen-dashboard-mode #desktopVerifBanner {
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 0 8px 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


.citizen-dashboard-mode #homePage > div:first-child > div:first-child {
    height: 35px !important;
    border-radius: 50% 50% 0 0 / 20px 20px 0 0 !important;
}


.citizen-dashboard-mode #welcomeUserHeading {
    font-size: 30px !important;
    margin: 5px 0 8px 0 !important;
}


.citizen-dashboard-mode #homePage > div:first-child p {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    max-width: 100% !important;
}


.citizen-dashboard-mode #homePage > div:first-child button {
    padding: 10px 24px !important;
    font-size: 13px !important;
}


.citizen-dashboard-mode #homePage > div:first-child img {
    max-width: 320px !important;
    height: 200px !important;
}


.citizen-dashboard-mode #homePage > div:first-child > div:last-child {
    gap: 20px !important;
    padding: 25px 35px 40px 35px !important;
}


.citizen-dashboard-mode #mainFooter {
    padding: 25px 25px 20px !important;
    margin: 0 15px 0 15px !important;
    border-radius: 18px 18px 0 0 !important;
}


.citizen-dashboard-mode #mainFooter .footer-grid {
    gap: 20px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    justify-content: center !important;
}


.citizen-dashboard-mode #mainFooter .footer-grid h3 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
}


.citizen-dashboard-mode #mainFooter .footer-grid p,
.citizen-dashboard-mode #mainFooter .footer-grid a,
.citizen-dashboard-mode #mainFooter .footer-grid span {
    font-size: 12px !important;
    padding: 3px 0 !important;
    margin-bottom: 5px !important;
}


.citizen-dashboard-mode #mainFooter .footer-grid h3::after {
    width: 25px !important;
    height: 2px !important;
}


.citizen-dashboard-mode #mainFooter .copyright {
    font-size: 11px !important;
    margin-top: 20px !important;
    padding-top: 15px !important;
}


@keyframes spin { to { transform: rotate(360deg); } }


#lcdjpSidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#lcdjpSidebarOverlay.active {
    display: block;
    opacity: 1;
}

#lcdjpHamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 7px 10px;
    margin-right: 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
#lcdjpHamburger:hover,
#lcdjpHamburger:active { background: rgba(255,255,255,0.3); }

#lcdjpSidebarClose {
    display: none;
    position: sticky;
    top: 8px;
    float: right;
    clear: both;
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    color: var(--secondary);
    z-index: 10;
    align-items: center;
    justify-content: center;
    margin: 6px 4px 10px 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}


#apiStatus {
    display: none !important;
}



body.admin-dashboard-mode #navHomeLink    { display:none !important; }
body.admin-dashboard-mode #navContactLink { display:none !important; }
body.admin-dashboard-mode #languageSelect { display:none !important; }


.citizen-dashboard-mode #mainFooter,
.citizen-dashboard-mode #mainFooter h3,
.citizen-dashboard-mode #mainFooter span,
.citizen-dashboard-mode #mainFooter p,
.citizen-dashboard-mode #mainFooter a,
.citizen-dashboard-mode #mainFooter div {
    color: rgba(255, 255, 255, 0.90) !important;
}
.citizen-dashboard-mode #mainFooter h3 {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.18) !important;
}
.citizen-dashboard-mode #mainFooter .copyright {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.55) !important;
}


.handler-change-separator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 10px;
    opacity: 0.8;
}
.handler-change-separator::before,
.handler-change-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #c5d5ea;
}


#dynamicFormPage [style*="display:flex"][style*="align-items:center"],
#dynamicFormPage div:has(> input[type="checkbox"]) {
    flex-wrap:   wrap       !important;
    align-items: flex-start !important;
    gap:         8px        !important;
}


.service-image-wrapper {
    overflow: hidden !important;
}
.service-card-img,
.service-image-wrapper img {
    width:      100%  !important;
    height:     100%  !important;
    object-fit: cover !important;
    display:    block !important;
}


.cm-wrap { display:none; }


.reg-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
}


.user-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.user-type-card {
    border: 2px solid #e8e8ed;
    border-radius: var(--radius);
    padding: 14px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.22s;
    background: #f5f5f7;
    user-select: none;
}

.user-type-card:hover { border-color: var(--primary-light); background: #e3f2fd; }

.user-type-card.selected {
    border-color: var(--primary);
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.10);
}

.user-type-card .type-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.user-type-card.selected .type-label { color: var(--primary); }


.pw-strength-bar { display: flex; gap: 4px; margin-top: 8px; }
.pw-strength-seg { flex: 1; height: 4px; background: #e8e8ed; border-radius: 2px; transition: background 0.22s; }
.pw-strength-label { font-size: 12px; font-weight: 600; margin-top: 4px; }


.pw-wrapper { position: relative; }

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    padding: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: all 0.2s;
}
.pw-toggle svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.pw-toggle:hover { color: var(--primary); background: rgba(26,64,128,0.08); }


.phone-display-box {
    background: #f5f5f7;
    border: 1.5px solid #e8e8ed;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 1px;
}


.step-alert { border-radius: var(--radius); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.step-alert-info    { background: #e3f2fd; color: #0d47a1; border-left: 3px solid #0d47a1; }
.step-alert-warning { background: #fff3e0; color: var(--warning); border-left: 3px solid var(--warning); }


.reg-success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--success), #43a047);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(46,125,50,0.25);
    animation: regSuccessPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    color: white; font-style: normal;
}
@keyframes regSuccessPop { from { transform:scale(0.4); opacity:0; } to { transform:scale(1); opacity:1; } }


.upload-drop {
    border: 2px dashed #e8e8ed; border-radius: var(--radius);
    padding: 24px 16px; text-align: center; cursor: pointer;
    transition: all 0.22s; background: #f5f5f7; position: relative;
}
.upload-drop:hover { border-color: var(--primary-light); background: #e3f2fd; }
.upload-drop.has-file { border-color: var(--success); background: #e8f5e9; }
.upload-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-drop p { font-size: 14px; color: #4a4a6a; margin-bottom: 4px; }
.upload-drop small { font-size: 12px; color: #6b7280; }

.upload-btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.upload-btn {
    flex: 1 1 140px; max-width: 220px; min-height: 44px; padding: 10px 14px;
    border-radius: 8px; border: 1.5px solid var(--primary-light, #90caf9);
    background: #fff; color: var(--secondary); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.upload-btn:hover { background: #e3f2fd; }
.upload-btn.upload-btn-camera { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.upload-btn.upload-btn-camera:hover { background: #153366; }


.verif-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.verif-badge.not-verified { background: #fce4ec; color: var(--danger); }
.verif-badge.pending       { background: #fff3e0; color: var(--warning); }
.verif-badge.verified      { background: #e8f5e9; color: var(--success); }


.verif-strip { display:flex; align-items:center; gap:8px; border-radius:8px; background:#fff8e1; border:1px solid #f9a825; padding:5px 10px; }


.idv-modal-box { position:relative; background:#fff; border-radius:16px; width:100%; max-width:500px; margin:auto; padding:28px 24px 24px; box-shadow:0 20px 60px rgba(0,0,0,0.28); }
.idv-modal-close { position:absolute; top:12px; right:14px; background:transparent; border:none; font-size:22px; cursor:pointer; color:#6b7280; line-height:1; transition:color .15s; padding:0; }
.idv-modal-close:hover { color:#333; }


.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e8e8ed; font-size: 14px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list .fl-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }


.loc-confirm-box { background: #e3f2fd; border: 1.5px solid #bbdefb; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-top: 12px; }


.two-btn-row { display: flex; gap: 10px; margin-top: 12px; }
.two-btn-row .btn { flex: 1; margin-top: 0; }


#lcdjp-reg-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--dark); color: white;
    padding: 11px 22px; border-radius: 24px; font-size: 14px; font-weight: 600;
    z-index: 9999; transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; white-space: nowrap; max-width: 90vw; text-align: center; pointer-events: none;
}
#lcdjp-reg-toast.toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }
#lcdjp-reg-toast.toast-success { background: var(--success); }
#lcdjp-reg-toast.toast-error   { background: var(--danger);  }
#lcdjp-reg-toast.toast-info    { background: var(--info);    }


@keyframes ai-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes ai-ring {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}
@keyframes ai-float-in {
    from { opacity: 0.01; transform: translateY(40px); }
    to   { opacity: 1;    transform: translateY(0); }
}
@keyframes ai-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ai-typing-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-5px); opacity: 1; }
}

#aiAssistantModal {
    display: none;
}
#aiAssistantModal.open {
    display: flex;
    animation: ai-float-in 0.2s ease-out forwards;
}
#aiAssistantPanel {
    background: #fff;
    width: 100%;
    max-width: 680px;
    height: calc(100vh - 12px);
    height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px);
    max-height: min(800px, calc(100dvh - env(safe-area-inset-top, 0px) - 12px));
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 60px rgba(0,0,0,0.18);
}
#aiAssistantPanel .ai-header {
    background: var(--primary);
    padding: 20px 24px 16px;
    flex-shrink: 0;
}
#aiAssistantPanel .ai-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.ai-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.ai-close-btn:hover { background: rgba(255,255,255,0.25); }
.ai-step-bar {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}
.ai-step-dot {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.25);
    flex: 1;
    transition: background 0.4s;
}
.ai-step-dot.active { background: white; }
#aiChatArea {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    

    overscroll-behavior: contain;
}
.ai-bubble-wrap { display: flex; gap: 10px; align-items: flex-end; }
.ai-bubble-wrap.user { flex-direction: row-reverse; }
.ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    color: white;
}
.ai-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    background: #f0f4ff;
    color: #1a1a2e;
    font-size: 14px;
    line-height: 1.6;
    animation: ai-msg-in 0.25s ease;
}
.ai-bubble.user {
    background: var(--primary);
    color: white;
    border-radius: 18px 18px 4px 18px;
}
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: #f0f4ff;
    border-radius: 18px 18px 18px 4px;
    width: fit-content;
}
.ai-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5c6bc0;
    animation: ai-typing-dot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
#aiCategoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 0;
}
.ai-cat-btn {
    background: white;
    border: 1.5px solid #c5cae9;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}
.ai-cat-btn:hover, .ai-cat-btn:active {
    background: #e8eaf6;
    border-color: #3949ab;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,35,126,0.12);
}
.ai-cat-btn .ai-cat-icon { font-size: 22px; }
.ai-contact-card {
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    animation: ai-msg-in 0.3s ease;
}
.ai-contact-card:hover {
    border-color: #3949ab;
    box-shadow: 0 4px 16px rgba(26,35,126,0.12);
    transform: translateY(-1px);
}
.ai-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ai-contact-card .ai-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
.ai-input-row {
    display: flex;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: white;
}
.ai-text-input {
    flex: 1;
    






    min-width: 0;
    border: 1.5px solid #c5cae9;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #f8f9ff;
    color: #1a1a2e;
    font-family: inherit;
}
.ai-text-input:focus { border-color: #3949ab; background: white; }
.ai-text-input::placeholder { color: #9e9e9e; }
.ai-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
.ai-send-btn:hover { background: #0d1442; transform: scale(1.05); }
.ai-choices-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ai-choice-btn {
    background: white;
    border: 1.5px solid #c5cae9;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}
.ai-choice-btn:hover { background: #e8eaf6; border-color: #3949ab; }
.ai-service-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: visible;
}

.ai-contact-card > div:last-child { flex-wrap: wrap; }


.cm-wrap.cm-active { display: block; }








.mobile-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  outline: none;
  min-width: 52px;
  max-width: 60px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-lang-select option {
  background: #202a85;
  color: #ffffff;
  font-size: 13px;
}
.mobile-lang-select:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
}





#caseDetailsModal > button:first-child {
  display: none !important;
}


#cmRoutePanel {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(26,35,126,0.18);
  z-index: 10020; font-family: inherit;
  max-height: 62vh; overflow: hidden;
  flex-direction: column;
  animation: cmRoutePanelUp 0.28s cubic-bezier(0.22,0.8,0.4,1) both;
}
@keyframes cmRoutePanelUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#cmRoutePanel.cm-route-visible { display: flex; }
#cmRoutePanel.cm-route-error-visible {
  position: fixed; left: 16px; right: 16px; bottom: 82px;
  max-width: 520px; margin: 0 auto; max-height: none;
  border-radius: 16px; z-index: 10020;
  box-shadow: 0 10px 34px rgba(26,35,126,0.28);
}
.cm-route-handle { width: 36px; height: 4px; background: #d1d8e8; border-radius: 2px; margin: 10px auto 0; flex-shrink: 0; }
.cm-route-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; border-bottom: 1px solid #eef0f8; flex-shrink: 0; }
.cm-route-back   { background: #eef0f8; border: none; border-radius: 20px; padding: 4px 10px; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.cm-route-title  { flex: 1; min-width: 0; }
.cm-route-title strong { display: block; font-size: 13px; color: var(--primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-route-title span   { font-size: 11px; color: #666; }
.cm-route-modes  { display: flex; gap: 6px; padding: 8px 14px; flex-shrink: 0; }
.cm-route-mode-btn { flex: 1; border: 1.5px solid #d1d8e8; background: #fff; border-radius: 20px; padding: 5px 0; font-size: 11px; font-weight: 700; color: #555; cursor: pointer; transition: all 0.15s; }
.cm-route-mode-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.cm-route-summary { display: flex; gap: 10px; padding: 2px 14px 10px; flex-shrink: 0; }
.cm-route-stat { background: #f0f3ff; border-radius: 10px; padding: 8px 12px; flex: 1; text-align: center; }
.cm-route-stat strong { display: block; font-size: 15px; color: var(--primary); font-weight: 800; }
.cm-route-stat span   { font-size: 10px; color: #888; }
.cm-route-steps { overflow-y: auto; padding: 0 14px 14px; flex: 1; -webkit-overflow-scrolling: touch; }
.cm-route-step  { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f3ff; font-size: 12px; color: #333; line-height: 1.4; }
.cm-route-step:last-child { border-bottom: none; }
.cm-route-step-icon { width: 26px; height: 26px; border-radius: 50%; background: #eef0f8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; margin-top: 1px; }
.cm-route-step-dist { font-size: 10px; color: #888; margin-top: 2px; }
.cm-route-error  { padding: 16px; text-align: center; color: #c62828; font-size: 12px; font-weight: 600; line-height: 1.5; }
.cm-route-spinner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; color: var(--primary); font-size: 12px; font-weight: 600; }
.cm-route-retry { margin-top: 10px; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }











#mobileTrackPanel {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: #f0f4fc;
  overflow: hidden;
}


#mobileTrackPanel .mtp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 58px;
  background: #1a3270;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(26,50,112,0.35);
}
#mobileTrackPanel .mtp-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
#mobileTrackPanel .mtp-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
#mobileTrackPanel .mtp-close:hover { background: rgba(255,255,255,0.30); }


#mobileTrackPanel .mtp-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 40px;
}


.mtp-search-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 4px 20px rgba(26,50,112,0.10);
  border: 1px solid rgba(26,64,180,0.08);
  margin-bottom: 20px;
}
.mtp-search-card .mtp-sc-label {
  font-size: 13px;
  color: #5a6a8a;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mtp-search-card .mtp-sc-desc {
  font-size: 13px;
  color: #7a88a8;
  margin-bottom: 18px;
  line-height: 1.5;
}
.mtp-search-card input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #dce4f5;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: #1a3270;
  outline: none;
  background: #f7f9ff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
  font-family: inherit;
}
.mtp-search-card input:focus {
  border-color: #2a52a8;
  box-shadow: 0 0 0 3px rgba(42,82,168,0.12);
  background: #fff;
}
.mtp-search-card input::placeholder { color: #aab8d8; }
.mtp-search-btn {
  width: 100%;
  padding: 15px;
  background: #1a3270;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(26,50,112,0.28);
  transition: opacity 0.2s, transform 0.15s;
}
.mtp-search-btn:active { opacity: 0.88; transform: scale(0.98); }


.mtp-result-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,50,112,0.10);
  border: 1px solid rgba(26,64,180,0.08);
}


.mtp-result-card .mtp-rc-head {
  background: #1a3270;
  padding: 18px 20px 16px;
  text-align: center;
  position: relative;
}
.mtp-new-search-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.2px;
}
.mtp-new-search-btn:hover { background: rgba(255,255,255,0.24); }
.mtp-new-search-btn:active { opacity: 0.85; transform: scale(0.98); }
.mtp-rc-lookup {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mtp-rc-caseid {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.mtp-rc-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mtp-badge-pending  { background: #fff3cd; color: #7a5c00; }
.mtp-badge-resolved { background: #d4edda; color: #155724; }
.mtp-badge-lawyer   { background: #cce5ff; color: #004085; }
.mtp-badge-review   { background: #e2d9f3; color: #452c73; }


.mtp-stepper {
  padding: 20px 20px 10px;
  background: #f7f9ff;
  border-bottom: 1px solid #edf0f8;
}
.mtp-stepper-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.mtp-stepper-track::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: #dde4f5;
  z-index: 0;
  border-radius: 2px;
}
.mtp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  flex: 1;
}
.mtp-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dde4f5;
  border: 3px solid #c8d2ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8899bb;
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s;
}
.mtp-step.done .mtp-step-dot  { background: #2a52a8; border-color: #1a3270; color: #fff; }
.mtp-step.active .mtp-step-dot { background: #fff; border-color: #2a52a8; color: #2a52a8; box-shadow: 0 0 0 4px rgba(42,82,168,0.18); }
.mtp-step-label {
  font-size: 10px;
  color: #8899bb;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  max-width: 56px;
}
.mtp-step.done .mtp-step-label, .mtp-step.active .mtp-step-label { color: #1a3270; }

.mtp-status-label {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #2a52a8;
  font-weight: 700;
}


.mtp-info-section { padding: 18px 20px 4px; }
.mtp-info-section + .mtp-info-section { border-top: 1px solid #edf0f8; }
.mtp-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8899bb;
  font-weight: 700;
  margin-bottom: 12px;
}
.mtp-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.mtp-info-label {
  font-size: 11px;
  color: #8899bb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mtp-info-value {
  font-size: 14px;
  color: #1a2a55;
  font-weight: 500;
  line-height: 1.4;
}

.mtp-statement {
  background: #f7f9ff;
  border-left: 3px solid #2a52a8;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  font-size: 14px;
  color: #334;
  font-style: italic;
  line-height: 1.55;
}

.mtp-feedback-row {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.mtp-feedback-lc  { background: #eef2ff; border-left: 3px solid #2a52a8; }
.mtp-feedback-wit { background: #f3eeff; border-left: 3px solid #7b4fd8; }
.mtp-feedback-ev  { background: #eefbf3; border-left: 3px solid #28a745; }
.mtp-feedback-adv { background: #e8f5e9; border-left: 4px solid #28a745; border-radius: 10px; }
.mtp-feedback-label { font-weight: 700; color: #1a2a55; font-size: 12px; display: block; margin-bottom: 4px; }

.mtp-print-btn {
  margin: 18px 20px 24px;
  display: block;
  width: calc(100% - 40px);
  padding: 14px;
  background: #2196f3;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 14px rgba(33,150,243,0.30);
  transition: opacity 0.2s;
}
.mtp-print-btn:active { opacity: 0.85; }


.mtp-error  { background:#fce8e6; color:#a94442; border-radius:12px; padding:18px 16px; font-size:14px; line-height:1.5; border: 1px solid #f5c6cb; }
.mtp-empty  { text-align:center; padding:40px 20px; color:#8899bb; font-size:14px; }





.mtp-feedback-lc  { background: #eef2ff; border-left: 3px solid #1a3270; }
.mtp-feedback-wit { background: #e8edff; border-left: 3px solid #2a52a8; }
.mtp-feedback-ev  { background: #dce7ff; border-left: 3px solid var(--secondary); }
.mtp-feedback-adv { background: #d5e3ff; border-left: 4px solid #1a3270; border-radius: 10px; }
.mtp-feedback-label { color: #1a2a55; }
.mtp-badge-pending  { background: #dce7ff; color: #1a3270; }
.mtp-badge-resolved { background: #c8d8ff; color: #0d1442; }
.mtp-badge-lawyer   { background: #b8ccff; color: #0d1442; }
.mtp-badge-review   { background: #d0dcff; color: #1a3270; }
.mtp-error { background: #dce7ff; color: #1a3270; border: 1px solid #b8ccff; }
.mtp-print-btn {
  background: #1a3270;
  box-shadow: 0 4px 14px rgba(26,50,112,0.28);
}








.user-type-card.police-admin-card {
    border: 2px dashed #b0bec5;
    background: #f9f9f9;
    cursor: default;
    opacity: 0.82;
    position: relative;
}
.user-type-card.police-admin-card:hover {
    border-color: #90a4ae;
    background: #f0f4f8;
}
.user-type-card.police-admin-card .type-label { color: #607d8b; }
.police-badge {
    display: block;
    font-size: 10px;
    color: #78909c;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


#regProCredsPanel {
    display: none;
    margin-top: 18px;
    border-top: 2px solid #e3e8f0;
    padding-top: 18px;
    animation: fadeSlideIn 0.28s ease;
}
#regProCredsPanel.visible { display: block; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pro-creds-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.pro-creds-title::before {
    content: '';
    font-size: 16px;
}

.doc-upload-zone {
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fafc;
    margin-top: 6px;
    position: relative;
}
.doc-upload-zone:hover { border-color: var(--secondary); background: #eef2fb; }
.doc-upload-zone.has-file { border-color: #2e7d32; background: #f0fdf4; }
.doc-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.doc-upload-label {
    font-size: 12px;
    color: #607d8b;
    pointer-events: none;
}
.doc-upload-zone.has-file .doc-upload-label { color: #2e7d32; font-weight: 600; }
.doc-upload-icon { font-size: 24px; display: block; margin-bottom: 4px; }

.pro-info-banner {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #5d4037;
    margin-top: 16px;
    line-height: 1.7;
}














.case-submission-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid #e1e7f3;
  border-radius: 18px !important;
  background: #f8faff !important;
  box-shadow: 0 14px 38px rgba(26,64,128,.12) !important;
}
.case-submission-card .case-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px 20px;
  background: var(--primary);
  color: #fff;
}
.case-submission-card .case-form-heading { min-width: 0; }
