@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-Regular.eot');
    src: local('../fonts/cairo/Cairo-Regular'), url('../fonts/cairo/Cairo-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/cairo/Cairo-Regular.woff2') format('woff2'), url('../fonts/cairo/Cairo-Regular.woff') format('woff'), url('../fonts/cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --cyber-bg: #060810;
    --cyber-surface: #0e1222;
    --cyber-surface-hover: #161c33;
    --cyber-border: rgba(255, 255, 255, 0.08);
    --cyber-border-glow: rgba(147, 51, 234, 0.35);
    --accent-purple: #9333ea;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --text-pure: #ffffff;
    --text-muted: #94a3b8;
    --sidebar-w: 280px;
    --sidebar-w-collapsed: 78px;
    --mob-bottom-h: 68px;
    /* Override Marketplace & Housing CSS variables */
    --mp-bg: #060810 !important;
    --mp-card: #0e1222 !important;
    --mp-sidebar: #0e1222 !important;
    --mp-text: #ffffff !important;
    --mp-muted: #94a3b8 !important;
    --mp-border: rgba(255, 255, 255, 0.08) !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, .dashboard-shell, .user-dashboard-page, .housing-dashboard-page, .marketplace-page {
    background-color: #060810 !important;
    background: #060810 !important;
    font-family: 'Cairo', 'Outfit', sans-serif !important;
    color: #ffffff !important;
}

/* ─── SIDEBAR CYBER STYLING (FIXED 100VH) ─── */
.dashboard-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1020 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #080b18 !important;
    backdrop-filter: blur(28px) !important;
    border-left: 1px solid var(--cyber-border) !important;
    border-right: none !important;
    right: 0 !important;
    left: auto !important;
    padding: 1.25rem 1rem !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, 0.4) rgba(8, 11, 24, 0.5);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s ease !important;
}

html[dir="ltr"] .dashboard-sidebar {
    right: auto !important;
    left: 0 !important;
    border-right: 1px solid var(--cyber-border) !important;
    border-left: none !important;
}

.dashboard-sidebar__brand,
.dashboard-sidebar__profile,
.dashboard-sidebar__group {
    border: 1px solid var(--cyber-border) !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(16px);
}

.dashboard-sidebar__logo-icon {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo)) !important;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.35) !important;
}

.dashboard-sidebar__link {
    color: var(--text-muted) !important;
    border-radius: 14px !important;
    transition: all 0.25s ease !important;
}

    .dashboard-sidebar__link.active,
    .dashboard-sidebar__link:hover {
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(99, 102, 241, 0.2)) !important;
        color: #ffffff !important;
        border: 1px solid rgba(147, 51, 234, 0.4) !important;
    }

        .dashboard-sidebar__link.active i,
        .dashboard-sidebar__link:hover i {
            color: #c084fc !important;
        }

/* ─── MAIN CONTENT AREA ─── */
.dashboard-content {
    flex: 1 1 auto !important;
    width: calc(100% - 280px) !important;
    min-width: 0 !important;
    margin-right: 280px !important;
    margin-left: 0 !important;
    min-height: 100vh !important;
    transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.12), transparent 70%), var(--cyber-bg) !important;
    padding: 2rem !important;
}

html[dir="ltr"] .dashboard-content {
    margin-right: 0 !important;
    margin-left: 280px !important;
}

/* ─── FORCIBLE DARK CYBER GLASSMORPHISM FOR ALL CARDS ─── */
.bg-white,
.bg-card,
.card,
.user-dashboard-hero,
.user-dashboard-panel-card,
.user-dashboard-stat,
.dashboard-card,
.stat-card,
.housing-card,
.market-card,
.mp-card,
.hk-card,
.modal-content,
.mp-tabs-nav,
.user-dashboard-mini-list,
[class*="bg-white"] {
    background-color: #0e1222 !important;
    background: #0e1222 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
}

    .card:hover, .housing-card:hover, .market-card:hover, .mp-card:hover, .hk-card:hover {
        border-color: rgba(147, 51, 234, 0.45) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(147, 51, 234, 0.15) !important;
    }

/* ─── MODAL Z-INDEX & MOBILE BOTTOM NAV RESOLUTION ─── */
body.modal-open .mob-bottom-nav {
    display: none !important;
}

.modal {
    z-index: 10050 !important;
}

.modal-backdrop {
    z-index: 10040 !important;
}

/* ─── PROFESSIONAL CYBER-LUXURY TYPOGRAPHY SYSTEM ─── */
.user-dashboard-title, .hero-title, .page-header-title {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
}

