/* ==========================================================================
   VERIFIMMO PREMIUM UI SYSTEM
   ========================================================================== */

:root {
    /* Colors - Premium Nature Palette */
    --premium-primary: #ff4400;
    /* Warm Terracotta - Trust & Action */
    --premium-primary-hover: #C84937;
    --premium-primary-light: #FBEFEB;
    /* For backgrounds/badges */

    --premium-bg: #F8FAFC;
    /* Slate 50 - Very clean off-white */
    --premium-surface: #FFFFFF;

    --premium-text-main: #0F172A;
    /* Slate 900 - Razor sharp black */
    --premium-text-muted: #475569;
    /* Slate 600 - Secondary text */
    --premium-text-light: #94A3B8;
    /* Slate 400 - Tertiary/Placeholders */

    --premium-border: #E2E8F0;
    /* Slate 200 */
    --premium-border-light: #F1F5F9;
    /* Slate 100 */

    /* Verification Colors */
    --badge-green-bg: #D1FAE5;
    --badge-green-text: #065F46;
    --badge-green-icon: #10B981;

    --badge-yellow-bg: #FEF3C7;
    --badge-yellow-text: #92400E;
    --badge-yellow-icon: #F59E0B;

    --badge-red-bg: #FEE2E2;
    --badge-red-text: #991B1B;
    --badge-red-icon: #EF4444;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows - Luxury Depth */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
    /* Float effect */
    --shadow-lg: 0 20px 60px -15px rgba(15, 23, 42, 0.12);
    /* Heavy float */

    /* Radii - Squircle look */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   GLOBAL OVERRIDES
   ========================================================================== */

body {
    font-family: var(--font-body);
    color: var(--premium-text-main);
    background-color: var(--premium-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.ff-heading,
.title {
    font-family: var(--font-display) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    /* Tighter tracking for modern display look */
    color: var(--premium-text-main);
}

/* ==========================================================================
   MAGNETIC BUTTONS & LINKS
   ========================================================================== */

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-premium-primary {
    background-color: var(--premium-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(224, 90, 71, 0.25);
}

.btn-premium-primary:hover {
    background-color: var(--premium-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 90, 71, 0.35);
    color: #fff !important;
}

.btn-premium-white {
    background-color: #fff;
    color: var(--premium-text-main) !important;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--premium-border-light);
}

.btn-premium-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--premium-primary) !important;
    border-color: var(--premium-primary) !important;
    color: #fff !important;
}

/* ==========================================================================
   GLASSMORPHISM NAVBAR (Floating)
   ========================================================================== */

.header-nav.premium-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtler border to avoid weird white shadow look */
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 0 20px;
}

.header-nav.premium-nav.is-sticky {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--premium-border);
    box-shadow: var(--shadow-md);
}

/* Prevent older theme pseudo-elements from bleeding white blocks/shadows */
.header-nav.premium-nav::before,
.header-nav.premium-nav::after {
    display: none !important;
}

/* Fix logo sticking to the left edge inside the premium navbar */
.header-nav.premium-nav .header-logo {
    display: inline-block;
    margin-left: 16px;
}

.premium-nav .ace-responsive-menu li a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--premium-text-muted) !important;
    transition: var(--transition-smooth);
    padding: 10px 16px !important;
    border-radius: var(--radius-pill);
}

.premium-nav .ace-responsive-menu li a:hover,
.premium-nav .ace-responsive-menu li.active a {
    color: var(--premium-text-main) !important;
    background-color: var(--premium-border-light);
}

/* ==========================================================================
   PROPERTY CARDS (Micro-interactions)
   ========================================================================== */

.premium-property-card {
    background: var(--premium-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--premium-border-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    isolation: isolate;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.premium-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--premium-border);
    border-radius: var(--radius-md);
}

.premium-property-card .img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    aspect-ratio: 4/3;
}

