/* ==========================================================================
   MI GROUP (https://migroup-global.com) — Executive Conglomerate Design System
   MI Emerald (#0f6b3a / #1a8b49) • Deep Corporate Navy (#08203e) • Harvest Gold (#d97706)
   Modeled on GenX-Web Classic Institutional High-Contrast Architecture (100% Local-First)
   ========================================================================== */

:root {
    --mi-emerald: #1a8b49;
    --mi-emerald-dark: #0f6b3a;
    --mi-emerald-soft: #eaf7ef;
    --mi-navy: #08203e;
    --mi-navy-dark: #05152a;
    --mi-navy-mid: #123763;
    --mi-navy-soft: #eef4fb;
    --mi-gold: #d97706;
    --mi-gold-bright: #ffd54f;
    --mi-gold-hover: #b45309;
    --mi-crimson: #9e2316;
    --mi-ink: #1e2b3c;
    --mi-slate: #435770;
    --mi-muted: #55667a;
    --mi-border: #d8e4df;
    --mi-bg-soft: #f4f9f6;
    --mi-radius: 10px;
    --mi-shadow-sm: 0 3px 12px rgba(8, 32, 62, 0.06);
    --mi-shadow: 0 10px 26px rgba(8, 32, 62, 0.09);
    --mi-shadow-lg: 0 18px 42px rgba(8, 32, 62, 0.16);
    --bs-primary: #0f6b3a;
    --bs-primary-rgb: 15, 107, 58;
    --bs-heading-color: #08203e;
    --vz-heading-color: #08203e;
    --bs-body-color: #1e2b3c;
    --vz-body-color: #1e2b3c;
}

html { scroll-behavior: smooth; width: 100%; max-width: 100%; }
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    font-family: 'Open Sans', 'Segoe UI', 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--mi-ink);
    background: #ffffff;
    font-size: 14.8px;
    line-height: 1.62;
    margin: 0;
}
body.has-fixed-header { padding-top: 112px; }
@media (max-width: 991.98px) { body.has-fixed-header { padding-top: 68px; } }

h1, h2, h3, h4, h5, h6 { color: var(--mi-navy) !important; font-weight: 800; letter-spacing: -0.015em; }
.mi-hero h1, .mi-hero h2, .mi-hero h3, .mi-hero h4,
.mi-page-hero h1, .mi-page-hero h2,
.mi-eco-hub h4, .mi-eco-hub h5,
.mi-lead-band h2, .mi-lead-band h3,
.mi-dark-cta h1, .mi-dark-cta h2, .mi-dark-cta h3, .mi-dark-cta h4, .mi-dark-cta h5,
.mi-footer h6 { color: #ffffff !important; }
.mi-eco-core h4, .mi-eco-core h5 { color: var(--mi-navy) !important; }

a { color: var(--mi-emerald-dark); transition: all 0.18s ease; }
a:hover { color: var(--mi-gold); }

.form-control, .form-select {
    background-color: #ffffff !important;
    color: #1e2b3c !important;
    border: 1px solid #cbd5e1 !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mi-emerald) !important;
    box-shadow: 0 0 0 3px rgba(26, 139, 73, 0.16) !important;
}
.text-muted { color: #4b5d73 !important; }

@media (min-width: 992px) { .container { max-width: 96% !important; width: 96% !important; } }
@media (min-width: 1380px) { .container { max-width: 1480px !important; width: 95% !important; } }

/* 1. FIXED TWO-TIER CORPORATE HEADER */
.mi-fixed-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1050;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(8, 32, 62, 0.14);
}
.mi-fixed-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, #0f6b3a 0%, #d97706 50%, #08203e 100%);
}
.mi-top-header {
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #e5ece8;
}
.mi-top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}
.mi-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}
.mi-brand-crest {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}
.mi-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.mi-brand-text .b-main { font-weight: 900; font-size: 15.5px; color: var(--mi-navy); letter-spacing: 0.35px; }
.mi-brand-text .b-sub { font-size: 10px; font-weight: 700; color: var(--mi-emerald-dark); letter-spacing: 0.2px; text-transform: uppercase; margin-top: 2px; white-space: nowrap; }