h1, h2, h3, h4, h5, h6,
.card-title, .mp-card__title, .housing-card__title,
.user-dashboard-panel-head,
.mp-card__price, .fw-bold, strong, b {
    color: #ffffff !important;
    font-family: 'Cairo', 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

p, small, span:not(.badge):not(.btn):not(.dashboard-sidebar__logo-icon):not(.mob-nav-label),
.text-muted, .text-muted-foreground, .small-text,
.mp-card__desc, .housing-card__desc, .user-dashboard-subtitle {
    font-family: 'Cairo', 'Outfit', sans-serif !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
}

.text-muted {
    color: var(--mp-muted) !important;
}

.user-dashboard-section__eyebrow, .eyebrow-text, .section-subtitle {
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

label, .form-label {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
}

.table, .table th, .table td, table, th, td {
    color: #f8fafc !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    font-size: 0.95rem !important;
}

    .table thead th, th {
        color: #c084fc !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
    }

.form-control, .form-select, textarea, input {
    background: rgba(11, 14, 26, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
}

    .form-control:focus, .form-select:focus, textarea:focus, input:focus {
        border-color: #a855f7 !important;
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.35) !important;
        color: #ffffff !important;
    }

    .form-control::placeholder, textarea::placeholder, input::placeholder {
        color: #94a3b8 !important;
        opacity: 0.85 !important;
        font-weight: 400 !important;
    }

.badge, .user-dashboard-badge {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(99, 102, 241, 0.3)) !important;
    color: #f3e8ff !important;
    border: 1px solid rgba(192, 132, 252, 0.4) !important;
    font-weight: 700 !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px !important;
}

a:not(.btn):not(.dashboard-sidebar__link):not(.mob-nav-item):not(.mob-drawer-link) {
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

    a:not(.btn):not(.dashboard-sidebar__link):not(.mob-nav-item):not(.mob-drawer-link):hover {
        color: #c084fc !important;
        text-shadow: 0 0 12px rgba(192, 132, 252, 0.4) !important;
    }

.btn-primary, .user-dashboard-btn--primary, .btn-action-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.35) !important;
    color: #ffffff !important;
}

.btn-success, .btn-whatsapp {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
    color: #ffffff !important;
}

.btn-outline-secondary, .btn-outline-primary, .btn-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

    .btn-outline-secondary:hover, .btn-light:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }

/* ─── Collapsible Sidebar Styles (Desktop) ─── */
.sidebar-toggle-row {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 0 4px !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease;
}

.sidebar-collapsed .sidebar-toggle-row {
    justify-content: center !important;
    margin-bottom: 12px !important;
}

.sidebar-toggle-inside {
    cursor: pointer;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .sidebar-toggle-inside:hover {
        background: #ef4444;
        color: #ffffff;
        border-color: #ef4444;
        transform: scale(1.05);
    }

.dashboard-sidebar__brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    width: 100% !important;
}

.sidebar-collapsed .dashboard-sidebar__brand {
    padding: 0.5rem !important;
    justify-content: center !important;
}

/* Collapsed Sidebar State (Ultra-Slim 68px Strip) */
.sidebar-collapsed .dashboard-sidebar {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    flex-shrink: 0 !important;
    padding: 0.85rem 0.35rem !important;
    align-items: center !important;
}

.sidebar-collapsed .dashboard-content {
    width: calc(100% - 68px) !important;
    margin-right: 68px !important;
    margin-left: 0 !important;
}

html[dir="ltr"] .sidebar-collapsed .dashboard-content {
    margin-right: 0 !important;
    margin-left: 68px !important;
}

    /* Hide all text, labels, and secondary info inside sidebar when collapsed */
    .sidebar-collapsed .dashboard-sidebar span:not(.dashboard-sidebar__logo-icon),
    .sidebar-collapsed .dashboard-sidebar small,
    .sidebar-collapsed .dashboard-sidebar strong,
    .sidebar-collapsed .dashboard-sidebar .dashboard-sidebar__name,
    .sidebar-collapsed .dashboard-sidebar .dashboard-sidebar__role,
    .sidebar-collapsed .dashboard-sidebar .dashboard-sidebar__title,
    .sidebar-collapsed .dashboard-sidebar .dashboard-sidebar__brand-text,
    .sidebar-collapsed .dashboard-sidebar .dashboard-sidebar__user-info,
    .sidebar-collapsed .dashboard-sidebar .small {
        display: none !important;
    }

/* Brand & Profile in Collapsed State */
.sidebar-collapsed .dashboard-sidebar__brand {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem 0 !important;
    margin-bottom: 0.5rem !important;
    justify-content: center !important;
    width: 100% !important;
}

.sidebar-collapsed .dashboard-sidebar__logo {
    justify-content: center !important;
    width: 100% !important;
}

.sidebar-collapsed .dashboard-sidebar__logo-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin: 0 auto !important;
}