.premium-property-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Verification Badges inside Cards */
.premium-badge-absolute {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-badge-green {
    background: rgba(209, 250, 229, 0.9);
    color: var(--badge-green-text);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.premium-badge-green i {
    color: var(--badge-green-icon);
}

.premium-badge-yellow {
    background: rgba(254, 243, 199, 0.9);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.premium-badge-red {
    background: rgba(254, 226, 226, 0.9);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Card Content Spacing */
.premium-property-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.premium-property-card .price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--premium-text-main);
    margin-bottom: 8px;
}

.premium-property-card .title {
    font-family: var(--font-body) !important;
    font-weight: 600;
    font-size: 15px;
    color: var(--premium-text-main);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-property-card .location {
    font-size: 13px;
    color: var(--premium-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.premium-property-card .meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--premium-border-light);
    margin-top: auto;
}

.premium-property-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--premium-text-muted);
    font-weight: 500;
}

.premium-property-card .meta-item i {
    color: var(--premium-text-light);
    font-size: 16px;
}

/* Utility constraints */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   IMAGE LOADING
   ========================================================================== */

.skeleton-box {
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   PAGINATION (Premium)
   ========================================================================== */
.page_navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.page_navigation .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--premium-border);
    background: #fff;
    color: var(--premium-text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.page_navigation .page-item .page-link:hover {
    border-color: var(--premium-primary);
    color: var(--premium-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 90, 71, 0.1);
}

.page_navigation .page-item.active .page-link {
    background: var(--premium-primary) !important;
    border-color: var(--premium-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(224, 90, 71, 0.25);
}

.pagination_page_count {
    font-family: var(--font-body);
    color: var(--premium-text-muted);
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
}

/* Override old theme backgrounds globally to use our new clean palette */
.bgc-f7 {
    background-color: var(--premium-bg) !important;
}

.bgc-white {
    background-color: var(--premium-surface) !important;
}

/* ==========================================================================
   DASHBOARD PREMIUM UI
   ========================================================================== */
.premium-dashboard-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--premium-border-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.premium-dashboard-content {
    background-color: var(--premium-bg) !important;
    min-height: 100vh;
}

/* Premium Stat Cards */
.premium-stat-card {
    background: var(--premium-surface) !important;
    border-radius: var(--radius-lg) !important;
    /* 16px */
    border: 1px solid var(--premium-border-light) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-bounce) !important;
    position: relative;
    overflow: hidden;
    padding: 25px !important;
}

.premium-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(224, 90, 71, 0.2) !important;
}

.premium-stat-card .icon {
    width: 64px !important;
    height: 64px !important;
    line-height: 64px !important;
    border-radius: 50% !important;
    background: rgba(224, 90, 71, 0.08) !important;
    color: var(--premium-primary) !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 26px !important;
}

.premium-stat-card:hover .icon {
    background: var(--premium-primary) !important;
    color: #fff !important;
    transform: scale(1.1) rotate(5deg);
}

.premium-stat-card .details .title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--premium-text-dark) !important;
    margin-top: 5px;
    font-family: var(--font-heading) !important;
}

.premium-stat-card .details .text {
    font-size: 13px !important;
    color: var(--premium-text-muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0 !important;
}

/* Premium Dashboard Widget */
.premium-dashboard-widget {
    background: var(--premium-surface) !important;
    border-radius: var(--radius-xl) !important;
    /* 24px */
    border: 1px solid var(--premium-border-light) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    position: relative;
    overflow: hidden;
}

.premium-dashboard-widget .title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--premium-text-dark) !important;
    font-size: 18px !important;
    margin-bottom: 20px !important;
}

.premium-dashboard-widget .list-title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--premium-text-dark) !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
}

/* Premium Dashboard Property Card */
.premium-property-card {
    background: var(--premium-surface) !important;
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--premium-border-light) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-bounce) !important;
    overflow: hidden;
    margin-bottom: 30px;
}

.premium-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(224, 90, 71, 0.2) !important;
}

.premium-property-card .property-image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    overflow: hidden;
}

