/* Advika LeakGuard - Custom Design System */
:root {
    --brand-primary: #0f2942;
    --brand-primary-dark: #0a1b2c;
    --brand-secondary: #0284c7;
    --brand-cyan: #06b6d4;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #d97706;
    --brand-success: #10b981;
    --brand-light: #f8fafc;
    --brand-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* Visibility Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: clip;
}

/* Universal Base Document Scrolling - Clean, Smooth & Natural */
html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    -webkit-overflow-scrolling: touch !important;
}

body {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch !important;
}

.public-view {
    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Utilities & Accents */
.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.bg-brand-dark {
    background-color: var(--brand-primary-dark) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

.bg-brand-cyan {
    background-color: var(--brand-cyan) !important;
}

.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.text-brand-accent {
    color: var(--brand-accent) !important;
}

.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary), #1e3a5f);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-brand-primary:hover {
    background: linear-gradient(135deg, #1e3a5f, var(--brand-secondary));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 41, 66, 0.2);
}

.btn-brand-accent {
    background: linear-gradient(135deg, var(--brand-accent), #f97316);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-brand-accent:hover {
    background: linear-gradient(135deg, #f97316, var(--brand-accent-hover));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.btn-brand-outline {
    border: 2px solid var(--brand-secondary);
    color: var(--brand-secondary);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-brand-outline:hover {
    background: var(--brand-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Topbar */
.top-bar {
    background-color: var(--brand-primary-dark);
    font-size: 0.85rem;
    padding: 6px 0;
    color: #94a3b8;
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: #38bdf8;
}

/* Navbar */
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--brand-primary) !important;
}

.navbar-brand .brand-badge {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-cyan));
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 6px;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-secondary) !important;
}

/* Hero Section */
.hero-wrapper {
    background: linear-gradient(135deg, #091a2b 0%, #0f2942 50%, #173858 100%);
    color: #ffffff;
    position: relative;
    padding: 90px 0 100px 0;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Cards & Components */
.service-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(15, 41, 66, 0.12);
    border-color: #cbd5e1;
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(6, 182, 212, 0.15));
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.feature-pill {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Stats counter card */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-secondary);
}

/* Sticky floating CTA buttons */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.btn-floating {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-floating:hover {
    transform: scale(1.1);
    color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-call {
    background-color: var(--brand-secondary);
}

/* Portal Sidebars */
.portal-sidebar {
    background: #0f172a;
    color: #94a3b8;
    min-height: 100vh;
}

.portal-sidebar .brand-header {
    padding: 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin: 4px 12px;
    transition: all 0.2s;
}

.portal-nav-link:hover,
.portal-nav-link.active {
    background-color: #1e293b;
    color: #38bdf8;
}

.portal-nav-link i {
    font-size: 1.2rem;
}

/* Badges */
.badge-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-progress {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #ffedd5;
    color: #9a3412;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Print styles for quotation and invoices */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ============================================================
   AUTH & FORM CONTROLS (High-Contrast, Visible & Professional)
   ============================================================ */
.auth-page-wrapper {
    min-height: calc(100vh - 120px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 48px 16px !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 50%, #eff6ff 100%) !important;
}

.auth-card {
    width: 100% !important;
    max-width: 460px !important;
    padding: 38px 34px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(7, 59, 120, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1.5px solid #cbd5e1 !important;
    box-sizing: border-box !important;
}

.auth-brand-header {
    text-align: center !important;
    margin-bottom: 24px !important;
}

.auth-logo-badge {
    font-size: 46px !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 4px 8px rgba(7, 59, 120, 0.2)) !important;
    display: inline-block !important;
}

.auth-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #073b78 !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.5px !important;
}

.auth-tagline {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 0 14px 0 !important;
}

.auth-divider {
    width: 50px !important;
    height: 3px !important;
    background: #073b78 !important;
    border-radius: 2px !important;
    margin: 0 auto 16px auto !important;
}

.auth-subtitle {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
}

.auth-desc {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.booking-flow-banner {
    background: #eff6ff !important;
    border: 1.5px solid #93c5fd !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin-bottom: 22px !important;
    color: #1e40af !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.booking-flow-banner .booking-banner-icon {
    font-size: 20px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.booking-flow-banner strong {
    color: #1e3a8a !important;
    font-size: 13px !important;
}

.booking-flow-banner p {
    margin: 3px 0 0 0 !important;
    color: #2563eb !important;
    font-size: 12px !important;
}

/* High Contrast Input Fields */
.form-group {
    margin-bottom: 20px !important;
}

.form-label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    margin-bottom: 7px !important;
}

.form-label .required {
    color: #dc2626 !important;
    font-weight: 800 !important;
}

.input-container {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.input-container .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 17px !important;
    color: #64748b !important;
    pointer-events: none !important;
    z-index: 2 !important;
    line-height: 1 !important;
}

.form-control,
.input-container .form-control,
.auth-card .form-control {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 14px 12px 44px !important;
    border-radius: 8px !important;
    border: 1.5px solid #94a3b8 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

.form-control:focus,
.input-container .form-control:focus,
.auth-card .form-control:focus {
    outline: none !important;
    border-color: #073b78 !important;
    box-shadow: 0 0 0 3px rgba(7, 59, 120, 0.18) !important;
    background-color: #ffffff !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.input-container .password-input {
    padding-right: 48px !important;
}

.input-container .password-toggle-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    font-size: 19px !important;
    padding: 6px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    z-index: 3 !important;
    line-height: 1 !important;
}

.input-container .password-toggle-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.password-label-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 7px !important;
}

.password-label-row .form-label {
    margin-bottom: 0 !important;
}

.forgot-link {
    font-size: 12.5px !important;
    color: #073b78 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.forgot-link:hover {
    text-decoration: underline !important;
    color: #0b5cab !important;
}

.submit-btn {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 20px !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #073b78 0%, #0b5cab 100%) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(7, 59, 120, 0.28) !important;
    transition: all 0.2s ease !important;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(7, 59, 120, 0.38) !important;
    background: linear-gradient(135deg, #052c5c 0%, #073b78 100%) !important;
}

.register-prompt {
    text-align: center !important;
    margin-top: 22px !important;
    padding-top: 18px !important;
    border-top: 1px solid #e2e8f0 !important;
    font-size: 13.5px !important;
    color: #475569 !important;
}

.register-link {
    font-weight: 700 !important;
    color: #073b78 !important;
    text-decoration: none !important;
}

.register-link:hover {
    color: #0b5cab !important;
    text-decoration: underline !important;
}

.back-to-website {
    text-align: center !important;
    margin-top: 14px !important;
}

.back-link {
    font-size: 13px !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.back-link:hover {
    color: #0f172a !important;
    text-decoration: underline !important;
}

.auth-error-alert {
    background: #fef2f2 !important;
    border: 1.5px solid #f87171 !important;
    color: #991b1b !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.auth-success-alert {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    color: #166534 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ============================================================
   SIDEBAR & NAVIGATION FIXES (High Contrast & Visible in All Modes)
   ============================================================ */
/* Admin Sidebar (Dark Slate Theme with Zero Visible Scrollbar) */
.admin-sidebar,
#adminSidebar {
    background: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    top: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 10px 8px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    transition: width 0.25s ease, padding 0.25s ease !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.admin-sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-corner,
#adminSidebar::-webkit-scrollbar,
#adminSidebar::-webkit-scrollbar-thumb,
#adminSidebar::-webkit-scrollbar-track,
#adminSidebar::-webkit-scrollbar-corner,
.admin-sidebar *::-webkit-scrollbar,
.admin-sidebar *::-webkit-scrollbar-thumb,
.admin-sidebar *::-webkit-scrollbar-track {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    border: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.sidebar-section {
    margin-bottom: 2px !important;
}

.sidebar-section-title {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #94a3b8 !important;
    padding: 6px 10px 2px 10px !important;
    user-select: none !important;
}

/* Collapsible Section Header */
.sidebar-collapsible-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    margin: 1px 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.sidebar-collapsible-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.sidebar-collapsible-btn .chevron {
    font-size: 9px !important;
    transition: transform 0.2s ease !important;
}

.sidebar-collapsible-btn.collapsed .chevron {
    transform: rotate(-90deg) !important;
}

.sidebar-collapsible-body.collapsed {
    display: none !important;
}

/* Sidebar Item (Dark Theme with Zero Visible Scrollbar) */
.admin-sidebar .sidebar-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 11px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 1px 0 !important;
    line-height: 1.3 !important;
    position: relative !important;
}

.admin-sidebar .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.admin-sidebar .sidebar-item:hover * {
    color: #ffffff !important;
}

.admin-sidebar .sidebar-item.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}

.admin-sidebar .sidebar-item.active * {
    color: #ffffff !important;
}

.admin-sidebar .sidebar-item .icon {
    font-size: 15px !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Customer Portal Sidebar (Dark Theme) */
#customerSidebar,
.customer-sidebar {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    top: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 10px 8px 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#customerSidebar::-webkit-scrollbar,
.customer-sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

#customerSidebar .sidebar-item,
.customer-sidebar .sidebar-item {
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 11px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    margin: 1px 0 !important;
    line-height: 1.3 !important;
    position: relative !important;
}

#customerSidebar .sidebar-item:hover,
.customer-sidebar .sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #38bdf8 !important;
}

#customerSidebar .sidebar-item:hover *,
.customer-sidebar .sidebar-item:hover * {
    color: #38bdf8 !important;
}

#customerSidebar .sidebar-item.active,
.customer-sidebar .sidebar-item.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
}

#customerSidebar .sidebar-item.active *,
.customer-sidebar .sidebar-item.active * {
    color: #ffffff !important;
}

#customerSidebar .sidebar-item .icon,
.customer-sidebar .sidebar-item .icon {
    font-size: 15px !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Collapsed Mode Enhancements */
.admin-layout.collapsed .admin-sidebar {
    width: 64px !important;
    padding: 12px 6px !important;
}

.admin-layout.collapsed .sidebar-section-title,
.admin-layout.collapsed .sidebar-collapsible-btn .label,
.admin-layout.collapsed .sidebar-collapsible-btn .chevron {
    display: none !important;
}

.admin-layout.collapsed .sidebar-item {
    justify-content: center !important;
    padding: 10px !important;
}

.admin-layout.collapsed .sidebar-item span:not(.icon):not(.tooltip-label) {
    display: none !important;
}

.admin-layout.collapsed .sidebar-item:hover .tooltip-label {
    display: block !important;
    position: absolute !important;
    left: calc(100% + 10px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    z-index: 100 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
    pointer-events: none !important;
}

.tooltip-label {
    display: none;
}

/* ============================================================
   ADVIKA LEAKGUARD – CUTE & MODERN 3D DESIGN SYSTEM
   Soft depth, pill buttons, tactile bevels & friendly visuals
   ============================================================ */

:root {
    --c3d-blue-50: #f0f9ff;
    --c3d-blue-100: #e0f2fe;
    --c3d-blue-200: #bae6fd;
    --c3d-blue-400: #38bdf8;
    --c3d-blue-500: #0ea5e9;
    --c3d-blue-600: #0284c7;
    --c3d-blue-700: #0369a1;
    --c3d-blue-800: #075985;

    --c3d-teal-50: #f0fdfa;
    --c3d-teal-100: #ccfbf1;
    --c3d-teal-400: #2dd4bf;
    --c3d-teal-500: #14b8a6;
    --c3d-teal-600: #0d9488;
    --c3d-teal-700: #0f766e;

    --c3d-mint-50: #f0fdf4;
    --c3d-mint-100: #dcfce7;
    --c3d-mint-500: #10b981;
    --c3d-mint-600: #059669;
    --c3d-mint-700: #047857;

    --c3d-gold-50: #fffbeb;
    --c3d-gold-100: #fef3c7;
    --c3d-gold-500: #f59e0b;
    --c3d-gold-600: #d97706;

    --c3d-card-bg: #ffffff;
    --c3d-body-bg: #f8fafc;
    --c3d-shadow-soft: 0 14px 34px -8px rgba(2, 132, 199, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
    --c3d-shadow-lift: 0 22px 42px -10px rgba(2, 132, 199, 0.22), 0 10px 18px -6px rgba(15, 23, 42, 0.06);
    --c3d-border-soft: 1.5px solid rgba(226, 232, 240, 0.9);
    --c3d-radius-card: 22px;
    --c3d-radius-pill: 9999px;
}

/* 3D Tactile Buttons */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--c3d-radius-pill);
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    user-select: none;
    position: relative;
    letter-spacing: -0.2px;
}

.btn-3d:active {
    transform: translateY(3px) !important;
}

.btn-3d-primary {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 55%, #0369a1 100%);
    color: #ffffff !important;
    padding: 13px 26px;
    font-size: 15px;
    box-shadow: 0 4px 0 #075985, 0 10px 22px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-3d-primary:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #0284c7 50%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #075985, 0 16px 28px rgba(2, 132, 199, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-3d-primary:active {
    box-shadow: 0 1px 0 #075985, 0 4px 10px rgba(2, 132, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-3d-green {
    background: linear-gradient(180deg, #34d399 0%, #10b981 55%, #059669 100%);
    color: #ffffff !important;
    padding: 13px 26px;
    font-size: 15px;
    box-shadow: 0 4px 0 #047857, 0 10px 22px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-3d-green:hover {
    background: linear-gradient(180deg, #6ee7b7 0%, #10b981 50%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #047857, 0 16px 28px rgba(16, 185, 129, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-3d-green:active {
    box-shadow: 0 1px 0 #047857, 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-3d-white {
    background: #ffffff;
    color: #0f172a !important;
    padding: 13px 26px;
    font-size: 15px;
    box-shadow: 0 4px 0 #cbd5e1, 0 10px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
    border: 1px solid #e2e8f0;
}

.btn-3d-white:hover {
    background: #f8fafc;
    color: var(--c3d-blue-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #cbd5e1, 0 14px 26px rgba(15, 23, 42, 0.12);
}

.btn-3d-white:active {
    box-shadow: 0 1px 0 #cbd5e1, 0 4px 8px rgba(15, 23, 42, 0.06);
}

.btn-3d-lg {
    padding: 16px 34px !important;
    font-size: 17px !important;
    border-radius: var(--c3d-radius-pill) !important;
}

.btn-3d-sm {
    padding: 8px 18px !important;
    font-size: 13px !important;
    box-shadow: 0 3px 0 #075985, 0 6px 14px rgba(2, 132, 199, 0.25) !important;
}

/* 3D Soft Rounded Cards */
.card-3d {
    background: var(--c3d-card-bg);
    border-radius: var(--c3d-radius-card);
    border: var(--c3d-border-soft);
    box-shadow: var(--c3d-shadow-soft);
    padding: 28px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card-3d-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--c3d-shadow-lift);
    border-color: rgba(56, 189, 248, 0.6);
}

/* 3D Visual Selectable Cards (For Problem Selection) */
.select-card-3d {
    background: #ffffff;
    border: 2.5px solid #cbd5e1;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    position: relative;
    user-select: none;
}

.select-card-3d:hover {
    border-color: var(--c3d-blue-400, #38bdf8);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.14);
}

.select-card-3d:focus-visible {
    outline: 3px solid #0284c7;
    outline-offset: 2px;
}

.select-card-3d.selected,
.select-card-3d.active {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 10px 26px rgba(2, 132, 199, 0.22), inset 0 0 0 1.5px #0284c7 !important;
    transform: translateY(-2px);
}

.select-card-3d .checkmark-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-card-3d:hover .checkmark-badge {
    border-color: #94a3b8;
}

.select-card-3d.selected .checkmark-badge,
.select-card-3d.active .checkmark-badge {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
    transform: scale(1.08);
}

.select-card-3d.selected .problem-title,
.select-card-3d.active .problem-title {
    color: #0369a1 !important;
}

/* 3D Icon Bubbles */
.icon-3d-bubble {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 0 10px 20px -4px rgba(2, 132, 199, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.icon-3d-bubble-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 100%);
    box-shadow: 0 10px 20px -4px rgba(2, 132, 199, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.icon-3d-bubble-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #2dd4bf 100%);
    box-shadow: 0 10px 20px -4px rgba(13, 148, 136, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.icon-3d-bubble-green {
    background: linear-gradient(135deg, #dcfce7 0%, #34d399 100%);
    box-shadow: 0 10px 20px -4px rgba(16, 185, 129, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.icon-3d-bubble-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    box-shadow: 0 10px 20px -4px rgba(245, 158, 11, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

/* 3D Status Badges (Pills) */
.status-3d {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--c3d-radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.status-3d-waiting {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-3d-confirmed {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.status-3d-progress {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.status-3d-done {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-3d-alert {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Step Progress Indicator (Cute 3D) */
.step-indicator-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 32px;
}

.step-indicator-3d::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
}

.step-item-3d {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.step-circle-3d {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.step-item-3d.active .step-circle-3d {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.step-item-3d.completed .step-circle-3d {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-label-3d {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    max-width: 100px;
}

.step-item-3d.active .step-label-3d {
    color: var(--c3d-blue-700);
}

/* Floating Animation */
@keyframes floatGentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.float-3d {
    animation: floatGentle 3.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

    .float-3d,
    .btn-3d,
    .card-3d-hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COMPACT PUBLIC LAYOUT SYSTEM & IMAGE SIZING
   ═══════════════════════════════════════════════════════════════ */
.hero-compact {
    padding: 38px 0 46px !important;
    background: linear-gradient(135deg, #07274c 0%, #0a3d75 50%, #0d549b 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero-compact::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-compact .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
}

.hero-compact h1 {
    font-size: 32px !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.hero-compact .hero-desc {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-compact .hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-compact .hero-buttons .btn-3d {
    padding: 9px 18px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}

.hero-compact .hero-stats {
    margin-top: 18px !important;
    display: flex;
    gap: 10px !important;
    flex-wrap: wrap;
}

.hero-compact .hero-stat {
    padding: 8px 14px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-compact .hero-stat strong {
    font-size: 17px !important;
    color: #67e8f9 !important;
}

.hero-compact .hero-stat span {
    font-size: 11.5px !important;
    color: #e2e8f0 !important;
}

.hero-compact .hero-card {
    padding: 22px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    border: none !important;
}

.hero-compact .hero-card h3 {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.hero-compact .hero-card .benefit-item {
    font-size: 13px !important;
    color: #334155 !important;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Compact Process Step Cards */
.process-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.process-card-compact {
    padding: 20px 18px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.process-card-compact .step-icon-bubble {
    width: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px !important;
}

.process-card-compact h3 {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 4px 0 6px !important;
}

.process-card-compact p {
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Image Dimension & Scaling Safeguards */
img,
picture,
svg,
video {
    max-width: 100%;
    height: auto;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-constrained-banner {
    max-height: 280px;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
}

/* Public Hidden FAQ Safeguard */
.hidden-faq-section,
#faq.hidden-faq {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 991px) {
    .hero-compact .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .hero-compact h1 {
        font-size: 28px !important;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .hero-compact {
        padding: 28px 0 34px !important;
    }

    .hero-compact h1 {
        font-size: 24px !important;
    }

    .hero-compact .hero-desc {
        font-size: 13.5px !important;
        margin-bottom: 14px !important;
    }

    .service-grid,
    .testimonial-grid,
    .ba-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-compact .hero-card {
        padding: 16px !important;
    }
}

/* ============================================================
   GLOBAL RESPONSIVE SAFEGUARDS & MOBILE FIXES
   ============================================================ */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Header & Mobile Navigation */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: #1e293b;
    line-height: 1;
    user-select: none;
}

@media (max-width: 1080px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .site-header .btn-hide-mobile {
        display: none !important;
    }

    .topbar .btn-hide-mobile {
        display: none !important;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 68px);
    background: #ffffff;
    z-index: 99999;
    padding: 20px 20px 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.mobile-nav.active,
.mobile-nav.open {
    display: block !important;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #eff6ff;
    color: #0284c7;
}

/* Topbar & Header Mobile Compactness (320px - 640px) */
@media (max-width: 640px) {
    .topbar {
        padding: 4px 0 !important;
        font-size: 11px !important;
    }

    .topbar .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .topbar-info {
        font-size: 11px !important;
    }

    .topbar-contacts {
        font-size: 11px !important;
        gap: 10px !important;
    }

    .site-header .site-nav {
        padding: 8px 12px !important;
    }

    .brand-logo-icon,
    .brand-logo-img {
        width: auto !important;
        height: 34px !important;
        max-height: 34px !important;
        font-size: 17px !important;
        border-radius: 9px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .brand-title {
        font-size: 16px !important;
        letter-spacing: -0.3px !important;
        white-space: nowrap !important;
    }

    .brand-subtitle {
        font-size: 8.5px !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
    }

    .header-book-btn {
        padding: 6px 11px !important;
        font-size: 12px !important;
    }

    .hamburger {
        width: 34px !important;
        height: 34px !important;
        font-size: 20px !important;
    }

    .mobile-nav {
        top: 56px !important;
        height: calc(100vh - 56px) !important;
        padding: 14px 16px 70px !important;
    }
}

@media (max-width: 380px) {
    .brand-subtitle {
        font-size: 7.5px !important;
        letter-spacing: 0.2px !important;
        display: block !important;
        white-space: nowrap !important;
    }

    .brand-title {
        font-size: 14.5px !important;
    }

    .brand-logo-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
    }

    .header-book-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .hamburger {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    .mobile-nav {
        top: 50px !important;
        height: calc(100vh - 50px) !important;
    }
}

/* Responsive Grids on Service, Contact & About Pages */
@media (max-width: 900px) {

    .hero-grid,
    .contact-form-layout,
    .service-detail-grid,
    .about-hero-grid,
    .blog-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 640px) {

    .service-grid,
    .testimonial-grid,
    .ba-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-main-cta {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15.5px !important;
        letter-spacing: 0.2px !important;
    }

    .hero-buttons .btn-3d {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 11px 16px !important;
    }

    .hero h1 {
        font-size: clamp(23px, 6.5vw, 30px) !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    .hero-desc {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
    }

    .card-3d {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    #bookingForm [style*="margin-left:44px"],
    #bookingForm [style*="margin-left: 44px"] {
        margin-left: 0 !important;
    }

    .step-indicator-3d {
        gap: 6px !important;
    }

    .step-circle-3d {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .step-label-3d {
        font-size: 11px !important;
    }
}

/* 320px to 380px ultra-small screens safeguard */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 21px !important;
    }

    .hero-main-cta {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }

    .topbar {
        font-size: 11px !important;
    }
}

/* Floating Quick CTAs (Stacked above Chatbot Launcher without Overlap) */
.floating-quick-ctas {
    position: fixed;
    bottom: 102px;
    right: 24px;
    z-index: 999980;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.floating-quick-ctas.chat-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(12px) scale(0.92);
}

.floating-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.floating-cta-btn.floating-wa {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.floating-cta-btn.floating-call {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.floating-cta-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 640px) {
    .floating-quick-ctas {
        bottom: 86px;
        right: 16px;
        gap: 8px;
    }

    .floating-cta-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==========================================================================
   ADVIKA LEAKGUARD — COMPLETE RESPONSIVE SYSTEM (MOBILE, TABLET, DESKTOP)
   Viewports: 320x568, 375x667, 430x932, 768x1024, 1024x768, 1366x768, 1920x1080
   ========================================================================== */

/* ── 1. Global Viewport & Container Clamping ── */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* ── 2. Universal Table Responsiveness & Touch Horizontal Scroll ── */
.table-responsive,
.card>table,
.card-body>table,
.admin-page>table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    scrollbar-width: thin !important;
    scrollbar-color: #0284c7 #f1f5f9 !important;
    margin-bottom: 0 !important;
}

.table-responsive::-webkit-scrollbar,
.card>table::-webkit-scrollbar,
.admin-page>table::-webkit-scrollbar {
    height: 6px !important;
}

.table-responsive::-webkit-scrollbar-track,
.card>table::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

.table-responsive::-webkit-scrollbar-thumb,
.card>table::-webkit-scrollbar-thumb {
    background: #94a3b8 !important;
    border-radius: 3px !important;
}

/* ── 3. Mobile Navigation Drawers & Overlay (Admin & Customer CRM) ── */
@media (max-width: 768px) {

    /* Support both .open and .mobile-open classnames */
    .admin-sidebar.open,
    .admin-sidebar.mobile-open,
    .customer-sidebar.open,
    .customer-sidebar.mobile-open {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: min(85vw, 290px) !important;
        z-index: 1050 !important;
        background: #0f172a !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.45) !important;
        padding-top: 16px !important;
        padding-bottom: 40px !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .sidebar-overlay.active,
    .sidebar-overlay.open {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.65) !important;
        z-index: 1040 !important;
        backdrop-filter: blur(3px) !important;
    }

    /* Admin header mobile reorganization */
    .admin-header {
        flex-wrap: wrap !important;
        height: auto !important;
        min-height: 56px !important;
        padding: 8px 12px !important;
        gap: 8px !important;
    }

    .admin-header-left {
        gap: 8px !important;
        flex: 1 1 auto !important;
    }

    .admin-header-right {
        gap: 6px !important;
        flex: 0 0 auto !important;
    }

    .admin-header-center {
        order: 3 !important;
        width: 100% !important;
        padding: 0 !important;
        margin-top: 4px !important;
    }

    .admin-search {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ── 4. Screen-Specific Header Compacting (320px - 640px) ── */
@media (max-width: 640px) {

    /* Hide non-critical text from header to prevent horizontal wrapping */
    .admin-user .admin-user-role {
        display: none !important;
    }

    .btn-logout .logout-icon+span,
    .btn-logout-light span:not(:first-child) {
        display: none !important;
    }

    .admin-brand span {
        font-size: 13.5px !important;
    }

    /* Stack cards, charts and statistics cleanly */
    .stats-grid,
    .chart-grid,
    .panel-grid,
    .seo-responsive-grid,
    .seo-card-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Mobile form fields touch friendly */
    .form-group,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS/Android */
        min-height: 42px !important;
    }
}

@media (max-width: 480px) {

    /* Ultra-compact CRM header for small phones */
    .admin-user .admin-user-name {
        display: none !important;
    }

    .admin-user {
        padding: 4px !important;
    }

    .admin-brand .brand-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    .topbar {
        font-size: 11px !important;
        padding: 4px 0 !important;
    }

    .topbar .btn-hide-mobile {
        display: none !important;
    }

    /* Compact floating CTAs stacked cleanly above chatbot launcher without overlap */
    .floating-quick-ctas {
        bottom: 84px !important;
        right: 16px !important;
        gap: 6px !important;
    }

    .floating-cta-btn {
        padding: 7px 11px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
    }

    .floating-cta-btn span:first-child {
        font-size: 15px !important;
    }

    /* Touch targets */
    .btn,
    .btn-3d {
        min-height: 42px !important;
    }
}

/* ── 5. Ultra-Small Screen (320px - 375px) Safety Guard ── */
@media (max-width: 380px) {

    .container,
    .admin-page,
    .admin-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .hero h1 {
        font-size: 20px !important;
    }

    .hero-main-cta {
        font-size: 13.5px !important;
        padding: 11px 14px !important;
    }

    .site-nav {
        padding: 8px 10px !important;
    }

    .header-book-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .floating-quick-ctas {
        bottom: 76px !important;
        right: 12px !important;
        gap: 5px !important;
    }
}

/* ── 6. Public Mobile Navigation Drawer Full Support ── */
@media (max-width: 1080px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active,
    .mobile-nav.open {
        display: block !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #ffffff !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 9999 !important;
        padding: 16px 20px 60px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }
}

/* ── 7. Universal Table Responsive & Horizontal Overflow Scrolling ── */
.table-responsive,
.table-scroll-container,
.overflow-x-auto,
.table-container {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative;
}

@media (max-width: 991.98px) {

    .table-responsive table,
    .table-scroll-container table,
    .overflow-x-auto table,
    .table-container table {
        min-width: 650px;
    }
}

/* ── 8. Zero Left-Sidebar Scrollbar & Independent Main App-Shell Scrolling ── */
@media (min-width: 993px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body {
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .admin-view,
    .customer-view {
        min-height: 100vh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    .admin-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        z-index: 1000 !important;
        flex-shrink: 0 !important;
    }

    .admin-layout {
        flex: 1 1 auto !important;
        display: grid !important;
        grid-template-columns: var(--sidebar-width, 240px) 1fr !important;
        min-height: calc(100vh - 60px) !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .admin-sidebar,
    #adminSidebar,
    .customer-sidebar,
    #customerSidebar {
        position: sticky !important;
        top: 60px !important;
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 10px 8px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        z-index: 900 !important;
    }

    .admin-sidebar::-webkit-scrollbar,
    #adminSidebar::-webkit-scrollbar,
    .customer-sidebar::-webkit-scrollbar,
    #customerSidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .admin-main {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: calc(100vh - 60px) !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
        padding: 24px !important;
        background: var(--bg, #f8fafc) !important;
    }

    .admin-main::-webkit-scrollbar {
        width: 8px;
    }

    .admin-main::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .admin-main::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .admin-main::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* Compact, clean menu item alignment */
.admin-sidebar .sidebar-item,
.customer-sidebar .sidebar-item {
    padding: 7px 11px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    gap: 8px !important;
    margin: 1px 0 !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
}

.admin-sidebar .sidebar-item .icon,
.customer-sidebar .sidebar-item .icon {
    font-size: 15px !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.sidebar-collapsible-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    margin: 1px 0 !important;
}

.sidebar-section {
    margin-bottom: 2px !important;
}

/* ── 9. Universal Post-Login Mobile Responsiveness Suite (Admin, Staff & Customer) ── */
@media (max-width: 992px) {

    /* Prevent body horizontal scroll & ensure full natural vertical scrolling on mobile/tablet */
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .admin-view,
    .customer-view {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: block !important;
    }

    .admin-app-shell {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Force layouts to single column */
    .admin-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        grid-template-columns: 1fr !important;
    }

    .admin-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
        padding: 16px 12px 36px !important;
    }

    .user-dashboard-container,
    .admin-page-container,
    .quo-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* All cards fit viewport width */
    .card,
    .card-3d,
    .advika-table-card,
    .panel,
    .quotation-authentic-sheet {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Universal responsive table container */
    .advika-table-scroll,
    .table-responsive,
    .table-scroll-container,
    .sheet-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
        box-sizing: border-box !important;
    }

    .advika-table-scroll {
        max-height: none !important;
        min-height: auto !important;
        overflow-y: visible !important;
    }

    .sheet-items-table {
        min-width: 620px !important;
    }
}

@media (max-width: 768px) {

    /* Page header stacking */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .page-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .page-actions .btn,
    .page-actions .btn-3d {
        flex: 1 1 calc(50% - 8px) !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        padding: 8px 10px !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
    }

    /* Workflow pipeline: 2 columns on tablet/mobile */
    .card [style*="grid-template-columns:repeat(auto-fit, minmax(135px, 1fr))"],
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(135px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Stats grids: 2 columns on tablet/mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 14px 12px !important;
    }

    .stat-card .stat-value {
        font-size: 22px !important;
    }

    /* Navigation tabs horizontal swipe */
    .nav-tabs,
    .tab-pills,
    .cust-tab-bar,
    .project-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
    }

    .nav-tabs .nav-link,
    .tab-pills .tab-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Universal Modal Responsiveness & Clean Internal Scrolling */
    .modal-overlay {
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .modal-box,
    .modal-dialog,
    .modal-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 24px) !important;
        margin: 10px auto !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .modal-header-cute,
    .modal-header {
        flex-shrink: 0 !important;
        padding: 14px 16px !important;
    }

    .modal-body-cute,
    .modal-body {
        flex: 1 1 auto !important;
        padding: 14px 16px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: calc(100vh - 140px) !important;
    }

    .modal-footer-cute,
    .modal-footer {
        flex-shrink: 0 !important;
        padding: 12px 16px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {

    /* Ultra-small mobile phones (iPhone SE, 360px Android) */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .card-3d [style*="grid-template-columns:repeat(auto-fit, minmax(230px, 1fr))"],
    .card-3d [style*="grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))"],
    [style*="grid-template-columns:repeat(auto-fit, minmax(230px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .card-3d {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }

    .admin-main {
        padding: 12px 8px 28px !important;
    }
}

/* ==========================================================================
   NAVIGATION DROPDOWNS & CUSTOMER JOURNEY DESIGN SYSTEM
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    padding: 6px 0;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 14px;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: #0284c7;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1200;
    animation: navFadeSlide 0.18s ease-out forwards;
}

.nav-dropdown-menu.wide-menu {
    min-width: 320px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

@keyframes navFadeSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
    background: #f0f9ff;
    color: #0284c7;
    transform: translateX(2px);
}

.nav-dropdown-item .item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-dropdown-item:hover .item-icon {
    background: #e0f2fe;
}

.nav-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

/* Dual-Journey Cards (What Service Do You Need?) */
.dual-journey-section {
    padding: 48px 0 32px;
    background: #ffffff;
}

.dual-journey-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.dual-journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    position: relative;
}

@media (min-width: 992px) {
    .dual-journey-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.journey-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.journey-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.12);
    border-color: #bae6fd;
}

.journey-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #e2e8f0;
    display: block;
}

.journey-card-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journey-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 10px;
}

.badge-wp {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-int {
    background: #fef3c7;
    color: #b45309;
}

.badge-paint {
    background: #fef2f2;
    color: #b91c1c;
}

.journey-card-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f2942;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journey-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.journey-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
}

.journey-cta-wp {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.journey-cta-wp:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateX(3px);
}

.journey-cta-int {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.journey-cta-int:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateX(3px);
}

.journey-cta-paint {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.journey-cta-paint:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateX(3px);
}

/* Need Both Ribbon */
.both-services-ribbon {
    margin-top: 20px;
    text-align: center;
}

.both-ribbon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.06);
    text-decoration: none;
    transition: all 0.15s ease;
}

.both-ribbon-pill:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* Two-Column Services Grid */
.dual-services-section {
    padding: 40px 0 54px;
    background: #f8fafc;
}

.dual-services-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.services-col-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.services-col-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f2942;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.services-col-subtitle {
    font-size: 13px;
    color: #64748b;
}

.service-cards-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.service-mini-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #0284c7;
}

.service-mini-thumb {
    width: 100%;
    height: 105px;
    object-fit: cover;
    background: #f1f5f9;
}

.service-mini-info {
    padding: 10px 12px;
    text-align: center;
}

.service-mini-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f2942;
    line-height: 1.3;
}

/* AI Tools Grid (6 Cards) */
.ai-tools-section {
    padding: 48px 0;
    background: #ffffff;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 0 16px;
}

.ai-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ai-tool-card:hover {
    transform: translateY(-4px);
    border-color: #0284c7;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.12);
}

.ai-tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0284c7;
}

.ai-tool-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f2942;
    line-height: 1.25;
}

.ai-tool-subtext {
    font-size: 11px;
    color: #64748b;
}

/* TenderMate Banner */
.tendermate-home-banner {
    background: linear-gradient(135deg, #0b1e36 0%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 22px 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1180px;
    margin: 36px auto 0;
    box-shadow: 0 8px 24px rgba(11, 30, 54, 0.16);
    flex-wrap: wrap;
}

/* Trust Strip Footer */
.trust-strip {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

@media (max-width: 991px) {
    .dual-journey-grid {
        grid-template-columns: 1fr;
    }
    .dual-services-cols {
        grid-template-columns: 1fr;
    }
    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-strip-grid {
        grid-template-columns: 1fr;
    }
    .service-cards-subgrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Universal Dark Hero & Gradient Text Contrast Fixes ── */
.text-white, .text-white * {
    color: #ffffff;
}
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
section[style*="background: linear-gradient"] h1,
section[style*="background: linear-gradient"] h2,
section[style*="background: linear-gradient"] h3,
section[style*="background:#0"] h1,
section[style*="background: #0"] h1 {
    color: #ffffff !important;
}
.text-white-50, section[style*="background: linear-gradient"] .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}
.badge.bg-warning {
    background-color: #f59e0b !important;
    color: #0f172a !important;
    display: inline-flex !important;
    align-items: center;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

