@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Manrope:wght@300;400;600;700&display=swap");

:root {
  --bg: #eef3fb;
  --bg-strong: #e4ebf7;
  --card: #ffffff;
  --ink: #121826;
  --muted: #5a6475;
  --line: #d8e1ef;
  --accent: #4a0f5f;
  --accent-2: #6b2a7b;
  --accent-soft: #f0e7f4;
  --shadow: 0 10px 30px rgba(18, 24, 38, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 80% -10%, #dde6f8 0%, transparent 60%),
    radial-gradient(900px 400px at 10% 0%, #edf1fb 0%, transparent 55%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8faff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(18, 24, 38, 0.06);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--accent);
}

.brand img {
  height: 32px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f9dba8;
  font-weight: 700;
  color: #5b3b07;
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 200px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(18, 24, 38, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #2a2f3a;
}

.user-dropdown svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  color: #4a0f5f;
}

.user-dropdown a:hover {
  background: #f1f4fb;
}

.user-dropdown .divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.user-menu.is-open .user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.jobs-menu {
  position: relative;
  display: inline-block;
}

.jobs-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 200px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(18, 24, 38, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.jobs-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #2a2f3a;
}

.jobs-dropdown svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #4a0f5f;
}

.jobs-dropdown a:hover {
  background: #f1f4fb;
}

.jobs-dropdown .divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.jobs-menu.is-open .jobs-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.layout {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 24px;
  padding: 18px 20px 40px;
}

.sidebar {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 10px;
  color: #556070;
  font-weight: 600;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item svg {
  width: 26px;
  height: 26px;
  color: #4a0f5f;
}

.nav-item i {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  color: #4a0f5f;
}

.fa-solid::before,
.fa-light::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--fa-icon) no-repeat center / contain;
  mask: var(--fa-icon) no-repeat center / contain;
}

.fa-magnifying-glass {
  --fa-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.1-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/></svg>");
}

.fa-message {
  --fa-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M448 64H64C28.7 64 0 92.7 0 128v192c0 35.3 28.7 64 64 64h96v64c0 17.7 14.3 32 32 32c8.5 0 16.6-3.4 22.6-9.4L352 384h96c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm0 256H340.7L192 448v-64H64V128h384v192z'/></svg>");
}

.nav-item.is-active {
  background: #d8dbe3;
  color: #2a2f3a;
}

