/* ===== ALUMNI PORTAL - NAVY & GOLD THEME =====
   Fonts (Inter + Sora) are loaded via <link> tags in base.html's
   <head> rather than @import here — @import is render-blocking and
   delays the browser from discovering the font request. */

:root {
  --primary-dark:   #0F1B3D;
  --primary-main:   #1A3A6B;
  --primary-mid:    #2D5F9E;
  --primary-light:  #7BA7D9;
  --primary-pale:   #E1ECFA;
  --primary-faint:  #F4F8FD;
  --white:         #FFFFFF;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-400:      #9CA3AF;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --gray-800:      #1F2937;
  --gray-900:      #111827;
  --accent-gold:   #D4A843;
  --success:       #059669;
  --warning:       #D97706;
  --error:         #EF4444;
  --shadow-sm:     0 1px 3px rgba(26,58,107,0.08);
  --shadow-md:     0 4px 16px rgba(26,58,107,0.12);
  --shadow-lg:     0 8px 32px rgba(26,58,107,0.18);
  --shadow-xl:     0 20px 60px rgba(26,58,107,0.22);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:      0.15s;
  --dur:           0.25s;
  --dur-slow:      0.4s;
  --control-h:     48px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* The home wheel's slide motion IS the feature — keep it smooth here. */
  .wheel .card {
    transition-duration: 0.9s, 0.9s, 0.9s, 0.6s, 0.1s !important;
  }
}

/* Consistent, visible keyboard focus everywhere (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--primary-mid);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding-bottom: 0;
  padding-top: 0;
}
.navbar > .container { padding-top: 6px; padding-bottom: 6px; }

.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-main) !important;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-brand span {
  color: var(--primary-dark);
}

.brand-sss {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-main) !important;
  letter-spacing: -1px;
}

.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500) !important;
  letter-spacing: 0.2px;
  margin-left: 8px;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600) !important;
  transition: color 0.2s ease;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-main) !important;
  background: var(--primary-faint);
}

.btn-nav-login {
  background: var(--white);
  border: 1.5px solid var(--primary-main);
  color: var(--primary-main) !important;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-nav-login:hover {
  background: var(--primary-faint) !important;
}

.btn-nav-primary {
  background: linear-gradient(135deg, #0F1B3D 0%, #1A3A6B 50%, #2D5F9E 100%);
  color: var(--white) !important;
  border-radius: 999px;
  padding: 0.42rem 1.05rem !important;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s var(--ease);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(26, 58, 107, 0.28), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-nav-primary i,
.btn-nav-primary svg.lucide { width: 15px; height: 15px; color: var(--accent-gold); }
.btn-nav-primary:hover {
  background: linear-gradient(135deg, #1A3A6B 0%, #2D5F9E 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 58, 107, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(45, 95, 158, 0.18) 0%, transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(212, 168, 67, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, var(--primary-faint) 0%, var(--primary-pale) 45%, var(--white) 100%);
  padding: 34px 0 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 58, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 58, 107, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 85%);
  z-index: -1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(26,58,107,0.16) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: heroBlobA 22s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -160px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(167,139,250,0.14) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: heroBlobB 26s ease-in-out infinite alternate;
}

@keyframes heroBlobA {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}
@keyframes heroBlobB {
  0%   { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(70px, -50px) scale(0.9); }
}

/* drifting color orbs filling the open showcase background */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  animation: orbMove 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-orb-a {
  left: 4%; top: 10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(45, 95, 158, 0.18) 0%, transparent 70%);
}
.hero-orb-b {
  right: 2%; bottom: 6%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.18) 0%, transparent 70%);
  animation-delay: 5s;
}
@keyframes orbMove {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(34px, -26px) scale(1.15); }
}

/* floating decorative chips around the panels */
.hero-section .floating-tag {
  z-index: 1;
}
.floating-tag-1 { top: 18%; left: -22px; animation-delay: 0.6s; }
.floating-tag-2 { bottom: 12%; right: -18px; animation-delay: 1.4s; }
@media (max-width: 1199.98px) {
  .floating-tag-1 { left: 8px; }
  .floating-tag-2 { right: 8px; }
}
@media (max-width: 575.98px) {
  .floating-tag-1, .floating-tag-2 { display: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  color: var(--primary-dark);
  border: 1px solid rgba(26,58,107,0.18);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 18px rgba(26,58,107,0.08);
  backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  animation: badgePing 2.2s ease-out infinite;
}
@keyframes badgePing {
  0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.14;
  letter-spacing: -0.5px;
  margin-bottom: 0.9rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-mid) 60%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--gray-600);
  margin-bottom: 1.2rem;
  max-width: 500px;
  line-height: 1.55;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero-primary,
.btn-hero-secondary {
  padding: 11px 22px;
  font-size: 0.95rem;
}

.btn-hero-primary {
  background: var(--primary-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(26,58,107,0.3);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,58,107,0.4);
  color: var(--white);
  text-decoration: none;
}

.btn-hero-secondary {
  background: var(--white);
  color: var(--primary-main);
  border: 2px solid var(--primary-pale);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-hero-secondary:hover {
  border-color: var(--primary-main);
  background: var(--primary-faint);
  transform: translateY(-2px);
  color: var(--primary-main);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.hero-stat-item .stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-main);
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-float {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  max-width: 320px;
  width: 100%;
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-card-icon {
  width: 48px; height: 48px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.hero-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.floating-tag {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--primary-pale);
  display: flex; align-items: center; gap: 6px;
  animation: float 3.5s ease-in-out infinite;
}

/* ===== HOME SPLIT PANELS =====
   Left side is the open hero showcase — content floats directly on the
   animated background. Right side stays a card for the auth form. */
.home-jobs-panel {
  position: relative;
  padding: 0 6px 0 0;
}

.home-auth-panel {
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(212, 168, 67, 0.16) 0%, transparent 60%),
    radial-gradient(520px 380px at 0% 110%, rgba(45, 95, 158, 0.16) 0%, transparent 60%),
    linear-gradient(160deg, var(--white) 0%, var(--primary-pale) 150%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26, 58, 107, 0.12);
  box-shadow: 0 24px 60px rgba(26, 58, 107, 0.16), 0 4px 12px rgba(26, 58, 107, 0.06);
  padding: 30px 30px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  backdrop-filter: blur(10px);
}
.home-auth-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(26, 58, 107, 0.2), 0 6px 16px rgba(26, 58, 107, 0.08);
}

/* animated gradient border glow on top of the auth card */
.home-auth-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-main) 0%, var(--primary-mid) 40%, var(--accent-gold) 70%, var(--primary-main) 100%);
  background-size: 200% 100%;
  animation: authBorderFlow 6s linear infinite;
}
@keyframes authBorderFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* soft color blob inside the card */
.auth-panel-glow {
  position: absolute;
  top: -90px; right: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 95, 158, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: orbMove 18s ease-in-out infinite alternate;
}

.home-auth-col { align-items: flex-start; }

/* header row: community badge + live indicator */
.auth-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.auth-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(26,58,107,0.16);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--primary-main);
  box-shadow: 0 4px 12px rgba(26,58,107,0.08);
}
.auth-panel-badge svg.lucide { width: 15px; height: 15px; color: var(--accent-gold); }
.auth-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.3px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  animation: badgePing 2.2s ease-out infinite;
}

/* panel heading */
.auth-panel-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.16;
  letter-spacing: -0.4px;
  margin-bottom: 0.55rem;
}
.auth-panel-title .highlight {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-mid) 60%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-panel-sub {
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* modern list-style auth buttons */
.auth-actions { display: flex; flex-direction: column; gap: 12px; }
.auth-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}
.auth-btn-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s var(--ease);
}
.auth-btn-icon svg.lucide { width: 20px; height: 20px; }
.auth-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
  flex: 1;
}
.auth-btn-label { font-weight: 700; letter-spacing: 0.2px; }
.auth-btn-sub {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.2px;
}
.auth-btn-arrow {
  flex-shrink: 0;
  width: 18px; height: 18px;
  opacity: 0.5;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.auth-btn-primary {
  background: linear-gradient(135deg, #0F1B3D 0%, #1A3A6B 45%, #2D5F9E 100%);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(26, 58, 107, 0.34), inset 0 1px 0 rgba(255,255,255,0.18);
}
.auth-btn-primary .auth-btn-icon {
  background: linear-gradient(135deg, #E7C768 0%, var(--accent-gold) 55%, #B8860B 100%);
  color: #0F1B3D;
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.42);
}
.auth-btn-primary .auth-btn-icon svg.lucide { stroke-width: 2.4; }
.auth-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.26), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.auth-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(26, 58, 107, 0.44), inset 0 1px 0 rgba(255,255,255,0.2);
  color: var(--white);
}
.auth-btn-primary:hover::after { left: 130%; }
.auth-btn-primary:hover .auth-btn-icon { transform: rotate(-8deg) scale(1.1); box-shadow: 0 6px 18px rgba(212, 168, 67, 0.55); }
.auth-btn-primary:hover .auth-btn-arrow { transform: translateX(4px); opacity: 1; color: var(--accent-gold); }
.auth-btn-primary .auth-btn-label { color: var(--white); }
.auth-btn-primary .auth-btn-sub { color: rgba(255,255,255,0.72); }
.auth-btn-primary .auth-btn-arrow { color: var(--accent-gold); opacity: 0.85; }

.auth-btn-secondary {
  background: rgba(255,255,255,0.85);
  color: var(--primary-main);
  border: 2px solid rgba(26, 58, 107, 0.22);
}
.auth-btn-secondary .auth-btn-icon {
  background: var(--primary-faint);
  color: var(--primary-main);
  border: 1px solid rgba(26, 58, 107, 0.14);
}
.auth-btn-secondary:hover {
  border-color: var(--primary-main);
  background: var(--primary-faint);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(26, 58, 107, 0.16);
}
.auth-btn-secondary:hover .auth-btn-icon { transform: scale(1.1) rotate(4deg); }
.auth-btn-secondary:hover .auth-btn-arrow { transform: translateX(4px); opacity: 1; }

/* divider before stats */
.auth-panel-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.15rem 0 0.7rem;
  color: var(--gray-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.auth-panel-divider::before,
.auth-panel-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,58,107,0.16));
}
.auth-panel-divider::after {
  background: linear-gradient(90deg, rgba(26,58,107,0.16), transparent);
}
.auth-panel-divider span { white-space: nowrap; }

.home-auth-panel .hero-stats { margin-top: 0.9rem; }
.home-auth-panel .hero-stat-item { padding: 9px 12px 8px; background: rgba(255,255,255,0.72); }
.home-auth-panel .hero-stat-item .stat-num { font-size: 1.5rem; }

/* ---- entrance animation (hero content is hidden until JS adds .is-in) ---- */
/* ---- entrance animation (pure CSS — always runs, no JS required) ---- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.home-jobs-panel,
.home-auth-panel {
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-actions,
.auth-panel-head,
.auth-actions,
.auth-btn,
.hero-stats {
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-jobs-panel { animation-delay: 0.05s; }
.home-auth-panel { animation-delay: 0.12s; }
.hero-badge { animation-delay: 0.35s; }
.hero-title { animation-delay: 0.42s; }
.hero-subtitle,
.hero-actions,
.auth-panel-head,
.auth-actions,
.auth-btn { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.58s; }

/* ---- Wheel-focus job carousel (matches wheel_focus_content_carousel.html) ---- */
.home-jobs-stack {
  position: relative;
  margin-top: -56px;
  padding: 12px 8px 8px;
  border-radius: 20px;
  background: transparent;
}
.home-jobs-stack::before,
.home-jobs-stack::after { display: none; }