/* Premium Form Elements */
.premium-dashboard-widget .form-control,
.premium-dashboard-widget select.form-control,
.premium-dashboard-widget textarea.form-control {
    border-radius: var(--radius-lg);
    border: 1px solid var(--premium-border-light);
    padding: 14px 20px;
    font-size: 15px;
    color: var(--premium-text-dark);
    background-color: #FAFAFC;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.premium-dashboard-widget .form-control:focus,
.premium-dashboard-widget select.form-control:focus,
.premium-dashboard-widget textarea.form-control:focus {
    background-color: var(--premium-surface);
    border-color: var(--premium-primary);
    box-shadow: 0 0 0 3px rgba(224, 90, 71, 0.1) !important;
}

.premium-dashboard-widget label {
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--premium-text-dark) !important;
    margin-bottom: 8px !important;
}

/* Premium Tables inside Widgets */
.premium-dashboard-widget .table th {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    color: var(--premium-text-muted) !important;
    text-transform: uppercase;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--premium-border-light) !important;
    background-color: var(--premium-bg) !important;
}

.premium-dashboard-widget .table td {
    padding: 20px !important;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    color: var(--premium-text-dark);
}

.premium-dashboard-widget .table tbody tr {
    transition: var(--transition-smooth);
}

.premium-dashboard-widget .table tbody tr:hover {
    background-color: rgba(224, 90, 71, 0.02) !important;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET & OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .modal-bottom-sheet {
        padding-right: 0 !important;
    }

    .modal-bottom-sheet .modal-dialog {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        transform: translate(0, 100%) !important;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .modal-bottom-sheet.show .modal-dialog {
        transform: translate(0, 0) !important;
    }

    .modal-bottom-sheet .modal-content {
        border-radius: 24px 24px 0 0;
        border: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        max-height: 85vh;
        overflow-y: auto;
        padding-bottom: 30px;
        /* Space for iOS safe area */
    }

    /* Small grab indicator for the bottom sheet */
    .modal-bottom-sheet .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 10px;
        margin: 12px auto;
        flex-shrink: 0;
    }

    /* Adjust modal header to accommodate the handle */
    .modal-bottom-sheet .modal-header {
        padding-top: 5px;
        border-bottom: 1px solid var(--premium-border-light);
    }

    /* Improve tap targets */
    .btn-premium,
    .ud-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* ==========================================================================
   PREMIUM MOBILE MENU
   Override mmenu.js default styles to match the vi- design system.
   ========================================================================== */

/* ── mmenu CSS Variable Overrides ── */
.mm-menu {
    --mm-color-background: #FFFFFF;
    --mm-color-border: var(--premium-border-light);
    --mm-color-text: var(--premium-text-main);
    --mm-color-text-dimmed: var(--premium-text-muted);
    --mm-color-background-highlight: var(--premium-primary-light);
    --mm-color-background-emphasis: var(--premium-border-light);
    --mm-lineheight: 24px;
    --mm-listitem-size: 48px;
    font-family: var(--font-body);
}

/* ── Mobile Header Bar (Glassmorphism) ── */
.vi-mobile-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--premium-border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    height: 64px;
}

.vi-mobile-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 100%;
    max-width: 100%;
}

.vi-mobile-header__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--premium-border-light);
    color: var(--premium-text-main);
    font-size: 18px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.vi-mobile-header__btn:hover,
.vi-mobile-header__btn:active {
    background: var(--premium-primary-light);
    color: var(--premium-primary);
}

.vi-mobile-header__logo img {
    max-height: 36px;
    width: auto;
}

.vi-mobile-avatar-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    background: var(--premium-primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}

.vi-mobile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.vi-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Drawer Panel ── */
.mm-menu.mm-menu--theme-light {
    background: #FFFFFF;
}

.mm-menu {
    --mm-max-width: 340px;
}

/* ── Navbar (drawer header) ── */
.mm-menu .mm-navbar {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--premium-border-light);
    height: 56px;
    padding: 0 8px;
}

.mm-menu .mm-navbar__title {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    color: var(--premium-text-main) !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
}

.mm-panel_has-navbar .mm-navbar {
    background: #FFFFFF !important;
}

/* ── List Items ── */
.mm-menu .mm-listitem {
    border-color: transparent;
}

.mm-menu .mm-listitem:after {
    display: none;
}

.mm-menu .mm-listitem__text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--premium-text-muted);
    padding: 12px 20px;
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    text-transform: none !important;
    text-decoration: none;
}

