/* ═══════════════════════════════════════════════════════════════════
   WURKY — Premium Design System v5.0
   White & Blue — Elevated, modern HR platform theme
   Glassmorphism, animated gradients, depth, micro-interactions
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7faff;
  --bg-tertiary: #eef4fc;
  --bg-elevated: #ffffff;
  --bg-hover: #e6f0fd;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-light: rgba(247, 250, 255, 0.6);
  --bg-surface: #f0f5fc;
  --accent: #2E9BF5;
  --accent-hover: #1B8CE5;
  --accent-strong: #0A7DCF;
  --accent-light: rgba(46, 159, 245, 0.08);
  --accent-glow: rgba(46, 159, 245, 0.15);
  --accent-gradient: linear-gradient(135deg, #1B8CE5, #2E9BF5, #5BB3F7);
  --accent-gradient-vivid: linear-gradient(135deg, #0A7DCF, #2E9BF5, #7CC4FA);
  --purple: #a855f7;
  --purple-light: rgba(168, 85, 247, 0.08);
  --purple-gradient: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  --mesh-gradient: linear-gradient(135deg, #0A7DCF 0%, #2E9BF5 25%, #7CC4FA 50%, #a78bfa 75%, #c084fc 100%);
  --text-primary: #0f172a;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --info: #0ea5e9;
  --info-light: rgba(14, 165, 233, 0.1);
  --border: rgba(0, 0, 0, 0.07);
  --border-subtle: rgba(0, 0, 0, 0.03);
  --border-accent: rgba(46, 159, 245, 0.3);
  --border-glass: rgba(255, 255, 255, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-2xl: 0 32px 80px rgba(0,0,0,0.14), 0 12px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(46, 159, 245, 0.12);
  --shadow-accent: 0 4px 24px rgba(46, 159, 245, 0.25);
  --shadow-accent-lg: 0 8px 40px rgba(46, 159, 245, 0.3);
  --shadow-purple: 0 4px 24px rgba(168, 85, 247, 0.2);
  --shadow-colored: 0 8px 32px rgba(46, 159, 245, 0.15);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.2s;
  --duration-slow: 0.4s;
  --duration-slower: 0.6s;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-width: 260px;
  --navbar-height: 64px;
  /* Aliases for backward compatibility */
  --strong: var(--text-primary);
  --muted: var(--text-muted);
  --error: var(--danger);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 0.95rem;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  /* Better mobile scrolling */
  -webkit-overflow-scrolling: touch;
  /* Prevent horizontal scroll on mobile */
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(46, 159, 245, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(27, 140, 229, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 1%) scale(1.02); }
  100% { transform: translate(1%, -1%) scale(1.01); }
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: all var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; }
h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--text-secondary); line-height: 1.75; }

::selection { background: rgba(46, 159, 245, 0.2); color: var(--text-primary); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ─── Utilities ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-accent { color: var(--accent); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.gradient-text {
  background: var(--accent-gradient-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientTextFlow 6s ease-in-out infinite;
}

@keyframes gradientTextFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.gradient-text-vivid {
  background: linear-gradient(135deg, #0A7DCF, #2E9BF5, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% auto;
  animation: gradientTextFlow 8s ease-in-out infinite;
}

.overline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 6px 14px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 159, 245, 0.12);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03), 0 4px 24px rgba(0,0,0,0.02);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 100%;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow-accent);
  transition: transform var(--duration) var(--ease-bounce);
}

.nav-brand:hover .logo-icon { transform: scale(1.08) rotate(-3deg); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-spring);
}

.nav-links a:hover::after, .nav-links a.active::after {
  left: 20%; right: 20%;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ─── Mobile hamburger button ─── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: background 0.2s;
}
.mobile-toggle:hover { background: var(--bg-hover); }
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s var(--ease), width 0.3s var(--ease);
  transform-origin: center;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Nav backdrop ─── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  display: none;
  transition: opacity 0.25s var(--ease);
}
.nav-backdrop.show { opacity: 1; }