.wheel {
  position: relative;
  width: min(100%, 520px);
  height: 620px;
  margin: 0 auto;
  perspective: 1000px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.wheel .card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88%, 390px);
  height: 185px;
  padding: 12px 16px;
  border-radius: 18px;
  transform-style: preserve-3d;
  border: 1px solid rgba(26, 58, 107, 0.14);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    transform 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    filter 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.6s ease,
    z-index 0.1s;
  will-change: transform, opacity, filter;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
}
.wheel .card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--gray-900);
  line-height: 1.2;
}
.wheel .card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.4;
}
.wheel .card.active {
  background: #fff;
  border-color: rgba(26, 58, 107, 0.28);
  box-shadow: 0 20px 55px rgba(26, 58, 107, 0.22);
}

/* empty state inside the wheel when there are no openings */
.wheel .card.wheel-empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(241,245,251,0.96));
  border-style: dashed;
  border-color: rgba(26, 58, 107, 0.28);
  cursor: default;
}
.wheel-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b5f96, #1a3a6b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 11px;
  box-shadow: 0 8px 20px rgba(26, 58, 107, 0.28);
}
.wheel-empty-icon svg.lucide { width: 22px; height: 22px; }
.wheel-empty-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.wheel-empty-sub {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--gray-500);
}
.wheel-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0F1B3D 0%, #1A3A6B 50%, #2D5F9E 100%);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(26, 58, 107, 0.3), inset 0 1px 0 rgba(255,255,255,0.16);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wheel-empty-btn svg.lucide { width: 13px; height: 13px; color: var(--accent-gold); }
.wheel-empty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(26, 58, 107, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* job-detail rows inside a wheel card */
.wcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.wcard-logo {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b5f96, #1a3a6b);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.wcard-new {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(120deg, #f0c05a, #e8bd5f);
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.35);
}
.wcard-index {
  margin-left: auto;
  font-family: 'Sora', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 2px 8px;
  border-radius: 999px;
}
.wcard-company {
  margin-bottom: 6px;
  font-size: 0.84rem;
}
.wcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.wcard-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.wcard-chip-type {
  background: rgba(212, 168, 67, 0.22);
  border-color: rgba(212, 168, 67, 0.5);
  color: #8a6d1f;
}
.wcard-info {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 2px;
  font-size: 0.72rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.wcard-label {
  color: var(--gray-500);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.wcard-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px dashed var(--gray-300);
  font-size: 0.7rem;
}
.wcard-posted { color: var(--gray-500); }
.wcard-more { color: var(--primary-main); font-weight: 700; }

.wheel .hint {
  display: none;
}

/* prev / next controls below the wheel */
.wheel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.wheel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.wheel-btn:hover {
  background: var(--primary-main);
  color: #fff;
  transform: translateY(-1px);
}
.wheel-btn:active { transform: translateY(0); }

.home-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  text-decoration: none!important;
  transition: all 0.28s var(--ease);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.home-auth-login {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-mid));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(26, 58, 107, 0.32);
}
.home-auth-login::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.home-auth-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(26, 58, 107, 0.42);
  color: var(--white);
}
.home-auth-login:hover::after { left: 130%; }
.home-auth-login svg.lucide { transition: transform 0.28s var(--ease); }
.home-auth-login:hover svg.lucide { transform: rotate(-8deg) scale(1.12); }

.home-auth-register {
  background: var(--white);
  color: var(--primary-main);
  border: 2px solid rgba(26, 58, 107, 0.22);
}
.home-auth-register:hover {
  border-color: var(--primary-main);
  background: var(--primary-faint);
  color: var(--primary-main);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 58, 107, 0.14);
}
.home-auth-register svg.lucide { transition: transform 0.28s var(--ease); }
.home-auth-register:hover svg.lucide { transform: scale(1.15) rotate(4deg); }

/* stats */
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero-stat-item {
  padding: 12px 16px 10px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(26, 58, 107, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(26, 58, 107, 0.06);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  flex: 1 1 96px;
}
.hero-stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(26, 58, 107, 0.14);
}
.hero-stat-item .stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-main), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

/* ===== CHECK LIST (benefit/feature bullet lists) ===== */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .check-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.check-list .check-text { color: var(--gray-700); line-height: 1.6; font-size: 0.95rem; }
.check-list .check-text strong { color: var(--gray-900); }

/* ===== SECTIONS ===== */
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
}

/* ===== CARDS ===== */
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== FORMS ===== */
.auth-page {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(45, 95, 158, 0.15) 0%, transparent 60%),
    radial-gradient(820px 520px at -10% 110%, rgba(212, 168, 67, 0.13) 0%, transparent 55%),
    linear-gradient(160deg, var(--primary-faint) 0%, var(--gray-50) 60%, var(--primary-pale) 100%);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.auth-page::before {
  top: -140px; right: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(45,95,158,0.16) 0%, transparent 70%);
  animation: heroBlobA 22s ease-in-out infinite alternate;
}
.auth-page::after {
  bottom: -160px; left: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(212,168,67,0.16) 0%, transparent 70%);
  animation: heroBlobB 26s ease-in-out infinite alternate;
}

.auth-card {
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(45,95,158,0.07) 0%, transparent 60%),
    rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(26,58,107,0.16), 0 4px 14px rgba(26,58,107,0.06);
  padding: 42px 46px;
  border: 1px solid rgba(26,58,107,0.14);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  animation: heroReveal 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
/* animated gradient accent line on top of the auth card */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-main) 0%, var(--primary-mid) 40%, var(--accent-gold) 70%, var(--primary-main) 100%);
  background-size: 200% 100%;
  animation: authBorderFlow 6s linear infinite;
}

.auth-card-wide {
  max-width: 680px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-decoration: none;
}

.auth-logo-icon {
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
  font-size: 1.2rem;
  color: #fff !important;
}
.auth-logo-icon i {
  color: #fff !important;
}

.auth-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-main);
}

.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 1.8rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  display: block;
}

.form-control {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--dur) var(--ease);
  width: 100%;
}
textarea.form-control { min-height: 120px; height: auto; }

.form-control:focus {
  outline: none;
  border-color: var(--primary-main);
  border-width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(26,58,107,0.12);
}

.form-control.is-invalid { border-color: var(--error); }

/* When a flagged-invalid field is auto-focused, thicken the red
   border so it stands out from the rest of the form. */
.form-control.is-invalid:focus {
  border-color: var(--error);
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}

/* Focused selects/date inputs keep a blue border from their
   :focus rules; force red when flagged invalid so the auto-focus
   highlight matches the other fields. */
select.form-control.is-invalid,
select.is-invalid,
.form-select.is-invalid {
  border-color: var(--error) !important;
}

select.form-control.is-invalid:focus,
select.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: var(--error) !important;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}

.invalid-feedback {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 4px;
}

.form-group { margin-bottom: 18px; }

/* modern icon-wrapped inputs (used on the sign-in / register cards) */
.input-wrap { position: relative; }
.input-wrap .form-control {
  padding-left: 44px;
  background: rgba(244, 248, 253, 0.65);
  border: 1.5px solid var(--gray-200);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.input-wrap .form-control:focus {
  background: var(--white);
  border-color: var(--primary-main);
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.12);
  padding-left: 46px;
}
.input-wrap.has-toggle .form-control { padding-right: 46px; }

.input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--gray-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur) var(--ease);
  z-index: 1;
}
.input-icon svg.lucide { width: 18px; height: 18px; }
.input-wrap:focus-within .input-icon { color: var(--primary-main); }
.input-wrap .cselect-trigger { padding-left: 44px; }
.input-wrap .cselect-trigger:focus-visible { padding-left: 46px; }

.input-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--gray-400);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  z-index: 1;
}
.input-toggle:hover { color: var(--primary-main); background: var(--primary-faint); }
.input-toggle svg.lucide { width: 18px; height: 18px; }

.auth-helper {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

.btn-primary-full {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-main), var(--primary-mid));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.28s var(--ease);
  box-shadow: 0 10px 26px rgba(26,58,107,0.3);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}
.btn-primary-full::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary-full:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(26,58,107,0.42);
  color: var(--white);
}
.btn-primary-full:hover::after { left: 130%; }
.btn-primary-full svg.lucide { transition: transform 0.28s var(--ease); }
.btn-primary-full:hover svg.lucide { transform: translateX(4px); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 22px 0;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,58,107,0.2));
}

.auth-divider::after { background: linear-gradient(90deg, rgba(26,58,107,0.2), transparent); }

.auth-link {
  color: var(--primary-main);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.auth-link:hover { color: var(--accent-gold); text-decoration: underline; }

.auth-switch {
  text-align: center;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed rgba(26,58,107,0.18);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.back-link:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

/* ===== DASHBOARD ===== */
.dashboard-page {
  background: var(--gray-50);
  min-height: calc(100vh - 70px);
  padding: 32px 0;
}

.dash-header {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  color: var(--white);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.dash-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.dash-welcome {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.dash-subtitle { font-size: 0.9rem; opacity: 0.8; }

.admin-navbar {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}
.admin-nav-link.active {
  background: var(--primary-main);
  color: var(--white);
}
.admin-navbar-compact .admin-nav-link {
  padding-left: 12px;
  padding-right: 12px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-faint), var(--primary-pale));
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.page-header-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.page-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.page-header-breadcrumb a {
  color: var(--primary-main);
  text-decoration: none;
  font-weight: 500;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: #D1FAE5; color: #065F46; }
.alert-danger  { background: #FEE2E2; color: #991B1B; }
.alert-info    { background: var(--primary-pale); color: var(--primary-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 28px;
}

.footer-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand span { color: var(--primary-light); }

.footer-desc { font-size: 0.88rem; line-height: 1.7; color: var(--gray-400); }

.footer-heading {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  color: var(--gray-400);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--primary-light); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 28px 0 20px;
}

/* ===== MISC ===== */
.text-brand { color: var(--primary-main); }
.divider-brand { height: 3px; width: 48px; background: var(--primary-main); border-radius: 2px; margin-bottom: 16px; }

.user-avatar {
  width: 34px; height: 34px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

/* =========================================================
   APP SHELL — SIDEBAR LAYOUT (Dashboard / Job Board / etc.)
   ========================================================= */
.app-shell-body {
  background: var(--gray-50);
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.app-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 264px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 22px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: #fff;
  color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(26,58,107,0.18);
}

.sidebar-brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
}

.sidebar-brand-text span { color: var(--primary-main); }

.sidebar-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.1rem;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
}

.sidebar-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0 12px;
  margin: 18px 0 8px;
}

.sidebar-nav-label:first-child { margin-top: 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 3px;
  transition: all 0.18s ease;
}

.sidebar-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--gray-400);
  transition: color 0.18s ease;
}

.sidebar-link:hover {
  background: var(--primary-faint);
  color: var(--primary-main);
  text-decoration: none;
}

.sidebar-link:hover i { color: var(--primary-main); }

.sidebar-link.active {
  background: var(--primary-main);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,58,107,0.28);
}

.sidebar-link.active i { color: var(--white); }

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--gray-100);
}

.sidebar-logout { color: var(--error); }
.sidebar-logout i { color: var(--error); }
.sidebar-logout:hover { background: #FEE2E2; color: #991B1B; }
.sidebar-logout:hover i { color: #991B1B; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.5);
  z-index: 1030;
}

.sidebar-overlay.show { display: block; }

/* ---- Main area ---- */
.app-main {
  margin-left: 264px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-topbar-left {
  position: absolute;
  left: 28px;
  display: flex;
}

.app-topbar-right {
  position: absolute;
  right: 28px;
  display: flex;
}

.sidebar-toggle {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  font-size: 1.2rem;
  color: var(--gray-700);
  flex-shrink: 0;
}

.admin-stat-box {
  background: var(--primary-main);
  color: white;
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 4px 14px rgba(26,58,107,0.3);
}
.admin-stat-box .stat-label {
  font-size: 0.7rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-stat-box .stat-count {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
}

.app-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-divider {
  width: 1px;
  height: 30px;
  background: var(--gray-200);
  margin: 0 6px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user-name {
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--gray-900);
  line-height: 1.2;
}

.topbar-user-role {
  font-size: 0.76rem;
  color: var(--gray-400);
}

.app-content {
  padding: 26px 28px 48px;
  flex: 1;
  width: 100%;
}

/* ---- Stat cards ---- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  transition: all 0.2s;
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-card-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ---- Profile completeness card ---- */
.profile-card {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.profile-card-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; }
.profile-card-role { font-size: 0.82rem; opacity: 0.85; margin-bottom: 14px; font-weight: 500; }

.profile-progress {
  height: 7px;
  background: rgba(255,255,255,0.25);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}

.profile-progress-bar {
  height: 100%;
  background: #34D399;
  border-radius: 50px;
}

.profile-progress-label { font-size: 0.78rem; opacity: 0.85; }

/* ---- "Complete Your Profile" widget ---- */
.profile-complete-widget {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 3000;
  width: 150px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-main), var(--primary-mid));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 8px 10px;
}
.profile-complete-widget:hover {
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.26);
  transform: translateY(-2px);
}
.profile-complete-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  color: #fff;
  letter-spacing: 0.02em;
}
@media (max-width: 576px) {
  .profile-complete-widget { right: 10px; top: 72px; }
}

