:root {
  --bg-main: #06090E;
  --bg-secondary: #0B0F17;
  --bg-card: rgba(15, 22, 35, 0.9);
  --bg-card-hover: rgba(22, 32, 50, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(0, 242, 254, 0.5);
  
  --primary-gold: #E5B869;
  --gold-glow: rgba(229, 184, 105, 0.35);
  --primary-cyan: #00F2FE;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --primary-blue: #4FACFE;
  --accent-purple: #8A2387;
  --success-emerald: #00F5A0;
  --danger-crimson: #FF4B4B;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 184, 105, 0.25) transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-ar);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(229, 184, 105, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Ambient Glow */
.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  animation: pulseGlow 14s ease-in-out infinite alternate;
}
.ambient-1 { top: -120px; right: -120px; background: var(--cyan-glow); }
.ambient-2 { bottom: 0; left: -120px; background: var(--gold-glow); }

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(30px, 40px); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 9, 14, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.5rem 1.8rem;
}
.nav-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--primary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Tabs */
.nav-tabs-container {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-tab-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-ar);
}
.nav-tab-top:hover, .nav-tab-top.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-tab-top.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 10%;
  right: 10%;
  height: 2.5px;
  background: var(--primary-cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-cyan);
}
.nav-tab-top.active i {
  color: var(--primary-cyan);
}
.nav-badge-count {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--danger-crimson);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Search Bar */
.search-container {
  width: 280px;
  position: relative;
}
@media (max-width: 1080px) {
  .search-container {
    display: none;
  }
}
.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 8px 38px 8px 16px;
  color: var(--text-main);
  font-family: var(--font-ar);
  font-size: 0.88rem;
  transition: all 0.3s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-for-business {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 184, 105, 0.1);
  border: 1px solid rgba(229, 184, 105, 0.3);
  color: var(--primary-gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-for-business:hover {
  background: rgba(229, 184, 105, 0.2);
  border-color: var(--primary-gold);
  transform: translateY(-1px);
}

.profile-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 4px 10px 4px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-avatar-btn:hover {
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.08);
}

/* User Navbar Dropdown Menu */
.user-dropdown-wrapper {
  position: relative;
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px;
  min-width: 250px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}
.user-dropdown-menu.open {
  display: flex;
}
.dropdown-user-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 4px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: #E2E8F0;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background: rgba(0, 242, 254, 0.12);
  color: #fff;
}
.dropdown-item.logout {
  color: #FF8080;
  border-top: 1px solid var(--border-glass);
  margin-top: 4px;
  padding-top: 10px;
}
.dropdown-item.logout:hover {
  background: rgba(255, 75, 75, 0.15);
  color: #FF4B4B;
}

.avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), #4FACFE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070A0F;
  font-weight: 900;
  font-size: 0.82rem;
}
.avatar-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

/* App Container */
.app-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
  position: relative;
  z-index: 10;
}
@media (max-width: 1200px) {
  .app-container {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .aside-right {
    display: none;
  }
}
@media (max-width: 860px) {
  .app-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .aside-left {
    display: none;
  }
}

/* Views Management */
.view-section {
  display: none;
  animation: fadeInView 0.35s ease;
}
.view-section.active {
  display: block;
}
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}

.user-mini-profile {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1rem;
}
.profile-banner-bg {
  height: 55px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(229, 184, 105, 0.25));
  margin: -1.4rem -1.4rem 0;
}
.main-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--bg-main);
  margin: -32px auto 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  background: #161F30;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-weight: 900;
  font-size: 1.4rem;
}
.user-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.user-headline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.user-stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-glass);
}
.stat-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.stat-item:hover {
  transform: translateY(-2px);
}
.stat-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-cyan);
}
.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  cursor: pointer;
}
.nav-item-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.trend-tag {
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
}
.trend-tag:hover {
  color: var(--primary-gold);
  background: rgba(229, 184, 105, 0.08);
}

/* Post Creator */
.create-post-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}
.post-header-input {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.post-input-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  min-height: 80px;
  resize: none;
  transition: all 0.3s ease;
}
.post-input-box:focus {
  outline: none;
  border-color: var(--primary-cyan);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.post-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-glass);
}
.media-triggers {
  display: flex;
  gap: 8px;
}
.btn-media {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-ar);
}
.btn-media:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.08);
}
.btn-ai-assist {
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.15), rgba(0, 242, 254, 0.15));
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
}

.btn-publish {
  background: linear-gradient(135deg, var(--primary-gold), #F76B1C);
  border: none;
  color: #070A0F;
  padding: 9px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-family: var(--font-ar);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 184, 105, 0.3);
}
.btn-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 184, 105, 0.5);
}

