/* ═══════════════════════════════════════════════════
   MLAB CUSTOM OVERRIDES
   Inspired by Seqlense design system
═══════════════════════════════════════════════════ */

/* ─── Smooth rendering ─── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Topbar glassmorphism ─── */
.app-topbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none !important;
}

html[data-bs-theme=dark] .app-topbar {
    background: rgba(24, 28, 36, 0.85) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ─── Dropdown menus — elevated, smooth ─── */
.app-topbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transition: none;
    top: 100% !important;
    bottom: auto !important;
}

.app-topbar .dropdown-menu.show {
    animation: mlabDropIn 0.18s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

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

html[data-bs-theme=dark] .app-topbar .dropdown-menu {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--ins-secondary-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ─── Dropdown items — smooth hover ─── */
.app-topbar .dropdown-menu .dropdown-item {
    border-radius: 8px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    margin: 1px 0;
}

.app-topbar .dropdown-menu .dropdown-item:hover,
.app-topbar .dropdown-menu .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.04);
}

html[data-bs-theme=dark] .app-topbar .dropdown-menu .dropdown-item:hover,
html[data-bs-theme=dark] .app-topbar .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.06);
}

/* ─── Topbar links — smooth transitions ─── */
.app-topbar .topbar-menu .topbar-item .topbar-link {
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
    border-radius: 8px;
    padding: 0.375rem 0.625rem;
}

.app-topbar .topbar-menu .topbar-item .topbar-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

html[data-bs-theme=dark] .app-topbar .topbar-menu .topbar-item .topbar-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* ─── Tools dropdown items ─── */
.tools-dropdown-item {
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.tools-dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

html[data-bs-theme=dark] .tools-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* ─── Login button ─── */
.login-btn {
    background: var(--ins-primary) !important;
    color: #fff !important;
    border-radius: 10px !important;
    border: var(--ins-border-width) solid transparent !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.login-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ─── Search bar — refined ─── */
.app-search .input-group {
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-search .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(var(--ins-primary-rgb), 0.1);
}

.app-search .form-control {
    border-radius: 0 10px 10px 0;
}

.app-search .input-group-text {
    border-radius: 10px 0 0 10px;
}

/* ─── Cards — subtle lift on hover ─── */
.card {
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ─── Buttons — smooth micro-interactions ─── */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    color: #fff;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-warning:hover,
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active,
.btn-success:active,
.btn-info:active,
.btn-warning:active,
.btn-danger:active {
    transform: translateY(0);
}

/* ─── Mega menu dropdown headers ─── */
.app-topbar .dropdown-menu .dropdown-header {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--ins-topbar-item-color);
    opacity: 0.6;
}


/* ═══════════════════════════════════════════════════
   HOMEPAGE COMPONENTS
═══════════════════════════════════════════════════ */

/* ─── Hero ─── */
.mlab-hero {
    position: relative;
    padding: 5rem 0 3rem;
    overflow: hidden;
}

.mlab-hero::before {
    display: none;
}

.mlab-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    background: rgba(var(--ins-primary-rgb), 0.08);
    border: 1px solid rgba(var(--ins-primary-rgb), 0.15);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ins-primary);
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.mlab-hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--ins-primary);
    border-radius: 50%;
    animation: mlabPulse 2s ease-in-out infinite;
}

@keyframes mlabPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.mlab-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.mlab-hero h1 span {
    color: inherit;
}

.mlab-hero p.lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ins-topbar-item-color);
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* ─── Search card ─── */
.mlab-search-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

html[data-bs-theme=dark] .mlab-search-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mlab-search-card .card-body {
    padding: 2rem;
}

.mlab-upload-zone {
    border: 2px dashed rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.01);
}

.mlab-upload-zone:hover {
    border-color: rgba(var(--ins-primary-rgb), 0.3) !important;
    background: rgba(var(--ins-primary-rgb), 0.02);
}

.mlab-upload-zone.dragover {
    border-color: var(--ins-primary) !important;
    background: rgba(var(--ins-primary-rgb), 0.06) !important;
}

html[data-bs-theme=dark] .mlab-upload-zone {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.02);
}

/* ─── Section titles ─── */
.mlab-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ins-primary);
    margin-bottom: 0.5rem;
}

.mlab-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.mlab-section-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ins-topbar-item-color);
    opacity: 0.7;
}

/* ─── Step cards ─── */
.mlab-step-card {
    background: var(--ins-secondary-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mlab-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ins-primary), rgba(var(--ins-primary-rgb), 0.3));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mlab-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.mlab-step-card:hover::before {
    opacity: 1;
}

html[data-bs-theme=dark] .mlab-step-card {
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme=dark] .mlab-step-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.mlab-step-number {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ins-primary);
    margin-bottom: 1rem;
}

