/**
 * Dashboard CSS
 * 
 * Styles for the dashboard page
 */

/* Dashboard Layout Wrapper */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gradient-bg-soft);
    overflow-x: clip; /* clip instead of hidden so position:sticky still works */
}

/* Left Sidebar (Desktop Only) - no inner scroll; main page scroll only */
.dashboard-sidebar {
    width: 180px;
    background: #FAFAFF;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(99, 102, 241, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: var(--shadow-sidebar);
    overflow-x: hidden;
    overflow-y: visible;
}

.sidebar-logo {
    padding: 24px var(--spacing-md);
    border-bottom: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    position: relative;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 1px 0 rgba(99, 102, 241, 0.04);
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(139, 92, 246, 0.01) 100%);
    pointer-events: none;
}

.sidebar-logo .navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    width: 100%;
    padding: var(--spacing-xs);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    cursor: pointer;
}

/* Hover effects for clickable logo (when href exists) - applies to profile pages */
.sidebar-logo .navbar-logo[href]:hover {
    transform: translateY(-1px);
}

.sidebar-logo .navbar-logo[href]:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.3));
}

.sidebar-logo .navbar-logo[href]:hover .logo-text {
    background: var(--gradient-primary-hover);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mentor role: Make logo unclickable */
.sidebar-logo .navbar-logo:not([href]),
.navbar-left .navbar-logo:not([href]) {
    pointer-events: none;
    cursor: default;
}

.sidebar-logo .navbar-logo:not([href]):hover {
    transform: none;
}

.sidebar-logo .navbar-logo:not([href]):hover img {
    transform: none;
    filter: drop-shadow(0 1px 3px rgba(99, 102, 241, 0.2));
}

.sidebar-logo .navbar-logo:not([href]):hover .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo .navbar-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(99, 102, 241, 0.2));
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
    pointer-events: none;
}

/* Logo text - optional, only shown if present; tight to logo */
.sidebar-logo .logo-text {
    margin-left: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-family: var(--font-brand);
    text-shadow: none;
    white-space: nowrap;
    opacity: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    pointer-events: none;
}

.sidebar-nav {
    flex: 0 1 auto;
    min-height: 0;
    padding: var(--spacing-md) var(--spacing-xs);
    overflow-y: visible;
}

.sidebar-nav .navbar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    min-height: 0;
}

.sidebar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    text-align: center;
    min-height: 56px;
    margin: 0;
    position: relative;
    font-weight: 500;
}

.sidebar-nav .nav-link .nav-link-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.sidebar-nav .nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary-color);
    transform: translateX(1px);
}

.sidebar-nav .nav-link:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.sidebar-nav .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25), 0 1px 3px rgba(99, 102, 241, 0.15);
    font-weight: 600;
    transform: translateX(0);
}

.sidebar-nav .nav-link.active svg {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.sidebar-nav .nav-link.active::after {
    display: none;
}

/* Sessions icon: red → white → red pulse when mentor has a live session */
.nav-link-sessions.sessions-live svg {
    animation: sessionsLivePulse 1.2s ease-in-out infinite;
}
@keyframes sessionsLivePulse {
    0%, 100% { stroke: #dc2626; }
    50% { stroke: #fff; }
}

.sidebar-profile-card {
    flex-shrink: 0;
    padding: var(--spacing-md);
    margin: var(--spacing-sm) var(--spacing-xs);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.05);
}

.sidebar-profile-card::before {
    display: none;
}

.sidebar-profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--spacing-sm);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--font-size-xs);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    font-weight: 500;
}

.sidebar-profile-link:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.sidebar-profile-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-profile-link:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.sidebar-profile-link span {
    font-weight: 500;
}

/* Profile link active state (e.g. on mentor-profile-setup page) */
.sidebar-profile-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.sidebar-profile-link.active svg {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.sidebar-profile-card .logout-btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
}

.sidebar-profile-card .logout-btn:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.08);
    border-color: #dc2626;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

/* Main Content Wrapper - no overflow here so .welcome-section sticky works on desktop */
.dashboard-main-wrapper {
    flex: 1;
    margin-left: 180px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Footer at end of page; pushed to bottom when content is short (same as other tabs) */
.dashboard-main-wrapper > .footer {
    margin-top: auto;
}

/* Top Navbar (Mobile Only) */
.dashboard-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    height: 70px;
    display: none; /* Hidden on desktop */
    align-items: center;
}

.navbar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    height: 100%;
}


.navbar-left {
    flex-shrink: 0;
}

.navbar-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    cursor: default;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-logo .logo-text {
    margin-left: 2px;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile quick-access tabs (hidden on desktop) */
.navbar-mobile-tabs {
    display: none;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-transform: capitalize;
    transition: color 0.2s ease;
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Navbar Right - Profile & Logout */
.navbar-right {
    flex-shrink: 0;
}

.navbar-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-photo.clickable-profile:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.profile-role {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: capitalize;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.1);
}

.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logout-btn svg {
    width: 18px;
    height: 18px;
}

/* Dashboard Main - content height only; footer position handled by margin-top: auto on footer */
/* Same top padding from first paint so welcome section space is reserved – no layout shift when data loads */
.dashboard-main {
    flex: 0 1 auto;
    min-width: 0;
    background: var(--gradient-bg-soft);
    padding: var(--spacing-lg) var(--spacing-sm);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    min-width: 0;
    overflow-x: hidden;
}

/* Welcome Section – shown only after user data loads (no loading text in welcome) */
.welcome-section {
    position: relative;
    top: 0;
    z-index: 20;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.06) 0%, rgba(99, 102, 241, 0.04) 50%, rgba(236, 72, 153, 0.03) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}



.welcome-section-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-lg);
}

.welcome-text {
    flex: 1;
    min-width: 200px;
}

/* Hidden until user data loads – no "Welcome back, User!" or loading text in welcome section */
.welcome-text-pending {
    visibility: hidden;
}

