/* ============================================================
   Networking With Celebrities â€“ Custom Stylesheet
   ============================================================ */

/* ---------- Import ---------- */
:root {
    --primary:        #4f46e5;
    --primary-dark:   #3730a3;
    --primary-light:  #818cf8;
    --secondary:      #0ea5e9;
    --success:        #22c55e;
    --warning:        #f59e0b;
    --danger:         #ef4444;
    --info:           #06b6d4;
    --dark:           #0f172a;
    --dark-2:         #1e293b;
    --dark-3:         #334155;
    --muted:          #64748b;
    --light-bg:       #f8fafc;
    --card-bg:        #ffffff;
    --border:         #e2e8f0;
    --sidebar-w:      260px;
    --topbar-h:       64px;
    --radius:         12px;
    --radius-sm:      8px;
    --shadow:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:      0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:      0 10px 40px rgba(0,0,0,.14);
    --transition:     0.2s ease;
}

/* ===== Dashboard Full-Height Two-Column Layout ===== */
.dashboard-wrapper {
    display: flex !important;
    gap: 1.5rem;
    align-items: stretch;
    min-height: calc(100vh - var(--topbar-h) - 8rem);
}

.dashboard-main {
    flex: 1;
    min-width: 0;
}

.dashboard-sidebar {
    width: 320px;
    flex-shrink: 0;
    align-self: stretch;
}

/* ===== Upcoming Events Panel ===== */
.events-panel {
    background: #ffffff !important;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: calc(var(--topbar-h) + 1.75rem);
    height: calc(100vh - var(--topbar-h) - 3.5rem);
    z-index: 10;
}

.events-panel-header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(79,70,229,0.04) 0%, rgba(14,165,233,0.04) 100%);
    flex-shrink: 0;
}

.events-panel-header .panel-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.events-panel-header .event-count {
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.events-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.event-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none !important;
    position: relative;
    margin-bottom: 0.2rem;
    border: 1px solid transparent;
}

.event-item:hover {
    background: rgba(79,70,229,0.04);
    border-color: rgba(79,70,229,0.08);
    transform: translateX(3px);
}

.event-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.2rem;
}

.event-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark) !important;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.event-meta span {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-event-action {
    flex: 1;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-transform: uppercase;
}

.btn-event-join { background: var(--primary) !important; color: #fff !important; }
.btn-event-invite { background: #25d366 !important; color: #fff !important; }
.btn-event-pay { background: var(--secondary) !important; color: #fff !important; }

.event-date-group {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    padding: 0.5rem 0.75rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date-group::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

@media (max-width: 991.98px) {
    .dashboard-wrapper { flex-direction: column !important; }
    .dashboard-sidebar { width: 100% !important; margin-top: 1.5rem; }
    .events-panel { height: auto !important; position: static !important; }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; scroll-behavior: smooth; }

body.nwc-app {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--light-bg);
    color: var(--dark-3);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---------- Auth Pages ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--primary-dark) 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(79,70,229,.4);
}

.auth-logo h4 {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.4rem;
    margin: 0;
}

.auth-logo p { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }

.auth-card .form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: .65rem 1rem;
    font-size: .95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
    outline: none;
}

.btn-primary-grad {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: .7rem 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    width: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(79,70,229,.35);
}

.btn-primary-grad:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,70,229,.5);
    color: #fff;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    background: var(--dark);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: transform var(--transition);
    padding-bottom: 40px; /* Safe area for mobile bottoms */
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    color: #fff;
}

.sidebar-user {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.2);
    flex-shrink: 0;
}

.sidebar-username {
    font-size: .9rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Sidebar Badge Enhancements */
.sidebar-user .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* Primary role badge (Member / Admin / Participant) */
.sidebar-user .badge.bg-primary {
    background: #4f46e5 !important;
    border: 1px solid #6366f1;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Leader badge */
.sidebar-user .badge.bg-warning {
    background: #f59e0b !important;
    color: #1e1e2e !important;
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* Team name badge */
.sidebar-user .badge.bg-success-subtle {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

/* Custom role badge (member) */
.sidebar-user .badge.bg-info-subtle {
    background: rgba(14, 165, 233, 0.2) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.35) !important;
}

/* Custom role badge (leader) */
.sidebar-user .badge.bg-info {
    background: rgba(14, 165, 233, 0.2) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.35) !important;
}

.sidebar-role { font-size: .7rem; margin-top: .25rem; }

.sidebar-nav {
    list-style: none;
    padding: .75rem 0;
    margin: 0;
}

.sidebar-nav .nav-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 1rem 1.5rem .3rem;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.5rem;
    color: #94a3b8;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
}

.sidebar-nav li a i { font-size: 1rem; flex-shrink: 0; }

.sidebar-nav li a:hover { color: #fff; background: rgba(255,255,255,.07); }

.sidebar-nav li.active a {
    color: #fff;
    background: var(--primary);
}

.sidebar-nav li a .badge { margin-left: auto; }

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.btn-logout {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: .875rem;
    font-weight: 500;
    transition: color var(--transition);
    padding: .5rem;
}

.btn-logout:hover { color: var(--danger); }

/* ---------- Main Content Area ---------- */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    padding: 1.75rem;
    flex: 1 0 auto; /* This pushes the footer down */
}

.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    gap: 1rem;
    z-index: 500;
    box-shadow: var(--shadow);
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    flex-grow: 1;
}