.profile-detail-item { font-size: 0.9rem; color: var(--gray-800); font-weight: 500; }
.profile-detail-item strong { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 2px; }

/* ---- Job recommendation / listing card ---- */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  height: 100%;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}
.job-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

.job-card-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.job-card-date {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
}
.job-card-type {
  background: var(--primary-faint);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: capitalize;
}
.job-card-top-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; }
.interest-btn { flex-shrink: 0; }
.job-card a, .job-card a:hover { color: inherit; text-decoration: none !important; }
.job-card-top-link, .job-card-body-link { color: inherit; text-decoration: none; }
.job-card-top-link:hover, .job-card-body-link:hover { color: inherit; }
.interest-btn { white-space: nowrap; font-size: 0.78rem; }
.job-card-interested {
  border-color: var(--primary-main);
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-faint) 100%);
}

.job-card-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--primary-faint);
  color: var(--primary-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.job-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-meta { font-size: 0.76rem; font-weight: 500; color: var(--gray-500); margin-top: 2px; }

.job-card-info { font-size: 0.88rem; line-height: 1.9; }
.job-card-info .detail-label { font-weight: 600; color: var(--gray-500); min-width: 85px; display: inline-block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.job-card-info > div { color: var(--gray-800); font-weight: 500; font-size: 0.9rem; }

.job-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }

.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.tag-pill-brand { background: var(--primary-faint); color: var(--primary-dark); }
.tag-pill-green  { background: #D1FAE5; color: #065F46; }
.tag-pill-gold   { background: #FEF3C7; color: #92400E; }
.tag-pill-pink   { background: #FCE7F3; color: #9D174D; }

.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  margin: 2px 4px 2px 0;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
  letter-spacing: 0.01em;
}

.job-card-info .skill-tag {
  font-size: 0.8rem;
  padding: 3px 11px;
}
.skill-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.skill-tag button {
  background: none;
  border: none;
  margin-left: 5px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 2px;
  color: inherit;
  font-weight: 700;
  transition: opacity 0.15s;
}
.skill-tag button:hover {
  opacity: 1;
}
.skill-tag-blue  { background: #EEF2FF; color: #4338CA; }
.skill-tag-green { background: #D1FAE5; color: #065F46; }
.skill-tag-purple{ background: #F5F3FF; color: #6D28D9; }
.skill-tag-orange{ background: #FFFBEB; color: #B45309; }
.skill-tag-teal  { background: #F0FDFA; color: #0F766E; }
.skill-tag-rose  { background: #FFF1F2; color: #BE123C; }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-top: 4px;
}



.job-card-applicants { font-size: 0.8rem; color: #EA580C; font-weight: 600; }
.job-posted-date { color: var(--primary-mid); font-weight: 600; }
.job-apply-date { color: var(--warning); font-weight: 600; font-size: 0.8rem; }
.job-date-sep { color: var(--gray-400); }

.btn-know-more {
  background: var(--primary-main);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-know-more:hover { background: var(--primary-dark); color: var(--white); }

/* =========================================================
   JOB CARD — modern polish
   ========================================================= */
.job-card {
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 14px rgba(23, 43, 77, 0.08);
  padding: 20px 22px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.job-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(26, 58, 107, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.job-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pale);
  box-shadow: 0 16px 38px rgba(23, 43, 77, 0.12);
}
.job-card:hover::after { opacity: 1; }

.job-card-top { gap: 12px; margin-bottom: 12px; }
.job-card-title {
  font-size: 1.02rem;
  line-height: 1.3;
}
.job-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}
.job-card-type {
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  color: var(--white);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.7rem;
  box-shadow: 0 3px 10px rgba(26, 58, 107, 0.22);
}
.job-card-date {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 600;
}

.job-card-desc {
  margin: 10px 0 14px;
  color: var(--gray-600);
}

.job-card-meta-row {
  gap: 8px 18px;
  margin-bottom: 14px;
}
.job-card-meta-row span {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
}
.job-card-meta-row i,
.job-card-meta-row svg { width: 14px; height: 14px; color: #0D9488; }

.job-card-skills { margin-bottom: 14px; }

.job-card-footer {
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
  margin-top: 0;
}
.job-apply-date {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
}
.job-apply-date i,
.job-apply-date svg { width: 14px; height: 14px; }
.btn-know-more {
  background: linear-gradient(135deg, #0D9488 0%, #115E59 100%);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.76rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.btn-know-more:hover {
  background: linear-gradient(135deg, #115E59 0%, #0F766E 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.32);
}

.job-card-interested {
  border-color: #0D9488;
  background: linear-gradient(135deg, #ffffff 0%, #F0FDFA 100%);
}
.job-card-interested::before { opacity: 1; }

/* Interested button — indigo/violet theme */
.interest-btn.btn-outline-primary {
  color: #4F46E5;
  border: 1.5px solid #4F46E5;
  background: #EEF2FF;
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: 700;
  transition: all 0.2s var(--ease);
}
.interest-btn.btn-outline-primary:hover {
  background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.32);
  transform: translateY(-1px);
}
.interest-btn.btn-danger {
  background: linear-gradient(135deg, #C7D2FE 0%, #A5B4FC 100%);
  color: #3730A3;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: 700;
  transition: all 0.2s var(--ease);
}
.interest-btn.btn-danger:hover {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.32);
  transform: translateY(-1px);
}

/* ---- Section header (Job recommendations, etc.) ---- */
.section-flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.section-flex-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray-900);
}

/* ---- App card (generic white panel used throughout dashboard pages) ---- */
.app-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.app-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-row {
  display: block;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.list-row:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}

.list-row-title { font-weight: 700; color: var(--primary-dark); font-size: 0.98rem; letter-spacing: -0.01em; }

/* ---- Responsive sidebar ---- */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .app-topbar { padding: 0 16px; gap: 10px; }
  .app-content { padding: 18px 16px 36px; }
}

/* ===== RESPONSIVE ===== */
#labelLastDate { margin-bottom: 0; }
#id_last_date_to_apply { margin-top: 0; padding-top: 8px; }

@media (min-width: 992px) {
  #labelLastDate { margin-bottom: 6px; }
  #id_last_date_to_apply { padding-top: 11px; }
  .section-pad { padding: 56px 0; }
  .section-pad-sm { padding: 36px 0; }
}

@media (max-width: 767.98px) and (min-width: 576px) {
  /* Covers large phones / small tablets in landscape — previously
     jumped straight from the 768px tablet rules to full desktop,
     leaving multi-column forms (post_opening, edit_profile) cramped. */
  .form-row, .row.g-3, .row.g-4 { row-gap: 16px; }
  .card-body { padding: 20px; }
}

@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
  .dash-header { padding: 24px 20px; }
  .hero-section { padding: 48px 0; }
  .hero-stats { gap: 20px; }
  .hero-card-float { display: none; }
  .card-body { padding: 18px; }
  .card-header { padding: 14px 18px; }
}

@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .btn { padding: 9px 16px; font-size: 0.86rem; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .form-control, select, .form-select, input[type="date"] { font-size: 16px; } /* prevents iOS zoom-on-focus */
  .stat-card { padding: 14px 16px; gap: 12px; }
  .stat-card-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .stat-card-value { font-size: 1.15rem; }
}

/* ---- Navbar user bar (avatar / name / dashboard / logout) ---- */
@media (max-width: 991.98px) {
  .nav-user-actions {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
  }
}
@media (max-width: 399.98px) {
  .nav-user-actions { gap: 8px !important; }
  .nav-user-actions .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
  .nav-user-actions span { font-size: 0.85rem; }
  .btn-nav-primary, .btn-nav-login { padding: 0.35rem 0.75rem !important; font-size: 0.85rem; }
}

/* =========================================================
   BOOTSTRAP OVERRIDES — keep everything on‑theme
   ========================================================= */

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--primary-main);
  border-color: var(--primary-main);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(26,58,107,0.25);
}
.btn-outline-primary {
  color: var(--primary-main);
  border-color: var(--primary-main);
}
.btn-outline-primary:hover {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--white);
}
.btn-outline-secondary {
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-800);
}
.btn-success {
  background: #059669;
  border-color: #059669;
}
.btn-success:hover {
  background: #047857;
  border-color: #047857;
}
.btn-danger {
  background: #EF4444;
  border-color: #EF4444;
}
.btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
}
.btn-secondary {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-700);
}
.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

.btn-edit-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #E7C768 0%, var(--accent-gold) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 18px;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-edit-post::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.btn-edit-post:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 134, 11, 0.45);
}
.btn-edit-post:hover::after { transform: translateX(100%); }
.btn-edit-post:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.30);
}
.btn-edit-post svg.lucide,
.btn-edit-post i {
  width: 15px; height: 15px;
}

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid var(--accent-gold);
  color: #92400E;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.18);
  transition: all 0.25s var(--ease);
}
.btn-clear-filters:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.35);
}
.btn-clear-filters svg.lucide,
.btn-clear-filters i {
  width: 15px; height: 15px;
}

