/* ================================================================
   JalaJob — Premium Design System
   Claude.ai-inspired · White background · El Salvador
   ================================================================ */

@import url('./tokens.css');

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

:root {
  /* Brand green */
  --brand-50:  #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-300: #86efac;
  --brand-400: #4ade80;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;

  /* Neutrals */
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-150:  #eaecf0;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --gray-900:  #111827;

  /* Other */
  --blue-500:   #3b82f6;
  --blue-600:   #2563eb;
  --amber-500:  #f59e0b;
  --red-400:    #f87171;
  --red-500:    #ef4444;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;

  /* Semantic */
  --bg:             var(--white);
  --bg-muted:       var(--gray-50);
  --bg-subtle:      var(--gray-100);
  --border:         var(--gray-200);
  --border-strong:  var(--gray-300);
  --text:           var(--gray-900);
  --text-2:         var(--gray-600);
  --text-3:         var(--gray-400);
  --brand:          var(--brand-600);
  --brand-hover:    var(--brand-700);

  /* Layout */
  --sidebar-w:      260px;
  --radius-xs:      4px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --radius-2xl:     28px;
  --radius-full:    9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 8px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 20px rgba(0,0,0,.07), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.09), 0 8px 16px rgba(0,0,0,.04);
  --shadow-2xl: 0 32px 64px rgba(0,0,0,.12);

  /* Transitions */
  --t:     160ms cubic-bezier(.4,0,.2,1);
  --t-slow:280ms cubic-bezier(.4,0,.2,1);
  --t-spring:400ms cubic-bezier(.34,1.56,.64,1);
}

/* ── Base ───────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100dvh;
}
#app { display: flex; width: 100%; height: 100dvh; overflow: hidden; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ================================================================
   LOGIN PAGE — Split screen premium
   ================================================================ */
.login-page {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* Left panel — hero/brand */
.login-hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a2f 40%, #14532d 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.login-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.15) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}
.login-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.1) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.hero-logo-box {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(34,197,94,.35);
}
.hero-logo-box svg { color: white; }
.hero-brand-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--brand-300);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-title .hero-accent {
  background: linear-gradient(135deg, var(--brand-300), var(--brand-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hero-feat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-feat-text { flex: 1; }
.hero-feat-title { font-size: .875rem; font-weight: 600; color: white; margin-bottom: 2px; }
.hero-feat-desc  { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5; }

.hero-footer {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

/* Right panel — form */
.login-form-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
  overflow-y: auto;
}

.login-form-inner {
  width: 100%;
  max-width: 380px;
}

.login-form-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
.login-form-sub {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
}

.login-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
  letter-spacing: -.01em;
}
.login-google-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
}
.login-google-btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--text-3);
  font-size: .8125rem;
  font-weight: 500;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.login-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  color: var(--text-2);
}
.trust-check {
  width: 18px; height: 18px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-600);
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.login-legal {
  margin-top: 28px;
  font-size: .75rem;
  color: var(--text-3);
  line-height: 1.6;
  text-align: center;
}

/* Login tabs */
.login-tabs {
  display: flex;
  gap: 2px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 22px;
}
.login-tab {
  flex: 1;
  padding: 8px 14px;
  border: none; background: transparent;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
}
.login-tab.active {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Form error */
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: .8125rem;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Guest button */
.guest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: -.01em;
}
.guest-btn:hover {
  background: var(--white);
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Guest banner in sidebar */
.guest-banner {
  margin: 10px 10px 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--brand-50), #fffbeb);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--brand-800);
  line-height: 1.5;
  text-align: center;
}
.guest-banner strong { display: block; margin-bottom: 4px; font-size: .8125rem; }
.guest-signin-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t);
}
.guest-signin-btn:hover { background: var(--brand-hover); }


/* ================================================================
   MAIN LAYOUT — Sidebar + Content
   ================================================================ */
.app-layout {
  display: flex;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--gray-50);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  flex-shrink: 0;
  transition: width var(--t-slow), min-width var(--t-slow);
}
.sidebar.collapsed { width: 60px; min-width: 60px; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  overflow: hidden;
}
.sidebar-logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34,197,94,.3);
}
.sidebar-logo-icon svg { color: white; }
.sidebar-logo-name {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--t), width var(--t);
}
.sidebar.collapsed .sidebar-logo-name { opacity: 0; width: 0; }

.sidebar-toggle {
  width: 28px; height: 28px;
  border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--gray-200); color: var(--text); }

/* New chat button */
.sidebar-new {
  margin: 12px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: 0 2px 8px rgba(34,197,94,.3);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-new:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,.35); }
.sidebar-new:active { transform: translateY(0); }
.sidebar.collapsed .sidebar-new { padding: 9px; gap: 0; }
.sidebar.collapsed .sidebar-new .new-label { display: none; }

/* Nav sections */
.sidebar-section { padding: 14px 10px 0; flex-shrink: 0; }
.sidebar-section-title {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  padding: 0 6px 6px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--t);
}
.sidebar.collapsed .sidebar-section-title { opacity: 0; }

.nav-list { display: flex; flex-direction: column; gap: 1px; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: none; background: transparent;
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--t), color var(--t);
}
.nav-btn:hover  { background: var(--gray-200); color: var(--text); }
.nav-btn.active { background: var(--white); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs); }
.nav-btn-icon { font-size: .9rem; flex-shrink: 0; width: 18px; text-align: center; }
.nav-btn-label { overflow: hidden; text-overflow: ellipsis; flex: 1; transition: opacity var(--t), width var(--t); }
.sidebar.collapsed .nav-btn-label { opacity: 0; width: 0; }

