* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --blue: #0a66c2;
    --blue-dark: #004182;
    --blue-light: #e8f0fe;
    --gold: #e7a33e;
    --bg: #f4f2ee;
    --bg-card: #fff;
    --text: #1F4381;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #e0dfdb;
    --radius: 8px;
    --shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
    --hover-bg: #f0f0f0;
    --input-bg: #eef3f8;
    --nav-border: #e0dfdb;
    --svg-fill: currentColor;
}
[data-theme="dark"] {
    --blue: #378fe9;
    --blue-dark: #569ce8;
    --blue-light: #1a2a3a;
    --gold: #e7a33e;
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --text: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #707080;
    --border: #2a2a4a;
    --shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 2px 8px rgba(0,0,0,0.4);
    --hover-bg: #1e2a4a;
    --input-bg: #1a1a2e;
    --nav-border: #2a2a4a;
    --svg-fill: currentColor;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Splash Page */
.splash-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #E1E3E7;
    color: var(--blue-dark);
}
.splash-title {
    text-align: center;
    padding: 2rem 1rem 1rem;
}
.splash-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0;
    line-height: 1.2;
}
.splash-body {
    display: flex;
    flex: 1;
}
.splash-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.splash-left video {
    width: 650px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.splash-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}
.splash-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.splash-cta .btn { min-width: 180px; }
.splash-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 960px;
}
.splash-feature {
    flex: 1;
    max-width: 300px;
    text-align: left;
}
.splash-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}
.splash-feature p {
    font-size: 0.9rem;
    color: var(--blue-dark);
    line-height: 1.5;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .splash-body { flex-direction: column; }
    .splash-left video { width: 100%; max-width: 400px; }
    .splash-right { padding: 2rem; }
    .splash-title h1 { font-size: 1.75rem; }
    .splash-features { flex-direction: column; align-items: center; }
}