.jd-badges { gap: 8px; }
.jd-box-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(23, 43, 77, 0.06);
}
.jd-box-chip i,
.jd-box-chip svg { width: 14px; height: 14px; opacity: 0.9; }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.user-detail-row {
  display: flex;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.user-detail-row:last-child { border-bottom: none; }
.user-detail-label {
  min-width: 120px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.user-detail-value {
  font-size: 0.92rem;
  color: var(--gray-800);
  font-weight: 500;
}

.card-header {
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 24px; }
.card-footer {
  padding: 14px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* ---- Badges (also used as .badge) ---- */
.badge {
  font-weight: 600;
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.75rem;
  vertical-align: middle;
}
.badge.bg-primary { background: var(--primary-pale) !important; color: var(--primary-dark) !important; }
.badge.bg-success { background: #D1FAE5 !important; color: #065F46 !important; }
.badge.bg-warning { background: #FEF3C7 !important; color: #92400E !important; }
.badge.bg-danger  { background: #FEE2E2 !important; color: #991B1B !important; }
.badge.bg-info    { background: #DBEAFE !important; color: #1E40AF !important; }
.badge.bg-secondary { background: var(--gray-100) !important; color: var(--gray-600) !important; }
.badge.bg-light   { background: var(--gray-50) !important; color: var(--gray-600) !important; border: 1px solid var(--gray-200) !important; }

/* ===== THEME UTILITY CLASSES ===== */

.quick-action-bar {
  background: linear-gradient(90deg, var(--primary-main), var(--primary-dark));
  padding: 10px 0;
}
.back-link {
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.back-link:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateX(-2px);
}

/* ===== PAGE-LOAD / SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-content > *,
main > .container > * {
  animation: fadeInUp var(--dur-slow) var(--ease) both;
}
/* Stagger direct children so page-load reads as a considered
   entrance rather than one flat blink. Capped at 5 steps — anything
   deeper just inherits the last delay. */
.app-content > *:nth-child(1), main > .container > *:nth-child(1) { animation-delay: 0s; }
.app-content > *:nth-child(2), main > .container > *:nth-child(2) { animation-delay: 0.06s; }
.app-content > *:nth-child(3), main > .container > *:nth-child(3) { animation-delay: 0.12s; }
.app-content > *:nth-child(4), main > .container > *:nth-child(4) { animation-delay: 0.18s; }
.app-content > *:nth-child(n+5), main > .container > *:nth-child(n+5) { animation-delay: 0.24s; }
.row.g-4 > div:nth-child(1) .feature-card { animation-delay: 0s; }
.row.g-4 > div:nth-child(2) .feature-card { animation-delay: 0.05s; }
.row.g-4 > div:nth-child(3) .feature-card { animation-delay: 0.1s; }
.row.g-4 > div:nth-child(4) .feature-card { animation-delay: 0.15s; }
.row.g-4 > div:nth-child(5) .feature-card { animation-delay: 0.2s; }
.row.g-4 > div:nth-child(6) .feature-card { animation-delay: 0.25s; }
.feature-card {
  animation: fadeInUp var(--dur-slow) var(--ease) both;
}
.card, .job-card, .list-row, .stat-card, .auth-card {
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Lift is reserved for cards that are actually clickable/interactive
   units (job listings, stat tiles, linked cards) — not static content
   or form wrappers, where a bounce on hover reads as accidental motion. */
.job-card, .stat-card, a.card {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.job-card:hover, .stat-card:hover, a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.dropdown-menu {
  animation: fadeInUp var(--dur-fast) var(--ease) both;
}

.quick-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}
.quick-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

.detail-label {
  font-weight: 600;
  color: var(--gray-700);
}

.avatar-lg {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.form-section-title {
  font-weight: 700;
  color: var(--primary-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interest-avatar {
  width: 42px; height: 42px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm {
  width: 24px; height: 24px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-md {
  width: 38px; height: 38px;
  background: var(--primary-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Description Box ---- */
.desc-box {
  background: linear-gradient(135deg, var(--primary-faint) 0%, #FFFFFF 100%);
  border: 1px solid var(--primary-pale);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 8px;
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 0.92rem;
}
.desc-box ul { padding-left: 20px; margin-bottom: 8px; }
.desc-box li { margin-bottom: 4px; }
.desc-box p { margin-bottom: 8px; }
.desc-box p:last-child { margin-bottom: 0; }
.desc-box strong { color: var(--primary-main); }

/* ---- Description Toggle Button ---- */
.desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid var(--primary-pale);
  background: var(--white);
  color: var(--primary-main);
  cursor: pointer;
  transition: all 0.25s ease;
}
.desc-toggle:hover {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--white);
}
.desc-toggle:hover i {
  color: var(--white);
}
.desc-toggle i {
  font-size: 1rem;
  color: var(--primary-main);
  transition: color 0.25s ease;
}
.desc-toggle.active {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--white);
}
.desc-toggle.active i {
  color: var(--white);
}

/* ===== DROPDOWNS ===== */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 160px;
}
.dropdown-item {
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.15s;
}
.dropdown-item:hover {
  background: var(--primary-faint);
  color: var(--primary-main);
}
.dropdown-item.active {
  background: var(--primary-main) !important;
  color: var(--white) !important;
}
.dropdown-item.active:hover {
  background: var(--primary-dark) !important;
}
.dropdown-toggle {
  font-weight: 600;
}

/* ===== FORM SELECTS ===== */
select,
select.form-control,
.form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 40px 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%231A3A6B' d='M213.66 101.66l-80 80a8 8 0 01-11.32 0l-80-80a8 8 0 0111.32-11.32L128 164.69l74.34-74.35a8 8 0 0111.32 11.32z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: none;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: auto;
  width: 100%;
}
select:hover,
select.form-control:hover,
.form-select:hover {
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
select:focus,
select.form-control:focus,
.form-select:focus {
  border-color: var(--primary-main);
  border-width: 2px;
  background-color: var(--white);
  box-shadow: 0 0 0 2px rgba(26,58,107,0.12);
  outline: none;
}
select:disabled,
select.form-control:disabled,
.form-select:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
}
select.form-select-sm,
.form-select-sm {
  padding: 8px 32px 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
select option,
select.form-control option,
.form-select option {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border-radius: 6px;
}
select option:hover,
select.form-control option:hover,
.form-select option:hover {
  background: var(--primary-faint);
  color: var(--primary-main);
}
select option:checked,
select.form-control option:checked,
.form-select option:checked {
  background: var(--primary-main) !important;
  color: var(--white) !important;
}

/* ===== CUSTOM DROPDOWN (JS-enhanced <select>) =====
   custom-select.js wraps every native <select> with this markup:
   .cselect > (select.cselect-native, button.cselect-trigger, .cselect-panel > .cselect-list > .cselect-option[])
   The native select is kept for form submission / validation but is
   made invisible; the button + panel below are what the user sees,
   giving identical, fully custom styling across every browser. */
.cselect {
  position: relative;
  width: 100%;
}
.cselect-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  pointer-events: none;
  z-index: -1;
}
.cselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  box-shadow: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: left;
}
.cselect-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cselect-label.is-placeholder { color: var(--gray-500); font-weight: 500; }
.cselect-chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--primary-main);
  transition: transform 0.28s var(--ease);
}
.cselect-trigger:hover {
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
.cselect.is-open .cselect-trigger {
  border-color: var(--primary-main);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
}
.cselect.is-open .cselect-chevron { transform: rotate(180deg); }
.cselect-trigger.is-invalid {
  border-color: var(--error) !important;
}
.cselect-trigger.is-invalid:focus,
.cselect-trigger.is-invalid:focus-visible {
  border-color: var(--error) !important;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}
.cselect-trigger:focus-visible {
  border-color: var(--primary-main);
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(26,58,107,0.12);
  outline: none;
}
.cselect-disabled .cselect-trigger,
.cselect-trigger:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
}
.cselect-disabled .cselect-chevron { color: var(--gray-400); }

.cselect-sm .cselect-trigger {
  padding: 8px 12px;
  font-size: 0.85rem;
  min-height: 0;
  border-radius: var(--radius-sm);
}

/* the animated open panel */
.cselect-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1200;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
}
.cselect-panel.flip-up {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
  transform: translateY(8px) scale(0.98);
}
.cselect.is-open .cselect-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cselect-list {
  max-height: 264px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.cselect-list::-webkit-scrollbar { width: 6px; }
.cselect-list::-webkit-scrollbar-track { background: transparent; }
.cselect-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
.cselect-list::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.cselect-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.cselect-option.is-placeholder { color: var(--gray-500); }
.cselect-option .cselect-check {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--white);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.cselect-option.is-active,
.cselect-option:hover:not(.is-disabled) {
  background: var(--primary-faint);
  color: var(--primary-main);
}
.cselect-option.is-selected {
  background: var(--primary-main);
  color: var(--white);
  font-weight: 700;
}
.cselect-option.is-selected .cselect-check { opacity: 1; transform: scale(1); }
.cselect-option.is-selected:hover,
.cselect-option.is-selected.is-active { background: var(--primary-dark); }
.cselect-option.is-disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .cselect-panel { max-height: 60vh; }
  .cselect-list { max-height: 55vh; }
}

/* ===== FORM DATE INPUTS =====
   Matches select/.form-select 1:1: same height, radius, weight,
   background states and a custom calendar glyph in the same slot
   the select's chevron occupies — consistent on every browser. */
input[type="date"],
input[type="date"].form-control {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 11px 40px 11px 14px;
  min-height: var(--control-h);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='%231A3A6B' d='M208 32h-24v-8a8 8 0 00-16 0v8H88v-8a8 8 0 00-16 0v8H48a16 16 0 00-16 16v160a16 16 0 0016 16h160a16 16 0 0016-16V48a16 16 0 00-16-16zM72 48v8a8 8 0 0016 0v-8h80v8a8 8 0 0016 0v-8h24v32H48V48zm136 160H48V96h160v112z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  box-shadow: none;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
}
input[type="date"]:hover,
input[type="date"].form-control:hover {
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
input[type="date"]:focus,
input[type="date"].form-control:focus {
  outline: none;
  border-color: var(--primary-main);
  border-width: 2px;
  background-color: var(--white);
  box-shadow: 0 0 0 2px rgba(26,58,107,0.12);
}
input[type="date"]:disabled,
input[type="date"].form-control:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
}
@media (min-width: 768px) {
  #id_last_date_to_apply { margin-top: -48px; }
}

/* Hide the native glyph but keep its click/tap target so the
   picker still opens exactly where our custom icon is drawn. */
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
input[type="date"]::-webkit-datetime-edit {
  color: var(--gray-800);
  font-weight: 600;
}
input[type="date"]:invalid::-webkit-datetime-edit,
input[type="date"]:not(:valid)::-webkit-datetime-edit {
  color: var(--gray-400);
}
input[type="date"]::-webkit-inner-spin-button {
  display: none;
}
/* Firefox has no pseudo-element hook for the glyph, so its native
   icon is simply suppressed via color-scheme; our SVG glyph above
   already renders identically for it. */
@supports (-moz-appearance: none) {
  input[type="date"] { color-scheme: light; }
}

/* ===== CHECKBOXES & RADIOS ===== */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding-left: 0;
}
.form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid var(--gray-300);
  background-color: var(--gray-50);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.form-check-input[type="checkbox"] { border-radius: 6px; }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:hover {
  border-color: var(--primary-light);
}
.form-check-input:checked {
  background-color: var(--primary-main);
  border-color: var(--primary-main);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(26,58,107,0.15);
  border-color: var(--primary-main);
}
.form-check-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}

/* ===== CUSTOM DATE PICKER ===== */
.date-field {
  position: relative;
}
.date-native-input {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  border: none;
  background: none;
}
.date-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  min-height: var(--control-h);
  cursor: pointer;
}
.date-display-text.is-placeholder {
  color: var(--gray-400);
  font-weight: 500;
}
.date-display-icon {
  color: var(--primary-main);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.date-display.is-invalid {
  border-color: var(--error) !important;
}
.date-display.is-invalid:focus,
.date-display.is-invalid:focus-visible {
  border-color: var(--error) !important;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}
.date-display:focus,
.date-display:focus-visible {
  border-color: var(--primary-main);
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(26,58,107,0.12);
  outline: none;
}
.date-display:disabled {
  background-color: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

.date-panel {
  position: absolute;
  top: calc(100% + 8px);
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  /* No overflow:hidden here on purpose: it clips the browser's
     top-layer select popup (used to round the header's corners),
     which broke anchored positioning for the month/year selects.
     Corners are rounded on the header/footer directly instead. */
  z-index: 1050;
  animation: fadeInUp var(--dur-fast) var(--ease) both;
}

.date-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 10px;
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.date-nav-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.date-nav-btn:hover { background: rgba(255,255,255,0.25); }

.date-header-selects {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
/* Same closed-box treatment as .form-control select (Experience
   dropdown etc): bordered light box, navy text, chevron glyph —
   just sized down to fit the calendar header. */
.date-month-select,
.date-year-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1.5px solid transparent;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 256 256'%3E%3Cpath fill='%231A3A6B' d='M213.66 101.66l-80 80a8 8 0 01-11.32 0l-80-80a8 8 0 0111.32-11.32L128 164.69l74.34-74.35a8 8 0 0111.32 11.32z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  color: var(--gray-800);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 24px 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: auto;
  box-shadow: none;
  transition: all var(--dur-fast) var(--ease);
}
.date-month-select:hover, .date-year-select:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.date-month-select:focus, .date-year-select:focus {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.15);
  outline: none;
}
.date-month-select option, .date-year-select option {
  color: var(--gray-700);
  font-weight: 500;
  background: var(--white);
}

.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 8px 0;
  gap: 2px;
}
.date-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 8px 10px;
}
.date-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.date-cell:hover:not(.is-disabled) {
  background: var(--primary-faint);
  color: var(--primary-main);
}
.date-cell.is-outside {
  color: var(--gray-300);
}
.date-cell.is-today {
  box-shadow: inset 0 0 0 1.5px var(--primary-main);
  color: var(--primary-main);
  font-weight: 700;
}
.date-cell.is-selected {
  background: var(--primary-main) !important;
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: none;
}
.date-cell.is-disabled {
  color: var(--gray-200);
  cursor: not-allowed;
}

.date-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.date-footer-btn {
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-main);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background var(--dur-fast) var(--ease);
}
.date-footer-btn:hover { background: var(--primary-faint); }
.date-footer-btn-clear { color: var(--gray-500); }
.date-footer-btn-clear:hover { background: var(--gray-100); color: var(--gray-700); }

@media (max-width: 575.98px) {
  .date-panel { width: 100%; left: 0 !important; right: 0 !important; }
}

/* ===== CUSTOM OPEN DROPDOWN PANEL (progressive enhancement) =====
   Styles the actual open list of every <select> to match the closed
   box, using the appearance: base-select API. Browsers that don't
   support it (Firefox/Safari) simply keep the styling already
   applied above and are completely unaffected. */
@supports (appearance: base-select) {
  select,
  select.form-control,
  .form-select,
  .form-select-sm,
  select::picker(select),
  select.form-control::picker(select),
  .form-select::picker(select),
  .form-select-sm::picker(select) {
    appearance: base-select;
  }

  /* base-select resets the closed box to a plain default look, so
     re-apply the same styling used for the non-base-select box */
  select,
  select.form-control,
  .form-select,
  .form-select-sm {
    background-image: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    box-shadow: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .form-select-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  select::picker-icon,
  select.form-control::picker-icon,
  .form-select::picker-icon,
  .form-select-sm::picker-icon {
    flex-shrink: 0;
    margin-left: auto;
  }
  select:hover,
  select.form-control:hover,
  .form-select:hover,
  .form-select-sm:hover {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  select:focus,
  select.form-control:focus,
  .form-select:focus,
  .form-select-sm:focus,
  select:open,
  select.form-control:open,
  .form-select:open,
  .form-select-sm:open {
    border-color: var(--primary-main);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
    outline: none;
  }

  select::picker(select),
  select.form-control::picker(select),
  .form-select::picker(select),
  .form-select-sm::picker(select) {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 6px;
    max-height: 280px;
  }

  select option,
  select.form-control option,
  .form-select option,
  .form-select-sm option {
    border-radius: 8px;
    padding: 10px 14px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  select option:hover,
  select.form-control option:hover,
  .form-select option:hover,
  .form-select-sm option:hover {
    background: var(--primary-faint);
    color: var(--primary-main);
  }

  select option:checked,
  select.form-control option:checked,
  .form-select option:checked,
  .form-select-sm option:checked {
    background: var(--primary-main);
    color: var(--white);
    font-weight: 700;
  }

  select::picker-icon,
  select.form-control::picker-icon,
  .form-select::picker-icon,
  .form-select-sm::picker-icon {
    color: var(--primary-main);
    transition: transform 0.2s ease;
  }

  select:open::picker-icon,
  select.form-control:open::picker-icon,
  .form-select:open::picker-icon,
  .form-select-sm:open::picker-icon {
    transform: rotate(180deg);
  }

  /* Give the calendar's month/year selects the exact same base-select
     treatment (and open-list styling below) as the Experience dropdown.
     Their own .date-month-select/.date-year-select rules above still
     win on specificity for the compact closed-box size. */
  .date-month-select,
  .date-year-select,
  .date-month-select::picker(select),
  .date-year-select::picker(select) {
    appearance: base-select;
  }
  /* In base-select browsers the picker supplies its own arrow via
     ::picker-icon below — drop the manual background-image chevron
     from the non-supports rule above so there's only one arrow. */
  .date-month-select,
  .date-year-select {
    background-image: none;
    padding-right: 20px;
  }
  .date-month-select::picker-icon,
  .date-year-select::picker-icon {
    color: var(--gray-800);
    width: 10px;
    height: 10px;
  }
  .date-month-select::picker(select),
  .date-year-select::picker(select) {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 6px;
    max-height: 240px;
    min-width: 120px;
  }
  .date-month-select option,
  .date-year-select option {
    border-radius: 8px;
    padding: 8px 12px;
    margin: 2px 0;
  }
  .date-month-select option:hover,
  .date-year-select option:hover {
    background: var(--primary-faint);
    color: var(--primary-main);
  }
  .date-month-select option:checked,
  .date-year-select option:checked {
    background: var(--primary-main);
    color: var(--white);
    font-weight: 700;
  }
}


/* ================================================================
   CUSTOM ALERT / CONFIRM DIALOGS (replaces native browser popups)
   ================================================================ */
.cdlg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 61, 0.55);
  backdrop-filter: blur(3px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}
.cdlg-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.cdlg-box {
  background: var(--white);
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--primary-pale);
  padding: 28px 26px 22px;
  text-align: center;
  transform: translateY(-12px) scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cdlg-overlay.is-open .cdlg-box {
  transform: translateY(0) scale(1);
}
.cdlg-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.cdlg-icon-info    { background: var(--primary-pale); color: var(--primary-main); }
.cdlg-icon-question{ background: var(--primary-pale); color: var(--primary-mid); }
.cdlg-icon-success { background: rgba(5,150,105,0.12); color: var(--success); }
.cdlg-icon-warning  { background: rgba(217,119,6,0.12); color: var(--warning); }
.cdlg-icon-danger  { background: rgba(220,38,38,0.12); color: #DC2626; }
.cdlg-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.cdlg-message {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  white-space: pre-line;
}
.cdlg-message.cdlg-bold {
  color: var(--gray-800);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}
.cdlg-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cdlg-footer .btn {
  min-width: 96px;
}
@media (max-width: 420px) {
  .cdlg-footer { flex-direction: column-reverse; }
  .cdlg-footer .btn { width: 100%; }
}

/* =========================================================
   LARGE SCREENS / TV — scale the UI up on big monitors and
   TVs so the navbar, search bar, and cards don't stay tiny
   in the middle of a huge display. Content width is already
   capped elsewhere (.container / .app-content) to keep line
   lengths readable — this section only grows component and
   type sizes, it doesn't stretch content edge-to-edge.
   ========================================================= */
@media (min-width: 1600px) {
  body { font-size: 1.05rem; }

  /* Public navbar */
  .navbar-brand { font-size: 1.7rem; }
  .nav-link { font-size: 1.02rem; padding: 0.6rem 1.05rem !important; }
  .nav-user-actions .user-avatar,
  .user-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
  .btn-nav-primary, .btn-nav-login { padding: 0.55rem 1.3rem !important; font-size: 1rem; }

  /* Dashboard shell (sidebar + topbar + search) */
  .app-sidebar { width: 288px; }
  .app-main { margin-left: 288px; }
  .sidebar-brand { height: 80px; padding: 0 36px; }
  .app-topbar { height: 80px; padding: 0 36px; }
  .app-topbar-left { left: 36px; }
  .app-topbar-right { right: 36px; }
  .sidebar-toggle { width: 44px; height: 44px; font-size: 1.3rem; }
  .sidebar-link { font-size: 0.98rem; padding: 13px 16px; }
  .sidebar-brand-text { font-size: 1.25rem; }

  /* Buttons & form controls */
  .btn { font-size: 1rem; padding: 11px 22px; }
  .btn-sm { font-size: 0.92rem; padding: 8px 16px; }
  .form-control, .form-select, select { font-size: 1rem; padding: 12px 16px; }

  /* Job board / cards */
  .job-card { padding: 22px 24px; }
  .job-card-title { font-size: 1.15rem; }
  .stat-card { padding: 24px 26px; }
  .tag-pill, .skill-tag { font-size: 0.85rem; }
}

@media (min-width: 2200px) {
  body { font-size: 1.15rem; }

  .navbar-brand { font-size: 1.9rem; }
  .nav-user-actions .user-avatar,
  .user-avatar { width: 42px; height: 42px; font-size: 1rem; }

  .app-sidebar { width: 320px; }
  .app-main { margin-left: 320px; }
  .sidebar-brand { height: 88px; padding: 0 48px; }
  .app-topbar { height: 88px; }

  .btn { font-size: 1.05rem; padding: 12px 24px; }
  .job-card-title { font-size: 1.25rem; }
}

/* =========================================================
   PROJECT REFRESH — logo, nav polish, job-card redesign,
   job-detail popup modal, and admin grid layouts.
   ========================================================= */

/* ---- Compact icon buttons for the public navbar (replaces the
   old avatar + name + "Dashboard" block once a user is logged in) ---- */
.btn-nav-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-faint);
  color: var(--primary-main) !important;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn-nav-icon:hover { background: var(--primary-main); color: var(--white) !important; transform: translateY(-2px); }
.btn-nav-icon-logout:hover { background: var(--error); }

/* ---- Logo mark: circular gradient badge + wordmark, used in the
   public navbar and the sidebar brand ---- */
.navbar-brand { display: inline-flex; align-items: center; gap: 10px; }
.navbar-brand::before { display: none; }
.navbar-brand::after {
  content: '\f2ba'; /* phosphor graduation-cap-fill glyph fallback via font icon below */
  display: none;
}
.navbar-brand {
  position: relative;
}
.navbar-brand .brand-logo-img { height: 62px; width: 190px; max-width: 100%; object-fit: contain; object-position: left center; }
.sidebar-brand-link .brand-logo-img { height: 58px; width: 190px; max-width: 100%; object-fit: contain; object-position: left center; }
.auth-logo .brand-logo-img { height: 90px; width: 250px; max-width: 100%; object-fit: contain; object-position: center; }

.navbar-brand .brand-sub,
.sidebar-brand-link .brand-sub,
.auth-logo .brand-sub {
  margin-top: 28px;
  margin-left: -6px;
}
.auth-logo .brand-sub {
  margin-top: 16px;
}
.navbar-brand .brand-sub {
  margin-top: 8px;
}

.brand-logo-img {
  display: block;
  object-fit: contain;
}

.sidebar-brand-icon {
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15,27,61,0.2), inset 0 0 0 1px rgba(26,58,107,0.1);
  color: var(--accent-gold) !important;
  position: relative;
  overflow: hidden;
}
.sidebar-brand-icon::after {
  display: none;
}
@keyframes brandShine {
  0%, 60% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

/* ---- Sidebar / topbar nav polish ---- */
.sidebar-link {
  position: relative;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.sidebar-link:hover { padding-left: 20px; }
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-gold);
}

/* ---- Slim contextual bar (page-level back / shortcut links on
   non-dashboard pages) — kept intentionally light, not a second
   "logged in as ..." nav bar ---- */
.quick-action-bar { padding: 8px 0; }
.quick-action-bar .back-link { background: rgba(255,255,255,0.14); }

/* =========================================================
   JOB CARDS — two-column grid + reference-style card layout
   ========================================================= */
.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .job-grid { grid-template-columns: 1fr; }
}

.job-card {
  position: relative;
  cursor: pointer;
  padding: 20px 22px 18px;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-mid), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.job-card:hover::before,
.job-card-interested::before { opacity: 1; }

.job-card-status-badge {
  position: absolute;
  top: 16px; right: 18px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}
.status-badge-green { background: #065F46; }
.status-badge-gold  { background: #92400E; }
.status-badge-red   { background: #991B1B; }
.status-badge-gray  { background: var(--gray-500); }

.min-w-0 { min-width: 0; }

.job-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 10px 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 12px;
}
.job-card-meta-row span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.job-card-meta-row i { color: var(--primary-mid); font-size: 0.95rem; }

.job-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.job-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.job-card-footer { flex-wrap: wrap; gap: 10px; }

.btn-know-more { cursor: pointer; }

/* Admin variants reuse the same .job-card skeleton */
.admin-pending-card { cursor: pointer; border-left: 4px solid var(--warning); }
.admin-opening-card { padding-top: 46px; }

/* =========================================================
   ADMIN — filter bar (Pending & Openings tabs)
   ========================================================= */
.admin-filter-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.admin-filter-bar .admin-filter-search {
  flex: 1 1 260px;
  min-width: 180px;
}
.admin-filter-bar .admin-filter-select {
  flex: 0 1 auto;
  min-width: 150px;
}
.admin-filter-select-group {
  display: flex;
  gap: 10px;
  flex: 1 1 340px;
  min-width: 300px;
}
.admin-filter-select-group .admin-filter-select {
  flex: 1 1 0;
  min-width: 0;
}
.admin-filter-bar .admin-filter-search,
.admin-filter-bar .admin-filter-select {
  height: var(--control-h);
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--gray-700);
  background-color: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.admin-filter-bar .admin-filter-search:focus,
.admin-filter-bar .admin-filter-select:focus {
  background-color: var(--white);
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}
.admin-filter-bar .admin-filter-reset {
  height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  font-weight: 600;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.admin-filter-bar .admin-filter-reset:hover {
  color: var(--primary-main);
  border-color: var(--primary-main);
  background: var(--primary-faint);
}
@media (max-width: 700px) {
  .admin-filter-bar { padding: 12px; gap: 8px; }
  .admin-filter-bar .admin-filter-search,
  .admin-filter-bar .admin-filter-select,
  .admin-filter-bar .admin-filter-reset,
  .admin-filter-select-group { flex: 1 1 100%; }
  .admin-filter-select-group { flex-wrap: wrap; min-width: 0; }
}

/* ---- Admin Users tab search box ---- */
.admin-user-search-wrap {
  position: relative;
  max-width: 520px;
}
.admin-user-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #0D9488;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.admin-user-search-icon i,
.admin-user-search-icon svg {
  width: 18px; height: 18px;
}
.admin-user-search-input {
  height: 46px;
  padding: 0 46px 0 16px;
  font-size: 0.92rem;
  color: var(--gray-800);
  background-color: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.04);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.admin-user-search-input:focus {
  background-color: var(--white);
  border-color: #0D9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14), 0 4px 14px rgba(13, 148, 136, 0.12);
}
.admin-user-search-input:hover {
  border-color: rgba(13, 148, 136, 0.45);
}

/* =========================================================
   ADMIN — pending cards polish
   ========================================================= */
.admin-pending-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.admin-pending-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.admin-pending-card .card-body { padding: 20px 22px; }
.admin-pending-card .card-body > div:last-child { padding-top: 14px; margin-top: 4px; }
.admin-pending-card .card-body form,
.job-card-actions form,
.job-card-footer form {
  display: inline-flex;
  margin: 0;
}

/* =========================================================
   JOB DETAIL POPUP (fetched via AJAX, replaces navigating to
   a new page when a job card is clicked)
   ========================================================= */
.job-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 32, 0.62);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.job-modal-overlay.is-open { opacity: 1; visibility: visible; }

.job-modal-panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 90px rgba(8, 15, 35, 0.42), 0 4px 20px rgba(8, 15, 35, 0.16);
  transform: translateY(26px) scale(0.97);
  transition: transform var(--dur-slow) var(--ease);
}
.job-modal-overlay.is-open .job-modal-panel { transform: translateY(0) scale(1); }

/* accent strip along the top edge */
.job-modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-main) 0%, var(--primary-mid) 45%, var(--accent-gold) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 3;
}

.job-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.85);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 27, 61, 0.12);
  z-index: 4;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.job-modal-close:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