/* Hide mobile footer by default (desktop) */
.nav-mobile-footer { display: none !important; }

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-actions { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.75rem 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    z-index: 1000;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-spring), opacity 0.25s var(--ease);
  }
  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 0.925rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
  }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a:hover { background: var(--bg-hover); color: var(--accent); }
  .nav-links > li > a.active {
    background: rgba(46, 159, 245, 0.08);
    color: var(--accent);
    font-weight: 600;
  }
  /* Mobile auth footer */
  .nav-mobile-footer {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 0 0.25rem;
    margin-top: 0.375rem;
    border-top: 1px solid var(--border-subtle);
    list-style: none;
  }
  .nav-mobile-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.925rem;
  }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  white-space: nowrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.96) !important; transition-duration: 0.1s; }

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.btn:active::after {
  opacity: 1;
  transform: scale(2.5);
  transition: transform 0s, opacity 0s;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(46, 159, 245, 0.3), 0 1px 3px rgba(46, 159, 245, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(46, 159, 245, 0.45), 0 2px 8px rgba(46, 159, 245, 0.2), 0 0 0 1px rgba(46, 159, 245, 0.1);
  transform: translateY(-3px) scale(1.02);
  color: white;
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(46, 159, 245, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-danger, .btn-error {
  background: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
  color: white;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover, .btn-error:hover {
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981, #34d399);
  color: white;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.btn-white {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(46, 159, 245, 0.1);
  color: var(--text-primary);
}

.btn-outline-white {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}
.btn-outline-white:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46, 159, 245, 0.15);
}

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.85rem 1.85rem; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 1.05rem 2.5rem; font-size: 1.05rem; border-radius: var(--radius-lg); letter-spacing: 0.02em; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; pointer-events: none; }

/* ═══ CARDS ═══ */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card:hover {
  border-color: rgba(46, 159, 245, 0.15);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* ═══ BADGES ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  text-transform: capitalize;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.2); }
.badge-danger { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.2); }
.badge-info { background: var(--info-light); color: var(--info); border: 1px solid rgba(56, 189, 248, 0.2); }
.badge-accent { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(46, 159, 245, 0.2); }
.badge-neutral { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.15); }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.925rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease-spring);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(46, 159, 245, 0.1), 0 4px 16px rgba(46, 159, 245, 0.06);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.form-select option { background: var(--bg-primary); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input:disabled, .form-select:disabled { opacity: 0.5; cursor: not-allowed; }

.form-file {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.form-file:hover { border-color: var(--accent); background: var(--accent-light); }
.form-file input[type="file"] { display: none; }

/* ═══ STAT CARDS ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.stat-card:hover {
  border-color: rgba(46, 159, 245, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06), 0 0 0 1px rgba(46, 159, 245, 0.05);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-bounce);
}

.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-3deg); }

.stat-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ═══ LANDING HERO ═══ */
.page-content { min-height: calc(100vh - var(--navbar-height)); }

.landing-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  text-align: center;
}

/* Animated mesh gradient background */
.landing-hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%;
  width: 140%; height: 140%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(46, 159, 245, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(91, 179, 247, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.05) 0%, transparent 40%);
  pointer-events: none;
  animation: heroMesh 12s ease-in-out infinite alternate;
}

@keyframes heroMesh {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-3%, 2%) rotate(1deg) scale(1.05); }
  66% { transform: translate(2%, -1%) rotate(-0.5deg) scale(1.02); }
  100% { transform: translate(-1%, 3%) rotate(0.5deg) scale(1.08); }
}

.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 30% 60%, rgba(46, 159, 245, 0.06), transparent 40%),
    radial-gradient(500px circle at 70% 30%, rgba(168, 85, 247, 0.05), transparent 40%),
    radial-gradient(300px circle at 50% 80%, rgba(91, 179, 247, 0.04), transparent 35%);
  pointer-events: none;
}

/* Floating orb decorations */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46, 159, 245, 0.08), transparent 70%);
  top: 10%; right: -5%;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
  bottom: 15%; left: -3%;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(91, 179, 247, 0.07), transparent 70%);
  top: 50%; left: 60%;
  animation: orbFloat3 7s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -15px) scale(1.05); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-20px, 25px) scale(1.15); opacity: 1; }
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: heroContentIn 1s var(--ease-spring) both;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.landing-hero-content h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.85;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Partners */
.partners-section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.partner-logo {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.partner-logo:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: rgba(46, 159, 245, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46, 159, 245, 0.1);
}

.section { padding: 6rem 0; }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-spring);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(46, 159, 245, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(46, 159, 245, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(46, 159, 245, 0.05), var(--shadow-colored);
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-bounce);
  position: relative;
}

.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-5deg); }

.feature-card h3 { margin-bottom: 0.65rem; font-size: 1.15rem; }
.feature-card p { font-size: 0.925rem; line-height: 1.75; }

/* CTA Section */
.cta-section { padding: 6rem 0; }

.cta-box {
  background: linear-gradient(160deg, rgba(247, 250, 255, 0.9) 0%, rgba(238, 244, 252, 0.9) 50%, rgba(230, 240, 253, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-2xl);
  padding: 5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(46, 159, 245, 0.06);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46, 159, 245, 0.1) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 65%);
  pointer-events: none;
  animation: gentlePulse 8s ease-in-out infinite;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
  pointer-events: none;
  animation: orbFloat2 10s ease-in-out infinite;
}

.cta-box h2 { margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-box p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.5rem; position: relative; z-index: 1; }

/* ═══ FOOTER ═══ */
.footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #e8f1fc 100%);
  border-top: 1px solid rgba(0,0,0,0.04);
  padding: 5rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand { max-width: 320px; }