/* Sessions */
.sidebar-sessions {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 10px;
}

.session-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: none; background: transparent;
  cursor: pointer;
  font-size: .8rem;
  color: var(--text-2);
  width: 100%;
  text-align: left;
  transition: background var(--t), color var(--t);
}
.session-btn:hover  { background: var(--gray-200); color: var(--text); }
.session-btn.active { background: var(--white); color: var(--text); font-weight: 500; box-shadow: var(--shadow-xs); }
.session-icon { font-size: .8rem; flex-shrink: 0; }
.session-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-del {
  opacity: 0; width: 18px; height: 18px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 4px; color: var(--text-3);
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--t), background var(--t), color var(--t);
}
.session-btn:hover .session-del { opacity: 1; }
.session-del:hover { background: var(--red-500); color: white; }

/* Sidebar footer / user */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 10px;
  flex-shrink: 0;
}
.user-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border: none; background: transparent;
  border-radius: var(--radius);
  cursor: pointer; width: 100%; text-align: left;
  transition: background var(--t);
}
.user-btn:hover { background: var(--gray-200); }
.user-av {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .75rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.user-info { flex: 1; overflow: hidden; transition: opacity var(--t), width var(--t); }
.sidebar.collapsed .user-info { opacity: 0; width: 0; }
.user-name { font-size: .8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role-label { font-size: .7rem; color: var(--text-3); margin-top: 1px; }

/* ── Main content ───────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--white);
  min-width: 0;
}

/* ================================================================
   CHAT PAGE
   ================================================================ */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Mode switcher */
.mode-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 24px 0;
  flex-shrink: 0;
}
.mode-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  font-size: .8125rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: -.01em;
}
.mode-btn:hover { background: var(--gray-50); color: var(--text); border-color: var(--gray-300); }
.mode-btn.active {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(34,197,94,.12);
}

/* Thread */
.chat-thread {
  flex: 1;
  min-height: 0; /* Critical: allows overflow-y to work in flex container */
  overflow-y: auto;
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-behavior: smooth;
}

/* Welcome */
.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 24px;
  gap: 28px;
}
.welcome-headline {
  text-align: center;
  max-width: 560px;
}
.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.035em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.welcome-title .name-accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-sub {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.7;
}
.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 660px;
}
.w-chip {
  padding: 8px 15px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}
.w-chip:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Messages */
.msg-user {
  display: flex;
  justify-content: flex-end;
  padding: 6px 0;
  animation: msgIn .2s ease;
}
.msg-user .bubble {
  background: var(--brand-600);
  color: white;
  padding: 11px 16px;
  border-radius: 18px 18px 4px 18px;
  max-width: 70%;
  font-size: .9375rem;
  line-height: 1.65;
  box-shadow: 0 2px 8px rgba(22,163,74,.2);
  letter-spacing: -.01em;
}

.msg-agent {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  max-width: 800px;
  animation: msgIn .2s ease;
}
.agent-av {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .7rem; font-weight: 800;
  flex-shrink: 0; margin-top: 4px;
  box-shadow: 0 2px 8px rgba(34,197,94,.25);
}
.agent-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.agent-text { font-size: .9375rem; line-height: 1.75; color: var(--text); letter-spacing: -.01em; }
.agent-text p { margin-bottom: 4px; }
.agent-text p:last-child { margin-bottom: 0; }
.agent-text strong { font-weight: 600; }

/* Enhanced markdown in agent responses */
.md-content p { margin-bottom: 4px; }
.md-content p:last-child { margin-bottom: 0; }
.md-content strong { font-weight: 600; }
.md-content em { font-style: italic; color: var(--text-2); }
.md-list { margin: 6px 0 8px 16px; display: flex; flex-direction: column; gap: 3px; }
.md-list li { font-size: .9375rem; line-height: 1.65; color: var(--text); }
.md-heading { font-weight: 700; color: var(--text); letter-spacing: -.02em; margin: 8px 0 4px; }
.md-heading.h2 { font-size: 1rem; }
.md-heading.h3 { font-size: .9375rem; }
.md-heading.h4 { font-size: .875rem; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Action chips */
.action-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.action-chip {
  padding: 6px 13px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.action-chip:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

/* Job cards */
.job-cards, .candidate-cards { display: flex; flex-direction: column; gap: 8px; }
.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--shadow-xs);
}
.job-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.job-card-title  { font-size: .875rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.job-card-match  {
  font-size: .7rem; font-weight: 700; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-200);
  padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap; flex-shrink: 0;
}
.job-card-company { font-size: .8125rem; color: var(--text-2); margin-bottom: 8px; }
.job-card-salary  { font-size: .8125rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.job-card-tags    { display: flex; flex-wrap: wrap; gap: 4px; }
.job-tag {
  font-size: .7rem; padding: 2px 8px;
  background: var(--gray-100); color: var(--gray-600);
  border-radius: var(--radius-full); font-weight: 500;
}

/* Candidate card */
.candidate-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; transition: all var(--t); box-shadow: var(--shadow-xs);
}
.candidate-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-1px); }
.cand-av {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-400), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.cand-name  { font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 2px; letter-spacing: -.01em; }
.cand-role  { font-size: .8125rem; color: var(--text-2); margin-bottom: 6px; }
.cand-meta  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cand-exp   { font-size: .75rem; color: var(--text-3); }
.cand-match { font-size: .7rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-200); padding: 2px 8px; border-radius: var(--radius-full); }

