/* ============================================================
   GP DESK — Premium CSS  (Lag-Free, Responsive, Attractive)
   ============================================================ */

/* ── Google Font import handled in HTML ── */

:root {
  --bg-main: #f0f4ff;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --accent-gold: #f59e0b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(0, 0, 0, 0.08);
  --radius-card: 20px;
  --radius-btn: 14px;
  --shadow-card: 0 8px 32px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-pop: 0 24px 64px rgba(37, 99, 235, 0.25), 0 6px 20px rgba(0, 0, 0, 0.10);
  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET / BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #c4d1ff;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overscroll-behavior: none;
}













/* Fixed background — avoids repaint on scroll */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    linear-gradient(170deg, #d4d4d4 0%, #eeeeee 60%, #f0f0f0 100%);
  z-index: -1;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 99px;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ─── GLASS CARD ─── */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-card);
  /* Use transform3d to promote to GPU layer — no layout cost */
  transform: translateZ(0);
}

/* ─── PAGE FADE IN ─── */
#app {
  animation: pageIn 0.22s ease both;
  contain: layout style;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── WHATSAPP-STYLE HEADER ─── */
.wa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 60px;
  will-change: transform;
}

.wa-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
}

.wa-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-header-info {
  flex: 1;
  min-width: 0;
}

.wa-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.wa-header-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── JOB CARD ─── */
/* ─── JOB CARD ─── */
/* ─── JOB CARD WITH MARGIN & BORDER RING ─── */
.job-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
  cursor: pointer;
  transform: translateZ(0);
  /* ADD THESE 2 LINES: */
  margin-left: 3px;
  margin-right: 3px;
  border: 1px solid rgba(37, 100, 235, 0.288);
}

.job-card:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  /* ADD THIS LINE: */
  border-color: rgba(37, 99, 235, 0.3);
}

.job-card:active {
  transform: scale(0.985) translateZ(0);
}

/* Best Practice: Only block selection on interactive/clickable elements */
.job-card,
.biz-card,
.clickable,
button,
a {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* BUT allow selection on content users might want to copy (job descriptions, phone numbers) */
.job-description,
.job-requirements,
.phone-number,
.salary-info {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ─── BUSINESS CARD WITH MARGIN & BORDER RING ─── */
.biz-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
  cursor: pointer;
  transform: translateZ(0);
  /* ADD THESE 2 LINES: */
  margin-left: 3px;
  margin-right: 3px;
  border: 1px solid rgba(124, 58, 237, 0.253);
}

.biz-card:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  /* ADD THIS LINE: */
  border-color: rgba(37, 99, 235, 0.3);
}

.biz-card:active {
  transform: scale(0.985) translateZ(0);
}


/* ─── IMG PREVIEW ─── */
.img-preview {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.img-preview img {
  width: 100%;
  display: block;
}

/* ─── SPINNER ─── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 0.75s linear infinite;
}

/* ─── PULSE DOT ─── */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
  display: inline-block;
}

/* ─── AUTO EXPAND TEXTAREA ─── */
.auto-expand {
  overflow: hidden;
  resize: none;
}

/* ─── HERO CARD ─── */
.hero-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.hero-card h1 {
  text-shadow: 0 4px 16px rgba(8, 35, 83, 0.4);
}

@media (max-width: 767px) {
  .hero-card {
    border-radius: 0 0 24px 24px;
  }

  .hero-card .illustration {
    display: none;
  }
}

/* ─── GROUP CARDS ─── */
/* ─── GROUP CARDS ─── */
.group-card-uae {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-saudi {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-oman {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-kuwait {
  border-color: #ddd6fe;
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-qatar {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-bahrain {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-egypt {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #eef2ff, #eff6ff);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-lebanon {
  border-color: #fbcfe8;
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-jordan {
  border-color: #cffafe;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

.group-card-other {
  border-color: #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
  border-width: 2px;
  border-style: solid;
}

/* ─── SHARE SECTION ─── */
.share-section {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8faff, #f0f4ff);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.share-btn {
  padding: 7px 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.share-btn:hover {
  background: #1d4ed8;
}

.share-btn:active {
  transform: scale(0.95);
}

/* ══════════════════════════════════════
   LOADING OVERLAY — full-screen center
   ══════════════════════════════════════ */
#global-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(238, 242, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: loadingIn 0.2s ease both;
}

#global-loading.hide {
  animation: loadingOut 0.3s ease forwards;
  pointer-events: none;
}

@keyframes loadingIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes loadingOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.loading-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563eb;
  border-right-color: #7c3aed;
  animation: spin 0.8s linear infinite;
}

.loading-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  position: absolute;
}

.loading-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.loading-dots::after {
  content: '';
  animation: dots 1.4s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: '';
  }

  33% {
    content: '.';
  }

  66% {
    content: '..';
  }

  100% {
    content: '...';
  }
}

/* ══════════════════════════════════════
   AUTH / LOGIN-REGISTER PAGE
   ══════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 40%, #4f46e5 70%, #7c3aed 100%);
}

.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 40%);
}

.auth-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: logoBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes logoBounce {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin: 0 0 6px;
  position: relative;
  animation: authFadeUp 0.4s 0.1s ease both;
}

.auth-hero-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  animation: authFadeUp 0.4s 0.2s ease both;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Auth floating card */
.auth-card {
  margin: -24px 16px 32px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.16), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
  animation: authCardIn 0.4s 0.15s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  position: relative;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tab switcher */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 22px;
  position: relative;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.auth-tab-btn.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.14), 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Input group */
.auth-input-group {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  background: #f8faff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.35);
}

.auth-submit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-error-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 14px;
  animation: errorShake 0.3s ease;
}

@keyframes errorShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.auth-error-box.hidden {
  display: none;
}

/* ══════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════ */
.profile-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
}

.profile-hero {
  background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 45%, #4f46e5 100%);
  padding: 60px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  animation: avatarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes avatarPop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  position: relative;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  backdrop-filter: blur(4px);
}

.profile-card {
  margin: -36px 16px 20px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  position: relative;
  animation: profileCardIn 0.4s 0.1s ease both;
}

@keyframes profileCardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.profile-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1px;
}