.footer-brand .logo-icon { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }
.footer-brand .footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-brand .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-lg); background: var(--bg-hover); color: var(--text-muted); text-decoration: none; font-size: 1rem; transition: all var(--duration) var(--ease); }
.footer-brand .footer-social a:hover { background: var(--accent); color: white; transform: translateY(-2px); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-col a:hover { color: var(--accent); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

.footer-trizan-strip {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0;
  text-align: center;
}
.footer-trizan-strip p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-trizan-strip a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.footer-trizan-strip a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ═══ JOB BOARD ═══ */
.search-bar {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar .btn {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 0.85rem 1.75rem;
}

.filters-bar, .filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.4rem 1rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(46, 159, 245, 0.2);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: rgba(46, 159, 245, 0.08);
  color: var(--accent);
  border-color: rgba(46, 159, 245, 0.3);
  box-shadow: 0 2px 8px rgba(46, 159, 245, 0.1);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.job-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.job-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px) scale(1.005);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 0 24px rgba(46, 159, 245, 0.08);
}

.job-card:hover::before { opacity: 1; }

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.job-card-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; }
.job-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--text-muted); }
.job-card > p { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 1rem; }

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.salary { font-weight: 700; font-size: 0.95rem; color: var(--success); }

/* ═══ DASHBOARD LAYOUT ═══ */
.dash-layout {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
}

/* ─────────────────────────────────────────────
   SIDEBAR — Clean Light Design
───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 1px 0 0 var(--border), 2px 0 4px rgba(0,0,0,0.02);
  will-change: transform;
}

/* Scrollable nav body */
.sidebar-nav-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.08) transparent;
}
.sidebar-nav-body::-webkit-scrollbar { width: 3px; }
.sidebar-nav-body::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
.sidebar-nav-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }

/* ── Navbar hamburger ── */
.navbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s var(--ease);
  margin-right: 0.4rem;
}
.navbar-hamburger:hover { background: var(--bg-hover); }
@media (max-width: 1024px) { .navbar-hamburger { display: flex; } }

/* ── Sidebar Brand Header ── */
.sidebar-brand {
  padding: 0.85rem 0.875rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-brand:hover { background: var(--bg-secondary); }

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(46,159,245,0.28);
  flex-shrink: 0;
  color: white;
  transition: all 0.2s var(--ease);
}
.sidebar-brand:hover .sidebar-brand-icon { transform: scale(1.05); }

.sidebar-brand-text { display: flex; flex-direction: column; gap: 0.02rem; }

.sidebar-brand-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── Sidebar User Card — flush profile header at very top ── */
.sidebar-user-mini {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 0.875rem;
  background: var(--bg-secondary);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: background 0.15s var(--ease);
  flex-shrink: 0;
  cursor: default;
}
.sidebar-user-mini:hover { background: var(--bg-tertiary); }

/* Avatar — shows photo if available, initials otherwise */
.sidebar-user-mini .su-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E9BF5, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 3px rgba(46,159,245,0.2);
}
.sidebar-user-mini .su-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-user-mini .su-info { flex: 1; min-width: 0; }

.sidebar-user-mini .su-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-user-mini .su-role {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 0.05rem;
}

/* ── Sidebar Section Labels ── */
.sidebar-section {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.9rem 1rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.sidebar-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
}

/* ── Sidebar Nav Items — 2-Column Icon Grid (all screens) ── */
.sidebar-nav {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 0 0.5rem 0.3rem;
  margin: 0;
}

.sidebar-nav li { position: relative; }

.sidebar-nav button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.75rem 0.2rem 0.65rem;
  min-height: 72px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-nav button:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.sidebar-nav button.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(46,159,245,0.22);
}

/* No left-bar in tile mode */
.sidebar-nav button.active::before { display: none; }

/* ── Nav Icon Wrapper ── */
.nav-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
}

.sidebar-nav button:hover .nav-icon-wrap { background: var(--bg-hover); }
.sidebar-nav button.active .nav-icon-wrap { background: rgba(46,159,245,0.14); }

/* Nav label: centred, 2-line clamp */
.nav-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

/* Legacy nav-icon compat */
.nav-icon { font-size: 0.95rem; width: 1.4rem; text-align: center; flex-shrink: 0; }

/* ── Logout nav item ── */
.sidebar-nav li.nav-logout button { color: var(--danger); opacity: 0.65; }
.sidebar-nav li.nav-logout button:hover { color: var(--danger); background: var(--danger-light); opacity: 1; }
.sidebar-nav li.nav-logout button .nav-icon-wrap { background: var(--danger-light); }
.sidebar-nav li.nav-logout button:hover .nav-icon-wrap { background: rgba(239,68,68,0.15); }

/* ── Sidebar Footer Nav — full-width row (overrides grid) ── */
.sidebar-spacer { flex: 1; min-height: 0.5rem; }

.sidebar-footer-nav {
  border-top: 1px solid var(--border);
  padding-bottom: 0.5rem;
  background: var(--bg-primary);
  flex-shrink: 0;
}

.sidebar-footer-nav .sidebar-nav {
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
  gap: 1px;
  padding: 0.25rem 0.5rem;
}