.mlab-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(var(--ins-primary-rgb), 0.08);
    border: 1px solid rgba(var(--ins-primary-rgb), 0.12);
}

.mlab-step-icon i {
    color: var(--ins-primary);
}

.mlab-step-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.mlab-step-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--ins-topbar-item-color);
    opacity: 0.7;
    margin-bottom: 0;
}

/* ─── Feature cards (security, roles) ─── */
.mlab-feature-card {
    background: var(--ins-secondary-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mlab-feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

html[data-bs-theme=dark] .mlab-feature-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.mlab-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.mlab-feature-icon i {
    width: 18px;
    height: 18px;
}

.mlab-feature-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.mlab-feature-card p {
    font-size: 0.8rem;
    color: var(--ins-topbar-item-color);
    opacity: 0.65;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── Stats bar ─── */
.mlab-stats {
    background: var(--ins-primary);
    padding: 2.5rem 0;
    margin: 3rem 0;
    border-radius: 16px;
}

.mlab-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.mlab-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── Testimonial ─── */
.mlab-testimonial {
    background: var(--ins-secondary-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    height: 100%;
}

.mlab-testimonial::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ins-primary);
    opacity: 0.15;
    line-height: 1;
}

html[data-bs-theme=dark] .mlab-testimonial {
    border-color: rgba(255, 255, 255, 0.06);
}

.mlab-testimonial p {
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.mlab-testimonial-author {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.5;
}

/* ─── CTA dark ─── */
.mlab-cta-dark {
    background: var(--ins-primary);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.mlab-cta-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.mlab-cta-dark h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mlab-cta-dark p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.mlab-cta-dark .btn-light {
    background: #fff;
    color: var(--ins-primary);
    border: none;
    font-weight: 600;
}

.mlab-cta-dark .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
}

.mlab-cta-dark .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.mlab-cta-dark .btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ─── Role grid ─── */
.mlab-role-item {
    padding: 1.25rem;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.mlab-role-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

html[data-bs-theme=dark] .mlab-role-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mlab-role-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.mlab-role-item p {
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.6;
    margin-bottom: 0;
}

/* ─── Divider ─── */
.mlab-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

html[data-bs-theme=dark] .mlab-divider {
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Homepage sections spacing ─── */
.mlab-section {
    padding: 4rem 0;
}


/* ═══════════════════════════════════════════════════
   SCAN RESULT PAGES
═══════════════════════════════════════════════════ */

/* ─── Report header card ─── */
.mlab-report-header {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.mlab-report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ins-primary), rgba(var(--ins-primary-rgb), 0.3));
}

html[data-bs-theme=dark] .mlab-report-header {
    border-color: rgba(255, 255, 255, 0.06);
}

/* ─── Overview stat items in report header ─── */
.mlab-report-stat {
    padding: 0.75rem 0;
}

.mlab-report-stat h6 {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    margin-bottom: 0.375rem;
}

.mlab-report-stat p {
    font-size: 0.875rem;
    font-weight: 600;
    word-break: break-all;
}

/* ─── Hash blocks ─── */
.mlab-hash-block {
    background: var(--ins-secondary-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.mlab-hash-block:hover {
    border-color: rgba(var(--ins-primary-rgb), 0.2);
}

html[data-bs-theme=dark] .mlab-hash-block {
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme=dark] .mlab-hash-block:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.mlab-hash-block strong {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.25rem;
}

.mlab-hash-block code {
    font-size: 0.8rem;
    word-break: break-all;
    color: inherit;
    background: none;
}

.mlab-hash-block .btn-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mlab-hash-block:hover .btn-copy {
    opacity: 1;
}

/* ─── Analysis tabs — cleaner ─── */
.mlab-tabs .nav-tabs {
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    gap: 0.25rem;
}

html[data-bs-theme=dark] .mlab-tabs .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.mlab-tabs .nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--ins-topbar-item-color);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.mlab-tabs .nav-tabs .nav-link:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.03);
}

html[data-bs-theme=dark] .mlab-tabs .nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mlab-tabs .nav-tabs .nav-link.active {
    opacity: 1;
    font-weight: 600;
    border-bottom: 2px solid var(--ins-primary);
    margin-bottom: -2px;
    background: transparent;
}

.mlab-tabs .tab-content {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.25rem;
}

html[data-bs-theme=dark] .mlab-tabs .tab-content {
    border-color: rgba(255, 255, 255, 0.06);
}

/* ─── Tables — cleaner look ─── */
.mlab-table {
    font-size: 0.825rem;
}

.mlab-table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.5;
    border-bottom-width: 1px;
    padding: 0.625rem 0.75rem;
}

.mlab-table tbody td {
    padding: 0.625rem 0.75rem;
    vertical-align: middle;
}

/* ─── Request feature card ─── */
.mlab-request-card {
    border: 1px dashed rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.mlab-request-card:hover {
    border-color: rgba(var(--ins-primary-rgb), 0.25) !important;
}

html[data-bs-theme=dark] .mlab-request-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.mlab-request-card .card-body {
    padding: 1.5rem;
}

.mlab-request-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
}

.mlab-request-card p {
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ─── Report card sections ─── */
.mlab-report-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
}

html[data-bs-theme=dark] .mlab-report-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.mlab-report-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─── Badge improvements ─── */
.badge.bg-primary.fs-md {
    font-size: 0.8rem !important;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

/* ─── Coming soon / info cards ─── */
.mlab-info-card {
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 2rem;
}

html[data-bs-theme=dark] .mlab-info-card {
    border-color: rgba(255, 255, 255, 0.08);
}

.mlab-info-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
}

.mlab-info-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    opacity: 0.65;
}

