:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #14b8a6;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--dark); background: #fff; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { font-size: 1.35rem; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--gray); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-hover:hover { border-color: var(--primary); transform: translateY(-2px); transition: .2s; }

/* Hero */
.hero { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: #fff; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; line-height: 1.15; }
.hero p { font-size: 1.15rem; opacity: .95; margin-bottom: 40px; }
.hero .search-box { display: flex; gap: 12px; max-width: 700px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.hero .search-box input { flex: 1; border: none; outline: none; padding: 14px; font-size: 1rem; }

/* Job cards */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 22px; }
.job-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: .2s; display: flex; flex-direction: column; }
.job-card:hover { box-shadow: 0 10px 30px rgba(99,102,241,.15); border-color: var(--primary); transform: translateY(-3px); }
.job-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.job-card .company { color: var(--gray); font-size: 0.9rem; margin-bottom: 14px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag { background: var(--light); padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: var(--gray); }
.tag-featured { background: #fef3c7; color: #92400e; }
.tag-type { background: #dbeafe; color: #1e40af; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.95rem; font-family: inherit; transition: .2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
}

/* Dashboard layout */
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 73px); }
.sidebar { background: var(--dark); color: #fff; padding: 30px 0; }
.sidebar a { display: block; padding: 12px 24px; color: #cbd5e1; font-size: 0.92rem; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.06); color: #fff; border-left: 3px solid var(--primary); }
.dashboard-main { padding: 32px; background: var(--light); }
@media (max-width: 768px) { .dashboard { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* Stats */
.stat-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.stat-card .label { color: var(--gray); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value { font-size: 2rem; font-weight: 800; margin-top: 6px; }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-reviewed { background: #dbeafe; color: #1e40af; }
.badge-shortlisted { background: #e0e7ff; color: #3730a3; }
.badge-interview { background: #fce7f3; color: #9f1239; }
.badge-hired { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* Alerts */
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table th { background: var(--light); font-weight: 600; color: var(--gray); font-size: 0.78rem; text-transform: uppercase; }
.table tr:hover { background: #fafbfc; }

/* Auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); padding: 20px; }
.auth-card { background: #fff; border-radius: 20px; padding: 40px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.auth-card h2 { margin-bottom: 8px; font-size: 1.6rem; }
.auth-card .sub { color: var(--gray); margin-bottom: 28px; font-size: 0.92rem; }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; padding: 60px 0 30px; margin-top: 80px; }
.footer h4 { color: #fff; margin-bottom: 16px; }
.footer a { color: #94a3b8; display: block; padding: 4px 0; font-size: 0.9rem; }
.footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; margin-top: 40px; text-align: center; font-size: 0.85rem; }

h1,h2,h3,h4 { font-weight: 700; }
.section { padding: 60px 0; }
.section-title { font-size: 2rem; margin-bottom: 12px; }
.section-sub { color: var(--gray); margin-bottom: 40px; }

/* ============= GRADIENTS ============= */
:root {
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-secondary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-cool: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --glass: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.3);
}

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: #f1f5f9; color: #334155;
  transition: .2s;
}
.pill:hover { transform: translateY(-1px); }
.pill-primary { background: rgba(99,102,241,.12); color: #4f46e5; }
.pill-success { background: rgba(16,185,129,.12); color: #059669; }
.pill-warning { background: rgba(245,158,11,.12); color: #b45309; }
.pill-danger  { background: rgba(239,68,68,.12);  color: #b91c1c; }
.pill-info    { background: rgba(59,130,246,.12); color: #1d4ed8; }
.pill-pink    { background: rgba(236,72,153,.12); color: #be185d; }
.pill-gradient {
  background: var(--grad-primary);
  color: #fff;
}
.pill-outline {
  background: transparent; border: 1.5px solid var(--border);
}
.pill-close { cursor: pointer; margin-left: 6px; opacity: .7; }
.pill-close:hover { opacity: 1; }

/* Gradient buttons */
.btn-gradient {
  background: var(--grad-primary);
  color: #fff; border: none;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99,102,241,.5);
  color: #fff;
}
.btn-gradient-2 { background: var(--grad-secondary); color: #fff; }
.btn-gradient-3 { background: var(--grad-warm); color: #fff; }
.btn-glass {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn-glass:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Gradient text */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-2 {
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glassmorphism cards */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
}
.glass-dark {
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
}

/* Animated gradient border */
.gradient-border {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  background-clip: padding-box;
  border: 2px solid transparent;
}
.gradient-border::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 2px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Hero glow */
.hero-glow { position: relative; overflow: hidden; }
.hero-glow::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.5), transparent 70%);
  top: -200px; right: -100px; filter: blur(60px);
  pointer-events: none;
}
.hero-glow::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.4), transparent 70%);
  bottom: -150px; left: -100px; filter: blur(60px);
  pointer-events: none;
}

/* Sidebar gradient */
.sidebar {
  background: var(--grad-dark) !important;
  position: relative;
}
.sidebar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(99,102,241,.2), transparent 60%);
  pointer-events: none;
}
.sidebar a.active {
  background: var(--grad-primary) !important;
  border-left: 3px solid #fff;
  color: #fff !important;
  margin: 4px 12px; border-radius: 10px; padding-left: 20px;
}

/* Stat cards gradient variants */
.stat-card.grad-1 { background: var(--grad-primary); color: #fff; border: none; }
.stat-card.grad-2 { background: var(--grad-secondary); color: #fff; border: none; }
.stat-card.grad-3 { background: var(--grad-warm); color: #fff; border: none; }
.stat-card.grad-4 { background: var(--grad-cool); color: #fff; border: none; }
.stat-card.grad-1 .label,
.stat-card.grad-2 .label,
.stat-card.grad-3 .label,
.stat-card.grad-4 .label { color: rgba(255,255,255,.85); }

/* Chat / messages */
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; height: 70vh; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; background: #f8fafc; }
.chat-item { padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: .15s; }
.chat-item:hover, .chat-item.active { background: #fff; }
.chat-item .name { font-weight: 600; font-size: .92rem; }
.chat-item .preview { font-size: .8rem; color: var(--gray); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 24px; background: #f8fafc; }
.chat-msg { max-width: 70%; padding: 12px 16px; border-radius: 16px; margin-bottom: 12px; font-size: .9rem; }
.chat-msg.mine { margin-left: auto; background: var(--grad-primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.theirs { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-form { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 12px; background: #fff; }
.chat-form input { flex: 1; }

/* Timeline (application status) */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 3px; background: var(--grad-primary); border-radius: 3px; }
.timeline-item { position: relative; padding: 8px 0 20px; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-item.done::before { background: var(--primary); }

/* Filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); cursor: pointer; font-size: .85rem; font-weight: 500; transition: .2s; }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* Progress bar */
.progress { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad-primary); border-radius: 999px; transition: width .3s; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 20px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }

/* Tabs */
.tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 6px; border-radius: 999px; margin-bottom: 24px; }
.tab { padding: 10px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--gray); border: none; background: none; transition: .2s; }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* Company cards */
.company-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--border); text-align: center; transition: .25s; }
.company-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(99,102,241,.15); border-color: var(--primary); }
.company-logo { width: 72px; height: 72px; border-radius: 20px; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; margin: 0 auto 16px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.blog-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #fff; transition: .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.blog-cover { height: 180px; background: var(--grad-primary); }

/* Notification bell */
.bell { position: relative; cursor: pointer; padding: 6px; }
.bell .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }

/* Loader */
.spinner { border: 3px solid #f1f5f9; border-top-color: var(--primary); width: 24px; height: 24px; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Print */
@media print { .navbar, .sidebar, .footer, .btn { display: none !important; } }