.sidebar-footer-nav .sidebar-nav button {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: unset;
  height: auto;
  padding: 0.55rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 500;
  text-align: left;
  gap: 0.5rem;
  border-radius: 8px;
  overflow: visible;
  box-shadow: none;
}

.sidebar-footer-nav .sidebar-nav button .nav-icon-wrap {
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.sidebar-footer-nav .sidebar-nav button .nav-label {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  white-space: nowrap;
  font-size: 0.83rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: -100%;
    z-index: 900;
    padding: 0;
    transition: left var(--duration-slow) var(--ease-spring);
    box-shadow: 4px 0 32px rgba(0,0,0,0.12);
  }
  .sidebar.open { left: 0; }
  .dash-main { margin-left: 0; width: 100%; }

  /* ── Minimal top gap: brand hugs the app-bar ── */
  .sidebar-brand { padding: 0.28rem 0.65rem; gap: 0.4rem; }
  .sidebar-brand-icon { width: 26px; height: 26px; font-size: 0.78rem; border-radius: 6px; }
  .sidebar-brand-title { font-size: 1rem; }      /* +25% */
  .sidebar-brand-sub { font-size: 0.68rem; }      /* +25% */

  /* ── Compact User Card ── */
  .sidebar-user-mini { margin: 0; padding: 0.48rem 0.75rem; gap: 0.4rem; }
  .sidebar-user-mini .su-avatar { width: 26px; height: 26px; font-size: 0.65rem; }
  .sidebar-user-mini .su-name { font-size: 0.9rem; }     /* +25% */
  .sidebar-user-mini .su-role { font-size: 0.7rem; }      /* +25% */

  /* ── Section Label +25% ── */
  .sidebar-section { padding: 0.42rem 0.5rem 0.1rem; font-size: 0.62rem; letter-spacing: 0.08em; }

  /* ── Size adjustments for 192px sidebar ── */
  .sidebar-nav { gap: 4px; padding: 0 0.35rem 0.3rem; }

  .sidebar-nav button {
    padding: 0.55rem 0.18rem 0.48rem;
    min-height: 64px;
    font-size: 0.72rem;
    border-radius: 9px;
    gap: 0.22rem;
  }

  .sidebar-nav button .nav-icon-wrap {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-radius: 7px;
  }

  .sidebar-nav button .nav-label { font-size: 0.72rem; line-height: 1.15; }

  /* Badge: top-right corner of tile */
  .sidebar-nav .nav-badge {
    top: 3px !important;
    right: 3px !important;
    transform: none !important;
    min-width: 14px !important;
    height: 14px !important;
    font-size: 0.48rem !important;
    padding: 0 0.15rem !important;
  }

  /* Footer row size adjustments */
  .sidebar-footer-nav .sidebar-nav { padding: 0.2rem 0.28rem; }
  .sidebar-footer-nav .sidebar-nav button { padding: 0.48rem 0.65rem; font-size: 0.9rem; }
  .sidebar-footer-nav .sidebar-nav button .nav-label { font-size: 0.9rem; }
}

/* ── Drag-to-reorder nav tiles ── */
.sidebar-nav li[data-nav-id] { cursor: grab; user-select: none; -webkit-user-select: none; }
.sidebar-nav li[data-nav-id]:active { cursor: grabbing; }
.sidebar-nav li[data-nav-id].nav-dragging { opacity: 0.22; }
.sidebar-nav li[data-nav-id].nav-dragging button { background: var(--accent-light) !important; }

.dash-main {
  flex: 1;
  padding: 2rem;
  max-width: 100%;
  min-width: 0;
}

.dash-view {
  display: none;
  animation: fadeIn 0.35s var(--ease);
}

.dash-view.active { display: block; }

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.dash-header h2 { font-size: 1.5rem; }

/* ═══ TABLES ═══ */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

tbody tr { transition: background var(--duration) var(--ease); }
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ═══ TABS ═══ */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.tab-btn {
  padding: 0.5rem 1.15rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(46, 159, 245, 0.3);
}

.tab-panel { display: none; animation: fadeIn 0.3s var(--ease); }
.tab-panel.active { display: block; }

/* ═══ MODALS ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s var(--ease);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s var(--ease-bounce);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.modal-close:hover { background: var(--danger-light); color: var(--danger); }

.modal-body { padding: 1.5rem; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ═══ TOASTS ═══ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + 1rem);
  right: 1.5rem;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.4s var(--ease-bounce);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: var(--success); }
.toast-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); color: var(--danger); }
.toast-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); color: var(--warning); }
.toast-info { background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.25); color: var(--info); }

/* ═══ LOADING & EMPTY STATES ═══ */
.loading-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
  filter: grayscale(30%);
}

.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 1.15rem; }
.empty-state p { font-size: 0.9rem; max-width: 400px; margin: 0 auto; }

/* ═══ PROGRESS BARS ═══ */
.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ═══ JOB DETAIL ═══ */
.job-detail-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

.application-panel {
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gentlePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.02); } }