/* header stays pinned while the body scrolls below it */
.job-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 48px 20px 30px;
  background: linear-gradient(180deg, #F6FAFF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--gray-100);
}
.job-modal-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
  color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(26, 58, 107, 0.28);
}
.job-modal-icon svg.lucide { width: 1.7rem; height: 1.7rem; color: var(--accent-gold); }
.job-modal-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--gray-900); line-height: 1.28; letter-spacing: -0.01em; }
.job-modal-subtitle { font-size: 0.9rem; color: var(--gray-500); margin-top: 4px; }

.job-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 30px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.job-modal-body::-webkit-scrollbar { width: 8px; }
.job-modal-body::-webkit-scrollbar-track { background: transparent; }
.job-modal-body::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
.job-modal-body::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.job-modal-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; color: var(--gray-500); font-size: 0.95rem; }

/* ---- Content rendered inside the popup (and reused on the full
   job-detail page via the same partial) ---- */
.jd-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 480px) { .jd-meta-grid { grid-template-columns: 1fr; } }
.jd-meta-grid > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 14px;
}
.jd-meta-grid .detail-label {
  font-weight: 800;
  color: var(--gray-500);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.jd-meta-val { font-weight: 600; color: var(--gray-800); font-size: 0.88rem; }
.jd-desc { font-family: 'Inter', sans-serif; font-weight: 500; white-space: normal; overflow-wrap: break-word; font-size: 0.92rem; color: var(--gray-700); line-height: 1.7; }
.jd-desc p { margin: 0 0 10px; }
.jd-desc ul.jd-list { margin: 0 0 10px; padding-left: 20px; }
.jd-desc li { margin-bottom: 3px; }
.jd-desc .jd-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--gray-900);
  margin: 16px 0 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}
