/* ══════════════════════════════════════════════════════════════
   UniLife AI - Complete Dashboard Styles
   Merged & Fixed - No Conflicts
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   1. ROOT VARIABLES
   ══════════════════════════════════════════════════════════════ */
:root {
    /* Primary Colors */
    --primary: #9333ea;
    --primary-dark: #7e22ce;
    --primary-light: #c084fc;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-sky: #38bdf8;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    /* Backgrounds */
    --bg: #060810;
    --bg-light: #f8fbff;
    --card-bg: #0e1222;
    --card-bg-dark: #0f172a;
    --card-bg-light: #ffffff;
    /* Text */
    --text: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #94a3b8;
    --text-muted-dark: #64748b;
    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(148, 163, 184, 0.14);
    --border-blue: rgba(59, 130, 246, 0.2);
    /* Radius */
    --radius-sm: 0.75rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 1.6rem;
    --radius-2xl: 2rem;
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-light-sm: 0 10px 30px rgba(15, 23, 42, 0.03);
    --shadow-light-md: 0 18px 45px rgba(15, 23, 42, 0.07);
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    /* Mobile */
    --mob-bottom-h: 68px;
    --mob-top-h: 60px;
}

/* ══════════════════════════════════════════════════════════════
   2. RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Cairo', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ══════════════════════════════════════════════════════════════
   3. DASHBOARD SHELL - MAIN LAYOUT
   ══════════════════════════════════════════════════════════════ */
.dashboard-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: var(--bg);
}

/* ══════════════════════════════════════════════════════════════
   4. SIDEBAR - DESKTOP
   ══════════════════════════════════════════════════════════════ */
.dashboard-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    padding: 0.75rem;
    gap: 0.5rem;
}

/* Sidebar Toggle */
.sidebar-toggle-row {
    display: flex;
    justify-content: flex-end;
    padding: 0.25rem 0.25rem 0;
    flex-shrink: 0;
}

.sidebar-toggle-inside {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(203, 213, 225, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .sidebar-toggle-inside:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

/* Sidebar Brand */
.dashboard-sidebar__brand {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    flex-shrink: 0;
}

.dashboard-sidebar__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
}

.dashboard-sidebar__logo-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

    .dashboard-sidebar__logo-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

.dashboard-sidebar__logo strong {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
}

.dashboard-sidebar__logo small {
    font-size: 0.68rem;
    color: #38bdf8;
    font-weight: 700;
    display: block;
    white-space: nowrap;
}

/* Sidebar Profile */
.dashboard-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    flex-shrink: 0;
}

.dashboard-sidebar__avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.dashboard-sidebar__name {
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-sidebar__role {
    font-size: 0.68rem;
    color: rgba(226, 232, 240, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Groups */
.dashboard-sidebar__group {
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    flex-shrink: 0;
}

.dashboard-sidebar__title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.6);
    padding: 0 0.4rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    transition: var(--transition);
}

.dashboard-sidebar__nav,
.dashboard-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-sidebar__link,
.dashboard-sidebar__action {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.65rem;
    border-radius: 12px;
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    min-height: 44px;
}

    .dashboard-sidebar__link i,
    .dashboard-sidebar__action i {
        font-size: 1.05rem;
        width: 22px;
        min-width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

    .dashboard-sidebar__link span,
    .dashboard-sidebar__action span {
        opacity: 1;
        transition: opacity 0.2s ease;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: .9rem !important;
        font-weight: 500 !important;
    }

    .dashboard-sidebar__link:hover,
    .dashboard-sidebar__action:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .dashboard-sidebar__link.active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.26), rgba(14, 165, 233, 0.18));
        color: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
    }

.dashboard-sidebar__action--danger {
    color: #fecaca;
}

    .dashboard-sidebar__action--danger:hover {
        background: rgba(239, 68, 68, 0.14);
        color: #ffffff;
    }