.fade-in { animation: fadeIn 0.5s var(--ease-spring); }
.slide-up { animation: slideUp 0.6s var(--ease-spring); }
.scale-in { animation: scaleIn 0.5s var(--ease-spring); }
.float { animation: float 3s ease-in-out infinite; }

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s !important; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s !important; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s !important; animation-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s !important; animation-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s !important; animation-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s !important; animation-delay: 0.6s; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse { animation: pulse 2s ease-in-out infinite; }

.notification-dot {
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.3rem;
  animation: pulse 2s ease-in-out infinite;
}

/* ═══ AUTH PAGES ═══ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(160deg, #f7faff 0%, #eef4fc 40%, #e6f0fd 70%, #f0ecff 100%);
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46, 159, 245, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: authOrb1 10s ease-in-out infinite alternate;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: authOrb2 12s ease-in-out infinite alternate;
}

@keyframes authOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes authOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.auth-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 64px rgba(0,0,0,0.06), 0 4px 20px rgba(46, 159, 245, 0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: authCardIn 0.6s var(--ease-spring) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  justify-content: center;
}

.auth-logo .logo-icon { width: 52px; height: 52px; font-size: 1.6rem; }
.auth-logo span { font-size: 1.4rem; font-weight: 800; }

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ═══ BENEFITS LIST (Register) ═══ */
.benefits-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.benefits-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

/* ═══ AVATAR ═══ */
.avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }

/* ═══ TIMELINE ═══ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem; top: 0.4rem;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-light);
}

/* ═══ RESPONSIVE ═══ */

/* ═══ CHAT / TICKET THREADS ═══ */
.chat-container {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 1rem;
}

.chat-messages {
  max-height: 400px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 75%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.55;
  position: relative;
  animation: slideUp 0.25s var(--ease);
}

.chat-bubble.sent {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.received {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble .sender {
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.chat-bubble .time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.35rem;
  text-align: right;
}

.chat-input-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.chat-input-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

/* ═══ TOGGLE SWITCH ═══ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--duration) var(--ease);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-light);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--accent);
}

/* Class-based toggle (used by dashboard customize panels) */
.toggle-switch.active .toggle-slider {
  background: var(--accent-light);
  border-color: var(--accent);
}

.toggle-switch.active .toggle-slider::before {
  transform: translateX(22px);
  background: var(--accent);
}

/* ═══ TABLE WRAPS ═══ */
.table-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-wrap table { margin: 0; }

/* ═══ CARD HOVER ═══ */
.card-hover {
  transition: all var(--duration) var(--ease);
}

.card-hover:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ═══ FORM CHECKBOX ═══ */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ═══ TRUNCATE ═══ */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══ QUICK ACTIONS BAR ═══ */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.quick-action-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-action-btn .qa-icon {
  font-size: 1.15rem;
}

/* ═══ ACTIVITY FEED ═══ */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.activity-item .activity-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.activity-item .activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ═══ MOBILE SIDEBAR OVERLAY ═══ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0);
  z-index: 850;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 0.25s var(--ease-spring), background 0.25s var(--ease-spring), backdrop-filter 0.25s var(--ease-spring), -webkit-backdrop-filter 0.25s var(--ease-spring);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, backdrop-filter, background;
}

.sidebar-overlay.active { 
  display: block;
  background: rgba(5, 10, 20, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1;
  pointer-events: auto;
}

/* ═══ SIDEBAR TOGGLE (MOBILE FAB) ═══ */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0e1a2e 0%, #1a2a45 100%);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(46,159,245,0.25);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.04);
  transition: all 0.2s var(--ease-spring);
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: linear-gradient(135deg, #142236 0%, #1e3054 100%);
  border-color: rgba(46,159,245,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 20px rgba(46,159,245,0.15);
  transform: scale(1.05);
}

.sidebar-toggle:active { transform: scale(0.93); }

@media (max-width: 1024px) {
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
}

/* Mobile form improvements */
@media (max-width: 768px) {
  .form-input, .form-select, textarea {
    font-size: 16px !important;
    padding: 0.75rem !important;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  
  .form-group {
    margin-bottom: 1rem !important;
  }
  
  .btn {
    width: 100%;
    font-size: 1rem;
  }
  
  label {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
}



/* ═══ MESSAGING ANIMATIONS & INTERACTIONS ═══ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.spinner {
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══ GROUP CHAT STYLES ═══ */
.user-select-item input[type="checkbox"] {
  pointer-events: none;
}

.user-select-item:hover {
  background: var(--bg-hover) !important;
}

.group-chat-indicator {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), #1B8CE5);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #ffffff;
}

/* ═══ MESSAGING MOBILE RESPONSIVENESS ═══ */
@media (max-width: 768px) {
  .msg-container { 
    grid-template-columns: 1fr !important; 
    height: calc(100vh - 160px) !important;
    border-radius: 0.5rem !important;
  }
  
  .msg-sidebar { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    z-index: 10;
    transition: transform 0.3s ease;
    border-right: none;
  }
  
  .msg-sidebar.hidden { 
    transform: translateX(-100%); 
    box-shadow: none;
  }
  
  .msg-chat-area { 
    position: relative; 
    z-index: 5;
  }
  
  .msg-chat-area.active { 
    z-index: 15; 
  }
  
  .btn-back-mobile { 
    display: inline-flex !important; 
  }
  
  #chat-header {
    padding: 0.875rem 1rem !important;
  }
  
  #chat-header h3 { 
    font-size: 0.95rem !important; 
  }
  
  #chat-messages { 
    padding: 1rem !important; 
  }
  
  #chat-input-area { 
    padding: 0.875rem 1rem !important; 
  }
  
  #chat-message-input { 
    font-size: 0.9rem !important; 
  }
  
  .conversation-item {
    padding: 1rem !important;
  }
  
  .dash-header {
    padding: 0.75rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .msg-container { 
    border-radius: 0 !important; 
    border-left: none !important; 
    border-right: none !important;
    height: calc(100vh - 140px) !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  
  .conversation-item { 
    padding: 0.875rem !important; 
  }
  
  #chat-input-area {
    padding: 0.75rem !important;
  }
  
  #chat-input-area button[type="submit"] {
    min-width: 60px !important;
    padding: 0.5rem !important;
    font-size: 0.85rem !important;
  }
  
  #chat-message-input {
    min-height: 40px !important;
    font-size: 0.85rem !important;
  }
  
  .dash-header h2 {
    font-size: 1.25rem !important;
  }
  
  .btn-sm {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.8rem !important;
  }
}