.mm-menu .mm-listitem__text:hover {
    background-color: var(--premium-border-light);
    color: var(--premium-text-main);
}

/* ── Icons in nav items ── */
.mm-menu .mm-listitem__text i.fas,
.mm-menu .mm-listitem__text i.far,
.mm-menu .mm-listitem__text i.fal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    margin-right: 12px;
    font-size: 15px;
    color: var(--premium-text-light);
    transition: var(--transition-smooth);
}

.mm-menu .mm-listitem__text:hover i {
    color: var(--premium-primary);
}

/* ── Active page highlight ── */
.mm-menu li.vi-active>.mm-listitem__text {
    background-color: var(--premium-primary-light);
    color: var(--premium-primary);
    font-weight: 600;
}

.mm-menu li.vi-active>.mm-listitem__text i {
    color: var(--premium-primary);
}

/* ── User Card ── */
.mm-menu li.vi-mobile-user-card {
    border-bottom: 1px solid var(--premium-border-light) !important;
    margin-bottom: 8px;
    padding: 0 !important;
}

.mm-menu li.vi-mobile-user-card>.mm-listitem__text {
    padding: 16px 20px;
    margin: 0;
    border-radius: 0;
}

.mm-menu li.vi-mobile-user-card>.mm-listitem__text:hover {
    background-color: var(--premium-border-light);
}

.vi-mobile-user-card__inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vi-mobile-user-card .vi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--premium-primary), var(--premium-primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.vi-mobile-user-card .vi-user-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--premium-text-main);
    line-height: 1.3;
}

