/* =============================================
   PAYBOARD ADVISORY PROGRAM — Design System
   Premium dark theme, glassmorphism, neon accents
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #050a18;
    --bg-surface: #0a0f1e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-elevated: rgba(255, 255, 255, 0.06);
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #22c55e;
    --neon-gold: #fbbf24;
    --neon-red: #ef4444;
    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    --text-white: #f8fafc;
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.25);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass: rgba(10, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

::selection {
    background: var(--neon-blue);
    color: #000;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.4);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.gap-lg {
    gap: 24px;
}

.gap-xl {
    gap: 40px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.nav-brand-text span {
    color: var(--neon-blue);
}

.nav-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-white);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.nav-user-role {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-user-role.admin {
    background: rgba(251, 191, 36, 0.1);
    color: var(--neon-gold);
}

.nav-user-role.super_admin {
    background: rgba(236, 72, 153, 0.1);
    color: var(--neon-pink);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    cursor: pointer;
}

.nav-logout {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.nav-logout:hover {
    color: var(--neon-red);
    border-color: rgba(239, 68, 68, 0.3);
}

/* === AVATAR DROPDOWN === */
.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    display: none;
    z-index: 1000;
    animation: fadeSlideUp 0.15s ease-out;
}

.avatar-dropdown.show {
    display: block;
}

.avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin: 0 5px;
    border-radius: 7px;
    transition: var(--transition);
}

.avatar-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text-white);
}

.avatar-dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.avatar-dropdown-item.logout {
    color: var(--text-dim);
}

.avatar-dropdown-item.logout:hover {
    color: var(--neon-red);
    background: rgba(239, 68, 68, 0.1);
}

.avatar-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* === SIDEBAR LAYOUT === */
.app-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.sidebar {
    width: 260px;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding: 0 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    color: var(--text-white);
    background: var(--bg-elevated);
}

.sidebar-link.active {
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
}

.sidebar-link i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.sidebar-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: calc(100vh - 70px);
}

/* === PAGE HEADER === */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.page-breadcrumb a {
    color: var(--text-muted);
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === STATS CARDS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 12px;
}

.stat-icon.blue {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--neon-purple);
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--neon-green);
}

.stat-icon.gold {
    background: rgba(251, 191, 36, 0.1);
    color: var(--neon-gold);
}

.stat-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--neon-pink);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === EXPERT CARDS === */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.expert-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

.expert-card-header {
    position: relative;
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.expert-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.expert-title {
    font-size: 0.85rem;
    color: var(--neon-blue);
    font-weight: 500;
}

.expert-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.expert-card-body {
    padding: 0 24px 24px;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    justify-content: center;
}

.expert-tag {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.1);
    color: var(--neon-purple);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.expert-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.expert-reason {
    padding: 16px;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.06);
    border-radius: var(--radius-md);
}

.expert-reason-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-gold);
    margin-bottom: 6px;
}

.expert-reason p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.expert-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.company-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--neon-blue);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(168, 85, 247, 0.25));
    border-color: var(--neon-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--neon-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.25));
    border-color: var(--neon-gold);
    color: #fff;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--neon-red);
}

.btn-danger:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-white);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-xl {
    padding: 18px 48px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.07);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select option {
    background: var(--bg-surface);
    color: var(--text-white);
}

.form-error {
    font-size: 0.8rem;
    color: var(--neon-red);
    margin-top: 4px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* === ALERT MESSAGES === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: var(--neon-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--neon-red);
}

.alert-info {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: var(--neon-gold);
}