.topbar .topbar-actions { display: flex; align-items: center; gap: .75rem; }

.topbar-btn {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-3);
    font-size: 1.05rem;
    position: relative;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.topbar-btn:hover { border-color: var(--primary); background: #f0f0ff; }

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.page-content {
    padding: 1.75rem;
    flex-grow: 1;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    font-size: .95rem;
    color: var(--dark);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary   { background: rgba(79,70,229,.12);  color: var(--primary); }
.stat-icon.success   { background: rgba(34,197,94,.12);  color: var(--success); }
.stat-icon.warning   { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-icon.info      { background: rgba(14,165,233,.12); color: var(--secondary); }
.stat-icon.danger    { background: rgba(239,68,68,.12);  color: var(--danger); }

.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1; margin-top: .15rem; }
.stat-sub { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Tables ---------- */
.table {
    font-size: .875rem;
}

.table thead th {
    background: var(--light-bg);
    color: var(--muted);
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid var(--border);
    padding: .85rem 1rem;
    white-space: nowrap;
}

.table tbody tr:hover { background: #f8f9ff; }
.table td { padding: .85rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border); color: var(--dark-3); }

/* ---------- Badges ---------- */
.badge {
    font-size: .72rem;
    padding: .35em .65em;
    font-weight: 600;
    border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 500; font-size: .875rem; transition: all var(--transition); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Member Card ---------- */
.member-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.member-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); margin-bottom: .85rem; }

.member-card .member-name { font-weight: 700; color: var(--dark); font-size: .95rem; }
.member-card .member-biz  { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.member-card .member-role { font-size: .7rem; margin-top: .4rem; }

/* ---------- Alert Flash ---------- */
.alert { border-radius: var(--radius-sm); border: none; font-size: .9rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .875rem; color: var(--dark-3); margin-bottom: .35rem; }
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem 1rem;
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    outline: none;
}

/* ---------- Page Header ---------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.page-header .breadcrumb { font-size: .82rem; margin: 0; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: .4;
}

.empty-state h5 { font-weight: 700; color: var(--dark-3); margin-bottom: .5rem; }
.empty-state p  { font-size: .9rem; max-width: 360px; margin: 0 auto; }

/* ---------- Notification Items ---------- */
.notif-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    transition: background var(--transition);
    cursor: pointer;
}
.notif-item:hover { background: #f8f9ff; }
.notif-item.unread { background: #f0f4ff; }
.notif-item .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: .4rem;
}
.notif-item .notif-body { flex-grow: 1; }
.notif-item .notif-title { font-weight: 600; font-size: .875rem; color: var(--dark); }
.notif-item .notif-msg   { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.notif-item .notif-time  { font-size: .75rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Invite Box ---------- */
.invite-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.invite-box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.invite-link {
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    font-family: monospace;
    font-size: .95rem;
    letter-spacing: .5px;
    word-break: break-all;
    color: #fff;
    border: 1.5px dashed rgba(255,255,255,.4);
    margin-top: 1rem;
}

/* ---------- App Footer ---------- */
.app-footer { background: #fff; border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
/* ---------- Mobile Modernization (Premium) ---------- */
.sidebar-overlay { 
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(8px); z-index: 1045; cursor: pointer;
}
.sidebar-overlay.active { display: block; }

.mobile-header { 
    display: none; padding: 15px 25px; background: #fff; 
    border-bottom: 1px solid #f1f5f9; position: sticky; top: 0; z-index: 1001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

@media (max-width: 991px) {
    .mobile-header { display: flex; align-items: center; justify-content: space-between; }
    
    /* Global Mobile Layout Fix - Guaranteed Fallback */
    body.nwc-app > .d-flex { flex-direction: column !important; min-height: 100vh; }
    .dashboard-container { flex-direction: column !important; }
    .d-flex.layout-wrapper { flex-direction: column !important; }

    .mobile-header { 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        width: 100% !important;
    }
    .sidebar { 
        position: fixed !important; transform: none !important;
        left: -280px !important; top: 0 !important; bottom: 0 !important; 
        width: 280px !important; visibility: hidden !important; opacity: 0 !important;
        z-index: 9999 !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .sidebar.active { left: 0 !important; visibility: visible !important; opacity: 1 !important; box-shadow: 20px 0 60px rgba(0,0,0,0.2) !important; }
    
    .main-content { 
        margin-left: 0 !important; 
        width: 100% !important; 
        display: flex; 
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .sidebar { transform: none !important; }
    .main-content { margin-left: 0 !important; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------- Print ---------- */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
}
/* ---------- Activities Section ---------- */
.activities-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-2);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.activity-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(79,70,229,0.05) 0%, rgba(79,70,229,0) 100%);
    border-radius: 0 0 0 100%;
}

.activity-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.activity-card .card-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.activity-card .card-desc {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5;
}

.activity-card .card-status {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-card .pending-badge {
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 20px;
}

.meeting-card .card-icon { background: rgba(14, 165, 233, 0.1); color: var(--secondary); }
.activity-card.placeholder {
    border: 2px dashed var(--border);
    background: transparent;
    box-shadow: none;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

@media (max-width: 992px) {
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .activity-grid { grid-template-columns: 1fr; }
}

/* ===== Dashboard Two-Column Layout ===== */
.dashboard-wrapper { display: flex; gap: 1.5rem; align-items: stretch; min-height: calc(100vh - var(--topbar-h) - 8rem); }
.dashboard-main { flex: 1; min-width: 0; }
.dashboard-sidebar { width: 320px; flex-shrink: 0; align-self: stretch; }

/* ===== Upcoming Events Panel ===== */
.events-panel { background: #ffffff; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,0.06); display: flex; flex-direction: column; overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 1.75rem); height: calc(100vh - var(--topbar-h) - 3.5rem); }
.events-panel-header { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(79,70,229,0.04) 0%, rgba(14,165,233,0.04) 100%); flex-shrink: 0; }
.events-panel-header .panel-title { font-size: 0.95rem; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 0.5rem; }
.events-panel-header .event-count { background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 20px; min-width: 20px; text-align: center; }
.events-panel-body { flex: 1; overflow-y: auto; padding: 0.5rem; }

.event-item { display: flex; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 12px; transition: all 0.25s ease; text-decoration: none !important; position: relative; margin-bottom: 0.2rem; border: 1px solid transparent; }
.event-item:hover { background: rgba(79,70,229,0.04); border-color: rgba(79,70,229,0.08); transform: translateX(3px); }
.event-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; position: relative; }
.event-details { flex: 1; min-width: 0; }
.event-label { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 0.12rem 0.45rem; border-radius: 4px; display: inline-block; margin-bottom: 0.2rem; }
.event-title-link { text-decoration: none !important; display: block; }
.event-title-link:hover .event-title { color: var(--primary); }
.event-title { font-size: 0.88rem; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 0.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.event-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.1rem; }
.event-meta span { font-size: 0.72rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }
.event-meta i { font-size: 0.65rem; }
.event-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn-event-action { flex: 1; font-size: 0.65rem; font-weight: 700; padding: 0.4rem 0.5rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 0.35rem; transition: all 0.2s; text-transform: uppercase; }
.btn-event-join { background: var(--primary); color: #fff !important; }
.btn-event-join:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-event-invite { background: #25d366; color: #fff !important; }
.btn-event-invite:hover { background: #128c7e; transform: translateY(-1px); }
.btn-event-pay { background: var(--secondary); color: #fff !important; }
.btn-event-pay:hover { background: #0284c7; transform: translateY(-1px); }
.badge-paid { background: rgba(79, 70, 229, 0.08); color: var(--primary) !important; border: 1px solid rgba(79, 70, 229, 0.15); font-size: 0.55rem; padding: 0.15rem 0.45rem; font-weight: 700; }
.event-date-group { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); padding: 0.5rem 0.75rem 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.event-date-group::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.events-empty { text-align: center; padding: 3rem 1.25rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.events-empty i { font-size: 2.5rem; opacity: 0.2; display: block; margin-bottom: 0.75rem; }
.events-empty h6 { font-weight: 700; color: var(--dark-3); font-size: 0.9rem; margin-bottom: 0.3rem; }
.events-empty p { font-size: 0.78rem; line-height: 1.5; }
.event-today .event-icon::before { content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; background: #22c55e; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (max-width: 991.98px) { .dashboard-wrapper { flex-direction: column; } .dashboard-sidebar { width: 100%; } .events-panel { height: auto; position: static; } }