.welcome-title {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.welcome-title span {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mentor-profile-url-wrap {
    flex-shrink: 0;
    width: max-content;
    max-width: 100%;
    min-width: 0;
}

.profile-url-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-url-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    padding: 0.35rem 0.25rem 0.35rem 0.5rem;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.05);
}

.profile-url-input {
    flex: 0 1 auto;
    min-width: 20ch;
    padding: 0.6rem 0.5rem 0.6rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    overflow-x: auto;
    overflow-y: hidden;
}

.profile-url-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.profile-url-icon-btn,
.copy-url-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-url-icon-btn {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
}

.profile-url-icon-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.copy-url-btn {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
}

.copy-url-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.profile-url-icon-btn svg,
.copy-url-btn svg {
    flex-shrink: 0;
}

/* Copied feedback toast - glassmorphism, beside copy button */
.copy-feedback-toast {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 10px;
    box-shadow: 
        0 4px 16px rgba(22, 163, 74, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, max-width 0.3s ease;
}

.copy-feedback-toast.show {
    max-width: 80px;
    opacity: 1;
}

/* Dashboard Content – prevent overflow on responsive */
.dashboard-content {
    margin-top: var(--spacing-2xl);
    min-width: 0;
    overflow-x: hidden;
}

body.mentor-dashboard .dashboard-content {
    margin-top: var(--spacing-lg);
}

/* Mentor dashboard grid: 4 even columns; prevent content overflow on all screens */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: min-content;
    align-items: start;
    align-content: start;
    gap: var(--spacing-xl);
    min-width: 0;
}

/* Desktop: equal height columns (Mentorship Stats height = Earnings = My Profile + Wallet History column) */
body.mentor-dashboard .mentor-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

body.mentor-dashboard .mentor-dashboard-grid .dashboard-card {
    height: 100%;
    min-height: 0;
}

/* Column 3: Community + Notifications stacked; combined height = Earnings card */
.dashboard-community-updates-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    min-height: 0;
    min-width: 0;
    overflow: visible;
}

body.mentor-dashboard .dashboard-community-updates-column {
    height: 100%;
}

body.mentor-dashboard .dashboard-community-updates-column .dashboard-card-community,
body.mentor-dashboard .dashboard-community-updates-column .dashboard-card-notifications {
    flex: 1 1 0;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.mentor-dashboard .dashboard-community-updates-column .dashboard-card-notifications .notifications-alerts {
    flex: 1;
    min-height: 0;
}

/* Notifications card: same shadow as other dashboard cards */
.dashboard-card-notifications {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}
.dashboard-card-notifications:hover {
    box-shadow: -10px 10px 24px -18px rgba(15, 23, 42, 0.35), 10px 10px 24px -18px rgba(15, 23, 42, 0.35), 0 10px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-card-community:hover {
    box-shadow: -10px 10px 24px -18px rgba(15, 23, 42, 0.35), 10px 10px 24px -18px rgba(15, 23, 42, 0.35), 0 10px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-card-notifications .notifications-alerts {
    min-height: 0;
}

.dashboard-card-notifications .notifications-alerts:empty::after {
    content: '';
    display: block;
}

@media (max-width: 1024px) {
    body.mentor-dashboard .mentor-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    
    body.mentor-dashboard .mentor-dashboard-grid .dashboard-card {
        height: auto;
    }
    
    body.mentor-dashboard .dashboard-community-updates-column {
        height: auto;
    }
    
    body.mentor-dashboard .dashboard-community-updates-column .dashboard-card-community,
    body.mentor-dashboard .dashboard-community-updates-column .dashboard-card-notifications {
        flex: none;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .review-slide {
        /* Width set by JS to viewport so one full card visible */
        flex: 0 0 auto;
        min-width: 0;
    }
    .reviews-slider-viewport {
        max-height: 220px;
    }
    .review-slide .review-card-mini {
        min-height: 140px;
        max-height: 220px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .review-slide .review-card-header {
        margin-bottom: 0.2rem;
    }
    .review-slide .review-comment {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        min-height: 4.2em;
        margin-bottom: 0.2rem;
    }
    .review-slide .review-date {
        font-size: 0.65rem;
    }
    .reviews-slider-btn {
        width: 40px;
        height: 40px;
    }
}

.dashboard-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Earnings + Wallet History stacked in one column */
.dashboard-earnings-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    min-width: 0;
}

.withdraw-btn-full {
    width: 100%;
    margin-top: var(--spacing-md);
}

.earnings-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

/* Wallet History inside Earnings card: colored label + Withdrawals / Credits buttons */
.earnings-wallet-history {
    margin-top: var(--spacing-lg);
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px -16px rgba(15, 23, 42, 0.3);
}

.earnings-wallet-history-label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.55rem;
    transition: color 0.25s ease;
    letter-spacing: 0.02em;
}

.earnings-wallet-history-label::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.earnings-wallet-history:hover .earnings-wallet-history-label {
    color: #334155;
}

.earnings-history-toggle {
    margin: 0;
    display: flex;
    gap: 0.34rem;
    padding: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.earnings-history-toggle .history-toggle-btn {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: all 0.22s ease;
    letter-spacing: 0.01em;
    position: relative;
}

/* Withdrawals button: warm accent */
.earnings-history-toggle .history-toggle-btn[data-wallet-history="withdrawal"] {
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.14);
}

.earnings-history-toggle .history-toggle-btn[data-wallet-history="withdrawal"]:hover {
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.24);
    box-shadow: 0 4px 10px -12px rgba(194, 65, 12, 0.45);
}

.earnings-history-toggle .history-toggle-btn[data-wallet-history="withdrawal"].active {
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 6px 12px -12px rgba(194, 65, 12, 0.55);
}

/* Credits button: green/emerald accent */
.earnings-history-toggle .history-toggle-btn[data-wallet-history="credit"] {
    color: #065f46;
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(16, 185, 129, 0.16);
}

.earnings-history-toggle .history-toggle-btn[data-wallet-history="credit"]:hover {
    color: #064e3b;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 4px 10px -12px rgba(5, 150, 105, 0.45);
}

.earnings-history-toggle .history-toggle-btn[data-wallet-history="credit"].active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.17);
    border-color: rgba(16, 185, 129, 0.34);
    box-shadow: 0 6px 12px -12px rgba(5, 150, 105, 0.5);
}