.sidebar-collapsed .dashboard-sidebar__profile {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem 0 !important;
    margin-bottom: 0.6rem !important;
    justify-content: center !important;
    width: 100% !important;
}

.sidebar-collapsed .dashboard-sidebar__avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin: 0 auto !important;
}

/* Groups and Navigation in Collapsed State */
.sidebar-collapsed .dashboard-sidebar__group {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.sidebar-collapsed .dashboard-sidebar__nav,
.sidebar-collapsed .dashboard-sidebar__actions {
    width: 100% !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.sidebar-collapsed .dashboard-sidebar__link {
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 12px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    margin: 2px auto !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.2s ease !important;
}

    .sidebar-collapsed .dashboard-sidebar__link:hover {
        background: rgba(139, 92, 246, 0.25) !important;
        border-color: rgba(139, 92, 246, 0.5) !important;
        transform: scale(1.08) !important;
    }

    .sidebar-collapsed .dashboard-sidebar__link.active {
        background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.6) !important;
    }

    .sidebar-collapsed .dashboard-sidebar__link i {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }

.sidebar-collapsed .dashboard-sidebar__action {
    justify-content: center !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    margin: 2px auto !important;
    border-radius: 12px !important;
}

    .sidebar-collapsed .dashboard-sidebar__action i {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }

/* ═══════════════════════════════════════════
           MOBILE TOP HEADER BAR (hidden on desktop)
        ═══════════════════════════════════════════ */
.mob-top-bar {
    display: none; /* shown via media query */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: rgba(8, 11, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cyber-border);
    z-index: 1100;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
}

.mob-top-logo {
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none !important;
}

.mob-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob-hamburger-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cyber-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .mob-hamburger-btn:hover {
        background: rgba(147,51,234,0.2);
        border-color: rgba(147,51,234,0.4);
    }

/* ═══════════════════════════════════════════
           MOBILE DRAWER (Slide-in Menu)
        ═══════════════════════════════════════════ */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1199;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .mob-overlay.show {
        opacity: 1;
    }

.mob-drawer {
    position: fixed;
    top: 0;
    width: min(300px, 82vw);
    height: 100%;
    background: #080b18;
    z-index: 1200;
    overflow-y: auto;
    padding: 24px 16px 100px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none;
}

    .mob-drawer::-webkit-scrollbar {
        display: none;
    }

/* LTR: drawer slides from right */
[dir="ltr"] .mob-drawer {
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid var(--cyber-border);
}

    [dir="ltr"] .mob-drawer.show {
        transform: translateX(0);
    }

/* RTL: drawer slides from left */
[dir="rtl"] .mob-drawer {
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid var(--cyber-border);
}

    [dir="rtl"] .mob-drawer.show {
        transform: translateX(0);
    }

.mob-drawer-profile {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cyber-border);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mob-drawer-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.mob-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.mob-drawer-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 12px 4px;
}

.mob-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .mob-drawer-link:hover,
    .mob-drawer-link.active {
        background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(99,102,241,0.2)) !important;
        color: #ffffff !important;
        border-color: rgba(147,51,234,0.35) !important;
    }

        .mob-drawer-link.active i, .mob-drawer-link:hover i {
            color: #c084fc !important;
        }

    .mob-drawer-link i {
        font-size: 1.1rem;
        width: 22px;
        text-align: center;
    }

.mob-drawer-hr {
    height: 1px;
    background: var(--cyber-border);
    margin: 12px 0;
}

.mob-drawer-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 14px;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

    .mob-drawer-action:hover {
        background: rgba(255,255,255,0.05) !important;
        color: #fff !important;
    }

.mob-drawer-action--danger {
    color: #f87171 !important;
}

    .mob-drawer-action--danger:hover {
        background: rgba(239,68,68,0.12) !important;
        border-color: rgba(239,68,68,0.3) !important;
    }

/* ═══════════════════════════════════════════
           MOBILE BOTTOM NAVIGATION BAR
        ═══════════════════════════════════════════ */
.mob-bottom-nav {
    display: none; /* shown via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mob-bottom-h);
    background: rgba(8, 11, 24, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--cyber-border);
    z-index: 1100;
    align-items: stretch;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.62rem;
    font-weight: 700 !important;
    position: relative;
    transition: all 0.2s ease;
}

    .mob-nav-item i {
        font-size: 1.3rem;
        transition: color 0.2s ease;
    }

.mob-nav-label {
    font-size: 0.6rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

.mob-nav-item.active i {
    color: #c084fc;
}

.mob-nav-item.active .mob-nav-label {
    color: #c084fc !important;
}

.mob-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-indigo));
    border-radius: 0 0 6px 6px;
}

/* AI Center Button (special floating) */
.mob-nav-ai-btn {
    position: relative;
    margin-top: -18px;
}

.mob-nav-ai-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #9333ea, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #060810;
    box-shadow: 0 0 22px rgba(147, 51, 234, 0.55);
    transition: all 0.2s ease;
}

    .mob-nav-ai-circle i {
        font-size: 1.3rem;
        color: #fff !important;
    }

