/* ============================================================
   TPCG.com – LinkedIn-inspired UI
   Clean, flat, professional. No gradients.
   ============================================================ */

:root {
    --primary: #0a66c2;
    --primary-dark: #004182;
    --primary-light: #e8f0f9;
    --bg: #f3f2ef;
    --card: #ffffff;
    --border: rgba(0,0,0,0.12);
    --border-solid: #e0dfdc;
    --text: #1d1d1d;
    --text-muted: #666666;
    --text-light: #999999;
    --success: #057642;
    --success-bg: #f0faf4;
    --danger: #cc1016;
    --danger-bg: #fff0f0;
    --warning: #b26b00;
    --warning-bg: #fff8ed;
    --shadow-xs: 0 0 0 1px var(--border), 0 1px 2px rgba(0,0,0,0.08);
    --shadow: 0 0 0 1px var(--border), 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12), 0 0 0 1px var(--border);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 1px var(--border);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 10px;
    --radius-pill: 2rem;
    --transition: 0.15s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-height: 52px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font); }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }

/* ── Flash Messages ── */
.flash-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
    white-space: nowrap;
    max-width: 480px;
}
.flash-success { background: #057642; color: white; }
.flash-error { background: var(--danger); color: white; }
.flash-info { background: var(--primary); color: white; }
.flash-message button { background: none; border: none; color: inherit; opacity: 0.7; margin-left: 8px; cursor: pointer; padding: 0; }

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--card);
    border-bottom: 1px solid var(--border-solid);
    height: var(--nav-height);
}
.nav-container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 4px;
}
.logo-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.logo-dot { color: var(--primary); }

.nav-search {
    position: relative;
    flex: 1;
    max-width: 280px;
}
.nav-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}
.nav-search input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: #eef3f8;
    font-size: 0.875rem;
    color: var(--text);
    outline: none;
    transition: background var(--transition);
}
.nav-search input:focus { background: #dce6f1; }
.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    overflow: hidden;
}
.search-dropdown.show { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text);
}
.search-result-item:hover { background: #f9f9f9; text-decoration: none; }
.search-result-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: color var(--transition);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.nav-link i { font-size: 1.1rem; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--text); border-bottom-color: var(--text); }
.badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 9px;
    min-width: 14px;
    text-align: center;
    line-height: 12px;
}
.nav-avatar-wrap { position: relative; }
.nav-avatar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.nav-avatar-btn:hover { color: var(--text); }
.nav-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-solid);
}
.avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 220px;
    display: none;
    z-index: 200;
    overflow: hidden;
    animation: dropdownIn 0.15s ease;
}
.avatar-dropdown.show { display: block; }
.avatar-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-solid);
}
.avatar-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text);
    transition: background var(--transition);
    text-decoration: none;
}
.avatar-dropdown a:hover { background: #f9f9f9; text-decoration: none; }
.avatar-dropdown a i { width: 16px; text-align: center; color: var(--text-muted); }
.avatar-dropdown a.text-danger { color: var(--danger); }
.avatar-dropdown a.text-danger i { color: var(--danger); }
.avatar-dropdown-divider { height: 1px; background: var(--border-solid); margin: 4px 0; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    padding: 8px;
    margin-left: auto;
    cursor: pointer;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    justify-content: center;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 11px 24px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-light { background: transparent; color: var(--text-muted); border: 1.5px solid var(--text-muted); }
.btn-light:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.btn-success { background: var(--success); color: white; border: none; }
.btn-success:hover { background: #046037; color: white; }
.btn-danger { background: var(--danger); color: white; border: none; }
.btn-danger:hover { background: #a00d12; color: white; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Cards ── */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-solid);
    overflow: hidden;
}
.card-body { padding: 16px; }
.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-solid);
    font-weight: 600;
    font-size: 0.95rem;
}
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border-solid); }
.mb-16 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 20px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.5; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 36px; }
.input-icon-wrap i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.875rem; pointer-events: none; }
.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Layout ── */
.page-wrapper {
    max-width: 1128px;
    margin: 0 auto;
    padding: 20px 16px;
}
.layout-cols {
    display: grid;
    grid-template-columns: 225px 1fr 300px;
    gap: 20px;
    align-items: start;
}
.layout-cols-2 {
    display: grid;
    grid-template-columns: 225px 1fr;
    gap: 20px;
    align-items: start;
}
.sticky-sidebar { position: sticky; top: 68px; }

/* ── Dividers ── */
.divider { height: 1px; background: var(--border-solid); margin: 12px 0; }
.divider-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 14px 0;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border-solid); }