/* Navbar */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0.25rem 1.5rem;
}
.nav-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-row-bottom {
    display: flex;
    align-items: center;
    padding-top: 0;
    margin-top: -0.25rem;
    width: 100%;
}
.nav-left {
    flex-shrink: 0;
    width: 200px;
}
.nav-logo {
    display: flex;
    align-items: center;
}
.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.nav-row-bottom .nav-search-wrap {
    margin-left: auto;
}
.nav-row-bottom .nav-search-form {
    display: flex;
    max-width: none;
}
.nav-row-bottom .nav-search-form input {
    max-width: 480px;
}
.nav-search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--input-bg);
    font-size: 0.875rem;
    width: 100%;
}
.nav-right-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 0.5rem;
    color: #1F4381;
    font-size: 0.6875rem;
    min-height: 52px;
    justify-content: center;
    border-bottom: 2px solid transparent;
    text-decoration: none !important;
}
.nav-item svg { fill: #1F4381; width: 22px; height: 22px; }
.nav-item span { line-height: 1; }
.nav-item:hover, .nav-item.active { color: #2D7AA3; border-bottom-color: #2D7AA3; }
.nav-item:hover svg, .nav-item.active svg { fill: #2D7AA3; }
[data-theme="dark"] .nav-item { color: #fff; }
[data-theme="dark"] .nav-item svg { fill: #fff; }
[data-theme="dark"] .nav-item:hover, [data-theme="dark"] .nav-item.active { color: #fff; border-bottom-color: #fff; }
[data-theme="dark"] .nav-item:hover svg, [data-theme="dark"] .nav-item.active svg { fill: #fff; }
.ad-card { margin-bottom: 1rem; text-align: center; }
.ad-card img { max-width: 250px; height: 250px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.nav-right { margin-left: auto; }
.badge {
    background: var(--blue);
    color: #fff;
    font-size: 0.625rem;
    padding: 1px 5px;
    border-radius: 10px;
    position: absolute;
    top: 4px;
    right: 4px;
}
.btn-logout {
    padding: 0.375rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #1F4381;
    font-size: 0.8125rem;
    text-decoration: none !important;
}
.btn-logout:hover { border-color: #2D7AA3; color: #2D7AA3; }
[data-theme="dark"] .btn-logout { color: #fff; border-color: var(--border); }
[data-theme="dark"] .btn-logout:hover { color: #fff; border-color: #fff; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    text-decoration: none !important;
    gap: 0.5rem;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { color: #c00; }

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--bg);
}
.auth-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}
.auth-card-wide { max-width: 500px; }
.auth-card h1 { font-size: 2rem; font-weight: 500; margin-bottom: 0.5rem; }
.auth-card .subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: border-color 0.15s;
}
.input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}
textarea.input { resize: vertical; min-height: 80px; }
select.input { appearance: auto; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.alert-error { background: #fdecea; color: #c00; border: 1px solid #f5c6cb; }

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Landing */
.landing { background: var(--bg-card); min-height: calc(100vh - 52px); }
.landing-hero {
    max-width: 1128px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
    gap: 3rem;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.2;
    max-width: 500px;
}
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; }
.landing-features {
    max-width: 1128px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 1.5rem;
}
.feature-card { text-align: center; padding: 1.5rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; }

/* Feed Layout */
.feed-layout {
    max-width: 1128px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 225px 1fr 300px;
    gap: 1.5rem;
}

/* Left Sidebar */
.left-sidebar .profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
}
.profile-banner { height: 56px; }
.profile-avatar {
    margin-top: -32px;
    margin-bottom: 0.5rem;
}
.profile-avatar img, .profile-avatar-lg img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.profile-info { padding: 0 1rem 1rem; }
.profile-info h3 { font-size: 0.9375rem; }
.profile-info h3 a { color: var(--text); }
.profile-info p { font-size: 0.75rem; color: var(--text-secondary); }
.profile-stats {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}
.profile-stats .stat {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}
.profile-stats .stat .num { color: var(--text); font-weight: 600; }

/* Feed Main */
.feed-main { min-width: 0; }

/* Post Creator */
.post-creator {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1rem;
}
.post-creator form { display: flex; gap: 0.75rem; }
.creator-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.creator-input { flex: 1; }
.creator-input textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    resize: none;
    font-family: inherit;
}
.creator-input textarea:focus { outline: none; border-color: var(--blue); }
.creator-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
.upload-btn { cursor: pointer; color: var(--text-muted); padding: 0.25rem; }
.upload-btn:hover { color: var(--blue); }

/* Feed Post */
.feed-post {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1rem;
}
.post-header { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.post-avatar img, .post-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.post-author { flex: 1; }
.post-author strong { display: block; font-size: 0.875rem; }
.post-author span { display: block; font-size: 0.75rem; color: var(--text-secondary); }
.post-author small { font-size: 0.6875rem; color: var(--text-muted); }
.post-content p { font-size: 0.875rem; margin-bottom: 0.75rem; }
.post-image {
    border-radius: var(--radius);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.post-actions {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    border-radius: 4px;
}
.action-btn:hover { background: var(--hover-bg); color: var(--blue); }
.action-btn.liked { color: var(--blue); }
.action-btn .count { font-weight: 600; }
.comment-section { padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.comment-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.comment-form input { flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: 20px; font-size: 0.8125rem; }
.comments-list .comment { padding: 0.5rem 0; font-size: 0.8125rem; }
.comments-list .comment small { display: block; color: var(--text-muted); font-size: 0.6875rem; }

/* Right Sidebar */
.right-sidebar .suggestions-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}
.suggestions-card h3 { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
}
.suggestion-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.suggestion-item div { flex: 1; min-width: 0; }
.suggestion-item strong { display: block; font-size: 0.8125rem; }
.suggestion-item span { font-size: 0.6875rem; color: var(--text-secondary); }
.btn-connect {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--blue);
    border-radius: 20px;
    color: var(--blue);
    background: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.btn-connect:hover { background: var(--blue-light); }
.btn-connect:disabled { opacity: 0.5; cursor: default; }

.empty-feed, .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Profile Page */
.profile-page {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}
.profile-header {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1rem;
}
.profile-banner-lg { height: 200px; position: relative; }
.profile-banner-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-detail {
    padding: 0 2rem 1.5rem;
    position: relative;
}
.profile-avatar-lg {
    margin-top: -50px;
    margin-bottom: 0.75rem;
}
.profile-avatar-lg img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}
.profile-meta h1 { font-size: 1.5rem; }
.profile-meta .headline { font-size: 0.9375rem; color: var(--text-secondary); }
.profile-meta .location { font-size: 0.8125rem; color: var(--text-muted); }
.profile-stats-lg { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--text-secondary); }
.profile-stats-lg strong { color: var(--text); }
.profile-actions { margin-top: 1rem; }

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.875rem; color: var(--text-secondary); }
.edit-about { font-size: 0.8125rem; }

.profile-posts h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.profile-posts .empty { color: var(--text-secondary); }
.post-actions-mini {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Network Page */
.network-page {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}
.network-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}
.network-tabs a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none !important;
}
.network-tabs a.active { color: var(--text); border-bottom-color: var(--text); }
.network-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
}
.network-item img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}
.network-item div { flex: 1; }
.network-item strong { display: block; font-size: 0.9375rem; }
.network-item span { font-size: 0.75rem; color: var(--text-secondary); }
.network-actions { display: flex; gap: 0.5rem; }
.suggestions-section { margin-top: 2rem; }
.suggestions-section h3 { margin-bottom: 1rem; }
.empty { color: var(--text-secondary); text-align: center; padding: 2rem; }

/* Messages Page */
.messages-page {
    max-width: 1128px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 600px;
}
.messages-sidebar {
    background: var(--bg-card);
    padding: 1rem;
}
.messages-sidebar h3 { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none !important;
    color: var(--text);
}
.conv-item:hover, .conv-item.active { background: var(--hover-bg); }
.conv-item img { width: 48px; height: 48px; border-radius: 50%; }
.conv-item div { flex: 1; min-width: 0; }
.conv-item strong { display: block; font-size: 0.875rem; }
.conv-item span { font-size: 0.75rem; color: var(--text-muted); }
.messages-chat {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.chat-header img { width: 40px; height: 40px; border-radius: 50%; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.msg {
    max-width: 70%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}
.msg-sent { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-received { align-self: flex-start; background: var(--hover-bg); border-bottom-left-radius: 4px; }
.msg small { display: block; font-size: 0.625rem; opacity: 0.7; margin-top: 0.25rem; }
.chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}
.chat-form input { flex: 1; padding: 0.75rem; border: 1px solid var(--border); border-radius: 20px; font-size: 0.875rem; }
.chat-placeholder { display: flex; align-items: center; justify-content: center; flex: 1; color: var(--text-muted); }

/* Jobs Page */
.jobs-page {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}
.jobs-header { margin-bottom: 1.5rem; }
.jobs-header h1 { font-size: 1.5rem; }
.jobs-header p { color: var(--text-secondary); }
.job-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.job-card-header { display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.job-company-logo { width: 56px; height: 56px; border-radius: 8px; }
.job-card-header h3 { font-size: 1.125rem; }
.job-card-header h3 a { color: var(--text); }
.job-company { font-size: 0.875rem; color: var(--text-secondary); }
.job-meta { font-size: 0.75rem; color: var(--text-muted); }
.job-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.job-salary { font-size: 0.8125rem; font-weight: 600; color: #057642; }

/* Admin */
.admin-page {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 52px);
}
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
}
.admin-sidebar h2 { font-size: 1rem; margin-bottom: 1rem; }
.admin-sidebar a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none !important;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--hover-bg); color: var(--text); }
.admin-content { padding: 1.5rem; }
.admin-content h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}
.admin-stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--blue); }
.admin-stat-card .stat-label { font-size: 0.875rem; color: var(--text-secondary); }

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
}
.admin-table th { background: var(--hover-bg); font-weight: 600; }
.admin-table tr:hover td { background: var(--hover-bg); }