.jd-desc .jd-heading::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent-gold);
  flex-shrink: 0;
}
.jd-desc .jd-heading:first-child { margin-top: 0; }
.jd-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--gray-100); padding-top: 14px; margin-top: 6px; }
.jd-interest-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--gray-100); padding-top: 16px; margin-top: 8px;
}

/* ---- Popup-only polish (keeps the full-page view unchanged) ---- */
.job-modal-body .jd-badges .tag-pill,
.job-modal-body .tag-pill {
  border-radius: 4px;
  padding: 6px 13px;
  font-size: 0.76rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 27, 61, 0.06);
}
.job-modal-body .tag-pill-brand { border-color: var(--primary-pale); }
.job-modal-body .skill-tag {
  border-radius: 4px;
  padding: 5px 13px;
  box-shadow: 0 1px 3px rgba(15, 27, 61, 0.1);
}
.job-modal-body .jd-meta-grid > div { transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.job-modal-body .jd-meta-grid > div:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.job-modal-body .jd-desc p,
.job-modal-body .jd-desc ul.jd-list,
.job-modal-body .jd-desc .jd-heading { color: var(--gray-800); }
.job-modal-body .jd-interest-bar {
  background: linear-gradient(180deg, #EEF2FF, #FFFFFF);
  border: 1px solid #C7D2FE;
  border-radius: 4px;
  padding: 16px 18px;
  margin-top: 12px;
}
.job-modal-body .interest-detail-btn.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  padding: 8px 18px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.30);
  transition: all 0.2s var(--ease);
}
.job-modal-body .interest-detail-btn.btn-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.36);
}
.job-modal-body .interest-detail-btn.btn-outline-secondary {
  color: #3730A3;
  border: 1.5px solid #A5B4FC;
  background: #FFFFFF;
  border-radius: 4px;
  font-weight: 700;
  padding: 8px 18px;
  transition: all 0.2s var(--ease);
}
.job-modal-body .interest-detail-btn.btn-outline-secondary:hover {
  background: #EEF2FF;
  border-color: #6366F1;
  color: #3730A3;
  transform: translateY(-1px);
}
.job-modal-body .jd-admin-actions {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .job-modal-overlay { padding: 12px; }
  .job-modal-panel { max-height: 92vh; border-radius: var(--radius-md); }
  .job-modal-panel::before { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .job-modal-header { padding: 20px 42px 16px 20px; gap: 12px; }
  .job-modal-body { padding: 16px 20px 22px; }
  .job-modal-title { font-size: 1.15rem; }
  .job-modal-close { top: 16px; right: 16px; width: 34px; height: 34px; }
}

/* =========================================================
   ADMIN — users grid (3 per row) + modern card
   ========================================================= */
.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1200px) { .admin-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .admin-user-grid { grid-template-columns: 1fr; } }

.admin-user-card {
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.admin-user-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-mid), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
  z-index: 2;
}
.admin-user-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.admin-user-card:hover::before { transform: scaleX(1); }

/* card header — gradient banner with avatar + identity + status */
.admin-user-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary-main), var(--primary-dark));
  color: var(--white);
}
.admin-user-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #B8860B);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.admin-user-identity { flex: 1; min-width: 0; }
.admin-user-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.25;
}
.admin-user-email {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status-verified { background: rgba(16,185,129,0.92); color: #fff; }
.status-pending  { background: rgba(245,158,11,0.95); color: #fff; }

/* card body — meta rows + tags + skills */
.admin-user-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 16px 20px;
}
.admin-user-meta { display: flex; flex-direction: column; gap: 8px; }
.admin-user-meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--gray-600);
  min-width: 0;
}
.admin-user-meta-row > svg.lucide,
.admin-user-meta-row > i {
  width: 28px; height: 28px;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 8px;
  background: var(--primary-faint);
  color: var(--primary-main);
}
.admin-user-meta-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-meta-row strong { color: var(--gray-800); font-weight: 600; }
.admin-user-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-user-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-faint);
  color: var(--primary-dark);
}
.admin-user-tag.tag-pink { background: #FCE7F3; color: #9D174D; }
.admin-user-skills { display: flex; flex-wrap: wrap; gap: 5px; }

/* card footer — action */
.admin-user-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  margin-top: auto;
}
.admin-user-foot .btn {
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}
.admin-user-foot .btn:hover {
  color: var(--primary-main);
  border-color: var(--primary-main);
  background: var(--primary-faint);
}
.admin-user-foot .btn svg.lucide,
.admin-user-foot .btn i {
  transition: transform var(--dur-fast) var(--ease);
}
.admin-user-foot .btn:hover svg.lucide,
.admin-user-foot .btn:hover i { transform: translateX(3px); }

@media (max-width: 420px) {
  .admin-user-head { flex-wrap: wrap; }
  .admin-user-status { margin-left: 58px; }
}

/* ---- Profile completion widget (shown on every page until the
   user's profile is 100% complete) ---- */
.profile-complete-widget {
  position: fixed;
  top: auto;
  bottom: 26px;
  right: 24px;
  width: auto;
  height: auto;
  min-width: 250px;
  max-width: 300px;
  background: linear-gradient(135deg, #E11D48, #991B1B);
  box-shadow: 0 14px 34px rgba(153, 27, 27, 0.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  animation: profileWidgetPulse 3s ease-in-out infinite;
}
.profile-complete-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(153, 27, 27, 0.45);
}
@keyframes profileWidgetPulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(153, 27, 27, 0.35); }
  50% { box-shadow: 0 14px 34px rgba(225, 29, 72, 0.5); }
}
.profile-complete-ring {
  --pct: 0;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--pct) * 1%), rgba(255,255,255,0.25) 0);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #991B1B;
  position: relative;
}
.profile-complete-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
.profile-complete-ring span { position: relative; z-index: 1; }
.profile-complete-copy { flex: 1; min-width: 0; }
.profile-complete-title { font-size: 0.68rem; }
.profile-complete-sub { font-size: 0.6rem; color: rgba(255,255,255,0.75); margin-top: 1px; line-height: 1.25; }
.profile-complete-arrow { color: rgba(255,255,255,0.7); font-size: 0.82rem; flex-shrink: 0; }

@media (max-width: 576px) {
  .profile-complete-widget { right: 12px; bottom: 16px; min-width: 0; max-width: calc(100vw - 24px); padding: 12px 14px; }
  .profile-complete-sub { display: none; }
}

/* =========================================================
   DASHBOARD POLISH (Task 6) + NAV POLISH (Task 8) — round 2
   ========================================================= */

/* ---- Dashboard header banner icon + accent word ---- */
.dash-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.dash-header-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.dash-welcome-accent { color: var(--accent-gold); }
.dash-header > div:not(.dash-header-icon):not(.admin-stat-box),
.dash-header > .d-flex { position: relative; z-index: 1; }