.earnings-history-toggle .history-toggle-btn:active {
    transform: scale(0.98);
}

.dashboard-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-card .dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 0.56rem;
}

.dashboard-title-text {
    line-height: 1.2;
}

.dashboard-title-icon {
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 1.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-text-fill-color: initial;
    color: #5b21b6;
}

.dashboard-title-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.dashboard-title-icon-stats {
    color: #5b21b6;
}

.dashboard-title-icon-community {
    color: #6d28d9;
}

.dashboard-title-icon-notifications {
    color: #5b21b6;
}

.dashboard-title-icon-earnings {
    color: #6d28d9;
}

.dashboard-title-icon-profile {
    color: #6d28d9;
}

.dashboard-title-icon-reviews {
    color: #6d28d9;
}

.dashboard-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.profile-summary p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.profile-summary strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mentor dashboard – My Profile card header with status top-right */
.dashboard-card-my-profile .dashboard-card-header-my-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}
.dashboard-card-my-profile .dashboard-card-header-my-profile h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.mentor-profile-status {
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.mentor-profile-status-approved {
    color: #166534;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.mentor-profile-status-under-review {
    color: #c2410c;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
}
.mentor-profile-status-rejected {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Mentor dashboard – My Profile card (same structure as find-mentors) */
.mentor-profile-summary .mentor-profile-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}
.mentor-profile-summary .mentor-detail-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.mentor-profile-summary .detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}
.mentor-profile-summary .detail-value {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
    min-width: 0;
}
.mentor-profile-summary .detail-value.detail-value-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em 0.35em;
    align-items: center;
}
.mentor-profile-summary .detail-value .detail-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    margin: 0.15em 0.2em 0.15em 0;
}

/* Buttons */
.primary-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-button);
}

/* Community card Create Post button: smaller size */
.dashboard-card .community-create-post-btn,
a.primary-btn.community-create-post-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 10px;
    margin-top: var(--spacing-md);
    min-height: 2.4rem;
}

/* Community card Create Post link: keep text white on hover */
.primary-btn.community-create-post-btn:hover,
a.primary-btn.community-create-post-btn:hover {
    color: white !important;
}

/* Under review: Create Post disabled button – full label visible (height + smaller text) */
.community-create-post-btn-disabled {
    min-height: 2.75rem;
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    padding: 0.5rem 0.75rem;
}

/* Edit Profile button in My Profile card - smaller size */
.edit-profile-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-top: var(--spacing-md);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

.edit-profile-btn:hover {
    color: white !important;
}

/* My Profile card – star when profile fully optimized (yellow, slightly above title)
   Adjust star up/down: change --mentor-profile-star-nudge (e.g. -4px = more up, 0 = inline, 2px = down) */
.dashboard-card-my-profile .dashboard-card-header-my-profile h3 .mentor-profile-star {
    --mentor-profile-star-nudge: 0px;
}
.mentor-profile-star {
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transform: translateY(var(--mentor-profile-star-nudge, -2px));
}
.mentor-profile-star svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: #facc15;
    vertical-align: middle;
}

/* My Profile card – animated notification slide below Edit Profile */
.mentor-profile-notification-slide {
    margin-top: var(--spacing-md);
    min-height: 2.5rem;
    overflow: hidden;
    position: relative;
}
.mentor-profile-notification-slide.mentor-profile-notification-visible {
    visibility: visible;
}
.mentor-profile-notification-message {
    font-size: 0.8125rem;
    color: #475569;
    margin: 0;
    padding: 0.4rem 0.5rem;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    animation: mentorProfileSlideIn 0.4s ease-out;
}
.mentor-profile-notification-message.mentor-profile-notification-shine {
    color: var(--text-primary);
    background: rgba(34, 197, 94, 0.08);
    border-left-color: #22c55e;
}
@keyframes mentorProfileSlideIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

/* Mentor dashboard: refined mentorship stats layout */
.mentor-stats-layout {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
}

.mentor-stats-layout.mentor-stats-no-rating {
    grid-template-columns: 1fr;
}

.mentor-stats-rating-card,
.mentor-stats-session-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 12px;
    padding: 0.62rem 0.72rem;
    min-height: 0;
}

.mentor-stats-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.46rem;
}

.mentor-stats-rating-display {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.mentor-stats-rating-display .stars-inline svg {
    width: 14px;
    height: 14px;
}

.mentor-stat-rating-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1;
}

.mentor-stats-kpi-row {
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}

.mentor-stats-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.76);
    padding: 0.34rem 0.5rem;
    text-align: left;
}

.mentor-stats-kpi-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
    min-width: 0;
}

.mentor-stats-kpi-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1;
}

@media (max-width: 768px) {
    .mentor-stats-layout {
        gap: 0.58rem;
    }
    .mentor-stats-rating-card,
    .mentor-stats-session-card {
        padding: 0.56rem 0.62rem;
    }
    .mentor-stats-kpi-row {
        gap: 0.3rem;
    }
    .mentor-stats-kpi-label {
        font-size: 0.66rem;
    }
    .mentor-stats-kpi-value {
        font-size: 0.88rem;
    }
}

.stat-rating-item .stat-rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.stat-stars.stars-inline,
.stars-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.stars-inline svg {
    width: 16px;
    height: 16px;
}

.stars-inline svg.filled {
    color: #f59e0b;
}

.stars-inline svg.empty {
    color: #d1d5db;
}

.recent-reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Reviews section: full-width, compact height */
.dashboard-reviews-section {
    margin-top: var(--spacing-2xl);
    width: 100%;
}

.dashboard-card-reviews {
    overflow: hidden;
    padding: var(--spacing-lg) var(--spacing-xl);
}

.dashboard-card-reviews h3 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.reviews-slider-outer {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-md);
    position: relative;
}