.pagination { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: center; }
.pagination a {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.8125rem;
    text-decoration: none !important;
}
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--nav-border);
    padding: 1.5rem 0;
    margin-top: 2rem;
}
.footer-inner {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--text-muted); }

/* Responsive */
/* Post dropdown */
.post-header-actions { position: relative; margin-left: auto; }
.post-dropdown-btn { background:none; border:none; cursor:pointer; color:var(--text-muted); padding:0.25rem; border-radius:50%; font-size:1.25rem; line-height:1; }
.post-dropdown-btn:hover { background:var(--bg); }
.post-dropdown { display:none; position:absolute; right:0; top:100%; background:var(--bg-card); border-radius:var(--radius); box-shadow:0 4px 12px rgba(0,0,0,0.15); min-width:140px; z-index:10; }
.post-dropdown.show { display:block; }
.post-dropdown a, .post-dropdown button { display:block; width:100%; padding:0.5rem 1rem; text-align:left; border:none; background:none; font-size:0.8125rem; color:var(--text); cursor:pointer; text-decoration:none; }
.post-dropdown a:hover, .post-dropdown button:hover { background:var(--bg); }
.post-dropdown .danger { color:#c00; }

/* Notifications */
.notif-unread { background:#e8f0fe !important; }

/* Settings */
.settings-page { max-width:600px; margin:1.5rem auto; padding:0 1.5rem; }

/* Company */
.company-header-card { background:var(--bg-card); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; margin-bottom:1rem; }
.company-info { padding:1.5rem; display:flex; gap:1rem; align-items:flex-start; }
.company-logo-lg { width:80px; height:80px; border-radius:12px; object-fit:cover; }

/* Alert styles */
.alert-success { background:#e6f4ea; color:#057642; border:1px solid #b7e1cd; }

/* Static pages (Privacy, Terms, Contact) */
.static-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f0f2f5;
}
.static-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
}
.static-card h1 {
    color: #1F4381;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.static-card h2 {
    color: #1F4381;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}
.static-card p {
    color: #1F4381;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}
.static-card .last-updated {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    columns: 2;
    column-gap: 2rem;
}
.sitemap-list li {
    padding: 0.3rem 0;
    break-inside: avoid;
}
.sitemap-list a {
    color: #1F4381;
    text-decoration: none;
    font-size: 0.95rem;
}
.sitemap-list a:hover {
    text-decoration: underline;
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: #1F4381;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1F4381;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1F4381;
}
.contact-form textarea {
    resize: vertical;
}
.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-primary {
    background: #1F4381;
    color: #fff;
}
.btn:hover {
    opacity: 0.9;
}
.footer-links {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #b0c4de;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 0.5rem;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-sep {
    color: #b0c4de;
}

@media (max-width: 900px) {
    .feed-layout { grid-template-columns: 1fr; }
    .left-sidebar, .right-sidebar { display: none; }
    .messages-page { grid-template-columns: 1fr; }
    .messages-sidebar { display: none; }
    .landing-hero { flex-direction: column; text-align: center; }
    .hero-cta { justify-content: center; }
    .landing-features { grid-template-columns: 1fr; }
    .admin-page { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .footer-sep { display: none; }
    .splash-cta { flex-direction: column; align-items: center; }
    .splash-cta .btn { width: 50%; min-width: 180px; }
    .contact-form .btn { width: 50%; }
}

/* ===== RTL Support ===== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .nav-row-bottom .nav-search-wrap {
    margin-left: auto;
    margin-right: 0;
}
[dir="rtl"] .nav-right {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .post-header-actions {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .badge {
    right: auto;
    left: 4px;
}
[dir="rtl"] .post-dropdown {
    right: auto;
    left: 0;
}
[dir="rtl"] .post-dropdown a,
[dir="rtl"] .post-dropdown button {
    text-align: right;
}
[dir="rtl"] .splash-feature {
    text-align: right;
}
[dir="rtl"] .profile-stats {
    text-align: right;
}
[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td {
    text-align: right;
}
[dir="rtl"] .admin-sidebar {
    border-right: none;
    border-left: 1px solid var(--border);
}
[dir="rtl"] .feed-layout {
    grid-template-columns: 300px 1fr 225px;
}
[dir="rtl"] .nav-left {
    order: 3;
}
[dir="rtl"] .nav-links {
    order: 2;
    flex-direction: row-reverse;
}
[dir="rtl"] .nav-right-top {
    order: 1;
}
[dir="rtl"] .nav-row-bottom .nav-search-form input {
    text-align: right;
}
[dir="rtl"] .logout-link {
    order: -1;
}

/* Dark mode toggle pulse */
#darkModeToggle {
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 122, 163, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(45, 122, 163, 0.15); }
}
[data-theme="dark"] #darkModeToggle {
    animation-name: pulse-glow-dark;
}
@keyframes pulse-glow-dark {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15); }
}