/* ═══ ACCESSIBILITY ═══ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .navbar, .sidebar, .btn, .modal-overlay, .toast-container { display: none !important; }
  body { background: white; color: black; }
  .card { border: 1px solid #ddd; }
}

/* ═══ LIGHT THEME POLISH v5 ═══ */
.stat-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.5);
}

.feature-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.4);
}

.job-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.02), inset 0 1px 0 rgba(255,255,255,0.4);
}

.sidebar {
  box-shadow: 1px 0 8px rgba(0,0,0,0.03);
}

.card-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chat-bubble.received {
  background: var(--bg-secondary);
}

.table-wrap {
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.auth-card {
  box-shadow: 0 16px 64px rgba(0,0,0,0.06), 0 4px 20px rgba(46, 159, 245, 0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ═══ ENHANCED HOVER & INTERACTION EFFECTS ═══ */

/* Gradient border glow on hover */
.hover-glow {
  position: relative;
}

.hover-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s var(--ease);
}

.hover-glow:hover::after {
  opacity: 0.15;
}

/* Enhanced link underlines */
.link-fancy {
  position: relative;
  text-decoration: none;
}

.link-fancy::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: right 0.3s var(--ease-spring);
}

.link-fancy:hover::after {
  right: 0;
}

/* Loading shimmer effect */
@keyframes loadingShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-hover) 50%, var(--bg-tertiary) 100%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s ease infinite;
  border-radius: var(--radius-md);
}

/* Improved partner logos */
.partner-logo {
  transition: all 0.3s var(--ease-spring);
}

.partner-logo:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-sm);
}

/* Better empty states */
.empty-state .icon {
  animation: float 3s ease-in-out infinite;
}

/* Improved badge pills */
.badge {
  transition: all 0.2s var(--ease);
}

.badge:hover {
  transform: scale(1.05);
}

/* Tooltip styling */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.4rem 0.75rem;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Glass morphism card variant */
.card-frosted {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Animated gradient borders */
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #1B8CE5, #5BB3F7, #a855f7, #1B8CE5);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: gradientBorder 4s ease infinite;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Counter animation helper */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-zoom img {
  transition: transform 0.4s var(--ease);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Smooth focus ring for all interactive elements */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Page transition */
.page-content {
  animation: pageIn 0.4s var(--ease-spring);
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



/* ═══ v5 ENHANCEMENTS ═══ */

/* Subtle dot grid background for sections */
.section-dotted {
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glowing accent border for featured elements */
.glow-border {
  border: 1px solid rgba(46, 159, 245, 0.2);
  box-shadow: 0 0 20px rgba(46, 159, 245, 0.06), inset 0 0 20px rgba(46, 159, 245, 0.02);
}

/* Text shimmer animation for hero text */
.text-shimmer {
  background: linear-gradient(110deg, var(--text-primary) 40%, rgba(46, 159, 245, 0.6) 50%, var(--text-primary) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}

/* Enhanced section separator */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 159, 245, 0.15), rgba(168, 85, 247, 0.08), transparent);
  margin: 0;
  border: none;
}

/* Smooth number transitions */
.number-animate {
  font-variant-numeric: tabular-nums;
  transition: all 0.6s var(--ease-spring);
}

/* Glass pill for labels/tags */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-spring);
}

.glass-pill:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Section background decoration */
.decorated-section {
  position: relative;
}

.decorated-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(46, 159, 245, 0.12) 50%, transparent 90%);
}