.vi-mobile-user-card .vi-user-email {
    font-size: 12px;
    color: var(--premium-text-light);
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Divider ── */
.mm-menu li.vi-mobile-divider {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 6px 24px;
    border-top: 1px solid var(--premium-border-light);
    list-style: none;
}

.mm-menu li.vi-mobile-divider:after {
    display: none !important;
}

.mm-menu li.vi-mobile-divider>.mm-listitem__text {
    display: none;
}

/* ── CTA Buttons ── */
.mm-menu li.vi-mobile-cta {
    position: relative !important;
    bottom: auto !important;
    border: none !important;
    padding: 0 !important;
    margin: 4px 16px !important;
    min-height: auto !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
}

.mm-menu li.vi-mobile-cta:after {
    display: none !important;
}

.mm-menu li.vi-mobile-cta>.mm-listitem__text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    margin: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mm-menu li.vi-mobile-cta>.mm-listitem__text i {
    margin-right: 4px;
    width: auto;
    color: inherit;
}

/* Primary CTA (terracotta) */
.mm-menu li.vi-mobile-cta.vi-primary>.mm-listitem__text {
    background: var(--premium-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(224, 90, 71, 0.3);
}

.mm-menu li.vi-mobile-cta.vi-primary>.mm-listitem__text:hover {
    background: var(--premium-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(224, 90, 71, 0.35);
}

/* Outline CTA */
.mm-menu li.vi-mobile-cta.vi-outline>.mm-listitem__text {
    background: transparent;
    color: var(--premium-text-main) !important;
    border: 1.5px solid var(--premium-border);
}

.mm-menu li.vi-mobile-cta.vi-outline>.mm-listitem__text:hover {
    border-color: var(--premium-primary);
    color: var(--premium-primary) !important;
    background: var(--premium-primary-light);
}

/* Danger CTA (Déconnexion) */
.mm-menu li.vi-mobile-cta.vi-danger {
    margin-top: 2px !important;
}

.mm-menu li.vi-mobile-cta.vi-danger>.mm-listitem__text,
.mm-menu li.vi-mobile-cta.vi-danger button {
    background: transparent;
    color: #EF4444 !important;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
}

.mm-menu li.vi-mobile-cta.vi-danger button:hover {
    background: #FEF2F2;
    border-radius: var(--radius-pill);
}

.mm-menu li.vi-mobile-cta.vi-danger form {
    width: 100%;
}

/* ── Overlay/Blocker ── */
.mm-wrapper__blocker {
    background-color: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Smooth Transitions ── */
.mm-menu,
.mm-menu *,
.mm-menu :after,
.mm-menu :before {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── Hide old mobile header styles ── */
.mobilie_header_nav .mobile-menu .header.innerpage-style {
    background: transparent;
    height: auto;
    line-height: normal;
    padding: 0;
}

.mobilie_header_nav .mobile-menu .menu_and_widgets {
    display: none;
}

/* ══════════════════════════════════════════════════════════
   BOOTSTRAP NAV-PILLS OVERRIDE — Verifimmo Primary Color
   ══════════════════════════════════════════════════════════ */
.nav-pills .nav-link {
    color: var(--premium-text-muted, #475569);
    background: transparent;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.nav-pills .nav-link:hover {
    color: var(--premium-primary, #ff4400);
    border-color: var(--premium-primary, #ff4400);
    background: var(--premium-primary-light, #FBEFEB);
}

.nav-pills .nav-link:focus {
    box-shadow: 0 0 0 3px rgba(224, 90, 71, 0.12);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background: var(--premium-primary, #ff4400) !important;
    color: #FFFFFF !important;
    border-color: var(--premium-primary, #ff4400);
    box-shadow: 0 4px 12px rgba(224, 90, 71, 0.25);
}

/* ==========================================================================
   TRUST SCORE SYSTEM
   ========================================================================== */

/* ── Card Badge (Small circular SVG overlay) ── */
.vi-trust-badge-card {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    cursor: default;
    transition: var(--transition-smooth);
}

.vi-trust-badge-card:hover {
    transform: scale(1.1);
}

/* ── Detail Page Trust Score Widget ── */
.vi-trust {
    background: var(--premium-surface, #fff);
    border-radius: var(--radius-md, 16px);
    border: 1px solid var(--premium-border-light, #F1F5F9);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.vi-trust__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--premium-border-light, #F1F5F9);
}

.vi-trust__gauge {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.vi-trust__gauge-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.vi-trust__gauge-score {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.vi-trust__gauge-text {
    font-size: 11px;
    color: var(--premium-text-muted, #475569);
    font-weight: 500;
    margin-top: 2px;
}

.vi-trust__gauge-arc {
    animation: vi-trust-gauge-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes vi-trust-gauge-draw {
    from {
        stroke-dashoffset: 301.59;
    }
}

.vi-trust__info {
    flex: 1;
}

.vi-trust__title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--premium-text-main, #0F172A);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.vi-trust__level {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.vi-trust__level.excellent {
    color: #10B981;
}

.vi-trust__level.good {
    color: #F59E0B;
}

.vi-trust__level.average {
    color: #F97316;
}

.vi-trust__level.low {
    color: #EF4444;
}

.vi-trust__subtitle {
    font-size: 13px;
    color: var(--premium-text-muted, #475569);
    line-height: 1.5;
}

/* ── Category Progress Bars ── */
.vi-trust__categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vi-trust__cat-wrapper {
    /* Wrapper for category + expandable items */
}

.vi-trust__cat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vi-trust__cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--premium-border-light, #F1F5F9);
    color: var(--premium-text-muted, #475569);
}

.vi-trust__cat-body {
    flex: 1;
    min-width: 0;
}

.vi-trust__cat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.vi-trust__cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--premium-text-main, #0F172A);
}

.vi-trust__cat-score {
    font-size: 12px;
    font-weight: 600;
    color: var(--premium-text-muted, #475569);
}

.vi-trust__cat-bar {
    height: 6px;
    background: var(--premium-border-light, #F1F5F9);
    border-radius: 3px;
    overflow: hidden;
}

.vi-trust__cat-fill {
    height: 100%;
    border-radius: 3px;
    animation: vi-trust-bar-grow 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes vi-trust-bar-grow {
    from {
        width: 0;
    }
}

/* ── Checklist Items ── */
.vi-trust__items {
    margin-top: 8px;
    padding-left: 48px;
}

.vi-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--premium-text-muted, #475569);
    padding: 3px 0;
}

.vi-trust__item i {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.vi-trust__item i.fa-check {
    color: #10B981;
}

.vi-trust__item i.fa-times {
    color: #EF4444;
}

/* ── Responsive Trust Score ── */
@media (max-width: 576px) {
    .vi-trust__header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .vi-trust__title {
        justify-content: center;
    }

    .vi-trust__items {
        padding-left: 48px;
    }
}

/* ==========================================================================
   LOAN SIMULATOR
   ========================================================================== */

.vi-simulator {
    background: var(--premium-surface, #fff);
}

.vi-sim__group {
    margin-bottom: 16px;
}

.vi-sim__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--premium-text-main, #0F172A);
    margin-bottom: 8px;
    display: block;
}

.vi-sim__label span {
    color: var(--premium-primary, #ff4400);
    font-weight: 700;
}

.vi-sim__input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--premium-border, #E2E8F0);
    border-radius: var(--radius-sm, 8px);
    font-size: 14px;
    font-weight: 600;
    color: var(--premium-text-main, #0F172A);
    font-family: var(--font-body, 'Inter', sans-serif);
    transition: var(--transition-smooth);
}

.vi-sim__input:focus {
    outline: none;
    border-color: var(--premium-primary, #ff4400);
    box-shadow: 0 0 0 3px rgba(224, 90, 71, 0.1);
}

.vi-sim__range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--premium-border-light, #F1F5F9);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.vi-sim__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--premium-primary, #ff4400);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(224, 90, 71, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.vi-sim__range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.vi-sim__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--premium-primary, #ff4400);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(224, 90, 71, 0.3);
    cursor: pointer;
}

.vi-sim__range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--premium-text-light, #94A3B8);
    margin-top: 4px;
}

/* ── Results ── */
.vi-sim__results {
    background: var(--premium-bg, #F8FAFC);
    border-radius: var(--radius-sm, 8px);
    padding: 16px;
    margin-top: 20px;
}

.vi-sim__result-main {
    text-align: center;
    margin-bottom: 16px;
}

.vi-sim__result-label {
    font-size: 12px;
    color: var(--premium-text-muted, #475569);
    font-weight: 500;
    margin-bottom: 4px;
}

.vi-sim__result-value {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--premium-primary, #ff4400);
    line-height: 1.2;
}

.vi-sim__result-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.vi-sim__bar-principal {
    background: #10B981;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vi-sim__bar-interest {
    background: #F59E0B;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vi-sim__result-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vi-sim__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--premium-text-muted, #475569);
}

.vi-sim__result-row span:last-child {
    font-weight: 600;
    color: var(--premium-text-main, #0F172A);
}

/* ==========================================================================
   COMPARE SYSTEM
   ========================================================================== */

/* ── Compare Toggle Button (on cards) ── */
.vi-compare-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--premium-border-light, #F1F5F9);
    color: var(--premium-text-light, #94A3B8);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.vi-compare-toggle:hover {
    background: var(--premium-primary-light, #FBEFEB);
    color: var(--premium-primary, #ff4400);
}

.vi-compare-toggle.active {
    background: var(--premium-primary, #ff4400);
    color: #fff;
    box-shadow: 0 2px 8px rgba(224, 90, 71, 0.3);
}

/* ── Floating Compare Bar ── */
.vi-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    animation: vi-compare-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes vi-compare-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vi-compare-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vi-compare-bar__items {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vi-compare-bar__item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.vi-compare-bar__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vi-compare-bar__item--empty {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.vi-compare-bar__item-remove {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #EF4444;
    color: #fff;
    border: none;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.vi-compare-bar__item-remove:hover {
    transform: scale(1.2);
}

.vi-compare-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vi-compare-bar__count {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.vi-compare-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--radius-pill, 9999px);
    background: var(--premium-primary, #ff4400);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.vi-compare-bar__btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.vi-compare-bar__btn.enabled:hover {
    background: var(--premium-primary-hover, #C84937);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(224, 90, 71, 0.4);
}

.vi-compare-bar__clear {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.vi-compare-bar__clear:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* ── Compare Bar Responsive ── */
@media (max-width: 768px) {
    .vi-compare-bar__inner {
        padding: 0 12px;
    }

    .vi-compare-bar__item {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .vi-compare-bar__btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .vi-compare-bar__count {
        display: none;
    }
}