.reviews-slider-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.reviews-slider-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.reviews-slider-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    max-height: 160px;
}

.recent-reviews-slider {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

.review-slide {
    flex: 0 0 304px;
    width: 304px;
    min-width: 304px;
}

.review-slide .review-card-mini {
    height: 100%;
    min-height: 100px;
    max-height: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-slide .review-comment {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.reviews-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--spacing-sm);
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.reviews-dot:hover {
    background: rgba(99, 102, 241, 0.4);
}

.reviews-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.review-card-mini {
    padding: var(--spacing-md);
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.review-comment-none {
    color: var(--text-muted);
    font-style: italic;
}

.dashboard-card-reviews .empty-reviews-msg {
    text-align: center;
    padding: var(--spacing-xl);
}

.dashboard-card-reviews .loading-spinner {
    justify-content: center;
    padding: var(--spacing-xl);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.review-mentee-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.review-stars-mini .stars-inline svg {
    width: 12px;
    height: 12px;
}

.review-comment {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 0.25rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.empty-reviews-msg {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    padding: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    gap: var(--spacing-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Status Banner */
.status-banner {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid;
    animation: slideIn 0.3s ease-out;
}

.under-review-banner {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-color: #ffd700;
}

.banner-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.banner-icon {
    font-size: var(--font-size-3xl);
    flex-shrink: 0;
}

.banner-text h3 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.banner-text p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modern Under Review Banner */
.under-review-banner-modern {
    margin-bottom: var(--spacing-xl);
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 2px 4px -2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.35s ease-out;
    border-left: 4px solid #f59e0b;
}

.under-review-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
}

.under-review-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.under-review-icon {
    width: 26px;
    height: 26px;
    color: #d97706;
}

.under-review-body {
    flex: 1;
    min-width: 0;
}

.under-review-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.under-review-desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.under-review-hint {
    margin: 0.75rem 0 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-tertiary, #71717a);
}

/* Status Badge */
.status-badge {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    display: inline-block;
}

.status-badge.under-review {
    background: rgba(255, 215, 0, 0.2);
    color: #b8860b;
    border: 1px solid #ffd700;
}

.status-badge.approved {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
    border: 1px solid #22c55e;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Under Review Page */
.under-review-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: var(--spacing-2xl) 0;
}

.review-status-card {
    max-width: 700px;
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
}

.status-icon {
    font-size: 80px;
    margin-bottom: var(--spacing-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.review-status-card h1 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.status-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
}

.review-info {
    text-align: left;
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
}

.review-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.review-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.review-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content strong {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.review-actions {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.action-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: var(--spacing-xs);
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    position: relative;
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle svg line {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active svg line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: block;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    max-height: 500px;
    padding: var(--spacing-lg);
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background blur when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

body.menu-open .dashboard-main,
body.menu-open .find-mentors-main,
body.menu-open .community-main,
body.menu-open .sessions-main,
body.menu-open .support-main,
body.menu-open .settings-main,
body.menu-open .dashboard-sidebar,
body.menu-open .footer {
    filter: blur(4px);
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* For profile setup pages */
body.menu-open .mentor-profile-setup-page,
body.menu-open .profile-setup-page {
    filter: blur(4px);
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* Hide profile photo and role from navbar when mobile menu is active */
.mobile-menu.active ~ .navbar-container .navbar-profile .profile-photo,
.mobile-menu.active ~ .navbar-container .navbar-profile .profile-role {
    display: none;
}

/* Alternative selector for when mobile menu is sibling */
.dashboard-navbar:has(.mobile-menu.active) .navbar-profile .profile-photo,
.dashboard-navbar:has(.mobile-menu.active) .navbar-profile .profile-role {
    display: none;
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    transform: translateX(-100%);
    opacity: 0;
}

.mobile-menu-nav a svg {
    flex-shrink: 0;
}

.mobile-menu.active .mobile-menu-nav a {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.active .mobile-menu-nav a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-nav a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-nav a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-nav a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-nav a:nth-child(5) {
    transition-delay: 0.3s;
}

/* Reverse animation when closing */
.mobile-menu:not(.active) .mobile-menu-nav a {
    transition-delay: 0s;
}

.mobile-menu:not(.active) .mobile-menu-nav a:nth-child(5) {
    transition-delay: 0.05s;
}

.mobile-menu:not(.active) .mobile-menu-nav a:nth-child(4) {
    transition-delay: 0.1s;
}

.mobile-menu:not(.active) .mobile-menu-nav a:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu:not(.active) .mobile-menu-nav a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu:not(.active) .mobile-menu-nav a:nth-child(1) {
    transition-delay: 0.25s;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.mobile-menu-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-md);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-profile {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.35s;
}

/* Reverse animation when closing */
.mobile-menu:not(.active) .mobile-menu-profile {
    transition-delay: 0s;
}

.mobile-menu-profile .mobile-profile-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-profile .mobile-profile-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.mobile-menu-profile .mobile-profile-link.active {
    background: var(--gradient-primary);
    color: white;
}

.mobile-menu-profile .mobile-profile-link.active svg {
    filter: brightness(0) invert(1);
}

.mobile-menu-profile .logout-btn {
    flex-shrink: 0;
}

/* Short viewport - compact layout (desktop mode on phone, tablet) */
@media (max-height: 700px) and (min-width: 769px) {
    .sidebar-logo {
        padding: 12px var(--spacing-md);
        min-height: 60px;
    }
    .sidebar-logo img,
    .sidebar-logo .navbar-logo img {
        height: 40px;
    }
    .sidebar-nav {
        padding: var(--spacing-xs) var(--spacing-xs);
    }
    .sidebar-nav .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        min-height: 44px;
    }
    .sidebar-profile-card {
        padding: var(--spacing-sm);
    }
    .sidebar-profile-link {
        min-height: 44px;
        padding: var(--spacing-xs);
    }
    .dashboard-main {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    .welcome-section {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-md) 0;
    }
    .dashboard-content {
        margin-top: var(--spacing-lg);
    }
    .footer {
        padding: var(--spacing-lg) var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide sidebar on mobile */
    .dashboard-sidebar {
        display: none;
    }
    
    /* Show top navbar on mobile - fixed so it stays on scroll (high z-index so it's above main content and clickable) */
    .dashboard-navbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        z-index: 2000;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    
    /* Remove left margin, add top padding for fixed navbar on mobile */
    .dashboard-main-wrapper {
        margin-left: 0;
        padding-top: 56px;
        overflow-x: hidden;
        min-width: 0;
    }
    
    .navbar-container {
        flex-wrap: nowrap;
        gap: var(--spacing-xs);
        padding: 0 var(--spacing-sm);
        position: relative;
        max-width: 100%;
        min-width: 0;
    }
    
    .navbar-left {
        flex: 0 0 auto;
        min-width: 0;
    }
    
    .navbar-logo img {
        height: 52px;
    }
    
    .navbar-logo .logo-text {
        display: none;
    }
    
    .navbar-center {
        display: none;
    }

    .navbar-mobile-tabs {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .navbar-mobile-tabs a {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 12px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: 20px;
        background: var(--bg-secondary);
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .navbar-mobile-tabs a.active {
        color: var(--primary-color);
        background: rgba(99, 102, 241, 0.1);
    }

    .navbar-mobile-tabs a svg {
        flex-shrink: 0;
    }

    .navbar-mobile-tabs a .nav-link-label {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .navbar-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }
    
    .navbar-profile {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .profile-info {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .logout-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    body.mentor-dashboard .mentor-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: var(--font-size-2xl);
    }
    
    .welcome-section {
        position: relative;
        top: auto;
    }
    
    body.mentee-dashboard .welcome-section,
    body.mentor-dashboard .welcome-section {
        position: relative;
        top: auto;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm) 0;
    }
    
    .welcome-section-inner {
        flex-direction: column;
    }
    
    .mentor-profile-url-wrap {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    
    .profile-url-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
    }
    
    .profile-url-input {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        width: 100% !important;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-icon {
        font-size: var(--font-size-2xl);
    }
    
    .dashboard-main {
        padding: 4px var(--spacing-md) var(--spacing-lg);
    }
    
    .welcome-section {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm) 0;
    }
    
    .welcome-section-inner {
        padding: 0 var(--spacing-md);
    }
    
    .dashboard-content {
        margin-top: var(--spacing-md);
    }
    
    .footer {
        margin-top: var(--spacing-lg);
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* Earnings Card */
.earnings-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wallet-balance {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 14px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.wallet-balance::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(180deg); }
}

.wallet-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.wallet-amount {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.earnings-note {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

/* Withdrawal & Credit History card – content and See more stay inside card */
.dashboard-card:has(.history-card-header) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.dashboard-card:has(.history-card-header) .history-card-header {
    flex-shrink: 0;
}

.dashboard-card:has(.history-card-header) .history-panel {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Withdrawal & Credit History card */
.history-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.history-card-header h3 {
    margin: 0;
}

.history-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.history-toggle-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.history-toggle-btn:hover {
    color: var(--text-primary);
}

.history-toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Mentor Updates block inside Community card – new bookings alert + trending/offers */
.mentor-updates-block {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.mentor-updates-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm);
    letter-spacing: 0.02em;
}

/* Notifications card – Offerings notice (small notice board, red pins top-left & top-right) */
.notifications-offerings-notice-wrap {
    margin-bottom: var(--spacing-sm);
}
.notification-pinboard {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.62rem 0.8rem 0.56rem;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(167, 139, 250, 0.2) 100%);
    border: 1px solid rgba(124, 58, 237, 0.26);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.12);
    font-size: 0.78rem;
    line-height: 1.4;
    color: #4c1d95;
}
.notification-pinboard-icon {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.16);
    color: #6d28d9;
    margin-top: 0.05rem;
}
.notification-pinboard-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}
.notification-pinboard-content {
    min-width: 0;
}
.notification-pinboard-text {
    margin: 0 0 0.42rem;
    font-weight: 600;
}
.notification-pinboard-btn {
    display: inline-block;
    padding: 0.34rem 0.66rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: 1px solid rgba(109, 40, 217, 0.85);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 5px 12px rgba(109, 40, 217, 0.25);
}
.notification-pinboard-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 8px 16px rgba(109, 40, 217, 0.3);
}

@media (min-width: 1025px) {
    .notification-pinboard {
        padding-bottom: 0.5rem;
    }
    .notification-pinboard-btn {
        padding: 0.3rem 0.66rem;
        line-height: 1.1;
    }
}

/* Notifications card – new booking block */
.notifications-alerts {
    margin-bottom: 0;
}

.notification-block {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(20, 184, 166, 0.06) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.notification-new-booking .notification-emoji {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.notification-new-booking .notification-body {
    flex: 1;
    min-width: 0;
}

.notification-new-booking .notification-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.notification-new-booking .notification-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0 0 var(--spacing-xs);
}

.notification-view-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.notification-view-btn:hover {
    color: #fff !important;
}

/* Notifications card: same on mobile as desktop (title "Notifications", compact block, visible button) */
@media (max-width: 768px) {
    .dashboard-card-notifications h3 {
        font-size: var(--font-size-lg);
    }
    .dashboard-title-icon {
        width: 1.72rem;
        height: 1.72rem;
        flex-basis: 1.72rem;
    }
    .dashboard-title-icon svg {
        width: 1.08rem;
        height: 1.08rem;
    }
    .notification-block {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    .notification-new-booking .notification-title {
        font-size: 0.75rem;
    }
    .notification-new-booking .notification-text {
        font-size: 0.7rem;
    }
    .notification-view-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }
}

.mentor-updates-alerts {
    margin-bottom: var(--spacing-md);
}

.mentor-update-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.mentor-update-item:last-child {
    margin-bottom: 0;
}

.mentor-update-highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--text-primary);
    font-weight: 500;
}

.mentor-update-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: mentor-update-pulse 2s ease-in-out infinite;
}

@keyframes mentor-update-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.mentor-updates-offers {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mentor-update-offer {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.mentor-update-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.mentor-update-offer .mentor-update-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.mentor-update-text {
    flex: 1;
    min-width: 0;
}

.dashboard-card-community .mentor-updates-block {
    min-width: 0;
    overflow: hidden;
}

.history-panel {
    min-height: 60px;
}

/* Withdrawal History – list + See more inside card */
.withdrawal-history-list {
    min-height: 60px;
}

.withdrawal-history-list .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    color: var(--text-secondary);
}

.withdrawal-history-empty,
.withdrawal-history-error {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.withdrawal-history-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.withdrawal-history-item:last-child {
    border-bottom: none;
}

.withdrawal-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.withdrawal-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.withdrawal-time {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.withdrawal-status {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.withdrawal-status.status-pending { background: rgba(245, 158, 11, 0.2); color: #d97706; }
.withdrawal-status.status-completed { background: rgba(34, 197, 94, 0.2); color: #16a34a; }
.withdrawal-status.status-failed { background: rgba(239, 68, 68, 0.2); color: #dc2626; }
.withdrawal-status.status-reversed { background: rgba(99, 102, 241, 0.2); color: var(--primary-color); }
.withdrawal-status.status-hold { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

/* Credit history (same row layout, green amount + label) */
.credit-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.credit-history-item .withdrawal-amount {
    color: #16a34a;
}

/* Wallet History card: preview + See more inside card, bottom right */
.withdrawal-history-list,
.credit-history-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.withdrawal-history-preview {
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 0;
}

.withdrawal-history-preview .withdrawal-history-row {
    min-width: 0;
}

.wallet-history-see-more {
    display: inline-block;
    width: auto;
    margin-top: 0.35rem;
    margin-left: auto;
    margin-bottom: 0;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.wallet-history-see-more:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Wallet history modal: blur bg (modal.css has overlay blur), scrollable body */
.wallet-history-modal .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wallet-history-modal .modal-body-custom {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--spacing-md) 0;
}

.wallet-history-modal .wallet-history-modal-body .withdrawal-history-item {
    margin-bottom: 0;
}

.secondary-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

/* Full Width Availability Section */
.availability-section-full {
    margin-top: var(--spacing-2xl);
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    border: none;
    animation: fadeInUp 0.5s ease 0.4s backwards;
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.availability-title-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.availability-title-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.availability-stats {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.availability-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-label-small {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value-small {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
}

.availability-container-full {
    width: 100%;
}

@media (max-width: 768px) {
    .availability-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .availability-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .availability-title-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .dashboard-card {
        padding: var(--spacing-md);
    }
    
    .navbar-logo {
        font-size: var(--font-size-lg);
    }
    
    .navbar-logo img {
        height: 52px;
    }
    
    .dashboard-navbar {
        height: 58px;
    }
    
    .dashboard-main-wrapper {
        padding-top: 58px;
    }
    
    .nav-link {
        font-size: var(--font-size-sm);
    }
    
    .availability-section-full {
        padding: var(--spacing-md);
    }
    
    .wallet-amount {
        font-size: var(--font-size-2xl);
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
    
    .footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* Extra-small devices (e.g. 360px) - keep navbar and content from breaking */
@media (max-width: 400px) {
    .navbar-container {
        padding: 0 10px;
        gap: 6px;
    }
    
    .navbar-logo img {
        height: 44px;
    }
    
    .navbar-mobile-tabs a {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 2px;
    }
    
    .navbar-mobile-tabs a svg {
        width: 14px;
        height: 14px;
    }
    
    .dashboard-navbar {
        height: 56px;
    }
    
    .dashboard-main-wrapper {
        padding-top: 56px;
    }
    
    .dashboard-main {
        padding: var(--spacing-md) 10px var(--spacing-lg);
        min-width: 0;
    }
    
    .dashboard-container {
        min-width: 0;
    }
}

/* Footer Styles for Dashboard - Minimal SaaS Design */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.footer-social a:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    width: 100%;
}

/* Mentor: hide Contact link in footer (desktop view) */
@media (min-width: 769px) {
    body.mentor-dashboard .footer-links a[href*="contact"] {
        display: none;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-links {
        gap: var(--spacing-md);
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-md);
    }

    /* Mentee dashboard: footer thoda niche on mobile (desktop view mode) */
    body.mentee-dashboard .dashboard-main {
        padding-bottom: 4rem;
    }
}

/* Mentee Recent Activity */
.recent-sessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.recent-session-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(99, 102, 241, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.recent-session-main {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    min-width: 0;
}
.recent-session-mentor-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-session-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.recent-session-type {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.recent-session-date,
.recent-session-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.recent-session-mentor {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.recent-session-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    flex-wrap: wrap;
    min-width: 0;
}

.session-status-mini {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: capitalize;
}

.session-status-mini.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #b45309;
}

.session-status-mini.confirmed {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.session-status-mini.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.session-status-mini.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.session-status-mini.live {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
    animation: live-badge-blink 1.2s ease-in-out infinite;
}

@keyframes live-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.session-status-mini.awaiting {
    background: rgba(251, 191, 36, 0.25);
    color: #b45309;
}

.recent-session-join-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, background 0.2s;
}
.recent-session-join-btn:hover {
    background: #b91c1c;
    color: #fff;
}

.recent-session-leave-review {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.recent-session-leave-review:hover {
    text-decoration: underline;
}

.recent-session-fee {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   MENTEE DASHBOARD - Modern Colorful UI
   ============================================ */

/* Single scroll + no horizontal: block layout, use overflow-x: clip (not hidden) so
   overflow-y stays visible and no 2nd scrollbar. .mentee-single-scroll added by JS. */
body.mentee-dashboard .dashboard-layout {
    display: block !important;
    height: auto !important;
    min-height: 100vh;
    overflow-x: clip;
    overflow-y: visible;
}
body.mentee-dashboard .dashboard-main-wrapper,
.dashboard-main-wrapper.mentee-single-scroll {
    display: block !important;
    overflow-y: visible !important;
    overflow-x: clip;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    flex: none !important;
    margin-left: 180px;
}
body.mentee-dashboard .dashboard-main {
    overflow-y: visible !important;
    overflow-x: clip;
    height: auto !important;
    max-height: none !important;
    background: linear-gradient(165deg, #f8f5ff 0%, #f0f9ff 35%, #fdf4ff 70%, #f0fdf4 100%);
    position: relative;
}
body.mentee-dashboard .dashboard-container,
body.mentee-dashboard .dashboard-content,
body.mentee-dashboard .mentee-dashboard-grid {
    overflow-x: clip;
    overflow-y: visible !important;
}

/* Mobile: wrapper already has margin-left: 0, padding-top from media query */
@media (max-width: 768px) {
    body.mentee-dashboard .dashboard-main-wrapper,
    .dashboard-main-wrapper.mentee-single-scroll {
        margin-left: 0;
    }
}

body.mentee-dashboard .dashboard-main::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

body.mentee-dashboard .dashboard-main::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Mentee: same position as mentor, only look differs */
body.mentee-dashboard .welcome-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(236, 72, 153, 0.06) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

body.mentee-dashboard .welcome-title span {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mentee Dashboard Grid - 2x2 layout, Sessions & Find Mentors primary */
body.mentee-dashboard .mentee-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 100%;
}

@media (min-width: 1200px) {
    body.mentee-dashboard .mentee-dashboard-grid {
        gap: 1.75rem;
    }
}

@media (max-width: 767px) {
    body.mentee-dashboard .mentee-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Mentee Cards - Colorful & Modern */
body.mentee-dashboard .mentee-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.mentee-dashboard .mentee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

body.mentee-dashboard .mentee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body.mentee-dashboard .mentee-card-profile {
    background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.14);
}

body.mentee-dashboard .mentee-card-profile::before {
    background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}

body.mentee-dashboard .mentee-card-sessions,
body.mentee-dashboard .mentee-card-profile,
body.mentee-dashboard .mentee-card-mentors,
body.mentee-dashboard .mentee-card-activity {
    overflow: visible;
}

body.mentee-dashboard .mentee-card-sessions {
    background: linear-gradient(145deg, #ffffff 0%, #f5fdf9 100%);
    border: 1px solid rgba(16, 185, 129, 0.14);
}

body.mentee-dashboard .mentee-card-sessions::before {
    background: linear-gradient(90deg, #6ee7b7, #a7f3d0);
}

body.mentee-dashboard .mentee-card-mentors {
    background: linear-gradient(145deg, #ffffff 0%, #f5faff 100%);
    border: 1px solid rgba(14, 165, 233, 0.14);
}

body.mentee-dashboard .mentee-card-mentors::before {
    background: linear-gradient(90deg, #7dd3fc, #bae6fd);
}

body.mentee-dashboard .mentee-card-activity {
    background: linear-gradient(145deg, #ffffff 0%, #fffbf7 100%);
    border: 1px solid rgba(249, 115, 22, 0.14);
}

body.mentee-dashboard .mentee-card-activity::before {
    background: linear-gradient(90deg, #fdba74, #fed7aa);
}

/* Card Header - icon + title */
body.mentee-dashboard .mentee-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
}

body.mentee-dashboard .mentee-card-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* All mentee cards: same body padding and overflow as My Sessions */
body.mentee-dashboard .mentee-card-sessions .mentee-card-body,
body.mentee-dashboard .mentee-card-profile .mentee-card-body,
body.mentee-dashboard .mentee-card-mentors .mentee-card-body,
body.mentee-dashboard .mentee-card-activity .mentee-card-body {
    overflow: visible;
}

/* Card Icons - SVG */
body.mentee-dashboard .mentee-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.mentee-dashboard .mentee-card-icon svg {
    width: 24px;
    height: 24px;
}

body.mentee-dashboard .mentee-icon-profile {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

body.mentee-dashboard .mentee-icon-sessions {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

body.mentee-dashboard .mentee-icon-mentors {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

body.mentee-dashboard .mentee-icon-activity {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

/* Mentee Card Headings */
body.mentee-dashboard .mentee-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

body.mentee-dashboard .mentee-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

body.mentee-dashboard .mentee-card .profile-summary {
    margin: 0;
}

body.mentee-dashboard .mentee-card .profile-summary p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
}

body.mentee-dashboard .mentee-cta-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
}

body.mentee-dashboard .mentee-cta-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* My Profile card – same padding as My Sessions card */
body.mentee-dashboard .mentee-card-body-profile {
    padding: 0 1.5rem 1.5rem;
}

body.mentee-dashboard .mentee-card-profile-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

body.mentee-dashboard .mentee-profile-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

body.mentee-dashboard .mentee-profile-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    flex-shrink: 0;
}

body.mentee-dashboard .mentee-profile-progress-bar {
    flex: 1;
    min-width: 60px;
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

body.mentee-dashboard .mentee-profile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 999px;
    transition: width 0.4s ease;
}

body.mentee-dashboard .mentee-profile-progress-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #7c3aed;
    flex-shrink: 0;
}

body.mentee-dashboard .mentee-profile-card-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem 1.5rem;
    align-items: start;
}

@media (max-width: 640px) {
    body.mentee-dashboard .mentee-profile-card-content {
        grid-template-columns: 1fr;
    }
}

body.mentee-dashboard .mentee-profile-fields {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

body.mentee-dashboard .mentee-profile-field {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.mentee-dashboard .mentee-profile-field-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 7rem;
}

body.mentee-dashboard .mentee-profile-field-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

body.mentee-dashboard .mentee-profile-field-value.profile-value-nowrap {
    white-space: nowrap;
}

body.mentee-dashboard .mentee-profile-field-value.profile-value-empty {
    color: var(--text-secondary);
    font-weight: 400;
}

body.mentee-dashboard .mentee-profile-message-wrap {
    grid-column: 2;
    min-width: 0;
}

@media (max-width: 640px) {
    body.mentee-dashboard .mentee-profile-message-wrap {
        grid-column: 1;
    }
}

body.mentee-dashboard .mentee-profile-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(167, 139, 250, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    max-width: 300px;
}

body.mentee-dashboard .mentee-profile-cta {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: fit-content;
}

body.mentee-dashboard .mentee-profile-cta.mentee-cta-complete {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

body.mentee-dashboard .mentee-profile-cta.mentee-cta-complete:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

body.mentee-dashboard .mentee-profile-cta.mentee-cta-edit {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

body.mentee-dashboard .mentee-profile-cta.mentee-cta-edit:hover {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.35);
}

/* Stats Grid - Soft colors; full labels (Upcoming, Completed, Cancelled) visible */
body.mentee-dashboard .mentee-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    min-width: 0;
}

body.mentee-dashboard .mentee-stat-item {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    border: none;
    transition: all 0.3s ease;
    min-width: 0;
}

body.mentee-dashboard .mentee-stat-item .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

body.mentee-dashboard .mentee-stat-item .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
    display: block;
    white-space: normal;
    line-height: 1.25;
}

body.mentee-dashboard .mentee-stat-upcoming {
    background: rgba(14, 165, 233, 0.1);
}

body.mentee-dashboard .mentee-stat-upcoming:hover {
    background: rgba(14, 165, 233, 0.16);
    transform: translateY(-2px);
}

body.mentee-dashboard .mentee-stat-upcoming .stat-value {
    color: #0284c7;
}

body.mentee-dashboard .mentee-stat-completed {
    background: rgba(16, 185, 129, 0.1);
}

body.mentee-dashboard .mentee-stat-completed:hover {
    background: rgba(16, 185, 129, 0.16);
    transform: translateY(-2px);
}

body.mentee-dashboard .mentee-stat-completed .stat-value {
    color: #059669;
}

body.mentee-dashboard .mentee-stat-cancelled {
    background: rgba(249, 115, 22, 0.08);
}

body.mentee-dashboard .mentee-stat-cancelled:hover {
    background: rgba(249, 115, 22, 0.14);
    transform: translateY(-2px);
}

body.mentee-dashboard .mentee-stat-cancelled .stat-value {
    color: #ea580c;
}

/* CTA Buttons */
body.mentee-dashboard .mentee-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    transition: all 0.25s ease;
    align-self: flex-start;
    margin-top: auto;
}

body.mentee-dashboard .mentee-cta-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    color: #fff;
}

/* Mentee dashboard + Settings: smaller CTAs on mobile (same breakpoint as fixed filter) */
@media (max-width: 768px) {
    body.mentee-dashboard .mentee-cta-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    body.mentee-dashboard .mentee-cta-link {
        font-size: 0.85rem;
    }
    .primary-btn {
        padding: 0.55rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    .secondary-btn {
        padding: 0.55rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
}

/* Recent Activity - Mentee */
body.mentee-dashboard #menteeRecentActivity .recent-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.mentee-dashboard .recent-session-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

body.mentee-dashboard .recent-session-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.06);
    transform: translateX(4px);
}

body.mentee-dashboard .recent-session-type {
    color: var(--text-primary);
}

/* Mentee Recent Activity – mobile: card layout, all content inside card, Leave review never overflows */
@media (max-width: 768px) {
    body.mentee-dashboard .mentee-card-activity {
        min-width: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    body.mentee-dashboard .mentee-card-activity .mentee-card-body {
        min-width: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem;
    }
    body.mentee-dashboard #menteeRecentActivity {
        min-width: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    body.mentee-dashboard #menteeRecentActivity .recent-sessions-list {
        gap: 0.875rem;
        min-width: 0;
        width: 100%;
    }
    body.mentee-dashboard .recent-session-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        border-radius: 12px;
        overflow: hidden;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(139, 92, 246, 0.14);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    }
    body.mentee-dashboard .recent-session-main {
        min-width: 0;
        gap: 0.75rem;
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    body.mentee-dashboard .recent-session-details {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    body.mentee-dashboard .recent-session-type {
        font-size: 0.9375rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.mentee-dashboard .recent-session-date,
    body.mentee-dashboard .recent-session-time,
    body.mentee-dashboard .recent-session-mentor {
        font-size: 0.8125rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.mentee-dashboard .recent-session-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(139, 92, 246, 0.12);
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.mentee-dashboard .session-status-mini {
        flex-shrink: 0;
    }
    body.mentee-dashboard .recent-session-join-btn {
        flex-shrink: 0;
    }
    /* Leave review: full-width tap target on mobile, stays inside card */
    body.mentee-dashboard .recent-session-leave-review {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 0.8125rem;
        font-weight: 600;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        background: rgba(139, 92, 246, 0.12);
        color: var(--primary-color);
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.mentee-dashboard .recent-session-item:hover {
        transform: none;
    }
    body.mentee-dashboard #menteeRecentActivity .mentee-cta-link {
        display: block;
        margin-top: 0.75rem;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
        word-break: break-word;
    }
}

/* Mentor Dashboard - ensure no mentee styles apply */
body.mentor-dashboard .mentee-dashboard-grid {
    display: block;
}

/* Mentee: single vertical scroll, no horizontal. clip (not hidden) keeps overflow-y visible. */
body.mentee-dashboard .dashboard-layout,
body.mentee-dashboard .dashboard-main-wrapper,
body.mentee-dashboard .dashboard-main,
body.mentee-dashboard .dashboard-container,
body.mentee-dashboard .dashboard-content,
body.mentee-dashboard #dashboardContent,
body.mentee-dashboard .mentee-dashboard-grid,
.dashboard-main-wrapper.mentee-single-scroll,
body.mentee-dashboard .dashboard-main-wrapper.mentee-single-scroll {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}
body.mentee-dashboard .dashboard-main,
body.mentee-dashboard .dashboard-main-wrapper,
.dashboard-main-wrapper.mentee-single-scroll {
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}