/* === ACTIVITY FEED === */
.activity-feed {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.activity-icon.invite {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
}

.activity-icon.document {
    background: rgba(168, 85, 247, 0.1);
    color: var(--neon-purple);
}

.activity-icon.comment {
    background: rgba(34, 197, 94, 0.1);
    color: var(--neon-green);
}

.activity-icon.meeting {
    background: rgba(251, 191, 36, 0.1);
    color: var(--neon-gold);
}

.activity-icon.join {
    background: rgba(236, 72, 153, 0.1);
    color: var(--neon-pink);
}

.activity-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.activity-text strong {
    color: var(--text-white);
    font-weight: 600;
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* === DOCUMENT LIST === */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.doc-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.doc-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.1);
    color: var(--neon-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.doc-icon.pdf {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.doc-icon.pptx {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.doc-icon.docx {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.doc-info {
    flex: 1;
}

.doc-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.doc-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.doc-actions {
    display: flex;
    gap: 8px;
}

/* === DOCUMENT VIEWER === */
.doc-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.doc-viewer-overlay.active {
    display: flex;
}

.doc-viewer-header {
    padding: 16px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-viewer-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.doc-viewer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.doc-viewer-iframe {
    flex: 1;
    border: none;
    background: #fff;
}

.doc-viewer-sidebar {
    width: 360px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.doc-comments-header {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.doc-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.doc-comment {
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.doc-comment-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-blue);
    margin-bottom: 4px;
}

.doc-comment-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.doc-comment-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.doc-comment-form {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.login-logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
    animation: iconFloat 6s ease-in-out infinite alternate;
}

/* === MEETING CARD === */
.meeting-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.meeting-card:hover {
    border-color: var(--border-hover);
}

.meeting-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.meeting-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.meeting-status {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.meeting-status.scheduled {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
}

.meeting-status.live {
    background: rgba(34, 197, 94, 0.15);
    color: var(--neon-green);
    animation: live-pulse 2s ease-in-out infinite;
}

.meeting-status.completed {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.meeting-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meeting-meta i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
    color: var(--text-dim);
}

/* === JITSI CONTAINER === */
.jitsi-container {
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-blue);
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.timeline-week {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon-blue);
    margin-bottom: 6px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-tasks {
    list-style: none;
}

.timeline-tasks li {
    position: relative;
    padding-left: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-tasks li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

/* === LOGIN PAGE === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 60%);
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 48px;
    background: var(--glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    text-align: center;
    z-index: 1;
}

.login-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-logo span {
    color: var(--neon-blue);
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.login-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.6;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.1em;
    outline: none;
    transition: var(--transition);
    appearance: none;
}

.login-input:focus {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.login-input::placeholder {
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 0;
    font-size: 0.9rem;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.token-display {
    padding: 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.token-display code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-blue);
    letter-spacing: 0.05em;
}

/* === INVITE PAGE === */
.invite-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.invite-card {
    width: 100%;
    max-width: 600px;
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    z-index: 1;
}

.nda-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.nda-content h3 {
    color: var(--text-white);
    margin: 16px 0 8px;
    font-size: 0.95rem;
}

.nda-content h3:first-child {
    margin-top: 0;
}

.nda-content strong {
    color: var(--text-white);
    font-weight: 600;
    display: block;
}

.nda-content p {
    margin-bottom: 10px;
}

.nda-content ul {
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.nda-content ul li {
    padding-left: 10px;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.signature-pad {
    width: 100%;
    height: 100px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    cursor: crosshair;
}

.signature-typed {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--neon-blue);
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 1.4rem;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.signature-typed:focus {
    border-color: rgba(0, 212, 255, 0.3);
}

/* === LOADING === */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 24, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--neon-red);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

/* === UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-blue {
    color: var(--neon-blue);
}

.text-gold {
    color: var(--neon-gold);
}

.text-green {
    color: var(--neon-green);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 24px;
}

.mt-xl {
    margin-top: 40px;
}

.mb-sm {
    margin-bottom: 8px;
}

.mb-md {
    margin-bottom: 16px;
}

.mb-lg {
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experts-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 24px;
    }

    .invite-card {
        padding: 32px 24px;
    }

    .doc-viewer-sidebar {
        display: none;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-user-name {
        display: none;
    }
}