/* ---- Stat cards: subtle top accent that grows in on hover ---- */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-mid), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.stat-card:hover::before { transform: scaleX(1); }

/* ---- Profile progress bar fills in on load rather than snapping ---- */
.profile-progress-bar {
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Admin tab bar: active tab gets an underline + icon polish ---- */
.admin-nav-link { position: relative; }
.admin-nav-link.active {
  box-shadow: 0 4px 12px rgba(26,58,107,0.25);
}
.admin-nav-link i { transition: transform var(--dur-fast) var(--ease); }
.admin-nav-link:hover i { transform: scale(1.1); }

/* ---- Topbar: soften the search focus + add a little life to the
   sidebar toggle button ---- */
.sidebar-toggle {
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.sidebar-toggle:hover { transform: scale(1.06); }

/* ---- Sidebar link icons ease in colour + a touch of scale on hover
   for a livelier feel without being distracting ---- */
.sidebar-link i { transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.sidebar-link:hover i { transform: translateX(1px); }

/* =========================================================
   LUCIDE ICON ADAPTATION — replaces Phosphor font icons
   ========================================================= */
svg.lucide {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.sidebar-link i,
.sidebar-link svg.lucide {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--gray-400);
  transition: color 0.18s ease;
}
.sidebar-link:hover i, .sidebar-link:hover svg.lucide { color: var(--primary-main); }
.sidebar-link.active i, .sidebar-link.active svg.lucide { color: var(--white); }
.sidebar-logout i, .sidebar-logout svg.lucide { color: var(--error); }
.sidebar-logout:hover i, .sidebar-logout:hover svg.lucide { color: #991B1B; }
.auth-logo-icon i, .auth-logo-icon svg.lucide { color: #fff !important; }
.desc-toggle i, .desc-toggle svg.lucide {
  font-size: 1rem;
  color: var(--primary-main);
  transition: color 0.25s ease;
}
.desc-toggle:hover i, .desc-toggle:hover svg.lucide { color: var(--white); }
.desc-toggle.active i, .desc-toggle.active svg.lucide { color: var(--white); }
.job-card-meta-row i, .job-card-meta-row svg.lucide { color: var(--primary-mid); font-size: 0.95rem; }
.admin-nav-link i, .admin-nav-link svg.lucide { transition: transform var(--dur-fast) var(--ease); }
.admin-nav-link:hover i, .admin-nav-link:hover svg.lucide { transform: scale(1.1); }

/* =========================================================
   ADMIN — tab content spacing
   ========================================================= */
.tab-content { padding-top: 4px; }
.tab-content .admin-pending-card + .admin-pending-card { margin-top: 18px; }

.jd-card .profile-modern-grid { gap: 12px; }
.jd-card .profile-modern-item {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(23, 43, 77, 0.05);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.jd-card .profile-modern-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-pale);
  box-shadow: 0 8px 20px rgba(23, 43, 77, 0.09);
}
.jd-card .profile-modern-item:nth-child(2n) { border-right: 1px solid var(--gray-200); }
.jd-card .profile-modern-item.span-2 { grid-column: 1 / -1; border-right: 1px solid var(--gray-200); }
.jd-card .profile-modern-item-icon {
  background: linear-gradient(135deg, var(--primary-faint), #EAF2FF);
  color: var(--primary-main);
  border-radius: 10px;
}
.jd-card .profile-modern-item-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-bottom: 3px;
}
.jd-card .profile-modern-item-value {
  font-size: 0.92rem;
  color: var(--gray-800);
}

.job-modal-body .profile-modern-grid { gap: 12px; }
.job-modal-body .profile-modern-item {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(23, 43, 77, 0.05);
}
.job-modal-body .profile-modern-item:nth-child(2n) { border-right: 1px solid var(--gray-200); }
.job-modal-body .profile-modern-item.span-2 { border-right: 1px solid var(--gray-200); }

@media (max-width: 640px) {
  .job-modal-body .profile-modern-grid { grid-template-columns: 1fr; }
  .job-modal-body .profile-modern-item { border-right: none; }
}

/* =========================================================
   USER DETAIL — modern admin profile page
   ========================================================= */

/* Profile banner */
.user-profile-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 30px 34px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.user-profile-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.user-profile-banner::after {
  content: '';
  position: absolute;
  bottom: -90px; right: 120px;
  width: 180px; height: 180px;
  background: rgba(212,168,67,0.12);
  border-radius: 50%;
}
.user-profile-avatar {
  width: 76px; height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #B8860B);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.user-profile-identity {
  flex: 1;
  min-width: 220px;
  position: relative;
  z-index: 1;
}
.user-profile-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
}
.user-profile-email {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin-top: 2px;
}
.user-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.user-profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.user-profile-tag.green { background: rgba(16,185,129,0.92); border-color: transparent; }
.user-profile-tag.amber { background: rgba(245,158,11,0.95); border-color: transparent; }
.user-profile-tag.gold  { background: var(--accent-gold); border-color: transparent; }
.user-profile-actions {
  position: relative;
  z-index: 1;
}
.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.user-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  color: var(--primary-dark);
}

/* Detail sections */
.user-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}
.user-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(180deg, var(--primary-faint) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
}
.user-section-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
  color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(26,58,107,0.25);
}
.user-section-icon svg.lucide,
.user-section-icon i { width: 1.3rem; height: 1.3rem; color: var(--accent-gold); }
.user-section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
}
.user-section-sub {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 1px;
}
.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.user-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  min-width: 0;
}
.user-detail-item:nth-child(2n) { border-right: none; }
.user-detail-item.span-2 {
  grid-column: 1 / -1;
  border-right: none;
}
.user-detail-item-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-faint);
  color: var(--primary-main);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.user-detail-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.user-detail-item-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .user-profile-banner { padding: 24px 20px; }
  .user-profile-name { font-size: 1.4rem; }
  .user-detail-grid { grid-template-columns: 1fr; }
  .user-detail-item { border-right: none; }
}

/* =========================================================
   INTEREST LIST — job interest users page
   ========================================================= */
.interest-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 26px 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.interest-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 230px; height: 230px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.interest-hero::after {
  content: '';
  position: absolute;
  bottom: -90px; right: 130px;
  width: 170px; height: 170px;
  background: rgba(212,168,67,0.12);
  border-radius: 50%;
}
.interest-hero-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}
.interest-hero-icon svg.lucide { width: 1.6rem; height: 1.6rem; color: var(--accent-gold); }
.interest-hero-info {
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}
.interest-hero-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.25;
}
.interest-hero-meta {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  margin-top: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}
.interest-hero-meta svg.lucide { color: var(--accent-gold); }
.interest-hero-count {
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: 10px 24px;
  backdrop-filter: blur(4px);
}
.interest-hero-count-num {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--accent-gold);
}
.interest-hero-count-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.interest-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}
.interest-date svg.lucide { color: var(--primary-mid); }
@media (max-width: 640px) {
  .interest-hero { padding: 22px 20px; }
  .interest-hero-title { font-size: 1.2rem; }
  .interest-hero-count { padding: 8px 18px; }
}

/* =========================================================
   ADMIN — action buttons (Pending & Openings tabs)
   Each action has its own soft colour so admin tasks are
   instantly recognisable.
   ========================================================= */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.btn-admin svg.lucide,
.btn-admin i { font-size: 0.9rem; transition: transform var(--dur-fast) var(--ease); }
.btn-admin:hover svg.lucide,
.btn-admin:hover i { transform: translateY(-1px); }

/* Quick View — neutral navy tint */
.btn-admin-quickview {
  color: var(--primary-main);
  background: var(--primary-faint);
  border-color: var(--primary-pale);
}
.btn-admin-quickview:hover {
  color: #fff;
  background: var(--primary-main);
  border-color: var(--primary-main);
}

/* Edit — amber */
.btn-admin-edit {
  color: #92400E;
  background: #FEF3C7;
  border-color: #FDE68A;
}
.btn-admin-edit:hover {
  color: #fff;
  background: #D97706;
  border-color: #D97706;
}

/* Publish — green */
.btn-admin-publish {
  color: #065F46;
  background: #D1FAE5;
  border-color: #A7F3D0;
}
.btn-admin-publish:hover {
  color: #fff;
  background: #059669;
  border-color: #059669;
}

/* Reject — red */
.btn-admin-reject {
  color: #991B1B;
  background: #FEE2E2;
  border-color: #FECACA;
}
.btn-admin-reject:hover {
  color: #fff;
  background: #EF4444;
  border-color: #EF4444;
}

/* Unpublish — orange */
.btn-admin-unpublish {
  color: #9A3412;
  background: #FFEDD5;
  border-color: #FED7AA;
}
.btn-admin-unpublish:hover {
  color: #fff;
  background: #EA580C;
  border-color: #EA580C;
}

/* Interested — indigo */
.btn-admin-interests {
  color: #3730A3;
  background: #EEF2FF;
  border-color: #C7D2FE;
}
.btn-admin-interests:hover {
  color: #fff;
  background: #4F46E5;
  border-color: #4F46E5;
}

/* =========================================================
   USER DETAIL + POST OPENING — narrower, modern layout
   ========================================================= */