/* Feed Filters */
.feed-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.4rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-chip {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.filter-chip.active, .filter-chip:hover {
  color: #fff;
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
}

/* Feed Post Card */
.feed-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  transition: all 0.3s ease;
}
.feed-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.post-author-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.author-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.author-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.verified-badge {
  color: var(--primary-cyan);
  width: 16px;
  height: 16px;
}
.author-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.post-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ai-insight-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.06), rgba(229, 184, 105, 0.06));
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin: 1rem 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-icon-pulse {
  color: var(--primary-cyan);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ai-insight-text {
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.5;
}
.ai-insight-text strong {
  color: var(--primary-gold);
}

.post-content-body {
  font-size: 0.98rem;
  color: #F1F5F9;
  line-height: 1.7;
  margin-bottom: 1.3rem;
}

/* Post Poll Styling */
.post-poll-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin: 1.2rem 0;
}
.poll-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.poll-option:hover {
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.08);
}
.poll-option.voted {
  border-color: var(--primary-gold);
}
.poll-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 242, 254, 0.15);
  z-index: 1;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.poll-label {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 0.9rem;
}
.poll-percent {
  position: relative;
  z-index: 2;
  font-weight: 900;
  color: var(--primary-cyan);
  font-size: 0.85rem;
}

/* Post Interactions */
.post-interactions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-glass);
}
.reaction-buttons {
  display: flex;
  gap: 8px;
}
.btn-reaction {
  background: var(--bg-glass);
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-ar);
}
.btn-reaction:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-reaction.active-like {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
}

/* LinkedIn Multi-Reactions Popup */
.reaction-wrapper {
  position: relative;
  display: inline-block;
}
.reactions-hover-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 6px 10px;
  display: none;
  gap: 8px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 50;
  animation: popupSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reaction-wrapper:hover .reactions-hover-popup {
  display: flex;
}
@keyframes popupSlide {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.reaction-emoji-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.15s ease;
  line-height: 1;
  padding: 2px 4px;
}
.reaction-emoji-btn:hover {
  transform: scale(1.35) translateY(-4px);
}

/* Post 3-Dots Dropdown */
.post-options-wrapper {
  position: relative;
}
.btn-post-dots {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-post-dots:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.post-options-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
.post-options-dropdown.open {
  display: flex;
}
.post-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.post-option-item:hover {
  background: rgba(0, 242, 254, 0.12);
  color: #fff;
}

/* Avatar OpenToWork & Hiring Badges */
.avatar-opentowork {
  box-shadow: 0 0 0 3px #00F5A0, 0 0 15px rgba(0, 245, 160, 0.5) !important;
}
.avatar-hiring {
  box-shadow: 0 0 0 3px #A855F7, 0 0 15px rgba(168, 85, 247, 0.5) !important;
}
.opentowork-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--success-emerald);
  color: var(--success-emerald);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 8px;
}
.hiring-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #A855F7;
  color: #C084FC;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 8px;
}


/* Comment Thread */
.comments-container {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-glass);
  display: none;
}
.comments-container.open {
  display: block;
}
.comment-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}
.comment-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 8px 16px;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.88rem;
}
.comment-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
}
.single-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}
.comment-author-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-gold);
}
.comment-text {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-top: 2px;
}

/* Right Sidebar */
.aside-widget {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}
.widget-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-glass);
}
.widget-title h4 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.job-match-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.job-match-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
}
.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}
.job-role {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.company-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.match-score-badge {
  background: rgba(0, 245, 160, 0.15);
  border: 1px solid var(--success-emerald);
  color: var(--success-emerald);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 900;
}
.btn-apply-job {
  width: 100%;
  margin-top: 0.8rem;
  padding: 8px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-family: var(--font-ar);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-apply-job:hover {
  background: var(--primary-cyan);
  color: #070A0F;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open {
  display: flex;
}
.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  padding: 2.2rem;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close-btn {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-header {
  margin-bottom: 1.5rem;
}
.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}
.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.2rem;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}
.form-control {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--primary-gold), #F76B1C);
  color: #070A0F;
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--primary-cyan);
  color: #fff;
  padding: 14px 26px;
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Chat Drawer */
.chat-drawer {
  position: fixed;
  bottom: 0;
  left: 2rem;
  width: 330px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px 16px 0 0;
  backdrop-filter: blur(25px);
  z-index: 500;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(270px);
}
.chat-drawer.open {
  transform: translateY(0);
}

/* --- NEW 10x SUPERIOR FEATURES STYLES --- */

/* Audio Live Room Card */
.audio-room-card {
  background: linear-gradient(135deg, rgba(138, 35, 135, 0.15), rgba(0, 242, 254, 0.12));
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}
.audio-room-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}
.live-pulsing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 75, 75, 0.2);
  border: 1px solid var(--danger-crimson);
  color: #FF6B6B;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--danger-crimson);
  border-radius: 50%;
  animation: pulseLive 1.2s infinite;
}
@keyframes pulseLive {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Interview Simulator Styles */
.interview-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}
.ai-coach-bubble {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(79, 172, 254, 0.12));
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
  color: #F8FAFC;
}
.ai-feedback-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid var(--success-emerald);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