/* Typing */
.typing-wrap { display: flex; gap: 12px; padding: 6px 0; align-items: flex-start; }
.typing-dots {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: 18px 18px 18px 4px;
}
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400);
  animation: bounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* ── Chat input ─────────────────────────────────────────────────── */
.chat-input-wrap {
  padding: 16px 24px 24px;
  flex-shrink: 0;
  background: var(--white);
}
.input-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color var(--t), box-shadow var(--t);
  overflow: hidden;
}
.input-box:focus-within {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(34,197,94,.08), var(--shadow);
}
.input-inner {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
}
.chat-textarea {
  flex: 1;
  border: none; outline: none; resize: none;
  font-family: inherit; font-size: .9375rem; line-height: 1.6;
  color: var(--text); background: transparent;
  max-height: 200px; min-height: 24px;
  letter-spacing: -.01em;
}
.chat-textarea::placeholder { color: var(--text-3); }

.input-attach {
  width: 32px; height: 32px;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 1rem;
  transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.input-attach:hover { background: var(--gray-100); color: var(--text-2); }

.input-send {
  width: 34px; height: 34px;
  border: none;
  background: var(--brand);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t), box-shadow var(--t), opacity var(--t);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.input-send:hover:not(:disabled) { background: var(--brand-hover); transform: scale(1.06); box-shadow: 0 4px 12px rgba(22,163,74,.35); }
.input-send:active:not(:disabled) { transform: scale(.96); }
.input-send:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; box-shadow: none; }
.input-footer {
  text-align: center; font-size: .6875rem; color: var(--text-3);
  margin-top: 8px; max-width: 800px; margin-left: auto; margin-right: auto;
}

/* ================================================================
   ADMIN / EXPLORER PAGES
   ================================================================ */
.page-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
}

/* page-wrap: used by AI feature pages (interview-prep, skills-market, etc.)
   MUST have overflow-y:auto so content scrolls on mobile.
   Without this rule, pages inherit overflow:hidden from .main → no scroll. */
.page-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  padding: 32px 40px;
  min-height: 0; /* Critical for flex overflow to work */
}

.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.page-header-text h1 {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--text);
  line-height: 1.2;
}
.page-header-text p { font-size: .9rem; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-icon  { font-size: 1.375rem; margin-bottom: 10px; }
.stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 4px; }
.stat-val   { font-size: 1.875rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }

/* Filters bar */
.filters-bar {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
}
.filters-bar .form-input,
.filters-bar .form-select { flex: 1; min-width: 160px; }

/* Tabs */
.tabs-bar {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 9px 18px;
  border: none; background: transparent;
  font-size: .875rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t), border-color var(--t);
  letter-spacing: -.01em;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--brand-700); border-bottom-color: var(--brand-600); font-weight: 600; }

/* Table */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  text-align: left; padding: 11px 16px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); border-bottom: 1px solid var(--border);
  background: var(--gray-50);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--gray-50); }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 600; letter-spacing: .01em;
}
.badge-green  { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.badge-blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-amber  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-red    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.badge-purple { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--t-spring);
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(22,163,74,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-600) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(22,163,74,.2);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-150) 100%);
  color: var(--text-2);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.btn-secondary:active {
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  box-shadow: 0 2px 4px rgba(0,0,0,.02);
  border-radius: var(--radius);
  transition: all var(--t-spring);
}
.btn-outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22,163,74,.1);
}
.btn-outline:active {
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid transparent;
}
.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--text);
  border-color: var(--border);
}
.btn-sm {
  padding: 6px 14px;
  font-size: .8125rem;
}
.icon-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: .8rem; font-weight: 600;
  cursor: pointer; color: var(--text-2);
  transition: all var(--t);
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.icon-btn:hover {
  border-color: var(--gray-400);
  color: var(--text);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,.05);
}
.icon-btn.danger:hover {
  border-color: var(--red-500);
  color: var(--red-500);
  background: #fef2f2;
  box-shadow: 0 3px 6px rgba(239,68,68,.08);
}