/* ─── Mail security gauge cards ─── */
.mlab-gauge-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.mlab-gauge-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html[data-bs-theme=dark] .mlab-gauge-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.mlab-gauge-card .progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.04);
}

html[data-bs-theme=dark] .mlab-gauge-card .progress {
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Pre/code blocks in results ─── */
.mlab-code-block {
    background: var(--ins-secondary-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.8rem;
}

html[data-bs-theme=dark] .mlab-code-block {
    border-color: rgba(255, 255, 255, 0.06);
}

/* ─── History page header ─── */
.mlab-history-header {
    padding: 3rem 0 1rem;
}

.mlab-history-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mlab-history-header p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.6;
}

/* ─── Banners (info, warning, danger) ─── */
.mlab-banner {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.mlab-banner strong {
    font-size: 0.85rem;
}

.mlab-banner p {
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.75;
}

.mlab-banner a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mlab-banner-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Info variant */
.mlab-banner-info {
    background: rgba(var(--ins-primary-rgb), 0.04);
    border: 1px solid rgba(var(--ins-primary-rgb), 0.1);
    color: var(--ins-body-color);
}

.mlab-banner-info .mlab-banner-icon {
    background: rgba(var(--ins-primary-rgb), 0.08);
    color: var(--ins-primary);
}

.mlab-banner-info a {
    color: var(--ins-primary);
}

html[data-bs-theme=dark] .mlab-banner-info {
    background: rgba(var(--ins-primary-rgb), 0.06);
    border-color: rgba(var(--ins-primary-rgb), 0.12);
}

/* Warning variant */
.mlab-banner-warning {
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.15);
    color: var(--ins-body-color);
}

.mlab-banner-warning .mlab-banner-icon {
    background: rgba(255, 193, 7, 0.12);
    color: #d4a017;
}

html[data-bs-theme=dark] .mlab-banner-warning {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.15);
}

html[data-bs-theme=dark] .mlab-banner-warning .mlab-banner-icon {
    color: #ffc107;
}

/* Danger variant */
.mlab-banner-danger {
    background: rgba(220, 53, 69, 0.04);
    border: 1px solid rgba(220, 53, 69, 0.12);
    color: var(--ins-body-color);
}

.mlab-banner-danger .mlab-banner-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

html[data-bs-theme=dark] .mlab-banner-danger {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.15);
}

/* =============================================
   IP MAP
   ============================================= */

.mlab-map-container {
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(var(--ins-primary-rgb), 0.1);
    filter: grayscale(100%) contrast(1.1);
}

.mlab-map-container .leaflet-tile-pane {
    filter: brightness(0.97);
}

.mlab-map-pin {
    background: none !important;
    border: none !important;
    filter: none;
}

html[data-bs-theme=dark] .mlab-map-container {
    filter: grayscale(100%) invert(1) contrast(1.2) brightness(0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme=dark] .mlab-map-pin {
    filter: invert(1);
}

/* =============================================
   JS DEOBFUSCATOR
   ============================================= */

.mlab-deob-textarea {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(var(--ins-primary-rgb), 0.12);
    border-radius: 8px;
    resize: vertical;
}

.mlab-deob-textarea:focus {
    border-color: rgba(var(--ins-primary-rgb), 0.3);
    box-shadow: 0 0 0 3px rgba(var(--ins-primary-rgb), 0.06);
}

.mlab-deob-result {
    padding: 12px;
    border: 1px solid rgba(var(--ins-primary-rgb), 0.08);
    border-radius: 8px;
    background: var(--ins-card-bg, #fff);
}

.mlab-deob-result h6 {
    font-size: 0.8rem;
    color: var(--ins-body-color);
    letter-spacing: -0.01em;
}

html[data-bs-theme=dark] .mlab-deob-textarea {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

html[data-bs-theme=dark] .mlab-deob-textarea:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

html[data-bs-theme=dark] .mlab-deob-result {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}