.nav-item:hover {
  background: radial-gradient(circle at center, #7a3f92 0%, #9a5ab0 65%, #a56abc 100%);
  color: #ffffff;
}


.sidebar .copyright {
  margin-top: 12px;
  font-size: 12px;
  color: #7a8494;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 700;
  font-size: 18px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #edf1f9;
  color: #465062;
}

.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  background: radial-gradient(600px 300px at 20% 10%, #0c1a3a 0%, transparent 60%),
    linear-gradient(135deg, #0f1117 0%, #181b2f 50%, #1c2142 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -20px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(98, 120, 255, 0.5), transparent 60%);
  opacity: 0.7;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: 32px;
  margin: 8px 0 10px;
}

.hero .search {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  color: #223;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.tile {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #4a0f5f;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.events-card {
  overflow: hidden;
  padding: 0;
}

.events-card .cover {
  padding: 26px;
  min-height: 220px;
  color: #fff;
  background: radial-gradient(600px 300px at 10% 0%, rgba(0, 119, 255, 0.6), transparent 60%),
    linear-gradient(135deg, #0b0c10, #1a1f3c);
}

.events-card .content {
  padding: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Modern Jobs Section */
.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.jobs-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jobs-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 15, 95, 0.3);
}

.jobs-icon svg {
  width: 26px;
  height: 26px;
}

.jobs-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.jobs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(74, 15, 95, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(74, 15, 95, 0.4);
}

.btn-joined {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  gap: 6px;
}

.btn-joined svg {
  color: #10b981;
}

.btn-more {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  min-width: 40px;
}

.jobs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #556070;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f8faff;
  border-color: #c5d0e5;
  color: var(--ink);
}

.filter-btn svg {
  width: 16px;
  height: 16px;
  color: #8895a7;
}

.filter-btn.has-filters {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.has-filters svg {
  color: var(--accent);
}

.clear-filters {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.clear-filters:hover {
  color: var(--accent);
}

.jobs-header .btn svg {
  width: 16px;
  height: 16px;
}

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

/* Filter Dropdowns */
.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 220px;
  max-width: 280px;
  padding: 12px;
  box-shadow: 0 16px 32px rgba(18, 24, 38, 0.15);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.filter-dropdown-container.is-open .filter-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-dropdown-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-dropdown-scroll::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown-scroll::-webkit-scrollbar-track {
  background: #f1f4fb;
  border-radius: 3px;
}

.filter-dropdown-scroll::-webkit-scrollbar-thumb {
  background: #c5d0e5;
  border-radius: 3px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-size: 14px;
  color: #2a2f3a;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.filter-option:hover {
  background: #f1f4fb;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4a0f5f;
  cursor: pointer;
}

.filter-search-box {
  padding: 4px;
}

.filter-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.filter-search-input:focus {
  border-color: #4a0f5f;
}

.filter-radio-group {
  padding: 8px 0;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-size: 14px;
  color: #2a2f3a;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.filter-radio:hover {
  background: #f1f4fb;
}

.filter-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #4a0f5f;
  cursor: pointer;
}

.filter-apply-bar {
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  background: #fff;
}

.btn-apply {
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-apply:hover {
  background: linear-gradient(135deg, #5a1f6f 0%, #7b3a8b 100%);
}

/* Jobs Table Layout */
.jobs-table-container {
  padding: 0;
  overflow: hidden;
}

.jobs-table-header {
  display: grid;
  grid-template-columns: 2fr 140px 120px 120px;
  gap: 20px;
  padding: 16px 24px;
  background: #f8faff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: #5a6475;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.jobs-table-row {
  display: grid;
  grid-template-columns: 2fr 140px 120px 120px;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.15s ease;
}

.jobs-table-row:last-child {
  border-bottom: none;
}

.jobs-table-row:hover {
  background: #f8faff;
}

.col-title {
  min-width: 0;
}

.job-title-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-company-text {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-location {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-category,
.col-type {
  display: flex;
  justify-content: center;
}

.jobs-table-header .col-category,
.jobs-table-header .col-type {
  justify-content: flex-start;
}

.job-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0e7f4;
  color: #4a0f5f;
  white-space: nowrap;
}

.job-type {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef1f7;
  color: #465062;
  white-space: nowrap;
}

/* Modern Jobs Table Card */
.jobs-table-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jobs-table-header {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 140px 130px 130px;
  gap: 16px;
  padding: 18px 28px;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4fa 100%);
  border-bottom: 2px solid #e8ecf5;
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-items: center;
}

.jobs-table-header .col-job { 
  color: #2d3748; 
  text-align: left;
}
.jobs-table-header .col-location { 
  color: #2d3748; 
  text-align: left;
}
.jobs-table-header .col-category { 
  color: #2d3748; 
  text-align: center;
  display: flex;
  justify-content: center;
}
.jobs-table-header .col-type { 
  color: #2d3748; 
  text-align: center;
  display: flex;
  justify-content: center;
}

.job-listing {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 140px 130px 130px;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid #edf2f7;
  align-items: center;
  transition: all 0.25s ease;
  background: #ffffff;
  contain: layout;
}

.job-listing:last-child {
  border-bottom: none;
}

.job-listing:hover {
  background: linear-gradient(135deg, #fdfcff 0%, #f7f5ff 100%);
  transform: translateX(4px);
  box-shadow: inset 4px 0 0 0 #4a0f5f;
}

.col-job {
  min-width: 0;
}

.job-title-main {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-company-info {
  font-size: 14px;
  color: #4a0f5f;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-location {
  font-size: 14px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-dot {
  width: 8px;
  height: 8px;
  background: #48bb78;
  border-radius: 50%;
  flex-shrink: 0;
}

.col-category,
.col-type {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.job-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  flex-shrink: 0;
}

.job-tag-category {
  background: linear-gradient(135deg, #f0e7f4 0%, #e8dff0 100%);
  color: #4a0f5f;
  border: 1px solid rgba(74, 15, 95, 0.15);
}

/* Category-specific colors - case insensitive matching */
.job-tag-category[data-category="Product" i] {
  background: linear-gradient(135deg, #e8dff5 0%, #dcc9ed 100%);
  color: #6b2c91;
  border-color: rgba(107, 44, 145, 0.2);
}

.job-tag-category[data-category="Engineering" i] {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.2);
}

.job-tag-category[data-category="Sales" i] {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.2);
}

.job-tag-category[data-category="Customer Success" i] {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: rgba(6, 95, 70, 0.2);
}

.job-tag-category[data-category="Marketing" i] {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #9d174d;
  border-color: rgba(157, 23, 77, 0.2);
}

.job-tag-category[data-category="Operations" i] {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #3730a3;
  border-color: rgba(55, 48, 163, 0.2);
}

.job-tag-type {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  color: #4a5568;
  border: 1px solid rgba(74, 85, 104, 0.15);
}

/* Legacy styles - keeping for compatibility */
.job-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.job-row:last-child {
  border-bottom: none;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0e7f4;
  color: #4a0f5f;
  white-space: nowrap;
}

/* ===== MODERN PAGE STYLES ===== */

/* Page Header */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-icon svg {
  width: 26px;
  height: 26px;
}

.home-icon {
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
}

.explore-icon {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.discussions-icon {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.events-icon {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.notifications-icon {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.messages-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.page-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* Posts Feed (Home) */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
  transition: all 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.08);
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.post-date {
  font-size: 13px;
  color: var(--muted);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #8895a7;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: #f1f4fb;
  color: #4a5568;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.post-content {
  margin-bottom: 16px;
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.post-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.post-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-action-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

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

.post-replies-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Comments Section */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8faff;
  border-radius: 12px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  color: #1e3a8a;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.comment-date {
  font-size: 12px;
  color: var(--muted);
}

.comment-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.comment-form {
  display: flex;
  gap: 10px;
}

.comment-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.comment-input:focus {
  border-color: #4a0f5f;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Sidebar Cards */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
}

.sidebar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8895a7;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-icon-sm svg {
  width: 16px;
  height: 16px;
}

/* Leaderboard */
.leaderboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background: #f1f5f9;
}

.tab-btn.active {
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  color: #fff;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8faff;
  transition: all 0.15s ease;
}

.leaderboard-item:hover {
  background: #f0f4fa;
}

.rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-1 .rank {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
}

.rank-2 .rank {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
}

.name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.you-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  color: #fff;
  margin-left: 4px;
}

.score {
  font-size: 14px;
  font-weight: 700;
  color: #4a0f5f;
}

/* Discussions List */
.discussions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discussion-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.discussion-item:hover {
  background: #f8faff;
}

.discussion-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.discussion-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Explore Page */
.explore-hero {
  background: linear-gradient(135deg, #1a1f3c 0%, #2d3561 50%, #1a1f3c 100%);
  border-radius: 20px;
  padding: 48px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.explore-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(98, 120, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.explore-search-container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.explore-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.explore-subtitle {
  font-size: 16px;
  color: #a0aec0;
  margin: 0 0 24px 0;
}

.explore-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  margin-left: 16px;
}

.explore-search-input {
  flex: 1;
  border: none;
  padding: 14px 8px;
  font-size: 15px;
  outline: none;
  color: #1e293b;
}

.explore-search-input::placeholder {
  color: #94a3b8;
}

.ai-badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  margin-right: 4px;
}

.explore-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.1);
  border-color: #c5d0e5;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.category-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.home-cat {
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
}

.discussions-cat {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.events-cat {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.jobs-cat {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.category-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-info strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.category-count {
  font-size: 13px;
  color: var(--muted);
}

.opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opportunity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.opportunity-item:hover {
  background: #f8faff;
  border-color: #c5d0e5;
}

.opportunity-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0e7f4 0%, #e8dff0 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.opportunity-icon svg {
  width: 22px;
  height: 22px;
  color: #4a0f5f;
}

.opportunity-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opportunity-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opportunity-company {
  font-size: 13px;
  color: var(--muted);
}

.opportunity-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.opportunity-arrow svg {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.opportunity-item:hover .opportunity-arrow {
  background: #e2e8f0;
}

.opportunity-item:hover .opportunity-arrow svg {
  color: #475569;
}

.messages-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.message-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.message-preview.active {
  background: #f2f5fb;
  border-color: #cfd9ea;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2f5fb;
  width: fit-content;
  max-width: 70%;
}

.chat-bubble.me {
  background: #4a0f5f;
  color: #fff;
  margin-left: auto;
}

.empty {
  text-align: center;
  padding: 40px 10px;
}

.fade-up {
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

.stagger > * {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.stagger > *:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger > *:nth-child(2) {
  animation-delay: 0.12s;
}

.stagger > *:nth-child(3) {
  animation-delay: 0.2s;
}

.stagger > *:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }

  .rail {
    display: none;
  }
}

/* Discussions Page */
.hero-section {
  background: linear-gradient(135deg, #1a1f3c 0%, #2d3561 50%, #1a1f3c 100%);
  border-radius: 20px;
  padding: 40px 32px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.hero-description {
  font-size: 16px;
  color: #a0aec0;
  margin: 0;
}

.create-post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
}

.create-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.create-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9dba8 0%, #f5d088 100%);
  color: #5b3b07;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

.create-post-prompt {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.create-post-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: #4a0f5f;
  box-shadow: 0 0 0 3px rgba(74, 15, 95, 0.1);
}

.form-input-lg {
  font-size: 16px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.discussions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discussion-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
  transition: all 0.2s ease;
}

.discussion-card:hover {
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.08);
}

.discussion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.discussion-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discussion-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discussion-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.discussion-date {
  font-size: 13px;
  color: var(--muted);
}

.discussion-content {
  margin-bottom: 16px;
}

.discussion-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.discussion-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.discussion-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.discussion-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.discussion-action-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

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

.discussion-stats {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, #1e212b 0%, #2d3748 100%);
  color: #fff;
  text-align: center;
  padding: 28px;
}

.welcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.welcome-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.welcome-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.welcome-text {
  font-size: 14px;
  color: #a0aec0;
  line-height: 1.5;
  margin: 0;
}

/* Discussions List Compact */
.discussions-list-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discussion-compact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.discussion-compact-item:hover {
  background: #f8faff;
}

.discussion-compact-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.discussion-compact-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Members List */
.members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.member-item:hover {
  background: #f8faff;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  color: #1e3a8a;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.member-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.member-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.member-new {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.member-active {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

/* Events Page */
.create-event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
}

.create-event-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.create-event-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: #4a0f5f;
  cursor: pointer;
}

.checkbox-text {
  font-weight: 500;
}

.events-section {
  margin-bottom: 32px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
  transition: all 0.25s ease;
}

.event-card:hover {
  box-shadow: 0 12px 32px rgba(18, 24, 38, 0.12);
  transform: translateY(-2px);
}

.event-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 50%, #1e3a5f 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
}

.event-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.4) 0%, transparent 70%);
}

.event-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.event-badges {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.event-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.event-badge-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.event-badge-date svg {
  width: 14px;
  height: 14px;
}

.event-image-title {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.event-action-btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.event-details {
  padding: 20px;
}

.event-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.event-meta-item svg {
  width: 16px;
  height: 16px;
  color: #4a0f5f;
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.btn-secondary:hover {
  background: #f8faff;
  border-color: #c5d0e5;
}

/* Notifications Page */
.mark-all-form {
  margin-left: auto;
}

.notifications-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
  overflow: hidden;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.empty-icon svg {
  width: 40px;
  height: 40px;
  color: #94a3b8;
}

.empty-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.empty-text {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.notifications-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: all 0.15s ease;
}

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

.notification-item:hover {
  background: #f8faff;
}

.notification-unread {
  background: linear-gradient(135deg, #fdfcff 0%, #f7f5ff 100%);
}

.notification-icon {
  position: relative;
  flex-shrink: 0;
}

.unread-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

.notification-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: grid;
  place-items: center;
}

.notification-avatar svg {
  width: 22px;
  height: 22px;
  color: #4f46e5;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 6px 0;
}

.notification-time {
  font-size: 13px;
  color: var(--muted);
}

.notification-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Messages Page */
.messages-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.04);
  height: calc(100vh - 220px);
  min-height: 500px;
}

.messages-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #f8faff;
}

.new-thread-card {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.threads-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.no-threads {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.no-threads-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.no-threads-icon svg {
  width: 28px;
  height: 28px;
  color: #94a3b8;
}

.no-threads p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.no-threads span {
  font-size: 13px;
  color: var(--muted);
}

.thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}

.thread-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.thread-active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 3px solid #4a0f5f;
}

.thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  color: #1e3a8a;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.thread-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thread-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-meta {
  flex-shrink: 0;
}

.thread-time {
  font-size: 12px;
  color: var(--muted);
}

.messages-content {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.empty-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.empty-chat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.empty-chat-icon svg {
  width: 40px;
  height: 40px;
  color: #94a3b8;
}

.empty-chat h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.empty-chat p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-participant {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  color: #1e3a8a;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.chat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.chat-status {
  font-size: 13px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.chat-message {
  display: flex;
  max-width: 70%;
}

.message-sent {
  align-self: flex-end;
}

.message-received {
  align-self: flex-start;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
}

.message-sent .message-bubble {
  background: linear-gradient(135deg, #4a0f5f 0%, #6b2a7b 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-received .message-bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.message-sender {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.8;
}

.message-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8faff;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--line);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}

.chat-input::placeholder {
  color: #94a3b8;
}

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal.is-open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.modal-form {
  padding: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-error {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 16px;
}

.messages-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-item {
    padding: 8px 10px;
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .job-row {
    grid-template-columns: 1fr;
  }
  
  .jobs-table-header {
    display: none;
  }
  
  .job-listing {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  
  .col-category,
  .col-type {
    justify-content: flex-start;
  }
  
  /* Responsive Posts */
  .post-card {
    padding: 16px;
  }
  
  .comment-form {
    flex-direction: column;
  }
  
  .comment-input {
    width: 100%;
  }
  
  /* Responsive Explore */
  .explore-hero {
    padding: 32px 20px;
  }
  
  .explore-title {
    font-size: 24px;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  /* Responsive Discussions */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .discussion-card {
    padding: 16px;
  }
  
  /* Responsive Events */
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .event-image {
    height: 160px;
  }
  
  /* Responsive Notifications */
  .notification-item {
    padding: 16px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .mark-all-form {
    margin-left: 0;
    width: 100%;
  }
  
  .mark-all-form .btn {
    width: 100%;
  }
  
  /* Responsive Messages */
  .messages-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 200px);
  }
  
  .messages-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 300px;
  }
  
  .messages-content {
    min-height: 400px;
  }
  
  .chat-message {
    max-width: 85%;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
}