/* Form */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: .8125rem; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: .875rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(34,197,94,.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px;
  text-align: center; gap: 12px;
}
.empty-icon { font-size: 2.5rem; opacity: .4; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.empty-state p  { font-size: .875rem; color: var(--text-2); max-width: 260px; line-height: 1.6; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-150) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Divider ────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ================================================================
   MODALS
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%; max-width: 500px;
  animation: slideUp .25s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.modal-x {
  width: 28px; height: 28px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  transition: background var(--t), color var(--t);
}
.modal-x:hover { background: var(--gray-100); color: var(--text); }
.modal-body { padding: 22px 24px; flex: 1; overflow-y: auto; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
}

/* Role select */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; cursor: pointer; text-align: center;
  transition: all var(--t-spring); background: var(--white);
}
.role-card:hover { border-color: var(--brand-400); background: var(--brand-50); transform: translateY(-1px); }
.role-card.selected { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(34,197,94,.1); }
.role-card-icon  { font-size: 1.75rem; margin-bottom: 8px; }
.role-card-label { font-size: .875rem; font-weight: 600; color: var(--text); }
.role-card-desc  { font-size: .75rem; color: var(--text-2); margin-top: 4px; line-height: 1.4; }

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--gray-900); color: white;
  border-radius: var(--radius-lg);
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: all;
  letter-spacing: -.01em;
  min-width: 240px; max-width: 340px;
}
.toast.success { background: #14532d; }
.toast.error   { background: #7f1d1d; }
.toast-icon    { font-size: 1rem; flex-shrink: 0; }
.toast.fadeOut { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-form-panel { padding: 48px 40px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed; top: 0; left: 0;
    height: 100dvh; z-index: 100;
    transform: translateX(-100%);
    transition: transform var(--t-slow);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    width: var(--sidebar-w) !important;
    min-width: var(--sidebar-w) !important;
  }
  .main { width: 100%; }
  .mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99; display: none;
  }
  .mobile-overlay.show { display: block; }

  .page-scroll { padding: 20px; }
  .page-wrap   { padding: 20px; } /* mobile padding for AI pages */
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .chat-input-wrap { padding: 12px 16px 20px; }
  .chat-thread { padding: 16px 16px 0; }
  .welcome-title { font-size: 1.5rem; }
  .msg-user .bubble { max-width: 88%; }

  .login-form-panel { padding: 40px 24px; }
  .login-form-inner { max-width: 100%; }
}

/* ================================================================
   GLASSMORPHISM SYSTEM — JalaJob V2
   ================================================================ */

:root {
  --glass-bg:       rgba(255,255,255,0.72);
  --glass-bg-dark:  rgba(15,36,24,0.75);
  --glass-border:   rgba(255,255,255,0.45);
  --glass-border-dark: rgba(255,255,255,0.12);
  --glass-blur:     blur(20px);
  --glass-shadow:   0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  --glass-shadow-lg:0 20px 60px rgba(0,0,0,.15), 0 8px 20px rgba(0,0,0,.08);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
  transition: transform var(--t), box-shadow var(--t);
}
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-lg);
}

/* ================================================================
   NOTIFICATION BELL
   ================================================================ */
.notif-bell {
  position: relative;
  width: 36px; height: 36px;
  border: none; background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.notif-bell:hover { background: var(--gray-100); color: var(--text); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red-500);
  border-radius: 50%;
  border: 1.5px solid white;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .8; }
}
.notif-count {
  position: absolute;
  top: 3px; right: 3px;
  min-width: 16px; height: 16px;
  background: var(--red-500);
  color: white;
  font-size: .6rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid white;
  padding: 0 3px;
}

/* Notification dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 1000;
  animation: dropIn .2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .875rem; font-weight: 600;
}
.notif-item {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-50);
  cursor: pointer;
  transition: background var(--t);
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--brand-50); }
.notif-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.notif-title { font-size: .8125rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.notif-body  { font-size: .75rem; color: var(--text-2); line-height: 1.5; }
.notif-time  { font-size: .7rem; color: var(--text-3); margin-top: 3px; }

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.admin-sidebar {
  width: 220px;
  min-width: 220px;
  background: linear-gradient(180deg, #0f2418 0%, #1a3825 100%);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.admin-sidebar-head {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-logo {
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  box-shadow: 0 3px 10px rgba(34,197,94,.35);
}
.admin-sidebar-title {
  font-size: .875rem; font-weight: 700; color: white;
  letter-spacing: -.01em;
}
.admin-sidebar-sub {
  font-size: .7rem; color: rgba(255,255,255,.45); margin-top: 1px;
}

.admin-nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: none; background: transparent;
  border-radius: var(--radius);
  cursor: pointer; font-size: .8125rem; font-weight: 500;
  color: rgba(255,255,255,.6);
  width: 100%; text-align: left;
  transition: all var(--t);
}
.admin-nav-btn:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.admin-nav-btn.active {
  background: rgba(34,197,94,.2);
  color: var(--brand-300);
  font-weight: 600;
  border-left: 3px solid var(--brand-400);
  padding-left: 9px;
}
.admin-nav-icon { font-size: .9rem; width: 20px; text-align: center; flex-shrink: 0; }
.admin-nav-sep { height: 1px; background: rgba(255,255,255,.07); margin: 8px 0; }

.admin-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.admin-user-info { display: flex; align-items: center; gap: 8px; }
.admin-user-av {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .7rem; font-weight: 700;
}
.admin-user-name { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.85); }
.admin-user-badge { font-size: .65rem; color: var(--brand-400); font-weight: 600; margin-top: 1px; }

/* Admin content area */
.admin-content {
  flex: 1;
  overflow-y: auto;
  background: var(--gray-50);
  min-width: 0;
}
.admin-page { padding: 24px 28px; max-width: 1400px; }
.admin-page-title {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  letter-spacing: -.025em; margin-bottom: 4px;
}
.admin-page-sub { font-size: .875rem; color: var(--text-2); margin-bottom: 24px; }

/* Stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.admin-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.admin-stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 10px; }
.admin-stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.admin-stat-value.green { color: var(--brand-600); }
.admin-stat-value.blue  { color: var(--blue-600); }
.admin-stat-value.purple { color: #8b5cf6; }
.admin-stat-value.amber { color: var(--amber-500); }
.admin-stat-value.red   { color: var(--red-500); }
.admin-stat-delta {
  display: flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; color: var(--brand-600);
  margin-top: 6px;
}
.admin-stat-delta.neg { color: var(--red-500); }
.admin-stat-icon { font-size: 1.5rem; margin-bottom: 8px; }

/* Admin table */
.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}
.admin-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-table-title { font-size: .9375rem; font-weight: 700; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}
.admin-table th {
  padding: 10px 16px;
  background: var(--gray-50);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-50);
  color: var(--text-2);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.badge-green  { background: #dcfce7; color: #166534; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: var(--gray-100); color: var(--gray-700); }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-pending  { background: #fef9c3; color: #854d0e; }
.badge-active   { background: #dcfce7; color: #166534; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-premium  { background: linear-gradient(135deg,#f3e8ff,#ede9fe); color: #6b21a8; }

/* Pipeline stages */
.stage-recibido   { background: #f1f5f9; color: #475569; }
.stage-contactado { background: #dbeafe; color: #1e40af; }
.stage-entrevistado { background: #fef9c3; color: #854d0e; }
.stage-seleccionado { background: #dcfce7; color: #166534; }
.stage-rechazado  { background: #fee2e2; color: #991b1b; }

/* ================================================================
   RECRUITMENT PIPELINE KANBAN
   ================================================================ */
.pipeline-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px;
}
.pipeline-col {
  min-width: 220px;
  width: 220px;
  flex-shrink: 0;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.pipeline-col-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.pipeline-col-title {
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.pipeline-col-count {
  font-size: .7rem; font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--gray-200); color: var(--text-2);
}
.pipeline-cards {
  padding: 10px;
  min-height: 100px;
  display: flex; flex-direction: column; gap: 8px;
}
.pipeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: grab;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.pipeline-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pipeline-card-name { font-size: .8125rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.pipeline-card-role { font-size: .75rem; color: var(--text-2); margin-bottom: 8px; }
.pipeline-card-score {
  display: flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700;
}
.score-bar {
  flex: 1; height: 4px;
  background: var(--gray-200);
  border-radius: 2px; overflow: hidden;
}
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  border-radius: 2px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.score-fill.low { background: linear-gradient(90deg, #f87171, #ef4444); }
.score-fill.mid { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.pipeline-card-actions {
  display: flex; gap: 4px; margin-top: 8px; justify-content: flex-end;
}
.pipeline-action-btn {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .7rem; font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-2);
  transition: all var(--t);
}
.pipeline-action-btn:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.pipeline-action-btn.move { background: var(--brand-600); color: white; border-color: var(--brand-600); }
.pipeline-action-btn.reject { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ================================================================
   APPLICATION STATUS TIMELINE
   ================================================================ */
.app-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
}
.app-timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-300), var(--gray-200));
}
.timeline-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0;
  position: relative;
}
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
  flex-shrink: 0;
  margin-left: -20px;
  margin-top: 2px;
  transition: all .3s;
  z-index: 1;
}
.timeline-dot.active {
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse-step .8s ease-in-out 1;
}
.timeline-dot.done { background: var(--brand-600); box-shadow: 0 0 0 2px var(--brand-200); }
.timeline-dot.rejected { background: var(--red-500); box-shadow: 0 0 0 2px #fecaca; }
@keyframes pulse-step {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.timeline-label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.timeline-label.active { color: var(--brand-700); }
.timeline-label.done { color: var(--text); }
.timeline-time { font-size: .7rem; color: var(--text-3); margin-top: 1px; }

/* ================================================================
   SIMILARITY SCORE DONUT
   ================================================================ */
.score-donut {
  display: flex; align-items: center; gap: 14px;
}
.score-ring {
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.score-ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}
.score-ring .track { stroke: var(--gray-100); }
.score-ring .fill  {
  stroke: var(--brand-500);
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}
.score-ring .fill.low { stroke: var(--red-400); }
.score-ring .fill.mid { stroke: var(--amber-500); }
.score-number {
  position: absolute;
  font-size: .75rem; font-weight: 800;
  color: var(--text);
}
.score-info { flex: 1; }
.score-pct { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.score-pct.high { color: var(--brand-600); }
.score-pct.mid  { color: var(--amber-500); }
.score-pct.low  { color: var(--red-500); }
.score-label { font-size: .75rem; color: var(--text-2); margin-top: 2px; }

/* ================================================================
   BILLING / PLANS
   ================================================================ */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.billing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.billing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.billing-card.featured {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(34,197,94,.12), var(--shadow-lg);
}
.billing-popular {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(34,197,94,.35);
}
.billing-tier { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.billing-price { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.billing-price span { font-size: 1rem; font-weight: 500; color: var(--text-3); vertical-align: super; }
.billing-price sub { font-size: 1rem; font-weight: 500; color: var(--text-3); vertical-align: baseline; margin-left: 2px; }
.billing-features { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.billing-feature { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--text-2); }
.billing-feature-check { color: var(--brand-600); font-weight: 800; }
.billing-feature-x { color: var(--gray-300); }

/* ================================================================
   CV CARD
   ================================================================ */
.cv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.cv-card:hover { box-shadow: var(--shadow); border-color: var(--brand-200); }
.cv-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cv-info { flex: 1; }
.cv-name { font-size: .875rem; font-weight: 600; color: var(--text); }
.cv-meta { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.cv-actions { display: flex; gap: 6px; }
.cv-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .75rem; font-weight: 600;
  cursor: pointer; background: var(--white);
  color: var(--text-2);
  transition: all var(--t);
}
.cv-btn:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.cv-btn.primary { background: var(--brand-600); color: white; border-color: var(--brand-600); }
.cv-btn.primary:hover { background: var(--brand-700); }

/* ================================================================
   APPLICATION CARDS (candidate view)
   ================================================================ */
.application-cards { display: flex; flex-direction: column; gap: 12px; }
.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.app-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.app-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-card-title { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.app-card-company { font-size: .8rem; color: var(--text-2); }
.app-card-body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-card-date { font-size: .75rem; color: var(--text-3); }

/* ================================================================
   ANALYTICS CHARTS AREA
   ================================================================ */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 24px; }
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.chart-title { font-size: .875rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.chart-area { height: 180px; display: flex; align-items: flex-end; gap: 6px; padding-top: 10px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%; max-width: 32px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  transition: all .5s cubic-bezier(.4,0,.2,1);
  min-height: 4px;
}
.chart-bar:hover { filter: brightness(1.1); }
.chart-bar-label { font-size: .6rem; color: var(--text-3); }
.chart-bar-value { font-size: .6rem; font-weight: 700; color: var(--brand-600); }
.chart-summary { font-size: .75rem; color: var(--text-3); margin: -10px 0 10px; font-weight: 600; }
.badge-gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 1px solid #fcd34d; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-2); cursor: pointer; border-radius: var(--radius-lg); font-weight: 600; font-family: inherit; transition: all var(--t); }
.btn-outline:hover { border-color: var(--brand-400); color: var(--brand-600); background: var(--brand-50); }

/* ================================================================
   WHATSAPP SETUP GUIDE
   ================================================================ */
.wa-setup-steps { display: flex; flex-direction: column; gap: 16px; }
.wa-step {
  display: flex; gap: 14px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.wa-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-600);
  color: white;
  font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-step-title { font-size: .875rem; font-weight: 600; margin-bottom: 3px; }
.wa-step-desc { font-size: .8rem; color: var(--text-2); line-height: 1.5; }
.wa-step-link { color: var(--brand-600); text-decoration: none; font-weight: 600; }
.wa-step-link:hover { text-decoration: underline; }

/* ================================================================
   SEARCH / FILTER BAR
   ================================================================ */
.filter-bar {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.filter-input, .filter-select {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: .8125rem; color: var(--text);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  font-family: inherit;
}
.filter-input:focus, .filter-select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(34,197,94,.1);
}
.filter-input { min-width: 200px; }

/* ================================================================
   RESPONSIVE ADMIN
   ================================================================ */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-board { flex-direction: column; }
  .pipeline-col { width: 100%; min-width: unset; }
}

/* ================================================================
   AVATAR UPLOAD WIDGET
   ================================================================ */
.avatar-upload { position: relative; display: inline-block; }
.avatar-upload-btn {
  position: absolute; bottom: 0; right: 0;
  width: 24px; height: 24px;
  background: var(--brand-600); color: white;
  border: 2px solid white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; cursor: pointer;
  transition: background var(--t);
}
.avatar-upload-btn:hover { background: var(--brand-700); }

/* ================================================================
   PAGE SECTIONS — REUSABLE
   ================================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.section-link { font-size: .8rem; color: var(--brand-600); font-weight: 600; cursor: pointer; }
.section-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-3);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title { font-size: .9375rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state-desc { font-size: .8125rem; line-height: 1.6; }


/* ================================================================
   V2 COMPONENTS — JalaJob Admin, Pipeline, CV, Notifications
   ================================================================ */

/* ── Admin Layout ────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: #f8fafc;
}

.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: linear-gradient(160deg, #0f2418 0%, #1a3a28 50%, #0d1f16 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-sidebar-head {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.admin-sidebar-title {
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.admin-sidebar-sub {
  font-size: .6875rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
  flex: 1;
  gap: 2px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}

.admin-nav-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.admin-nav-btn.active {
  background: rgba(34,197,94,.18);
  color: #4ade80;
  font-weight: 600;
}

.admin-nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
}

.admin-user-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74,222,128,.2);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-name {
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
}

.admin-user-badge {
  font-size: .6875rem;
  color: #4ade80;
  margin-top: 1px;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
}

.admin-page {
  padding: 24px 28px;
  max-width: 1200px;
}

.admin-page-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f2418;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.admin-page-sub {
  font-size: .875rem;
  color: #64748b;
  margin-bottom: 24px;
}

/* ── Admin Stats Grid ─────────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.admin-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.admin-stat-icon {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.admin-stat-label {
  font-size: .75rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f2418;
  letter-spacing: -.03em;
}

.admin-stat-value.green { color: #16a34a; }
.admin-stat-value.blue  { color: #2563eb; }
.admin-stat-value.purple { color: #8b5cf6; }
.admin-stat-value.amber { color: #d97706; }
.admin-stat-value.red   { color: #dc2626; }

.admin-stat-delta {
  font-size: .6875rem;
  color: #16a34a;
  margin-top: 4px;
  font-weight: 600;
}

/* ── Admin Table ──────────────────────────────────────────────────── */
.admin-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.admin-table-head {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-table-title {
  font-size: .875rem;
  font-weight: 600;
  color: #0f2418;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f8fafc;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

/* ── Filter Bar ───────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.filter-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .8125rem;
  outline: none;
  transition: border-color .15s;
}

.filter-input:focus { border-color: var(--brand-500); }

.filter-select {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .8125rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

/* ── Charts ───────────────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.chart-title {
  font-size: .875rem;
  font-weight: 700;
  color: #0f2418;
  margin-bottom: 16px;
}

.chart-area {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow: hidden;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 3px;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-radius: 3px 3px 0 0;
  transition: height .3s ease;
  min-height: 2px;
}

.chart-bar:hover { background: linear-gradient(180deg, #4ade80, #22c55e); }

.chart-bar-label {
  font-size: .55rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* ── Badge colors V2 ──────────────────────────────────────────────── */
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.badge-premium { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #92400e; }
.badge-active { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #92400e; }

/* ── Pipeline Board ───────────────────────────────────────────────── */
.pipeline-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 20px;
  align-items: flex-start;
}

.pipeline-col {
  min-width: 220px;
  max-width: 240px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  flex-shrink: 0;
}

.pipeline-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pipeline-col-title {
  font-size: .8125rem;
  font-weight: 700;
}

.pipeline-col-count {
  font-size: .75rem;
  font-weight: 700;
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.pipeline-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.pipeline-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}

.pipeline-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,.12); }

.pipeline-card-name {
  font-size: .875rem;
  font-weight: 700;
  color: #0f2418;
  margin-bottom: 2px;
}

.pipeline-card-role {
  font-size: .75rem;
  color: #64748b;
  margin-bottom: 8px;
}

.pipeline-card-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .6875rem;
  color: #64748b;
  margin-bottom: 8px;
}

.score-bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 2px;
  transition: width .3s;
}

.score-fill.mid { background: #f59e0b; }
.score-fill.low { background: #ef4444; }

.pipeline-card-actions {
  display: flex;
  gap: 4px;
}

.pipeline-action-btn {
  font-size: .6875rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  transition: all .15s;
}

.pipeline-action-btn:hover { background: #f1f5f9; }
.pipeline-action-btn.move { border-color: #22c55e; color: #16a34a; background: #f0fdf4; }
.pipeline-action-btn.move:hover { background: #dcfce7; }
.pipeline-action-btn.reject { border-color: #ef4444; color: #dc2626; background: #fef2f2; }
.pipeline-action-btn.reject:hover { background: #fee2e2; }

/* ── Applications Cards ───────────────────────────────────────────── */
.application-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 24px;
}

.app-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.app-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.app-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f2418;
}

.app-card-company {
  font-size: .8125rem;
  color: #64748b;
  margin-top: 2px;
}

.app-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.app-card-date {
  font-size: .75rem;
  color: #94a3b8;
}

/* Stage badges */
.stage-recibido { background: #f1f5f9; color: #475569; }
.stage-contactado { background: #dbeafe; color: #1d4ed8; }
.stage-entrevistado { background: #fef3c7; color: #92400e; }
.stage-seleccionado { background: #dcfce7; color: #15803d; }
.stage-rechazado { background: #fee2e2; color: #991b1b; }

/* ── CV Cards ─────────────────────────────────────────────────────── */
.cv-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.cv-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.cv-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.cv-info {
  flex: 1;
}

.cv-name {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f2418;
}

.cv-meta {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: 3px;
}

.cv-actions {
  display: flex;
  gap: 6px;
}

.cv-btn {
  font-size: .8125rem;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all .15s;
}

.cv-btn:hover { background: #f1f5f9; }
.cv-btn.primary { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.cv-btn.primary:hover { background: var(--brand-700); border-color: var(--brand-700); }

/* ── Notification Bell ────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-bell:hover { background: rgba(255,255,255,.12); }

.notif-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: #fff;
  font-size: .5625rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  z-index: 1000;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  font-weight: 700;
  color: #0f2418;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background .15s;
}

.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #f0fdf4; }
.notif-item.unread:hover { background: #dcfce7; }

.notif-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-title {
  font-size: .8125rem;
  font-weight: 700;
  color: #0f2418;
  margin-bottom: 2px;
}

.notif-body {
  font-size: .75rem;
  color: #64748b;
  line-height: 1.5;
}

.notif-time {
  font-size: .6875rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── WhatsApp steps / how-to ──────────────────────────────────────── */
.wa-setup-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
}

.wa-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wa-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-step-title {
  font-size: .875rem;
  font-weight: 700;
  color: #0f2418;
  margin-bottom: 2px;
}

.wa-step-desc {
  font-size: .8125rem;
  color: #64748b;
}

/* ── Section header ──────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: .875rem;
  font-weight: 700;
  color: #0f2418;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Score pct badge ─────────────────────────────────────────────── */
.score-pct {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.score-pct.high { background: #dcfce7; color: #15803d; }
.score-pct.mid  { background: #fef9c3; color: #92400e; }
.score-pct.low  { background: #fee2e2; color: #991b1b; }

/* ── Responsive admin ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { display: none !important; }
  .admin-nav { display: none !important; }
  .admin-nav-btn { display: none !important; }
  .admin-content { width: 100% !important; min-height: 80dvh; }
  .pipeline-board { flex-direction: column; }
  .pipeline-col { max-width: 100%; min-width: 0; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING PAGE
════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface) 80%, color-mix(in srgb, var(--accent) 8%, transparent));
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(99,102,241,0.15);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
}
.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-price-row { display: flex; align-items: baseline; gap: 4px; }
.pricing-price { font-size: 2.8rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.pricing-period { font-size: 0.9rem; color: var(--text-secondary); }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-feature { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-primary); }
.pricing-feature--no { color: var(--text-secondary); }
.pricing-feature-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.pricing-feature:not(.pricing-feature--no) .pricing-feature-icon { background: #10b98120; color: #10b981; }
.pricing-feature--no .pricing-feature-icon { background: var(--surface-2); color: var(--text-secondary); }
.pricing-trust {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 12px 0 4px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Checkout Modal */
.pricing-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.pricing-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 90%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.pricing-modal-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 20px; padding-right: 32px; }
.pricing-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--text-secondary); line-height: 1;
}
.pricing-modal-section-title {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.pricing-modal-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-secondary); font-size: 0.85rem;
}
.pricing-modal-divider::before,
.pricing-modal-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* Bank Info */
.pricing-bank-info {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.pricing-bank-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-bank-row:last-of-type { border-bottom: none; }
.pricing-bank-row span { color: var(--text-secondary); }
.pricing-transfer-form { display: flex; flex-direction: column; gap: 12px; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-top: 16px; padding: 12px 0;
}
.pagination-info { font-size: .8rem; color: var(--text-3); font-weight: 500; }
.pagination-btns { display: flex; gap: 4px; }
.pagination-btn {
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); font-size: .8rem; font-weight: 600;
  cursor: pointer; background: var(--white); color: var(--text-2);
  transition: all var(--t); font-family: inherit;
}
.pagination-btn:hover:not([disabled]):not(.active) { border-color: var(--brand-400); color: var(--brand-600); background: var(--brand-50); }
.pagination-btn.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.pagination-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ================================================================
   LOGO / BANNER UPLOAD
   ================================================================ */
.logo-upload-area {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--gray-50);
  border: 2px dashed var(--border); border-radius: var(--radius-xl);
  cursor: pointer; transition: all var(--t);
}
.logo-upload-area:hover { border-color: var(--brand-400); background: var(--brand-50); }
.logo-preview {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  object-fit: cover; background: var(--gray-200);
  border: 2px solid var(--border);
}
.banner-preview {
  width: 100%; max-height: 160px; border-radius: var(--radius-lg);
  object-fit: cover; background: var(--gray-200);
  border: 2px solid var(--border); margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE ENHANCEMENTS
════════════════════════════════════════════════════════════ */

/* Mobile hamburger button */
.mobile-menu-btn {
  display: none;
  position: fixed; top: 12px; left: 12px;
  z-index: 98; padding: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  cursor: pointer; color: var(--text);
}



@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  /* Hide admin sidebar on mobile — tabs are directly in the hamburger */
  .admin-sidebar { display: none !important; }
  .admin-layout { flex-direction: column; }
  .admin-content { width: 100% !important; min-height: 80dvh; padding-top: 8px; }

  /* Table responsive */
  .admin-table-wrap, .table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .admin-table, .data-table {
    min-width: 800px; font-size: .8125rem;
  }
  .admin-table th, .admin-table td,
  .data-table th, .data-table td {
    padding: 8px 10px; white-space: nowrap;
  }

  /* Modal bottom-sheet on mobile */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    border-radius: 20px 20px 0 0 !important;
    position: relative !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    max-width: 100% !important; width: 100% !important;
    border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
    max-height: 85dvh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2) !important;
  }
  .modal-body { 
    flex: 1 !important; 
    overflow-y: auto !important; 
    max-height: none !important; 
  }

  /* Job cards grid */
  .jobs-grid, .job-cards { grid-template-columns: 1fr !important; }
  .job-card { padding: 14px 16px; }

  /* Filter bar responsive */
  .filter-bar { flex-wrap: wrap; gap: 8px; }
  .filter-bar .btn { font-size: .75rem; padding: 5px 10px; }
  .filter-select { font-size: .8125rem; }

  /* Pagination responsive */
  .pagination-wrap { flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pagination-btn { min-width: 30px; height: 30px; font-size: .75rem; }
  .pagination-info { font-size: .7rem; width: 100%; text-align: center; }

  /* Page header responsive */
  .page-header {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding-top: 48px; /* space for hamburger */
  }

  /* Welcome chips */
  .welcome-chips { flex-direction: column; gap: 8px; }
  .w-chip { width: 100%; text-align: left; }

  /* Profile form */
  .admin-stat-card { padding: 16px; }
  .form-group { margin-bottom: 12px; }

  /* Help page */
  .help-tabs { flex-wrap: wrap; gap: 4px; }
  .help-tab { font-size: .75rem; padding: 6px 10px; }

  /* Chat adjustments */
  .chat-thread { padding: 12px 12px 0; padding-top: 48px; }
  .agent-content { max-width: 92%; }
  .action-chips { gap: 6px; }
  .action-chip { font-size: .75rem; padding: 6px 10px; }

  /* Pricing grid */
  .pricing-grid { grid-template-columns: 1fr; }

  /* Stats grid on small screens */
  .admin-stats-grid { grid-template-columns: 1fr; }
}

/* Very small screens */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .welcome-title { font-size: 1.25rem; }
  .page-scroll { padding: 16px 12px; }
  .chat-input-wrap { padding: 8px 12px 16px; }
  .hero-title { font-size: 1.75rem; }
  .hero-desc { font-size: .875rem; }
  .cfp-textarea { font-size: .875rem; }
}