/* Shared narrow container for full-width pages */
.container.container-narrow {
  max-width: 1160px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Same responsive widths as .container-narrower */
@media (min-width: 1600px) {
  .container.container-narrow { max-width: 1260px; }
}
@media (max-width: 1199.98px) {
  .container.container-narrow { max-width: 1080px; }
}
@media (max-width: 991.98px) {
  .container.container-narrow { max-width: 100%; }
}
@media (max-width: 767.98px) {
  .container.container-narrow { max-width: 100%; }
}
@media (max-width: 575.98px) {
  .container.container-narrow { max-width: 100%; }
}

/* Extra-narrow container (edit / complete profile form) */
.container.container-narrower {
  max-width: 1160px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive: narrow container adapts to every screen size */
@media (min-width: 1600px) {
  .container.container-narrower { max-width: 1260px; }
}
@media (max-width: 1199.98px) {
  .container.container-narrower { max-width: 1080px; }
}
@media (max-width: 991.98px) {
  .container.container-narrower { max-width: 100%; }
}
@media (max-width: 767.98px) {
  .container.container-narrower { max-width: 100%; }
}
@media (max-width: 575.98px) {
  .container.container-narrower { max-width: 100%; }
}

/* Polished form card inside the extra-narrow container */
.container.container-narrower .post-opening-card {
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(23, 43, 77, 0.10);
  border-top: 4px solid var(--accent-gold);
}
.container-narrower .post-opening-card .card-header {
  padding: 18px 24px;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.container-narrower .post-opening-card .card-body {
  padding: 26px 28px 30px;
}
.container-narrower .form-section-title {
  font-size: 0.9rem;
  margin-top: 6px;
}
.container-narrower .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.container-narrower .form-control,
.container-narrower select.form-control,
.container-narrower .form-select,
.container-narrower input[type="date"].form-control {
  padding: 11px 14px;
  font-size: 0.92rem;
  border-radius: 12px;
  border-color: var(--gray-200);
}
.container-narrower .form-control:focus,
.container-narrower .form-select:focus {
  border-color: var(--primary-main);
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(26,58,107,0.12);
}
.container-narrower .form-control.is-invalid,
.container-narrower .form-select.is-invalid,
.container-narrower select.is-invalid,
.container-narrower input[type="date"].form-control.is-invalid {
  border-color: var(--error) !important;
}
.container-narrower .form-control.is-invalid:focus,
.container-narrower .form-select.is-invalid:focus,
.container-narrower select.is-invalid:focus,
.container-narrower input[type="date"].form-control.is-invalid:focus {
  border-color: var(--error) !important;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}
.container-narrower .profile-progress {
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.container-narrower .alert-warning {
  border-radius: 12px;
  border: 1px solid #FDE68A;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  color: #78350F;
  font-size: 0.88rem;
}
.container-narrower .row.g-3.mb-4 {
  row-gap: 18px;
}
.container.container-narrower .btn-primary,
.container.container-narrower .btn-edit-post {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .container.container-narrower .post-opening-card .card-body { padding: 22px 22px 26px; }
}
@media (max-width: 575.98px) {
  .container.container-narrower .post-opening-card { border-radius: 16px; }
  .container.container-narrower .post-opening-card .card-header {
    padding: 16px 18px;
    font-size: 0.9rem;
  }
  .container.container-narrower .post-opening-card .card-body {
    padding: 18px 16px 22px;
  }
  .container.container-narrower .row.g-3.mb-4 { row-gap: 14px; }
}

/* ---- User profile page ---- */
.user-detail-page {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.user-detail-page .user-profile-banner {
  border-radius: 24px;
  padding: 32px 38px;
  box-shadow: 0 24px 60px rgba(26, 58, 107, 0.22);
}

.user-detail-page .user-section {
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(23, 43, 77, 0.06);
  transition: box-shadow var(--dur-slow) var(--ease);
}
.user-detail-page .user-section:hover {
  box-shadow: 0 16px 40px rgba(23, 43, 77, 0.10);
}
.user-detail-page .user-section-head {
  padding: 20px 28px;
}
.user-detail-page .user-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---- Post opening page ---- */
.post-opening-card {
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(23, 43, 77, 0.08);
  overflow: hidden;
  border-top: 4px solid var(--accent-gold);
}
.post-opening-card .card-header {
  background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-bottom: none;
  padding: 20px 28px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.post-opening-card .card-header i,
.post-opening-card .card-header svg {
  color: var(--accent-gold);
}
.post-opening-card .card-body {
  padding: 32px;
}
.post-opening-card .form-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.post-opening-card .form-section-title i,
.post-opening-card .form-section-title svg {
  color: var(--accent-gold);
}

/* ---- My dashboard / profile page (same modern treatment) ---- */
.dashboard-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Job board page (same modern treatment) ---- */
.job-board-wrap {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1600px) { .job-board-wrap { max-width: 1260px; } }
@media (max-width: 1199.98px) { .job-board-wrap { max-width: 1080px; } }
@media (max-width: 991.98px) { .job-board-wrap { max-width: 100%; } }

.job-search-card {
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(23, 43, 77, 0.08);
  border-top: 4px solid var(--accent-gold);
  padding: 26px 28px;
  position: sticky;
  top: 84px;
  z-index: 1050;
}
.job-search-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0D9488 0%, #115E59 100%);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 24px;
  margin: -26px -28px 20px;
  border-radius: 16px 16px 0 0;
}
.job-search-card-head i,
.job-search-card-head svg {
  color: var(--accent-gold);
}

/* ---- Search box + filters ---- */
.job-search-box {
  position: relative;
  margin-bottom: 18px;
}
.job-search-box-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  background: linear-gradient(135deg, #0D9488 0%, #115E59 100%);
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  pointer-events: none;
}
.job-search-box-icon i,
.job-search-box-icon svg {
  width: 19px; height: 19px;
  color: var(--white);
}
.job-search-input {
  padding: 16px 62px 16px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--gray-200);
  font-size: 1rem;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.05);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.job-search-input:hover {
  border-color: rgba(13, 148, 136, 0.5);
}
.job-search-input:focus {
  border-color: #0D9488;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14), 0 4px 14px rgba(13, 148, 136, 0.12);
}

.job-filter-row { margin-top: 6px; }
.job-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}
.job-filter-select {
  padding: 10px 34px 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.88rem;
  color: var(--gray-700);
  background-color: var(--gray-50);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.job-filter-select:focus {
  border-color: #0D9488;
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

/* Job filter dropdown triggers — taller to match the bigger filter box */
select.job-filter-select + .cselect-trigger {
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* Job filter dropdown panels — open downward, taller, cleaner scroll */
select.job-filter-select + .cselect-panel {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.16), 0 4px 12px rgba(23, 43, 77, 0.08);
  border-radius: 14px;
}
select.job-filter-select + .cselect-panel .cselect-list {
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 148, 136, 0.4) transparent;
}
select.job-filter-select + .cselect-panel .cselect-list::-webkit-scrollbar { width: 6px; }
select.job-filter-select + .cselect-panel .cselect-list::-webkit-scrollbar-track { background: transparent; }
select.job-filter-select + .cselect-panel .cselect-list::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.4);
  border-radius: 999px;
}
select.job-filter-select + .cselect-panel .cselect-list::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.65);
}
select.job-filter-select + .cselect-panel .cselect-option {
  padding: 10px 12px;
}
.job-filter-submit { min-width: 150px; }
.btn-job-search {
  background: linear-gradient(135deg, #0D9488 0%, #115E59 100%);
  border: 1px solid transparent;
  color: var(--white);
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.30);
  transition: all 0.25s var(--ease);
}
.btn-job-search:hover {
  background: linear-gradient(135deg, #115E59 0%, #0F766E 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.38);
}
.btn-job-search svg.lucide,
.btn-job-search i {
  width: 16px; height: 16px;
}

/* Sticky filter card — stay pinned below the topbar while browsing jobs */
@media (min-width: 1600px) { .job-search-card { top: 92px; } }
@media (min-width: 2200px) { .job-search-card { top: 100px; } }
@media (max-width: 767.98px) { .job-search-card { position: static; } }

.profile-app-card,
.profile-modern-card {
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 36px rgba(23, 43, 77, 0.08);
  overflow: hidden;
  border-top: 4px solid var(--accent-gold);
  padding: 0;
}
.profile-modern-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.profile-modern-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.profile-modern-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 100px;
  width: 170px; height: 170px;
  background: rgba(212, 168, 67, 0.14);
  border-radius: 50%;
}
.profile-modern-avatar {
  width: 70px; height: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #B8860B);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}
.profile-modern-identity {
  flex: 1;
  min-width: 220px;
  position: relative;
  z-index: 1;
}
.profile-modern-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.profile-modern-email {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 2px;
}
.profile-modern-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.profile-modern-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.profile-modern-tag.gold {
  background: rgba(212, 168, 67, 0.92);
  border-color: transparent;
}
.profile-modern-side {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.profile-modern-percent {
  text-align: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 92px;
}
.profile-modern-percent-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}
.profile-modern-percent-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}
.profile-modern-chevron {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--accent-gold);
  transition: all 0.2s var(--ease);
}
.profile-modern-hero:hover .profile-modern-chevron {
  background: rgba(255, 255, 255, 0.24);
}

.profile-modern-detail {
  padding: 22px 28px 26px;
}
.profile-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-modern-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  min-width: 0;
}
.profile-modern-item:nth-child(2n) { border-right: none; }
.profile-modern-item.span-2 {
  grid-column: 1 / -1;
  border-right: none;
}
.profile-modern-item-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-faint);
  color: var(--primary-main);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.profile-modern-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.profile-modern-item-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.5;
}
.profile-modern-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .user-detail-page .user-profile-banner { padding: 24px 20px; }
  .post-opening-card .card-body { padding: 20px; }
  .profile-modern-hero { padding: 20px 18px; }
  .profile-modern-avatar { width: 58px; height: 58px; font-size: 1.5rem; }
  .profile-modern-name { font-size: 1.25rem; }
  .profile-modern-side { width: 100%; justify-content: space-between; }
  .profile-modern-detail { padding: 16px 18px 20px; }
  .profile-modern-grid { grid-template-columns: 1fr; }
  .profile-modern-item { border-right: none; }
}

/* Delete button (admin cards) — red outline */
.btn-admin-delete {
  color: #B91C1C;
  background: #fff;
  border-color: #FCA5A5;
}
.btn-admin-delete:hover {
  color: #fff;
  background: #DC2626;
  border-color: #DC2626;
}
/* Close button row at the bottom of the job pop-up */
.job-modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--gray-100);
  margin-top: 16px;
  padding-top: 14px;
}
.jd-admin-actions form { margin: 0; }

/* Job type (e.g. Full Time) shown with a clock icon under the Regular/Backdoor badge */
.job-card-jobtype {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.job-card-jobtype svg, .job-card-jobtype i { width: 13px; height: 13px; }


/* ── Expired posts stay on the job board with an EXPIRED badge (top-right corner) ── */
.job-card-expired { background: linear-gradient(135deg, #fff, #f3f4f6); }
.job-card-expired .job-card-top { padding-top: 30px; }
.job-card-expired .job-card-title,
.job-card-expired .job-card-desc,
.job-card-expired .job-card-meta-row,
.job-card-expired .job-card-skills { opacity: 0.7; }
.job-card-expired .job-card-status-badge { top: 14px; right: 16px; }
.job-apply-date-expired { color: var(--gray-500); }
.tag-pill-red { background: #FEE2E2; color: #991B1B; }

/* ===== Jobs table (user + admin dashboards) — row click opens the job pop-up ===== */
.jobs-table { font-size: 0.9rem; }
.jobs-table thead th { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); border-bottom: 2px solid var(--gray-100); white-space: nowrap; }
.jobs-table tbody tr { cursor: pointer; }
.jobs-table tbody tr:hover > * { background: var(--primary-pale); }
.jobs-table td { vertical-align: middle; }
.jobs-table .jt-title { font-weight: 700; color: var(--primary-main); }

/* ===== Admin job board: one compact row per job — click opens the full-details pop-up ===== */
.job-row-list { display: flex; flex-direction: column; gap: 10px; }
.job-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 12px 18px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.job-row:hover { border-color: var(--primary-light); box-shadow: 0 4px 14px rgba(23, 43, 77, 0.10); transform: translateY(-1px); }
.job-row-main { min-width: 0; flex: 1 1 220px; }
.job-row-title { font-weight: 800; font-size: 0.98rem; color: var(--gray-900); line-height: 1.3; }
.job-row-company { font-size: 0.8rem; color: var(--gray-500); margin-top: 1px; }
.job-row-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.82rem; color: var(--gray-600); font-weight: 500; }
.job-row-info span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.job-row-info svg.lucide { width: 14px; height: 14px; color: var(--primary-main); }
.job-row-end { display: flex; align-items: center; gap: 10px; }
.job-row-expired { background: #f9fafb; }
.job-row-expired .job-row-title, .job-row-expired .job-row-info { opacity: 0.65; }


/* Backdoor openings: red badge on the job board */
.job-card-type.job-card-type-backdoor {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.28);
}


/* Reduce the empty space above page content (admin dashboard tabs, My Posts, etc.)
   The alert wrapper above <main> used to add its own 26px even when empty. */
.app-content.pb-0 { padding-top: 0; padding-bottom: 0; flex: 0 0 auto; }
.app-content.pb-0 > .alert { margin: 14px 0 0; }
main.app-content { padding-top: 16px; }


/* ── Pages moved into the sidebar shell: avoid double padding from .container ── */
.app-legacy-page .container,
.app-legacy-page .container.container-narrow,
.app-legacy-page .container.container-narrower {
  padding-left: 0;
  padding-right: 0;
}
.app-legacy-page .page-header { padding-left: 0; padding-right: 0; }
.app-legacy-page .quick-action-bar { display: none; }
.topbar-user-role { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* =========================================================
   UNIFIED PAGE PATTERN — dark-blue header banner on top, form/content below
   (Dashboard, Edit Profile, Post Opening, Change Password, Admin dashboard)
   The Jobs pages are intentionally NOT affected.
   ========================================================= */
.app-content.app-full,
main.app-content.app-full {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.app-full .dashboard-narrow { max-width: none; }
.app-full .container-narrower { max-width: none; width: 100%; padding: 0; }
.app-full .post-opening-card { border-radius: 20px; }
.app-full .dash-header { margin-bottom: 22px; }

/* ---- Admin users: one row per user (same look as job rows) ---- */
.user-row-main { display: flex; align-items: center; gap: 12px; }
.user-row-main .min-w-0 { min-width: 0; }
.user-row-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #B8860B);
  color: #fff; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.user-modal-footer { gap: 10px; flex-wrap: wrap; }
.user-modal-footer form { margin: 0; }