/* ── Avatars ── */
.avatar { border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }
.avatar-2xl { width: 112px; height: 112px; border: 3px solid white; box-shadow: var(--shadow); }

/* ── Pills ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 600;
}
.pill-primary { background: #dce6f1; color: var(--primary); }
.pill-success { background: #d4edda; color: var(--success); }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-gray { background: #f0f0f0; color: var(--text-muted); }
.pill-secondary { background: #e8f7f9; color: #0073b1; }

/* ── Section helpers ── */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.section-title { font-size: 1rem; font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════ */
.hero {
    background: var(--card);
    border-bottom: 1px solid var(--border-solid);
    padding: 60px 24px 80px;
}
.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--text); }
.hero-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
    background: var(--bg);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-visual-card {
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-visual-icon {
    width: 40px; height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.hero-stats-row {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat-num { font-size: 1.4rem; font-weight: 700; color: var(--primary); display: block; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }

/* Features */
.features-section { padding: 64px 24px; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-card {
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.feature-icon-primary { background: var(--primary-light); color: var(--primary); }
.feature-icon-success { background: #d4edda; color: var(--success); }
.feature-icon-warning { background: var(--warning-bg); color: var(--warning); }
.feature-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* How it works */
.how-section { padding: 64px 24px; background: var(--card); border-top: 1px solid var(--border-solid); border-bottom: 1px solid var(--border-solid); }
.how-inner { max-width: 900px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.step-card { text-align: center; padding: 20px; }
.step-num {
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto 14px;
}
.step-card h4 { margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* CTA */
.cta-section { padding: 64px 24px; text-align: center; background: var(--primary); }
.cta-section h2 { color: white; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 0.95rem; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #f0f4f9; color: var(--primary); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: white; }

/* ══════════════════════════════════════════
   DASHBOARD / FEED
══════════════════════════════════════════ */
.profile-sidebar-card .cover-photo {
    height: 60px;
    background: #a0b4b7;
}
.profile-sidebar-body { padding: 0 16px 16px; text-align: center; }
.profile-sidebar-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin: -36px auto 10px;
    display: block;
}
.profile-sidebar-name { font-size: 0.9375rem; font-weight: 700; margin-bottom: 3px; }
.profile-sidebar-name a { color: var(--text); text-decoration: none; }
.profile-sidebar-name a:hover { color: var(--primary); text-decoration: underline; }
.profile-sidebar-headline { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.sidebar-stats { border-top: 1px solid var(--border-solid); }
.sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    color: var(--text);
}
.sidebar-stat:hover { background: #f9f9f9; text-decoration: none; }
.sidebar-stat-label { color: var(--text-muted); }
.sidebar-stat-num { font-weight: 700; color: var(--text); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }

/* Feed posts */
.feed-post {
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
}
.post-header { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.post-meta { flex: 1; }
.post-name { font-weight: 600; font-size: 0.875rem; line-height: 1.3; }
.post-name a { color: var(--text); }
.post-name a:hover { color: var(--primary); text-decoration: underline; }
.post-headline { font-size: 0.78rem; color: var(--text-muted); }
.post-time { font-size: 0.72rem; color: var(--text-light); margin-top: 1px; }
.post-body { padding: 10px 16px 12px; font-size: 0.875rem; line-height: 1.6; color: var(--text); }
.post-divider { height: 1px; background: var(--border-solid); margin: 0 16px; }
.post-actions { display: flex; padding: 4px 8px; }
.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.post-action-btn:hover { background: #f3f2ef; color: var(--text); }
.post-action-btn i { font-size: 1rem; }

/* Compose box */
.compose-box { padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.compose-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font);
    transition: border-color var(--transition);
    outline: none;
}
.compose-input:hover { border-color: var(--text); }
.compose-actions { display: flex; padding: 4px 16px 10px; gap: 4px; }
.compose-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition);
}
.compose-action-btn:hover { background: #f3f2ef; color: var(--text); }

/* ── Network / People ── */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.person-card {
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: box-shadow var(--transition);
}
.person-card:hover { box-shadow: var(--shadow-md); }
.person-card-cover { height: 52px; background: #a0b4b7; }
.person-card-body { padding: 0 16px 16px; }
.person-card-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    margin: -30px auto 8px;
    display: block;
}
.person-card-name { font-weight: 600; font-size: 0.875rem; margin-bottom: 3px; line-height: 1.3; }
.person-card-name a { color: var(--text); text-decoration: none; }
.person-card-name a:hover { color: var(--primary); text-decoration: underline; }
.person-card-title { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.3; min-height: 28px; }

/* ── Opportunities ── */
.opportunity-card {
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    gap: 14px;
    transition: box-shadow var(--transition);
}
.opportunity-card:hover { box-shadow: var(--shadow-md); }
.opp-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.opp-body { flex: 1; min-width: 0; }
.opp-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 3px; color: var(--text); }
.opp-title:hover { color: var(--primary); }
.opp-company { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.opp-meta i { margin-right: 3px; }
.opp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.opp-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; }
.opp-time { font-size: 0.72rem; color: var(--text-light); white-space: nowrap; }

/* ── Messages ── */
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: calc(100vh - 88px);
    min-height: 480px;
}
.messages-list { border-right: 1px solid var(--border-solid); overflow-y: auto; }
.messages-list-header { padding: 14px 16px; border-bottom: 1px solid var(--border-solid); font-weight: 700; font-size: 1.1rem; }
.message-thread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-solid);
}
.message-thread-item:hover { background: #f9f9f9; }
.message-thread-item.active { background: #eef3f8; }
.message-thread-item.unread .thread-name { font-weight: 700; }
.thread-meta { flex: 1; min-width: 0; }
.thread-name { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-preview { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-time { font-size: 0.68rem; color: var(--text-light); }
.thread-unread-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }
.chat-area { display: flex; flex-direction: column; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border-solid); display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f9f9f9; }
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--text-muted); gap: 10px; background: white; }
.chat-empty i { font-size: 2.5rem; color: var(--border-solid); }
.msg-bubble { max-width: 72%; }
.msg-sent { align-self: flex-end; }
.msg-received { align-self: flex-start; }
.msg-text { padding: 9px 13px; border-radius: 14px; font-size: 0.875rem; line-height: 1.5; word-wrap: break-word; }
.msg-sent .msg-text { background: #0073b1; color: white; border-bottom-right-radius: 3px; }
.msg-received .msg-text { background: white; color: var(--text); border: 1px solid var(--border-solid); border-bottom-left-radius: 3px; }
.msg-time { font-size: 0.68rem; color: var(--text-light); margin-top: 3px; }
.msg-sent .msg-time { text-align: right; }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border-solid); display: flex; gap: 8px; background: white; }
.chat-input-area input {
    flex: 1;
    padding: 9px 13px;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition);
}
.chat-input-area input:focus { border-color: var(--primary); }

/* ── Profile Page ── */
.profile-cover {
    height: 200px;
    background: #a0b4b7;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}
.profile-avatar-section {
    padding: 0 24px;
    margin-top: -56px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.profile-info-section { padding: 14px 24px 20px; }
.profile-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.profile-headline { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-muted); }
.skills-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border-solid);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.skill-tag:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.skill-level { color: var(--text-light); font-size: 0.68rem; }

/* ── AI Agent ── */
.ai-hero {
    text-align: center;
    padding: 48px 24px 32px;
    background: var(--card);
    border-bottom: 1px solid var(--border-solid);
    margin-bottom: 20px;
}
.ai-hero-icon {
    width: 64px; height: 64px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 16px;
}
.ai-feature-list { display: flex; flex-direction: column; gap: 8px; }
.ai-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.ai-feature-item:hover { background: #f9f9f9; }
.ai-feature-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.ai-feature-text strong { font-size: 0.8125rem; display: block; margin-bottom: 2px; }
.ai-feature-text span { font-size: 0.75rem; color: var(--text-muted); }
.ai-chat-box { background: var(--card); border: 1px solid var(--border-solid); border-radius: var(--radius-lg); overflow: hidden; }
.ai-chat-header { padding: 12px 16px; background: var(--primary); color: white; display: flex; align-items: center; gap: 10px; }
.ai-online-dot { width: 7px; height: 7px; background: #5be584; border-radius: 50%; }
.ai-messages { height: 280px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f9f9f9; }
.ai-msg { display: flex; gap: 8px; }
.ai-msg-bot { flex-direction: row; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; flex-shrink: 0; }
.ai-msg-text { padding: 8px 12px; border-radius: 12px; font-size: 0.8125rem; max-width: 80%; line-height: 1.5; }
.ai-msg-bot .ai-msg-text { background: white; border: 1px solid var(--border-solid); color: var(--text); border-bottom-left-radius: 2px; }
.ai-msg-user .ai-msg-text { background: var(--primary); color: white; border-bottom-right-radius: 2px; }
.ai-typing { display: flex; gap: 4px; align-items: center; }
.ai-typing span { width: 6px; height: 6px; background: var(--text-light); border-radius: 50%; animation: typingBounce 1.4s ease infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
.ai-chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border-solid); }
.ai-chat-input input { flex: 1; padding: 9px 12px; border: 1px solid var(--border-solid); border-radius: var(--radius-pill); font-size: 0.875rem; outline: none; transition: border-color var(--transition); }
.ai-chat-input input:focus { border-color: var(--primary); }

/* ── Auth Pages ── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.auth-left {
    background: var(--primary);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}
.auth-left h2 { color: white; font-size: 1.8rem; margin-bottom: 12px; }
.auth-left p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6; }
.auth-left-stats { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.auth-left-stat { display: flex; align-items: center; gap: 12px; }
.auth-left-stat-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.auth-left-stat-text strong { display: block; font-size: 0.875rem; }
.auth-left-stat-text span { font-size: 0.78rem; opacity: 0.75; }
.auth-right {
    background: white;
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-logo { margin-bottom: 24px; }
.auth-logo .logo-icon { margin-bottom: 12px; }
.auth-logo h2 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-logo p { color: var(--text-muted); font-size: 0.875rem; }

/* ── About Page ── */
.about-hero {
    background: var(--card);
    border-bottom: 1px solid var(--border-solid);
    padding: 64px 24px;
    text-align: center;
}
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.value-card { background: var(--card); border: 1px solid var(--border-solid); border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: box-shadow var(--transition); }
.value-card:hover { box-shadow: var(--shadow-md); }
.value-icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ── Notifications ── */
.notification-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-solid); cursor: pointer; transition: background var(--transition); }
.notification-item:hover { background: #f9f9f9; }
.notification-item.unread { background: #eef3f8; }
.notification-item.unread:hover { background: #dce6f1; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.notif-icon-connection { background: var(--primary-light); color: var(--primary); }
.notif-icon-message { background: #d4edda; color: var(--success); }
.notif-icon-opportunity { background: var(--warning-bg); color: var(--warning); }
.notif-content { flex: 1; }
.notif-text { font-size: 0.8125rem; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
.notif-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* ── Tabs / Filters ── */
.tab-bar { display: flex; border-bottom: 1px solid var(--border-solid); margin-bottom: 16px; background: var(--card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; width: 100%; }
.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--text); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filter-select { padding: 7px 12px; border: 1px solid var(--border-solid); border-radius: var(--radius-sm); font-size: 0.8125rem; background: white; color: var(--text); cursor: pointer; outline: none; }
.filter-select:focus { border-color: var(--primary); }

/* ── Footer ── */
.site-footer { background: var(--card); border-top: 1px solid var(--border-solid); padding: 40px 24px 0; margin-top: 40px; }
.footer-container { max-width: 1128px; margin: 0 auto; display: grid; grid-template-columns: 2fr 3fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.6; max-width: 260px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 32px; height: 32px; border: 1px solid var(--border-solid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-col h4 { font-size: 0.8125rem; margin-bottom: 12px; color: var(--text); }
.footer-col a { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; transition: color var(--transition); text-decoration: none; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border-solid); padding: 16px 0; text-align: center; font-size: 0.75rem; color: var(--text-light); max-width: 1128px; margin: 0 auto; }

/* ── Utilities ── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.animate-in { animation: fadeInUp 0.4s ease both; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .layout-cols { grid-template-columns: 200px 1fr; }
    .layout-cols > *:last-child { display: none; }
}
@media (max-width: 768px) {
    .layout-cols, .layout-cols-2 { grid-template-columns: 1fr; }
    .layout-cols > *:first-child, .layout-cols-2 > *:first-child { display: none; }
    .nav-search { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border-solid);
        box-shadow: var(--shadow-lg);
        padding: 8px;
        flex-direction: column;
        z-index: 999;
    }
    .nav-menu.open { display: flex; }
    .nav-link { flex-direction: row; justify-content: flex-start; padding: 11px 14px; font-size: 0.875rem; border-bottom: none; border-radius: var(--radius-sm); }
    .nav-link.active { background: var(--primary-light); color: var(--primary); border-bottom: none; }
    .nav-link i { font-size: 1rem; }
    .nav-avatar-btn { flex-direction: row; font-size: 0.875rem; padding: 11px 14px; border-bottom: none; }
    .avatar-dropdown { position: static; width: 100%; border-radius: var(--radius-sm); box-shadow: none; border: 1px solid var(--border-solid); margin-top: 4px; animation: none; }
    .messages-layout { grid-template-columns: 1fr; }
    .messages-list { display: none; }
    .messages-layout.show-list .messages-list { display: block; }
    .messages-layout.show-list .chat-area { display: none; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 40px 24px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .opportunity-card { flex-direction: column; }
    .opp-actions { flex-direction: row; }
    .profile-avatar-section { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .people-grid { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: column; }
    .tab-bar { overflow-x: auto; }
}