.dashboard-sidebar__actions form {
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   5. COLLAPSED SIDEBAR STATE
   ══════════════════════════════════════════════════════════════ */
.dashboard-shell.sidebar-collapsed .dashboard-sidebar {
    width: var(--sidebar-collapsed-width);
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
    padding: 0.5rem;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__link span,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__action span,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__logo strong,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__logo small,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__name,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__role,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__title {
    display: none;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__link,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__action {
    justify-content: center;
    padding: 0.7rem;
}

    .dashboard-shell.sidebar-collapsed .dashboard-sidebar__link i,
    .dashboard-shell.sidebar-collapsed .dashboard-sidebar__action i {
        margin: 0;
        font-size: 1.25rem;
    }

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__logo {
    justify-content: center;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__profile {
    justify-content: center;
    padding: 0.5rem;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__avatar {
    margin: 0;
}

.dashboard-shell.sidebar-collapsed .sidebar-toggle-row {
    justify-content: center;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__brand,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__group {
    padding: 0.5rem;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar__nav,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar__actions {
    align-items: center;
}

/* RTL Support */
html[dir="rtl"] .dashboard-sidebar__link.active {
    border-right: none;
    border-left: 3px solid var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   6. MAIN CONTENT AREA
   ══════════════════════════════════════════════════════════════ */
.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    transition: var(--transition);
    background: var(--bg);
}

.dashboard-content__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   7. MOBILE TOP BAR
   ══════════════════════════════════════════════════════════════ */
.mob-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--mob-top-h);
    padding: 0 1rem;
    background: rgba(6, 8, 16, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-between;
}

.mob-top-logo {
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mob-top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mob-hamburger-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

    .mob-hamburger-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* ══════════════════════════════════════════════════════════════
   8. MOBILE OVERLAY
   ══════════════════════════════════════════════════════════════ */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .mob-overlay.show {
        opacity: 1;
    }

/* ══════════════════════════════════════════════════════════════
   9. MOBILE DRAWER
   ══════════════════════════════════════════════════════════════ */
.mob-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    z-index: 1002;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

html[dir="rtl"] .mob-drawer {
    right: auto;
    left: -320px;
    transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-drawer.show {
    right: 0;
}

html[dir="rtl"] .mob-drawer.show {
    right: auto;
    left: 0;
}

.mob-drawer-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    margin-bottom: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.mob-drawer-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.mob-drawer-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.5);
    padding: 0 0.4rem;
    margin-bottom: 0.4rem;
}

.mob-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.7rem;
}

.mob-drawer-link,
.mob-drawer-action {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.65rem;
    border-radius: 12px;
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

    .mob-drawer-link i,
    .mob-drawer-action i {
        font-size: 1.05rem;
        width: 22px;
        min-width: 22px;
        text-align: center;
    }

    .mob-drawer-link:hover,
    .mob-drawer-action:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .mob-drawer-link.active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.26), rgba(14, 165, 233, 0.18));
        color: #ffffff;
    }

.mob-drawer-hr {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

.mob-drawer-action--danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.08);
}

    .mob-drawer-action--danger:hover {
        background: rgba(239, 68, 68, 0.18);
        color: #ffffff;
    }

/* ══════════════════════════════════════════════════════════════
   10. MOBILE BOTTOM NAV
   ══════════════════════════════════════════════════════════════ */
.mob-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--mob-bottom-h);
    background: rgba(6, 8, 16, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    padding: 0 0.4rem;
    padding-bottom: env(safe-area-inset-bottom);
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    color: rgba(203, 213, 225, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.65rem;
    transition: var(--transition);
    min-width: 48px;
}

    .mob-nav-item i {
        font-size: 1.2rem;
    }

    .mob-nav-item:hover {
        color: #ffffff;
    }

    .mob-nav-item.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

.mob-nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
}

/* AI Center Button */
.mob-nav-ai-btn {
    position: relative;
}

.mob-nav-ai-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
    transition: var(--transition);
    margin-top: -16px;
    border: 3px solid rgba(6, 8, 16, 0.95);
}

.mob-nav-ai-btn:hover .mob-nav-ai-circle {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.7);
    transform: scale(1.05);
}

.mob-nav-ai-label {
    color: #c084fc;
    font-weight: 800;
}

/* ══════════════════════════════════════════════════════════════
   11. DARK BENTO CARDS
   ══════════════════════════════════════════════════════════════ */