/* Salary Explorer Card */
.salary-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}
.salary-card:hover {
  border-color: var(--primary-gold);
  background: rgba(229, 184, 105, 0.05);
}
.salary-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-gold);
}

/* Audio Room Active Bar & Waves */
.audio-waves-container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}
.audio-wave-bar {
  width: 3.5px;
  background: var(--primary-cyan);
  border-radius: 4px;
  animation: wavePulse 1s ease-in-out infinite alternate;
}
.audio-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.audio-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.audio-wave-bar:nth-child(4) { animation-delay: 0.1s; }
.audio-wave-bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes wavePulse {
  0% { height: 6px; }
  100% { height: 22px; }
}

/* Printable CV Styles */
.cv-preview-sheet {
  background: #0B0F17;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: #fff;
  margin-top: 1rem;
}
.cv-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-gold);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
  margin: 1.4rem 0 0.8rem;
}
.cv-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-cyan);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin: 4px;
  font-weight: 700;
}

/* Media Print Rules for High-Res CV Export */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .navbar, .aside-left, .aside-right, .ambient-glow, .toast-box, .chat-drawer, .nav-tabs-container, button {
    display: none !important;
  }
  .app-container {
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .feed-main {
    width: 100% !important;
  }
  .view-section {
    display: none !important;
  }
  #view-cv {
    display: block !important;
  }
  .sidebar-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .cv-preview-sheet {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    padding: 20px !important;
  }
  .cv-section-title {
    color: #1a202c !important;
    border-bottom: 2px solid #3182ce !important;
  }
  .cv-tag {
    background: #edf2f7 !important;
    color: #2b6cb0 !important;
    border: 1px solid #cbd5e0 !important;
  }
  #cvName { color: #1a202c !important; }
  #cvHeadline { color: #2b6cb0 !important; }
  #cvBio { color: #2d3748 !important; }
  #cvLocation { color: #718096 !important; }
}

/* ==========================================
   LIGHT EXECUTIVE THEME
   ========================================== */
body.light-theme {
  --bg-main: #F1F5F9;
  --bg-secondary: #E2E8F0;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(0, 0, 0, 0.04);
  --border-glass: rgba(0, 0, 0, 0.09);
  
  --primary-gold: #B8860B;
  --primary-cyan: #0284C7;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(184, 134, 11, 0.08) 0%, transparent 45%);
}
body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .brand-name {
  background: linear-gradient(135deg, #0F172A, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .post-content-body,
body.light-theme .user-title,
body.light-theme .modal-header h3,
body.light-theme .job-role,
body.light-theme .author-name {
  color: #0F172A;
}
body.light-theme .post-input-box,
body.light-theme .form-control {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}
body.light-theme .job-match-card,
body.light-theme .salary-card,
body.light-theme .interview-box,
body.light-theme .cv-preview-sheet {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
body.light-theme .cv-section-title {
  color: #B8860B;
}

/* ==========================================
   FULL PROFILE PAGE STYLES
   ========================================== */
.profile-cover-banner {
  height: 180px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(135deg, #0052D4, #4364F7, #6FB1FC);
  position: relative;
  overflow: hidden;
}
.profile-cover-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}
.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  margin: -50px 24px 12px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #070A0F;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  position: relative;
  z-index: 5;
}
.timeline-item {
  position: relative;
  padding-right: 28px;
  margin-bottom: 1.5rem;
  border-right: 2px solid var(--border-glass);
}
.timeline-dot {
  position: absolute;
  right: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan);
}

/* ==========================================
   ATS RESUME CHECKER & OPTIMIZER STYLES
   ========================================== */
.ats-score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--success-emerald) 88%, rgba(255,255,255,0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.ats-score-inner {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.keyword-chip-matched {
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--success-emerald);
  color: var(--success-emerald);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 3px;
}
.keyword-chip-missing {
  background: rgba(255, 75, 75, 0.12);
  border: 1px solid var(--danger-crimson);
  color: #FF8080;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 3px;
}

/* ==========================================
   TALENT DIRECTORY & ASSESSMENTS STYLES
   ========================================== */
.talent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.talent-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}
.quiz-option-btn {
  width: 100%;
  text-align: right;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.quiz-option-btn:hover {
  border-color: var(--primary-gold);
  background: rgba(229, 184, 105, 0.1);
}
.quiz-option-btn.selected {
  border-color: var(--success-emerald);
  background: rgba(0, 245, 160, 0.15);
  color: #fff;
}

/* Welcome Onboarding Banner & Quick Feature Cards */
.welcome-banner-card {
  transition: all 0.3s ease;
}
.quick-feature-box:hover {
  border-color: var(--primary-gold) !important;
  background: rgba(229, 184, 105, 0.1) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-family: var(--font-ar);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--primary-gold), #F76B1C);
  color: #070A0F;
  border-color: transparent;
}


