/* Professional SaaS Design System - RaahSathi URA */

:root {
    --bg-dark: #0B1E33; /* Main dark navy background */
    --bg-card: #122A44; /* Clean card & section surface */
    --border-color: rgba(33, 66, 98, 0.45); /* Subtle border, zero glow */
    --border-hover: rgba(255, 107, 0, 0.45); /* Soft Official Orange Accent Border Hover */
    --primary: #FF6B00; /* Official Brand Logo Orange */
    --primary-hover: #E05D00; /* Darker Brand Orange */
    --secondary: #8FA1B8; /* Muted Neutral Blue-Gray */
    --secondary-hover: #FFFFFF;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --success: #4ADE80;
    --text-main: #FFFFFF;
    --text-muted: #8FA1B8;
}

/* Global text overrides for dark theme */
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-main) !important; }
.text-white { color: #ffffff !important; }
.text-warning { color: var(--primary) !important; }

/* Universal Mobile Anti-Horizontal-Overflow Guard */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   📱 MOBILE & TOUCH ERGONOMICS (PREVENT ACCIDENTAL TEXT SELECTION ON TAPS)
   ========================================================================== */
/* Prevent text highlighting/selection on interactive UI elements during mobile touch/taps */
button,
.btn,
[role="button"],
.nav,
.nav-pills,
.nav-tabs,
.nav-link,
.nav-item,
.dropdown-menu,
.dropdown-item,
.dropdown-toggle,
.navbar-toggler,
.navbar-brand,
.bottom-nav,
.portal-switcher-navbar,
.modal-header,
.modal-footer,
.badge,
.accordion-button,
.form-check-label,
i.fa, i.fa-solid, i.fa-regular, i.fa-brands, svg {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

button,
.btn,
.nav-link,
.dropdown-item {
    -webkit-tap-highlight-color: transparent;
}

/* Explicitly preserve text selection for input fields, codes, and text copy areas */
input,
textarea,
pre,
code,
[contenteditable="true"],
.selectable-text,
.allow-select,
.user-select-text {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* Signature Dual-Color RaahSathi Brand Styling */
.raahsathi-brand, .brand-raahsathi {
    display: inline-block;
    white-space: nowrap;
}

/* Custom FontAwesome-compatible Auto-Rickshaw icon */
.fa-auto-rickshaw,
.fa-solid.fa-auto-rickshaw,
i.fa-auto-rickshaw {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.fa-auto-rickshaw::before,
.fa-solid.fa-auto-rickshaw::before,
i.fa-auto-rickshaw::before {
    content: "🛺";
    font-style: normal;
    font-size: 1.25em;
    vertical-align: -0.08em;
}
.raahsathi-brand .raah, .brand-raahsathi .raah {
    color: #ff6b00 !important;
    font-weight: inherit;
}
.raahsathi-brand .sathi, .brand-raahsathi .sathi {
    color: inherit;
    font-weight: inherit;
}

/* Opacity and spacing utility fixes */
.bg-opacity-20 {
    --bs-bg-opacity: 0.2 !important;
    background-color: rgba(var(--bs-info-rgb), 0.2) !important;
}
.bg-warning.bg-opacity-20 {
    background-color: rgba(var(--bs-warning-rgb), 0.2) !important;
}
.bg-danger.bg-opacity-20 {
    background-color: rgba(var(--bs-danger-rgb), 0.2) !important;
}
.bg-success.bg-opacity-20 {
    background-color: rgba(var(--bs-success-rgb), 0.2) !important;
}
.bg-primary.bg-opacity-20 {
    background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
}
.p-2\.5 {
    padding: 0.625rem !important;
}
.px-2\.5 {
    padding-left: 0.625rem !important;
    padding-right: 0.625rem !important;
}
.py-2\.5 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}
.p-3\.5 {
    padding: 0.875rem !important;
}

/* Premium Luxury Modern Navbar System - Subtle Matching Brand Theme */
.portal-switcher-navbar {
    background: linear-gradient(180deg, rgba(16, 35, 60, 0.98) 0%, rgba(11, 30, 51, 0.98) 100%) !important;
    border-bottom: 1px solid rgba(255, 107, 0, 0.22) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 107, 0, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    z-index: 1050 !important;
}

/* Offcanvas & Backdrop Elevation Hierarchy (Above Navbar 1050 & Floating Widgets 1050) */
.offcanvas {
    z-index: 2100 !important;
}
.offcanvas-backdrop {
    z-index: 2090 !important;
}
.modal {
    z-index: 2200 !important;
}
.modal-backdrop {
    z-index: 2190 !important;
}

.portal-pill {
    white-space: nowrap !important;
    font-weight: 500 !important;
    font-size: 0.93rem !important;
    padding: 0.52rem 0.95rem !important;
    border-radius: 10px !important;
    transition: all 0.15s ease-in-out !important;
    color: #94A3B8 !important;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid transparent !important;
}

.portal-pill:hover {
    color: #FF6B00 !important;
    background: rgba(255, 107, 0, 0.1) !important;
    border-color: rgba(255, 107, 0, 0.28) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.portal-pill.active {
    background: linear-gradient(135deg, #FF6B00 0%, #E05D00 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.35) !important;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* Responsive Navbar Optimization for Compact Laptops & PCs (992px to 1320px) */
@media (min-width: 992px) and (max-width: 1320px) {
    .portal-nav-brand img {
        height: 38px !important;
    }
    .portal-nav-brand span {
        font-size: 1.32rem !important;
    }
    .portal-pill {
        font-size: 0.82rem !important;
        padding: 0.38rem 0.55rem !important;
    }
    .portal-pill i {
        font-size: 0.78rem !important;
        margin-right: 0.25rem !important;
    }
    .navbar-nav {
        gap: 0.15rem !important;
    }
    .portal-switcher-navbar .gap-3 {
        gap: 0.45rem !important;
    }
    .portal-switcher-navbar .btn-sm {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.78rem !important;
    }
    .btn-nav-user {
        padding: 0.25rem 0.45rem !important;
        font-size: 0.82rem !important;
    }
    .btn-nav-user span {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.72rem !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Flat Professional Card */
.glass-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.glass-card:hover {
    border-color: var(--border-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Solid Flat Buttons (Disciplined Amber Brand) */
.btn-premium-primary {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--primary) !important;
    background-image: none !important;
    color: #0B1E33 !important;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid var(--primary) !important;
    border-radius: 10px;
    padding: 10px 22px;
    min-height: 44px;
    transition: all 0.15s ease-in-out;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.btn-premium-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #0B1E33 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    text-decoration: none !important;
}

.btn-premium-primary:active {
    transform: translateY(0);
}

.btn-premium-primary::before {
    display: none !important;
}

/* Secondary Button — Neutral Outline */
.btn-premium-secondary {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: transparent !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    padding: 10px 22px;
    min-height: 44px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-premium-secondary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--secondary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-premium-secondary:active {
    transform: translateY(0);
}

.btn-premium-secondary::before {
    display: none !important;
}

/* Simple, Clean & Professional Compact Navbar Login Button */
.btn-nav-login {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    border: 1px solid #ff6b00 !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    line-height: 1.4;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.25) !important;
}

.btn-nav-login:hover {
    background-color: #e55d00 !important;
    border-color: #e55d00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.35) !important;
    text-decoration: none !important;
}

.btn-nav-login i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.btn-nav-login:hover i {
    transform: translateX(2px);
}

/* Simple & Professional Compact Logged In User Button */
.btn-nav-user {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    background-color: rgba(30, 41, 59, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 107, 0, 0.35) !important;
    border-radius: 8px !important;
    padding: 5px 14px !important;
    line-height: 1.4;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-user:hover {
    background-color: rgba(255, 107, 0, 0.12) !important;
    border-color: #ff6b00 !important;
    color: #ffffff !important;
}

.btn-premium-secondary:hover::before {
    left: 150%;
}

.btn-premium-secondary i {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

.btn-premium-secondary:hover i {
    transform: translateX(2px);
}

.btn-premium-danger {
    background-color: var(--danger);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.btn-premium-danger:hover {
    background-color: var(--danger-hover);
    color: white;
    transform: translateY(-1px);
}

/* Clean SOS Button */
.sos-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.sos-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--danger);
    border: 4px solid #7f1d1d;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.sos-button:hover {
    background-color: var(--danger-hover);
    transform: scale(1.05);
}

.sos-button:active {
    transform: scale(0.95);
}

/* Live Map Styling */
#map-container {
    height: 380px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.leaflet-container {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
    background: #0f172a !important;
}

/* Navbar */
.portal-switcher-navbar {
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
}

.portal-nav-brand {
    font-weight: 700;
    color: var(--text-main) !important;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}
.portal-nav-brand i {
    color: var(--primary);
}

.portal-pill {
    font-weight: 500;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    color: var(--text-muted) !important;
    transition: all 0.15s ease;
    margin: 0 4px;
}

.portal-pill.active {
    background-color: #1e293b !important;
    color: var(--text-main) !important;
    border-bottom: 2px solid var(--primary);
    border-radius: 6px 6px 0 0 !important;
}

.portal-pill:hover:not(.active) {
    background-color: #1e293b;
    color: var(--text-main) !important;
}

.portal-pill:active {
    transform: scale(0.97);
}

/* Inputs */
input.glass-input, 
select.glass-input, 
textarea.glass-input,
.form-control.glass-input,
.form-select.glass-input {
    background-color: #0b111e !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-input::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.glass-input:disabled,
.glass-input[disabled],
.form-control.glass-input:disabled,
.form-select.glass-input:disabled {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
    opacity: 0.75;
    cursor: not-allowed;
}

select.glass-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f59e0b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-size: 12px 12px !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    padding-right: 40px !important;
}

select.glass-input option {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

.glass-input:focus,
.form-control.glass-input:focus,
.form-select.glass-input:focus {
    background-color: #1e293b !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
    outline: none !important;
}

/* Status Timeline */
.timeline-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.timeline-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.timeline-step.completed {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.timeline-step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #0f172a;
}

.timeline-label {
    position: absolute;
    top: 38px;
    font-size: 0.75rem;
    font-weight: 500;
    width: 80px;
    text-align: center;
    transform: translateX(-30%);
    color: var(--text-muted);
}

.timeline-step.active + .timeline-label,
.timeline-step.completed + .timeline-label {
    color: var(--text-main);
}

/* Problem Type Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.problem-card {
    background: #0b111e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.problem-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.problem-card:hover {
    border-color: var(--border-hover);
    background: #1e293b;
}

.problem-card.selected {
    border-color: var(--primary) !important;
    background: #1e293b !important;
}

.problem-card.selected i {
    color: var(--primary) !important;
}

/* Notifications */
.alert-toast {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
}

.earnings-badge {
    background-color: var(--success);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Footer layout */
.site-footer {
    background-color: #0f172a;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    width: 100%;
    margin-top: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Terminal Console */
.sim-console {
    background: #000;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    padding: 12px;
    color: #10b981;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}
.sim-log-line {
    margin-bottom: 4px;
}

/* Video verification modal */
.video-preview-box {
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 6px;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.video-overlay-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fff;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Hide Google Translate UI Elements */
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
#goog-gt-tt { display: none !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

/* Premium Roadside Tagline Banner */
.premium-tagline-banner {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 107, 0, 0.02) 50%, rgba(255, 107, 0, 0.08) 100%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-left: 4px solid var(--primary) !important;
    border-right: 4px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(255, 107, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1280px) {
    .premium-tagline-banner {
        padding: 0.45rem 1rem !important;
        gap: 0.65rem !important;
    }
    .premium-tagline-banner strong {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 768px) {
    .premium-tagline-banner {
        padding: 0.42rem 0.85rem !important;
        border-left-width: 3px !important;
        border-right-width: 3px !important;
        border-radius: 50px !important;
    }
    .premium-tagline-banner strong {
        font-size: 0.80rem !important;
        white-space: nowrap;
    }
    .premium-tagline-banner i {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 380px) {
    .premium-tagline-banner {
        padding: 0.38rem 0.5rem !important;
        column-gap: 5px !important;
    }
    .premium-tagline-banner strong {
        font-size: 0.74rem !important;
    }
}

.premium-tagline-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15), inset 0 0 15px rgba(255, 107, 0, 0.08);
}

.tagline-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, #ffffff 0%, #ffe4d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline-badge {
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.25);
    color: var(--primary) !important;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
    transition: all 0.3s ease;
}

.premium-tagline-banner:hover .tagline-badge {
    background: rgba(255, 107, 0, 0.20);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.animate-pulse-slow {
    display: inline-block;
    animation: pulse-slow 2.5s infinite ease-in-out;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px !important;
    }
    .btn-lg {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

/* Middle Sub-sidebar Settings Navigation Menu Drawer */
.noc-settings-menu-drawer { 
    position: fixed;
    top: 65px;
    bottom: 0;
    left: 260px;
    width: 250px; 
    background-color: #111827; 
    border-right: 1px solid #1E293B; 
    display: flex; 
    flex-direction: column; 
    z-index: 1042;
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.6);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease, visibility 0.28s ease;
}

.noc-settings-menu-drawer.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Settings Overlay Backdrop */
.noc-settings-overlay {
    position: fixed;
    top: 65px;
    bottom: 0;
    left: 260px;
    right: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1038;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.noc-settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.noc-middle-item { 
    display: flex; 
    align-items: center; 
    padding: 0.68rem 1.1rem; 
    color: #38BDF8 !important; 
    text-decoration: none !important; 
    font-weight: 500; 
    font-size: 0.88rem; 
    border-radius: 8px; 
    margin: 3px 10px; 
    transition: all 0.2s ease; 
}
.noc-middle-item i { 
    width: 22px; 
    font-size: 1.05rem; 
    margin-right: 10px; 
    text-align: center; 
    color: #38BDF8 !important; 
}
.noc-middle-item.active { 
    background-color: rgba(245, 158, 11, 0.18) !important; 
    color: #F59E0B !important; 
    font-weight: 600 !important; 
}
.noc-middle-item.active i { 
    color: #F59E0B !important; 
}
.noc-middle-item:hover:not(.active) { 
    background-color: rgba(56, 189, 248, 0.12) !important; 
    color: #60A5FA !important; 
}

/* 📱 Mobile & Tablet Responsive Media Queries */
@media (max-width: 991.98px) {
    .noc-settings-menu-drawer { 
        top: 0;
        left: 0;
        width: 270px;
        z-index: 1055;
        box-shadow: 0 0 35px rgba(0,0,0,0.85);
    }
    .noc-settings-overlay { 
        top: 0;
        left: 0;
        z-index: 1052;
    }
}

/* ==========================================================================
   📱 COMPREHENSIVE RESPONSIVENESS SYSTEM (MOBILE, IPAD/TABLET & PC)
   ========================================================================== */

/* 1. Global Viewport & Touch Ergonomics */
* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent iOS Safari Automatic Zoom on Form Inputs */
@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea,
    .form-control,
    .glass-input {
        font-size: 16px !important;
        min-height: 46px !important;
    }

    /* Generous Touch Targets */
    .btn,
    .nav-link,
    .portal-pill,
    .dropdown-item {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .glass-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        margin-bottom: 1rem;
    }

    /* Modal Responsive Touch Optimization */
    .modal-dialog {
        margin: 0.75rem auto;
        max-width: 95vw !important;
    }
    .modal-content {
        border-radius: 20px !important;
    }
}

/* 2. Responsive Table Wrappers with Native Smooth Scroll */
.table-responsive,
.table-responsive-sm,
.table-responsive-md,
.table-responsive-lg {
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}

/* 3. Tablet & iPad Screen Adjustments (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container, .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .stat-card-number {
        font-size: 1.75rem !important;
    }

    .noc-main {
        padding: 1rem !important;
    }
}

/* 4. Large Desktop PC Enhancements (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }
}

/* ==========================================================================
   📱 MOBILE & TABLET 5-BLOCK HOMEPAGE & PERFORMANCE SYSTEM
   ========================================================================== */
.mob-hero-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mob-hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .mob-hero-title {
        font-size: 2.1rem;
    }
}

.mob-trust-strip {
    background: var(--color-bg-surface);
    border-radius: var(--radius);
}

.mob-chip-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 0.65rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mob-chip-card:active, .mob-chip-card:hover {
    background: #173250;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.mob-chip-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.mob-step-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}

.mob-stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

/* 📱 Sticky Mobile Bottom Emergency Bar (< 992px) */
.mob-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 12, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 107, 0, 0.35);
    padding: 0.6rem 0.85rem;
    z-index: 1040;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.65);
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0.6rem));
}

/* 📱 Mobile Sticky Action Bar for Forms (KYC, Bookings, Modals) */
.mob-sticky-action-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 17, 30, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1rem;
    z-index: 1030;
    margin-top: 1.5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.kyc-step {
    padding-bottom: 2rem;
    min-height: 380px;
}

input[type="file"].glass-input {
    padding: 7px 12px !important;
    color: #cbd5e1 !important;
    display: flex;
    align-items: center;
}

input[type="file"].glass-input::file-selector-button {
    background: #1e293b;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    padding: 5px 14px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

input[type="file"].glass-input::file-selector-button:hover {
    background: #f59e0b;
    color: #0b111e;
}

@media (max-width: 576px) {
    .mob-sticky-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        border-top: 1px solid rgba(245, 158, 11, 0.4);
        padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
        z-index: 1045;
        background: #090e18;
    }
    
    .kyc-step {
        padding-bottom: 6rem;
    }
    
    #kycForm {
        padding-bottom: 4rem;
    }
}

/* 📱 Responsive Filter Bar System for All Admin & List Pages */
.mob-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.mob-filter-item {
    flex: 1 1 140px;
    min-width: 130px;
}

@media (max-width: 576px) {
    .mob-filter-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .mob-filter-item-half {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
    }
}

/* 📱 Mobile Stepper Wizard System */
.kyc-step-badge-mobile {
    display: none;
}

@media (max-width: 576px) {
    .kyc-step-badge-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(245, 158, 11, 0.12);
        border: 1px solid rgba(245, 158, 11, 0.35);
        border-radius: 10px;
        padding: 0.5rem 0.85rem;
        margin-bottom: 1.25rem;
    }
    .desktop-step-labels {
        display: none !important;
    }
    .step-indicator {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
}

/* 📱 Touch Friendly Document Upload Boxes */
.doc-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.doc-upload-box:hover, .doc-upload-box:active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.doc-upload-box.has-file {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.doc-preview-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
}

/* 📱 Mobile Accordion Footer Styling (< 992px) */
.mob-footer-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.mob-footer-accordion .accordion-button {
    background: rgba(15, 23, 42, 0.75) !important;
    color: #f8fafc !important;
    font-weight: 700;
    font-size: 1.05rem; /* Upgraded from 0.88rem to 1.05rem for crisp heading visibility */
    padding: 0.9rem 1.15rem;
    box-shadow: none !important;
}

.mob-footer-accordion .accordion-button i {
    font-size: 1.15rem;
}

.mob-footer-accordion .accordion-button:not(.collapsed) {
    color: #ff6b00 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-footer-accordion .accordion-body {
    padding: 1rem 1.15rem;
    background: rgba(10, 16, 28, 0.95);
}

.mob-footer-accordion .accordion-body a {
    font-size: 0.98rem !important; /* Upgraded from tiny ~0.8rem to 0.98rem (~15.7px) */
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.mob-footer-accordion .accordion-body .btn {
    font-size: 0.95rem !important;
    padding: 0.65rem 0.95rem !important;
    font-weight: 600;
}

/* 💻 Desktop & Large Screen Footer Responsive Typography */
.site-footer {
    color: #cbd5e1;
}

.site-footer a {
    transition: color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.site-footer ul li a {
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
}

.site-footer ul li a:hover {
    color: #ff6b00 !important;
}

@media (min-width: 1400px) {
    .site-footer ul li a {
        font-size: 1.02rem;
    }
}

/* 🤖 Floating AI Chatbot Widget (Responsive Position) */
.ai-floating-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    transition: bottom 0.3s ease, right 0.3s ease;
}

@media (max-width: 991.98px) {
    .ai-floating-widget-container {
        bottom: 82px !important;
        right: 16px !important;
    }
}

/* 📱 Responsive Grid System Helpers */
@media (max-width: 576px) {
    .row-cols-xs-1 > * {
        flex: 0 0 auto;
        width: 100%;
    }
    .row-cols-xs-2 > * {
        flex: 0 0 auto;
        width: 50%;
    }
    .row-cols-xs-3 > * {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    .v-pill {
        padding: 0.5rem 0.25rem !important;
    }
    .v-pill i {
        font-size: 1.1rem !important;
    }
    .v-pill .small {
        font-size: 0.72rem !important;
    }
}

/* 📱 NOC Admin Topbar & Main Container Mobile Optimization */
@media (max-width: 991.98px) {
    .noc-topbar {
        padding: 0.6rem 0.85rem !important;
        gap: 0.5rem !important;
        height: 60px !important;
    }
    .noc-topbar-search {
        display: none !important;
    }
    .noc-topbar-clock {
        display: none !important;
    }
    .noc-main {
        padding: 0.75rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
}

/* 📊 Admin KPI Stat Cards Responsive Sizing System */
.kpi-stat-card {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.kpi-stat-title {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.kpi-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    margin: 0.25rem 0 0.15rem 0;
}

.kpi-stat-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.kpi-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .kpi-stat-card {
        padding: 0.7rem 0.75rem !important;
    }
    .kpi-stat-title {
        font-size: 0.65rem !important;
        letter-spacing: 0.2px !important;
    }
    .kpi-stat-value {
        font-size: 1.35rem !important;
    }
    .kpi-stat-subtitle {
        font-size: 0.65rem !important;
    }
    .kpi-stat-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
    }
}

/* 📱 Touch Momentum Scrolling for All Data Tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.4) rgba(15, 23, 42, 0.8);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.35);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}

/* 📱 Responsive Admin Action Buttons in Tables */
@media (max-width: 768px) {
    .table td, .table th {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .table .btn-sm, .table .btn-xs {
        padding: 0.25rem 0.45rem !important;
        font-size: 0.72rem !important;
    }
    .table .badge {
        font-size: 0.68rem !important;
        padding: 0.3em 0.55em !important;
    }
}

/* 📱 Global Modal Scaling for Mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    .modal-body {
        padding: 1rem !important;
    }
    .modal-header, .modal-footer {
        padding: 0.75rem 1rem !important;
    }
}
/* 🌐 Language Selector Modal Cards */
.lang-select-card {
    transition: all 0.25s ease-in-out !important;
    cursor: pointer;
}
.lang-select-card:hover {
    border-color: #ff6b00 !important;
    background: rgba(255, 107, 0, 0.12) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.25) !important;
}
.lang-select-card:hover i {
    color: #ff6b00 !important;
    transform: translateX(3px);
}

/* ==========================================================================
   🖥️ ULTRA-WIDE & PRO WIDESCREEN ADAPTIVE SYSTEM (>= 1400px)
   CRITICAL NOTE: Strictly scoped to large/ultra-wide screens (min-width: 1400px+).
   Mobile (360px-576px), Tablet/iPad (768px-1024px), and Laptop (1200px-1366px) 
   rules & functionality remain 100% UNTOUCHED and fully preserved!
   ========================================================================== */

/* 1. Large Laptops & Desktops (>= 1400px) */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1380px !important;
    }
    
    .container.flex-grow-1 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* 2. Full HD Desktops (1600px - 1919px) */
@media (min-width: 1600px) {
    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1560px !important;
    }
    
    .container.flex-grow-1 {
        padding-left: 1.75rem !important;
        padding-right: 1.75rem !important;
    }
    
    .glass-card {
        padding: 1.5rem !important;
    }
}

/* 3. High-End 1080p & 2K Monitors (1920px - 2559px) - Eliminates empty left/right void */
@media (min-width: 1920px) {
    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1780px !important;
    }
    
    .container.flex-grow-1 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Widescreen Dashboard Glass Cards */
    .glass-card {
        padding: 1.75rem !important;
        border-radius: 16px !important;
    }
    
    /* Navbar brand and menu items breathing room */
    .portal-switcher-navbar .container,
    .portal-switcher-navbar .container-fluid {
        max-width: 1840px !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Footer layout scaling */
    .site-footer .container {
        max-width: 1780px !important;
    }
}

/* 4. Ultra-Wide 2K / 4K / Curved Displays (>= 2560px) */
@media (min-width: 2560px) {
    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 2280px !important;
    }
    
    .container.flex-grow-1 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    
    .portal-switcher-navbar .container,
    .portal-switcher-navbar .container-fluid {
        max-width: 2340px !important;
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    
    .site-footer .container {
        max-width: 2280px !important;
    }
}

/* ==========================================================================
   🛡️ GLOBAL TABLE RESPONSIVE & OVERFLOW PREVENTION
   ========================================================================== */
.table-responsive {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.8);
}

/* 📱 Admin Mobile UI/UX: Cards & Fast Action Controls for Partners & Customers */
.admin-mob-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.admin-mob-card:active {
    transform: scale(0.99);
    border-color: rgba(245, 158, 11, 0.4);
}

.mob-vertical-pills {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.mob-vertical-pills::-webkit-scrollbar {
    display: none;
}

.mob-vertical-pill {
    flex-shrink: 0;
    padding: 0.42rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

.mob-vertical-pill:active {
    transform: scale(0.96);
}

.mob-vertical-pill.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827 !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    font-weight: 700;
}

.mob-vertical-pill.active i {
    color: #111827 !important;
}

.kpi-stat-card {
    transition: transform 0.15s ease, border-color 0.15s ease;
    user-select: none;
}
.kpi-stat-card:active {
    transform: scale(0.97);
}

@media (max-width: 576px) {
    .kpi-stat-card {
        padding: 0.75rem 0.85rem !important;
    }
    .kpi-stat-value {
        font-size: 1.35rem !important;
    }
    .admin-mob-card {
        padding: 0.85rem !important;
    }
}