.bento-card {
    background: var(--card-bg-dark) !important;
    backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6) !important;
    transition: var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
    height: 100%;
}

    .bento-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 100%;
        background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 70%);
        pointer-events: none;
    }

    .bento-card:hover {
        transform: translateY(-5px) !important;
        border-color: rgba(139, 92, 246, 0.7) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(139, 92, 246, 0.35) !important;
        background: #161e2e !important;
    }

/* ══════════════════════════════════════════════════════════════
   12. USER DASHBOARD PAGE
   ══════════════════════════════════════════════════════════════ */
.user-dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 1rem;
}

.user-dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-2xl);
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 30%), radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.16), transparent 28%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

    .user-dashboard-hero::after {
        content: "";
        position: absolute;
        inset: auto -60px -60px auto;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 70%);
        pointer-events: none;
    }

.user-dashboard-hero__content,
.user-dashboard-hero__panel {
    position: relative;
    z-index: 1;
}

.user-dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.user-dashboard-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.2;
    font-weight: 900;
}

    .user-dashboard-title span {
        color: #7dd3fc;
    }

.user-dashboard-subtitle {
    margin: 0;
    max-width: 760px;
    color: rgba(226, 232, 240, 0.86);
    font-size: 1.05rem;
    line-height: 1.9;
}

.user-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.user-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.85rem 1.3rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition-fast);
}

    .user-dashboard-btn:hover {
        transform: translateY(-2px);
    }

.user-dashboard-btn--primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.user-dashboard-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-dashboard-panel-card {
    height: 100%;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.user-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.user-dashboard-stat {
    padding: 1rem 0.8rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.34);
    text-align: center;
}

    .user-dashboard-stat strong {
        display: block;
        color: #fff;
        font-size: 1.3rem;
        font-weight: 900;
    }

    .user-dashboard-stat span {
        display: block;
        margin-top: 0.25rem;
        color: rgba(226, 232, 240, 0.75);
        font-size: 0.88rem;
    }

.user-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.user-service-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 100%;
    padding: 1.45rem;
    text-decoration: none;
    background: #0e1222;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

    .user-service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(147, 51, 234, 0.2);
        border-color: rgba(147, 51, 234, 0.4);
    }

.user-service-card__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    font-size: 1.6rem;
}

.user-service-card__body h3 {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.user-service-card__body p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
}

.user-service-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-weight: 800;
}

/* Service Card Colors */
.user-service-card.housing .user-service-card__icon {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

.user-service-card.marketplace .user-service-card__icon {
    background: rgba(8, 145, 178, 0.15);
    color: #22d3ee;
}

.user-service-card.ai .user-service-card__icon {
    background: rgba(124, 58, 237, 0.15);
    color: #c084fc;
}

.user-service-card.university .user-service-card__icon {
    background: rgba(249, 115, 22, 0.15);
    color: #fbbf24;
}

.user-service-card.housing:hover {
    border-color: rgba(37, 99, 235, 0.4);
}

.user-service-card.marketplace:hover {
    border-color: rgba(8, 145, 178, 0.4);
}

.user-service-card.ai:hover {
    border-color: rgba(124, 58, 237, 0.4);
}

.user-service-card.university:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   13. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* Large Screens */
@media (min-width: 1400px) {
    .dashboard-content__inner {
        max-width: 1500px;
    }
}

/* Medium-Large Screens */
@media (max-width: 1199.98px) {
    .user-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .user-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        display: none;
    }

    .mob-top-bar {
        display: flex;
    }

    .mob-bottom-nav {
        display: flex;
    }

    .dashboard-content {
        padding: 1rem 0.85rem;
        padding-top: calc(var(--mob-top-h) + 15px);
        padding-bottom: calc(var(--mob-bottom-h) + 20px);
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .dashboard-content {
        padding: 0.85rem 0.75rem;
        padding-top: calc(var(--mob-top-h) + 10px);
        padding-bottom: calc(var(--mob-bottom-h) + 16px);
    }

    .user-dashboard-hero {
        padding: 1.25rem;
        border-radius: 1.35rem;
    }

    .user-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .user-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .user-dashboard-btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mob-nav-item {
        min-width: 40px;
        padding: 0.3rem 0.4rem;
    }

    .mob-nav-ai-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-top: -14px;
    }

    .mob-nav-label {
        font-size: 0.55rem;
    }
}