/* Logout button in profile */
.profile-logout-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #fee2e2, #fef2f2);
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  margin: 16px 16px 0;
  width: calc(100% - 32px);
}

.profile-logout-btn:hover {
  background: linear-gradient(135deg, #fecaca, #fee2e2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
}

.profile-logout-btn:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════
   LOGOUT CONFIRMATION POPUP
   ══════════════════════════════════════ */
.logout-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.2s ease both;
  padding-bottom: env(safe-area-inset-bottom);
}

.logout-popup-overlay.closing {
  animation: overlayOut 0.2s ease forwards;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes overlayOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.logout-popup {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 8px 24px 32px;
  animation: popupUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.12);
}

.logout-popup.closing {
  animation: popupDown 0.22s ease forwards;
}

@keyframes popupUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes popupDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

.popup-handle {
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  margin: 12px auto 20px;
}

.popup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.popup-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.popup-desc {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.popup-btn-logout {
  padding: 16px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.popup-btn-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.popup-btn-logout:active {
  transform: scale(0.97);
}

.popup-btn-cancel {
  padding: 16px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.popup-btn-cancel:hover {
  background: #e2e8f0;
}

.popup-btn-cancel:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════
   BOTTOM NAV (Mobile)
   ══════════════════════════════════════ */
/* ══════════════════════════════════════
   BOTTOM NAV (Mobile)
   ══════════════════════════════════════ */
#mobile-nav {
  background: rgb(255, 255, 255);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(116, 116, 116);
  will-change: transform;
}

/* ══════════════════════════════════════
   DESKTOP NAV
   ══════════════════════════════════════ */
#desktop-nav .nav-bar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: transform;
}

/* ══════════════════════════════════════
   POST JOB FORM
   ══════════════════════════════════════ */
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  background: #f8faff;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .profile-hero {
    padding: 50px 20px 64px;
  }

  .auth-hero {
    padding: 40px 20px 32px;
  }
}

/* ─── COMMENTS SECTION ─── */
.comments-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(248, 250, 252, 0.55);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all var(--transition);
  animation: pageIn 0.2s ease both;
}

.comment-item:hover {
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.03);
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.comment-user {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.78rem;
}

.comment-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
  font-size: 0.8rem;
}

.comment-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}

.comment-delete-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.comment-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.825rem;
  outline: none;
  transition: all var(--transition);
  background: #ffffff;
  color: var(--text-primary);
}

.comment-input::placeholder {
  color: var(--text-muted);
}

.comment-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.comment-submit-btn {
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.15);
}

.comment-submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.comment-submit-btn:active {
  transform: scale(0.97);
}

.comment-submit-btn:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.comment-login-msg {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 10px;
  background: rgba(37, 99, 235, 0.04);
  border-radius: 12px;
  border: 1.5px dashed rgba(37, 99, 235, 0.15);
  margin-top: 4px;
}

.comment-login-link {
  color: #2563eb;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
  font-family: inherit;
}

.comment-login-link:hover {
  color: #1d4ed8;
}

/* ─── COUNTRY PILLS (like news section) ─── */
.country-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.country-scroll::-webkit-scrollbar {
  display: none;
}

.country-pill {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 60px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all var(--transition);
  cursor: pointer;
}

.country-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.country-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ─── BLOG & LEGAL RICH TEXT STYLING ─── */
.blog-rich-text,
.legal-rich-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
}

.blog-rich-text h2,
.legal-rich-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 0.4rem;
}

.blog-rich-text h3,
.legal-rich-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.blog-rich-text p,
.legal-rich-text p {
  margin-bottom: 1.1rem;
}

.blog-rich-text ul,
.legal-rich-text ul {
  margin-bottom: 1.2rem;
  padding-left: 1.4rem;
  list-style-type: disc;
}

.blog-rich-text li,
.legal-rich-text li {
  margin-bottom: 0.5rem;
}

.blog-rich-text strong,
.legal-rich-text strong {
  color: #0f172a;
  font-weight: 700;
}

footer a {
  transition: color 0.15s ease-in-out;
}

footer a:hover {
  color: #ffffff !important;
}