.mob-nav-item.active .mob-nav-ai-circle {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.8);
}

.mob-nav-ai-label {
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
           RESPONSIVE BREAKPOINTS
        ═══════════════════════════════════════════ */

/* ── Tablet: auto-collapse sidebar ── */
@media (max-width: 991px) {
    .dashboard-sidebar {
        width: var(--sidebar-w-collapsed) !important;
        padding: 1rem 0.5rem !important;
    }

        .dashboard-sidebar span,
        .dashboard-sidebar small,
        .dashboard-sidebar .dashboard-sidebar__name,
        .dashboard-sidebar .dashboard-sidebar__role,
        .dashboard-sidebar .dashboard-sidebar__title {
            display: none !important;
        }

    .dashboard-sidebar__logo {
        justify-content: center !important;
    }

    .dashboard-sidebar__profile {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem !important;
    }

    .dashboard-sidebar__avatar {
        margin: 0 !important;
    }

    .dashboard-sidebar__link {
        justify-content: center !important;
        width: 48px;
        height: 48px;
        margin: 4px auto !important;
        padding: 0 !important;
    }

        .dashboard-sidebar__link i {
            font-size: 1.25rem !important;
            margin: 0 !important;
        }

    .dashboard-sidebar__action {
        justify-content: center !important;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        margin: 4px auto !important;
        padding: 0 !important;
    }

        .dashboard-sidebar__action i {
            font-size: 1.25rem !important;
            margin: 0 !important;
        }

    .dashboard-sidebar__brand {
        padding: 0.5rem !important;
    }

    .sidebar-toggle-row {
        justify-content: center !important;
    }

    .dashboard-content {
        padding: 1.25rem !important;
    }

    .user-dashboard-hero,
    .user-dashboard-grid,
    .user-dashboard-lower,
    .grid-matrix-container {
        grid-template-columns: 1fr !important;
    }
}

/* ── Mobile: hide sidebar, show mobile UI ── */
@media (max-width: 768px) {
    .dashboard-sidebar {
        display: none !important;
    }

    .mob-top-bar {
        display: flex !important;
    }

    .mob-bottom-nav {
        display: flex !important;
    }

    .dashboard-shell {
        flex-direction: column !important;
    }

    .dashboard-content,
    .sidebar-collapsed .dashboard-content,
    html[dir="ltr"] .dashboard-content,
    html[dir="ltr"] .sidebar-collapsed .dashboard-content,
    html[dir="rtl"] .dashboard-content,
    html[dir="rtl"] .sidebar-collapsed .dashboard-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem 0.85rem !important;
        padding-top: calc(58px + 0.75rem) !important;
        padding-bottom: calc(var(--mob-bottom-h) + 0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .dashboard-content__inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hide desktop culture selector header row */
    .dash-top-header-desktop {
        display: none !important;
    }

    .user-dashboard-hero {
        grid-template-columns: 1fr !important;
    }

    .user-dashboard-grid,
    .user-dashboard-lower,
    .grid-matrix-container {
        grid-template-columns: 1fr !important;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .modal-content {
        border-radius: 24px 24px 0 0 !important;
    }
}

/* ── Small Phones ── */
@media (max-width: 575px) {
    body {
        font-size: 0.9rem !important;
    }

    .dashboard-content,
    .sidebar-collapsed .dashboard-content,
    html[dir="ltr"] .dashboard-content,
    html[dir="ltr"] .sidebar-collapsed .dashboard-content,
    html[dir="rtl"] .dashboard-content,
    html[dir="rtl"] .sidebar-collapsed .dashboard-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.75rem 0.6rem !important;
        padding-top: calc(58px + 0.6rem) !important;
        padding-bottom: calc(var(--mob-bottom-h) + 0.6rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .card, .user-dashboard-hero, .user-dashboard-panel-card,
    .listing-card, .mp-card, .stat-card-uni, .uni-panel-card {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .user-dashboard-actions, .hero-cta-group, .cyber-btn-group {
        flex-direction: column !important;
        width: 100% !important;
    }

    .btn, .user-dashboard-btn, .btn-action-primary,
    .btn-action-secondary, .btn-cyber-primary, .btn-cyber-glass {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }

    .modal-dialog {
        margin: 0.5rem !important;
    }
}

/* ── Touch devices: disable hover transforms ── */
@media (hover: none) and (pointer: coarse) {
    .card:hover, .housing-card:hover, .market-card:hover,
    .mp-card:hover, .hk-card:hover {
        transform: none !important;
    }
}