.mi-top-credentials { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; min-width: 0; }
.mi-cred-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--mi-bg-soft);
    border: 1px solid #cde2d6;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 11.5px;
    color: var(--mi-navy) !important;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
}
.mi-cred-pill:hover { background: var(--mi-emerald-soft); border-color: var(--mi-emerald); }
.mi-cred-pill i { color: var(--mi-emerald); font-size: 13.5px; }
.mi-cred-pill.hotline-pill { background: #fff7ed; border-color: #fed7aa; color: #9a3412 !important; }
.mi-cred-pill.hotline-pill i { color: var(--mi-gold); }

.mi-top-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.mi-classic-search { width: 175px; }
.mi-classic-search form {
    display: flex; align-items: center;
    background: #ffffff; border: 1px solid #cbd5e1; border-radius: 4px; height: 34px; overflow: hidden;
}
.mi-classic-search input { border: none; outline: none; background: transparent; padding: 0 9px; font-size: 12.2px; width: 100%; }
.mi-classic-search button { border: none; background: transparent; color: var(--mi-slate); width: 32px; height: 32px; cursor: pointer; }

.mi-social-circles { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.mi-social-circles a {
    width: 29px; height: 29px; border-radius: 50%;
    background: var(--mi-navy); color: #ffffff !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; text-decoration: none !important;
}
.mi-social-circles a.fb-circle { background: #1877f2; }
.mi-social-circles a.li-circle { background: #0a66c2; }
.mi-social-circles a.yt-circle { background: #dc2626; }
.mi-social-circles a:hover { background: var(--mi-emerald); transform: translateY(-1px); }

.mi-header-switch-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #08203e 0%, #0f6b3a 100%);
    border: 1px solid #08203e; border-left: 3.5px solid var(--mi-gold-bright);
    border-radius: 5px; padding: 4px 10px 4px 7px; height: 34px;
    color: #ffffff !important; text-decoration: none !important;
    font-size: 12px; font-weight: 800; white-space: nowrap;
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .mi-classic-search { width: 145px; }
    .mi-nav-link { padding: 11px 8px !important; font-size: 11.2px !important; letter-spacing: 0.15px; }
    .mi-nav-cta { padding: 6px 10px !important; font-size: 11px !important; }
}
.mi-header-switch-btn:hover { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: #ffffff !important; }
.mi-header-switch-icon {
    width: 23px; height: 23px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.16); color: var(--mi-gold-bright);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}

.mi-primary-navbar { background: linear-gradient(90deg, #08203e 0%, #0f4c3a 60%, #0f6b3a 100%); width: 100%; position: relative; z-index: 1040; }
.mi-primary-navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.mi-nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.mi-nav-item { position: relative; flex-shrink: 0; }
.mi-nav-item + .mi-nav-item::before {
    content: "|"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.24); font-size: 12px; pointer-events: none;
}
.mi-nav-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 12px 13px;
    color: #ffffff !important; font-weight: 700; font-size: 12.3px; letter-spacing: 0.3px;
    text-transform: uppercase; white-space: nowrap !important; text-decoration: none !important; line-height: 1.2;
}
.mi-nav-link:hover, .mi-nav-item:hover > .mi-nav-link, .mi-nav-link.active {
    background: rgba(255, 255, 255, 0.14); color: var(--mi-gold-bright) !important;
}
.mi-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 295px;
    background: #ffffff; border-radius: 0 0 6px 6px; border: 1px solid var(--mi-border);
    border-top: 3px solid var(--mi-gold); box-shadow: 0 14px 32px rgba(8, 32, 62, 0.22);
    list-style: none; margin: 0; padding: 6px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.18s ease; z-index: 1060;
}
.mi-dropdown-wide { min-width: 310px; max-height: 420px; overflow-y: auto; }
.mi-nav-item:hover > .mi-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mi-dropdown li a {
    display: flex; align-items: center; gap: 8px; padding: 8px 15px;
    color: var(--mi-ink) !important; font-size: 12.8px; font-weight: 600;
    text-decoration: none !important; border-bottom: 1px solid #f1f5f9;
}
.mi-dropdown li:last-child a { border-bottom: none; }
.mi-dropdown li a i { color: var(--mi-emerald); font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.mi-dropdown li a:hover { background: var(--mi-bg-soft); color: var(--mi-emerald-dark) !important; padding-left: 19px; }

.mi-nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--mi-gold); color: #ffffff !important; font-weight: 800; font-size: 12px;
    letter-spacing: 0.4px; text-transform: uppercase; padding: 7px 15px; border-radius: 4px;
    white-space: nowrap !important; text-decoration: none !important;
}
.mi-nav-cta:hover { background: var(--mi-gold-hover); color: #ffffff !important; transform: translateY(-1px); }

.mi-mobile-drawer { background: var(--mi-navy); border-top: 2px solid var(--mi-gold); padding: 14px 18px; }
.mi-mobile-drawer a {
    display: block; padding: 9px 10px; color: #ffffff !important; font-weight: 700;
    font-size: 13.5px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. BUTTONS */
.btn-mi-emerald, .btn-mi-gold, .btn-mi-navy, .btn-mi-outline-light, .btn-mi-outline-emerald, .btn-mi-outline-navy {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    font-weight: 700; border-radius: 6px; padding: 0.62rem 1.25rem; line-height: 1.25; white-space: nowrap;
}
.btn-mi-emerald.btn-sm, .btn-mi-gold.btn-sm, .btn-mi-navy.btn-sm,
.btn-mi-outline-light.btn-sm, .btn-mi-outline-emerald.btn-sm, .btn-mi-outline-navy.btn-sm {
    padding: 0.44rem 0.9rem; font-size: 0.82rem; min-height: 36px;
}
.btn-mi-emerald { background: var(--mi-emerald); border: 1.5px solid var(--mi-emerald); color: #ffffff !important; }
.btn-mi-emerald:hover { background: var(--mi-emerald-dark); border-color: var(--mi-emerald-dark); color: #ffffff !important; transform: translateY(-1px); }
.btn-mi-gold { background: var(--mi-gold); border: 1.5px solid var(--mi-gold); color: #ffffff !important; }
.btn-mi-gold:hover { background: var(--mi-gold-hover); border-color: var(--mi-gold-hover); color: #ffffff !important; transform: translateY(-1px); }
.btn-mi-navy { background: var(--mi-navy); border: 1.5px solid var(--mi-navy); color: #ffffff !important; }
.btn-mi-navy:hover { background: var(--mi-navy-mid); border-color: var(--mi-navy-mid); color: #ffffff !important; transform: translateY(-1px); }
.btn-mi-outline-light { background: #ffffff; border: 1.5px solid #ffffff; color: var(--mi-navy) !important; }
.btn-mi-outline-light:hover { background: var(--mi-bg-soft); color: var(--mi-emerald-dark) !important; }
.btn-mi-outline-emerald { background: #ffffff; border: 1.5px solid var(--mi-emerald); color: var(--mi-emerald-dark) !important; }
.btn-mi-outline-emerald:hover { background: var(--mi-emerald); border-color: var(--mi-emerald); color: #ffffff !important; transform: translateY(-1px); }
.btn-mi-outline-navy { background: #ffffff; border: 1.5px solid #cbd5e1; color: var(--mi-navy) !important; }
.btn-mi-outline-navy:hover { background: var(--mi-navy); border-color: var(--mi-navy); color: #ffffff !important; transform: translateY(-1px); }

/* 3. HERO & PAGE BANNERS */
.mi-hero {
    background: linear-gradient(115deg, #05182e 0%, #0c3556 50%, #0f6b3a 100%);
    position: relative; overflow: hidden; padding: 3.1rem 0 3.7rem; color: #ffffff;
    border-bottom: 4px solid var(--mi-gold);
}
.mi-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px; pointer-events: none;
}
.mi-hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--mi-gold); color: #ffffff; font-weight: 800; font-size: 11.6px;
    letter-spacing: 0.5px; line-height: 1.35; text-transform: uppercase; padding: 6px 13px; border-radius: 4px;
}
.mi-hero-title { font-size: clamp(1.9rem, 3.1vw, 2.8rem); font-weight: 800; line-height: 1.18; }
.mi-hero-highlight { color: var(--mi-gold-bright); }

.mi-page-hero {
    background: linear-gradient(115deg, #05182e 0%, #0c3556 58%, #0f6b3a 100%);
    color: #ffffff; padding: 2.8rem 0 3rem; border-bottom: 4px solid var(--mi-gold); position: relative;
}
.mi-showcase-frame {
    background: #ffffff; border: 3px solid rgba(255, 255, 255, 0.92); border-radius: 10px;
    overflow: hidden; box-shadow: 0 20px 48px rgba(0, 18, 38, 0.38); position: relative;
}
.mi-showcase-bar {
    background: var(--mi-navy-dark); padding: 8px 13px;
    display: flex; align-items: center; gap: 6px;
}
.mi-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mi-dot-r { background: #ef4444; } .mi-dot-y { background: #f59e0b; } .mi-dot-g { background: #22c55e; }
.mi-hero-shot { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16 / 10; background: #0f172a; }

/* 4. SECTIONS, CARDS & LOGOS */
.mi-section { padding: 56px 0; }
.mi-section-soft { background: var(--mi-bg-soft); border-top: 1px solid var(--mi-border); border-bottom: 1px solid var(--mi-border); }
.mi-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: var(--mi-emerald-dark); margin-bottom: 6px; }
.mi-section-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; color: var(--mi-navy); }
.mi-classic-divider { width: 64px; height: 3.5px; background: var(--mi-gold); border-radius: 3px; margin: 10px auto 14px; }

.mi-card {
    background: #ffffff; border: 1px solid var(--mi-border); border-top: 3px solid var(--mi-emerald);
    border-radius: var(--mi-radius); padding: 22px; box-shadow: var(--mi-shadow-sm);
    transition: all 0.22s ease;
}
.mi-card:hover { transform: translateY(-3px); box-shadow: var(--mi-shadow); border-top-color: var(--mi-gold); }
.mi-icon-box { width: 48px; height: 48px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }

.mi-logo-chip {
    background: #ffffff; border: 1px solid var(--mi-border); border-radius: 8px;
    padding: 10px 12px; display: flex; align-items: center; gap: 10px;
    text-decoration: none !important; box-shadow: var(--mi-shadow-sm);
}
.mi-logo-chip:hover { border-color: var(--mi-emerald); transform: translateY(-2px); }
.mi-logo-chip img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }

.mi-pillar-btn {
    background-color: #ffffff !important; color: var(--mi-navy) !important;
    border: 1.5px solid #a7cbb6 !important; font-weight: 700 !important; border-radius: 6px !important; padding: 7px 14px !important;
}
.mi-pillar-btn:hover { background: var(--mi-emerald-soft) !important; border-color: var(--mi-emerald) !important; }
.mi-pillar-btn.active { background: var(--mi-emerald-dark) !important; color: #ffffff !important; border-color: var(--mi-emerald-dark) !important; }

.mi-eco-hub {
    background: linear-gradient(125deg, #05182e 0%, #0b3a54 58%, #0f6b3a 100%);
    color: #ffffff; border-radius: var(--mi-radius); border-top: 4px solid var(--mi-gold);
    padding: 32px; box-shadow: var(--mi-shadow-lg);
}
.mi-eco-node {
    background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px; padding: 18px; height: 100%; transition: all 0.2s ease;
}
.mi-eco-node:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--mi-gold-bright); }
.mi-eco-core { background: #ffffff; color: var(--mi-ink); border-left: 5px solid var(--mi-gold); }

.mi-lead-band {
    background: linear-gradient(120deg, #08203e 0%, #0f6b3a 100%);
    color: #ffffff; border-top: 4px solid var(--mi-gold); border-radius: var(--mi-radius);
    padding: 34px; box-shadow: var(--mi-shadow-lg);
}

.mi-bod-avatar { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: top center; border: 3px solid var(--mi-emerald); background: #f8fafc; }
.mi-bod-avatar-lg { width: 88px; height: 88px; border-color: var(--mi-gold); box-shadow: 0 6px 18px rgba(8, 32, 62, 0.14); }
.mi-bod-card-exec { border-top: 4px solid var(--mi-gold); background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%); }

/* 5. FOOTER */
.mi-footer { background: var(--mi-navy-dark); color: #cbd5e1; border-top: 4px solid var(--mi-gold); padding: 48px 0 24px; font-size: 13.8px; }
.mi-footer h6 { font-weight: 800; font-size: 13.2px; text-transform: uppercase; letter-spacing: 0.4px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--mi-gold); display: inline-block; }
.mi-footer a { color: #cbd5e1; text-decoration: none; }
.mi-footer a:hover { color: var(--mi-gold-bright); }
.mi-footer-social {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important; display: inline-flex; align-items: center; justify-content: center;
}
.mi-footer-social:hover { background: var(--mi-emerald); }

/* 6. FLOATING QUICK QUOTE BUTTON (Circular on Mobile) */
.mi-quote-float {
    position: fixed; bottom: 22px; left: 22px; z-index: 1045;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--mi-emerald); border: 2px solid #ffffff; color: #ffffff !important;
    text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
    box-shadow: 0 10px 26px rgba(15, 107, 58, 0.4); transition: transform 0.2s ease;
}
.mi-quote-float:hover { background: var(--mi-emerald-dark); transform: translateY(-2px); color: #ffffff !important; }
@media (max-width: 991.98px) {
    .mi-hero { padding: 1.6rem 0 2.4rem; }
    .mi-lead-band, .mi-eco-hub { padding: 20px; }
    .mi-quote-float span.mi-float-label { display: none; }
    .mi-quote-float {
        left: 16px; bottom: 16px; width: 54px; height: 54px; padding: 0;
        border-radius: 50%; justify-content: center; align-items: center; gap: 0;
    }
    .mi-quote-float i { font-size: 24px !important; line-height: 1; }
}

/* 7. COLLAPSIBLE MIDDLE-RIGHT LIVE STATISTICS TRAY (Rule 2 Compliant — Middle-Right on ALL Screens) */
.mi-stats-drawer {
    position: fixed; top: 50%; right: 0; transform: translateY(-50%);
    z-index: 1085; display: flex; align-items: center; pointer-events: none;
}
.mi-stats-handle {
    pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(180deg, #08203e 0%, #0f6b3a 100%);
    color: #ffffff; border: 1.5px solid rgba(255, 255, 255, 0.28); border-right: none;
    border-radius: 10px 0 0 10px; padding: 12px 8px; cursor: pointer;
    box-shadow: -4px 6px 20px rgba(8, 32, 62, 0.28); transition: background 0.2s ease;
}
.mi-stats-handle:hover { background: linear-gradient(180deg, #0f6b3a 0%, #d97706 100%); }
.mi-stats-handle i { font-size: 16px; color: var(--mi-gold-bright); }
.mi-stats-handle-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: #ffffff; white-space: nowrap; }
.mi-stats-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35); display: inline-block; flex-shrink: 0; }
.mi-stats-tray {
    pointer-events: auto; width: 0; opacity: 0; overflow: hidden; max-height: calc(100vh - 28px);
    background: #ffffff; border: 1px solid #c6dcd0; border-right: none; border-radius: 12px 0 0 12px;
    box-shadow: -10px 16px 38px rgba(8, 32, 62, 0.26); transition: width 0.26s ease, opacity 0.22s ease;
}
.mi-stats-drawer.is-open .mi-stats-tray { width: 348px; opacity: 1; overflow-y: auto; }
.mi-stats-tray-head {
    background: linear-gradient(135deg, #08203e 0%, #0f6b3a 100%);
    padding: 11px 13px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 3px solid var(--mi-gold);
}
.mi-stats-close {
    width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.mi-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 11px; background: #f5faf7; }
.mi-stat-tile { background: #ffffff; border: 1px solid #d8e4df; border-radius: 8px; padding: 9px 8px; display: flex; align-items: center; gap: 8px; }
.mi-stat-tile-ico { width: 32px; height: 32px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.mi-stat-tile-body { min-width: 0; }
.mi-stat-tile-val { font-size: 1rem; font-weight: 800; color: var(--mi-navy); line-height: 1.15; }
.mi-stat-tile-lbl { font-size: 0.67rem; font-weight: 700; color: #475569; line-height: 1.2; }
.mi-stats-tray-foot { padding: 8px 12px; background: #ffffff; border-top: 1px solid #e2eae5; display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: #475569; }
@media (max-width: 767.98px) {
    .mi-stats-drawer { top: 50%; right: 0; bottom: auto; transform: translateY(-50%); align-items: center; }
    .mi-stats-handle { padding: 9px 6px; gap: 4px; }
    .mi-stats-handle-label { font-size: 9.5px; letter-spacing: 0.9px; }
}
@media (max-width: 575.98px) {
    .mi-stats-drawer.is-open .mi-stats-tray { width: min(312px, calc(100vw - 42px)); }
}

/* 8. AI CONCIERGE WIDGET */
.mi-chatbot-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1095; }
.mi-chat-launcher {
    position: relative; width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid #ffffff; background: linear-gradient(135deg, #08203e 0%, #0f6b3a 100%);
    color: #ffffff; box-shadow: 0 12px 28px rgba(8, 32, 62, 0.36); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.mi-chat-launcher-pulse { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(26, 139, 73, 0.55); animation: miPulse 2.4s infinite ease-out; pointer-events: none; }
@keyframes miPulse { 0% { transform: scale(0.95); opacity: 0.85; } 80% { transform: scale(1.22); opacity: 0; } 100% { transform: scale(1.22); opacity: 0; } }
.mi-chat-launcher-open-icon { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mi-chat-launcher-open-icon i { font-size: 22px; }
.mi-chat-launcher-tag { font-size: 9.5px; font-weight: 800; background: var(--mi-gold-bright); color: var(--mi-navy); padding: 1px 6px; border-radius: 6px; margin-top: 2px; }
.mi-chat-launcher-close-icon { display: none; font-size: 24px; }
.mi-chatbot-widget.is-open .mi-chat-launcher-open-icon, .mi-chatbot-widget.is-open .mi-chat-launcher-pulse { display: none; }
.mi-chatbot-widget.is-open .mi-chat-launcher-close-icon { display: inline-block; }

.mi-chat-teaser {
    position: absolute; right: 70px; bottom: 8px; width: 230px; background: #ffffff;
    border: 1px solid #cce0d4; border-left: 4px solid var(--mi-gold); border-radius: 12px;
    padding: 8px 24px 8px 10px; box-shadow: 0 10px 26px rgba(8, 32, 62, 0.16); cursor: pointer;
}
.mi-chat-teaser.is-hidden { opacity: 0; pointer-events: none; }
.mi-chat-teaser-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--mi-emerald-dark); }
.mi-chat-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; }
.mi-chat-teaser-text { font-size: 12px; line-height: 1.38; color: var(--mi-navy); }
.mi-chat-teaser-close { position: absolute; top: 4px; right: 6px; border: none; background: transparent; color: #64748b; font-size: 16px; cursor: pointer; }

.mi-chat-panel {
    position: absolute; right: 0; bottom: 74px; width: 386px; height: 540px; max-height: calc(100vh - 120px);
    background: #f5faf7; border: 1px solid #c6dcd0; border-radius: 16px; box-shadow: 0 22px 54px rgba(8, 32, 62, 0.28);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.97); pointer-events: none; transition: all 0.22s ease;
}
.mi-chatbot-widget.is-open .mi-chat-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.mi-chat-header { background: linear-gradient(135deg, #08203e 0%, #0f6b3a 100%); color: #ffffff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.mi-chat-header-brand { display: flex; align-items: center; gap: 10px; }
.mi-chat-avatar { position: relative; width: 38px; height: 38px; border-radius: 10px; background: #ffffff; padding: 4px; display: flex; align-items: center; justify-content: center; }
.mi-chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.mi-chat-avatar-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #08203e; }
.mi-chat-title { margin: 0; font-size: 14.5px; font-weight: 800; color: #ffffff !important; }
.mi-chat-subtitle { font-size: 10.8px; color: rgba(255, 255, 255, 0.9); }
.mi-chat-hdr-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.14); color: #ffffff; cursor: pointer; }
.mi-chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #eaf4ee; border-bottom: 1px solid #d4e6dc; }
.mi-chat-chip { border: 1px solid #b5d5c3; background: #ffffff; color: var(--mi-navy); font-size: 11.2px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.mi-chat-chip:hover { background: var(--mi-emerald-dark); color: #ffffff; }
.mi-chat-messages { flex: 1; overflow-y: auto; padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.mi-chat-msg { display: flex; flex-direction: column; max-width: 92%; }
.mi-chat-msg-user { align-self: flex-end; }
.mi-chat-msg-bot { align-self: flex-start; }
.mi-chat-bubble-user { background: linear-gradient(135deg, #08203e 0%, #0f6b3a 100%); color: #ffffff; padding: 9px 13px; border-radius: 14px 14px 3px 14px; font-size: 12.8px; }
.mi-chat-bubble-bot { background: #ffffff; color: #1e293b; border: 1px solid #d5e5dc; padding: 10px 13px; border-radius: 14px 14px 14px 3px; font-size: 12.7px; line-height: 1.5; }
.mi-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mi-chat-action-pill { font-size: 11px; font-weight: 700; background: #eaf7ef; color: var(--mi-emerald-dark) !important; border: 1px solid #a7dcb9; padding: 4px 9px; border-radius: 999px; text-decoration: none !important; }
.mi-chat-action-pill:hover { background: var(--mi-emerald-dark); color: #ffffff !important; }
.mi-chat-footer { background: #ffffff; border-top: 1px solid #d8e5de; padding: 9px 11px 8px; }
.mi-chat-form { display: flex; gap: 7px; }
.mi-chat-input { flex: 1; border: 1.5px solid #b8d2c3 !important; border-radius: 999px !important; padding: 8px 14px !important; font-size: 12.8px !important; height: 38px !important; }
.mi-chat-send { width: 38px; height: 38px; border-radius: 50%; border: none; background: linear-gradient(135deg, #08203e 0%, #0f6b3a 100%); color: #ffffff; cursor: pointer; }
.mi-chat-footnote { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.6px; color: #475569; }
.mi-chat-sales-pill { color: var(--mi-gold) !important; font-weight: 800; text-decoration: none !important; }

@media (max-width: 991.98px) {
    .mi-chat-teaser { display: none !important; }
    .mi-chatbot-widget { right: 16px; bottom: 16px; }
}
@media (max-width: 575.98px) {
    .mi-chat-panel { position: fixed; right: 10px; left: 10px; bottom: 86px; width: auto; height: calc(100vh - 140px); max-height: 510px; }
}

@media print {
    header, footer, .mi-quote-float, .mi-no-print, #miMainNav { display: none !important; }
    body.has-fixed-header { padding-top: 0 !important; }
}