/* Enhanced scrollbar for webkit */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
  background: rgba(46, 159, 245, 0.15); 
  border-radius: var(--radius-full); 
  border: 1px solid transparent;
}
::-webkit-scrollbar-thumb:hover { background: rgba(46, 159, 245, 0.3); }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION — All Screens
   ═══════════════════════════════════════════════════════════════════ */

/* Prevent font size adjust on orientation change */
html { -webkit-text-size-adjust: 100%; }

/* Smooth touch scrolling everywhere */
* { -webkit-tap-highlight-color: rgba(46, 159, 245, 0.08); }

/* Disable hover lift effects on touch-only devices */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .job-card:hover,
  .stat-card:hover,
  .card:hover,
  .partner-logo:hover {
    transform: none;
    box-shadow: none;
  }
  .btn:hover { transform: none; opacity: 1; filter: none; }
}

/* Landscape mobile optimisation */
@media (max-height: 500px) and (orientation: landscape) {
  .landing-hero { min-height: auto; padding: 1.5rem 1rem; }
  #wurky-bug-modal { max-height: 95vh; }
  .modal { max-height: 95vh; }
}

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: var(--navbar-height);
    padding: 0;
    z-index: 900;
    transition: left 0.25s var(--ease-spring);
    height: calc(100vh - var(--navbar-height));
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    will-change: transform;
  }
  .sidebar.open { 
    left: 0;
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  }
  .dash-main { margin-left: 0; width: 100%; padding: 1.5rem; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; }
  
  /* Sidebar mobile fixes */
  .sidebar {
    left: -100% !important;
    right: auto;
    transition: left 0.25s var(--ease-spring), opacity 0.25s var(--ease-spring) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
  }
  .sidebar.open {
    left: 0 !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12) !important;
  }
  .dash-layout { position: relative; }
  .dash-main { 
    width: 100%;
    margin-left: 0;
    padding: 1rem;
    transition: transform 0.25s var(--ease-spring);
  }
  
  /* Typography scale */
  h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.2; }
  h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); line-height: 1.3; }
  h3 { font-size: 1.05rem; }
  p { line-height: 1.65; }
  
  /* Layout */
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  
  /* Hero */
  .landing-hero { min-height: 65vh; padding: 5rem 1.25rem 3rem; }
  .landing-hero-content h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); line-height: 1.15; }
  .subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-ctas { gap: 0.75rem; }
  .hero-stats-row { gap: 1rem; margin-top: 2.5rem; }
  
  /* Grids */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .jobs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  
  /* Cards */
  .card { padding: 1rem; }
  .feature-card { padding: 1.5rem; }
  .stat-card { padding: 1rem 0.875rem; gap: 0.75rem; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .stat-content h3 { font-size: 1.5rem; }
  .cta-box { padding: 2.5rem 1.5rem; border-radius: var(--radius-xl); }
  .job-card { padding: 1.25rem; }
  
  /* Navigation */
  .navbar-inner { padding: 0 1rem; }
  .nav-actions .btn-secondary { display: none; } /* Hide secondary CTA on mobile nav */
  
  /* Tables — horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
  table { min-width: 480px; font-size: 0.85rem; }
  th, td { padding: 0.6rem 0.75rem; white-space: nowrap; }
  
  /* Tabs — horizontal scroll */
  .tabs { 
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    width: 100%; max-width: 100%;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  
  /* Forms — prevent iOS zoom (16px minimum) */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select,
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
  }
  
  /* Touch-friendly tap targets — only primary interactive elements */
  .btn:not(.btn-sm), .btn-lg, .btn-xl,
  .form-input, .form-select, .form-textarea,
  .quick-action-btn {
    min-height: 44px;
  }
  
  /* Dashboard */
  .dash-header { flex-wrap: wrap; gap: 0.75rem; }
  .dash-header h2 { font-size: 1.2rem; }
  .quick-actions { gap: 0.5rem; }
  .quick-action-btn { padding: 0.6rem 0.85rem; font-size: 0.79rem; }
  
  /* Modals */
  .modal-overlay { padding: 0.75rem; align-items: center; }
  .modal { border-radius: var(--radius-xl); max-height: 90vh; margin: 0; }
  
  /* Chat */
  .chat-bubble { max-width: 88%; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  
  /* Sidebar toggle */
  .sidebar-toggle { display: flex; }
  
  /* Images always contained */
  img { max-width: 100%; height: auto; }

  /* ── Navbar logo sizing ── */
  .nav-brand img { height: 38px !important; }

  /* ── Hero stats row ── */
  .hero-stats-row { gap: 0.75rem !important; }
  .hero-stat { padding: 0.75rem 0.875rem !important; flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .hero-stat h3 { font-size: 1.5rem !important; }
  .hero-stat p { font-size: 0.75rem !important; }

  /* ── Hero subtitle ── */
  .landing-hero-content .subtitle { font-size: 0.88rem; line-height: 1.65; }

  /* ── Jobs page hero ── */
  .jobs-hero { padding: 5rem 0 2rem !important; min-height: auto !important; }
  .jobs-stats-bar { gap: 0.5rem !important; flex-wrap: wrap; }
  .jobs-stat { flex-shrink: 0; }

  /* ── For-companies / For-jobseekers funnel hero ── */
  .funnel-hero { padding: 5rem 1.25rem 2.5rem !important; }
  .funnel-hero .subtitle { font-size: 0.95rem !important; }

  /* ── CTA box buttons wrap ── */
  .cta-box .btn, .cta-section .btn { flex-shrink: 0; }

  /* ── Section padding tighter ── */
  .cta-section { padding: 3rem 0; }
  .section { padding: 3rem 0; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .dash-main { padding: 0.875rem; }

  /* Typography */
  h1 { font-size: clamp(1.6rem, 7vw, 1.9rem); }
  h2 { font-size: clamp(1.1rem, 4vw, 1.3rem); }
  
  /* Stats — still 2-col on small phones */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .stat-card { padding: 0.875rem 0.75rem; }
  .stat-content h3 { font-size: 1.35rem; }
  .stat-icon { width: 40px; height: 40px; font-size: 1rem; }

  /* Hero */
  .landing-hero { padding: 4rem 1rem 2.5rem; min-height: 55vh; }
  .landing-hero-content h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero-stats-row { gap: 0.5rem; margin-top: 2rem; }
  .hero-stat { padding: 0.75rem 0.875rem; }
  .hero-stat h3 { font-size: 1.6rem; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  
  /* Search */
  .search-bar { flex-direction: column; overflow: visible; }
  .search-bar input { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .search-bar .btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); width: 100%; }
  
  /* Cards */
  .card { padding: 0.875rem; }
  .feature-card { padding: 1.25rem; }
  .cta-box { padding: 2rem 1rem; }
  .job-card { padding: 1rem; }
  .job-card-header { flex-direction: column; gap: 0.5rem; }
  .job-card-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  
  /* Dashboard header stacks vertically */
  .dash-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
  .dash-header .btn { align-self: stretch; justify-content: center; }
  
  /* Forms */
  .form-group { margin-bottom: 0.875rem; }
  
  /* Modals become bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer { padding: 2.5rem 0 0; }
  .footer-col { gap: 0.5rem; }
  
  /* Tables — smaller text */
  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem 0.6rem; }

  /* Nav dropdown full width */
  .nav-links { padding: 0.5rem; }
  .nav-links a { padding: 0.875rem 1rem; font-size: 0.9rem; }

  /* ── Navbar logo ── */
  .nav-brand img { height: 34px !important; }

  /* ── Hero stats tighter ── */
  .hero-stats-row { gap: 0.5rem !important; }
  .hero-stat { padding: 0.625rem 0.75rem !important; }
  .hero-stat h3 { font-size: 1.3rem !important; }

  /* ── Hero trust/badge row ── */
  .landing-hero-content [style*='No credit'],
  .landing-hero-content [style*='credit card'] { font-size: 0.72rem !important; line-height: 1.5; }

  /* ── Landing hero content ── */
  .landing-hero-content .subtitle { font-size: 0.84rem; }

  /* ── Auth card ── */
  .auth-card { padding: 1.75rem 1.25rem !important; border-radius: var(--radius-xl); }
  .auth-page { padding: 1.25rem; align-items: flex-start; padding-top: 1.5rem; }
  .auth-logo img { height: 56px !important; }
  .auth-logo { margin-bottom: 1.25rem !important; }

  /* ── Jobs page ── */
  .jobs-hero { padding: 2rem 0 1.5rem !important; }
  .search-sticky-bar { padding: 0.5rem 0 !important; }
  .jobs-toolbar { gap: 0.5rem; }

  /* ── funnel hero ── */
  .funnel-hero { padding: 2rem 1rem 1.75rem !important; }

  /* ── CTA section buttons full width ── */
  .cta-section .hero-ctas .btn,
  .cta-section [style*='display:flex'] .btn { width: 100%; }

  /* ── Pricing grid ── */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .roi-grid { grid-template-columns: 1fr 1fr !important; }
  .metric-strip { grid-template-columns: 1fr 1fr !important; }
  .audience-grid { grid-template-columns: 1fr !important; }
  .process-timeline { grid-template-columns: 1fr 1fr !important; }
  .bento-grid { grid-template-columns: 1fr !important; }
  .bento-card.wide { grid-column: span 1 !important; }
}

/* ── Extra small (≤ 360px) ── */
@media (max-width: 360px) {
  .container { padding: 0 0.875rem; }
  .stat-card { padding: 0.75rem 0.625rem; gap: 0.6rem; }
  .stat-content h3 { font-size: 1.2rem; }
  h1 { font-size: 1.5rem; }
  .navbar-inner { padding: 0 0.875rem; }
  .feature-card { padding: 1rem; }
}