:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --secondary: #06B6D4;
  --secondary-light: #ECFEFF;
  --accent: #8B5CF6;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface2: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --text2: #475569;
  --text3: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }
img, svg { max-width: 100%; }

/* UTILITY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* NAVBAR */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 64px; gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 16px; letter-spacing: -0.5px;
}
.logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: 8px; text-decoration: none;
  font-size: 0.875rem; font-weight: 500; color: var(--text2); transition: all 0.2s;
}
.nav-links a:hover { background: var(--surface2); color: var(--text); }
.nav-links a.active { background: var(--primary-light); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }
.btn-ghost {
  padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-ghost:hover { background: var(--surface2); }
.btn-primary {
  padding: 0.5rem 1.25rem; border-radius: 8px; border: none;
  background: var(--primary); color: white; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* PAGES */
.page { display: none; padding-top: 64px; flex: 0 0 auto; width: 100%; }
.page.active { display: block; }

/* EMBED MODE — used when the apply form is opened directly via a shared QR/link,
   so the candidate sees only the form itself, not the site's nav chrome. */
body.embed-mode #main-nav,
body.embed-mode .bottom-nav { display: none !important; }
body.embed-mode { padding-bottom: 0 !important; }
body.embed-mode .page.active { padding-top: 0 !important; }

/* HOME - HERO */
.hero {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  position: relative; overflow: hidden; padding: 3rem 0 2.5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); color: white; padding: 0.35rem 0.9rem;
  border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: #10B981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: white;
  line-height: 1.2; margin-bottom: 0.75rem;
}
.hero p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 1.25rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  padding: 0.875rem 1.75rem; border-radius: 10px; border: none;
  background: white; color: var(--primary); font-size: 0.9375rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-outline-white {
  padding: 0.875rem 1.75rem; border-radius: 10px; border: 2px solid rgba(255,255,255,0.6);
  background: transparent; color: white; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-illustration {
  width: 100%; max-width: 340px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 1.25rem; backdrop-filter: blur(10px);
}
.hero-stat-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem;
  border: 1px solid rgba(255,255,255,0.2); text-align: center;
}
.hero-stat .num { font-size: 1.5rem; font-weight: 800; color: white; }
.hero-stat .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.hero-profiles {
  display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}
.profile-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18); border-radius: 999px;
  padding: 0.4rem 0.9rem; border: 1px solid rgba(255,255,255,0.25);
}
.profile-chip .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
}
.profile-chip span { font-size: 0.75rem; color: white; font-weight: 500; }

/* STATS BAR */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; gap: 2rem; justify-content: space-around; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-item .stat-lbl { font-size: 0.8rem; color: var(--text3); }

/* SECTIONS */
section { padding: 2rem 0; }
section.bg-alt { background: var(--surface); }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem;
  font-weight: 700; color: var(--text); margin-bottom: 0.4rem;
}
.section-sub { font-size: 0.85rem; color: var(--text2); max-width: 600px; }
.section-header { margin-bottom: 1.25rem; }

/* WHY JOIN CARDS */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transition: transform 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; margin-bottom: 0.4rem;
}
.why-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.25rem; }
.why-card p { font-size: 0.72rem; color: var(--text2); line-height: 1.4; }

/* FEATURED JOBS PREVIEW */
.featured-jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }

/* JOB CARD */
.job-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.7rem; transition: all 0.3s;
  cursor: pointer; position: relative;
}
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.job-dept-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary);
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
}
.selected-job-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; color: var(--primary);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hiring-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--primary-light);
}
.job-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.job-meta-item { display: flex; align-items: center; gap: 3px; font-size: 0.68rem; color: var(--text2); }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
.job-type-badge {
  padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.62rem; font-weight: 600;
  background: var(--secondary-light); color: #0891B2;
}
.job-salary { font-size: 0.72rem; font-weight: 700; color: var(--primary); }
.job-card-btn {
  padding: 0.3rem 0.7rem; border-radius: 7px; border: 1px solid var(--primary);
  background: transparent; color: var(--primary); font-size: 0.68rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.job-card-btn:hover { background: var(--primary); color: white; }

/* OPEN JOBS PAGE */
.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }

.filter-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 80px;
}
.filter-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text2); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-select, .filter-input {
  width: 100%; padding: 0.6rem 0.9rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.875rem; font-family: inherit;
}
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--primary); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text2); font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

.jobs-main {}
.jobs-search-bar {
  display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.6rem 1rem; min-width: 200px;
}
.search-input-wrap svg { flex-shrink: 0; color: var(--text3); }
.search-input-wrap input {
  border: none; background: transparent; color: var(--text); font-size: 0.9rem;
  width: 100%; font-family: inherit;
}
.search-input-wrap input:focus { outline: none; }
.jobs-count { font-size: 0.875rem; color: var(--text2); margin-bottom: 1rem; }
.jobs-grid { display: flex; flex-direction: column; gap: 0.6rem; }

/* JOB DETAILS PAGE */
.job-detail-layout { display: grid; grid-template-columns: 1fr 260px; gap: 1.25rem; align-items: start; max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem; }
.job-detail-main {}
.job-detail-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem;
}
.job-detail-header { margin-bottom: 1.5rem; }
.job-detail-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.job-detail-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text2); }
.job-detail-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary-lg {
  padding: 0.875rem 2rem; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--primary), #6D28D9); color: white;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,70,229,0.4); }
.btn-outline {
  padding: 0.875rem 1.5rem; border-radius: 10px; border: 1.5px solid var(--border);
  background: transparent; color: var(--text); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.section-h { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.ul-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.ul-list li { display: flex; align-items: flex-start; gap: 6px; font-size: 0.8rem; color: var(--text2); }
.ul-list li::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.benefit-item { display: flex; align-items: center; gap: 8px; padding: 0.75rem; background: var(--primary-light); border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.benefit-item svg { flex-shrink: 0; }

.job-detail-sidebar {}
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem; margin-bottom: 0.75rem;
}
.sidebar-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.sidebar-stats { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-stat { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat .key { font-size: 0.85rem; color: var(--text2); }
.sidebar-stat .val { font-size: 0.875rem; font-weight: 600; color: var(--text); }

.qr-box { text-align: center; }
.qr-placeholder {
  width: 160px; height: 160px; margin: 0 auto 0.75rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.qr-text { font-size: 0.8rem; color: var(--text2); }
.btn-download-qr {
  display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1.25rem;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}

/* MULTI-STEP FORM */
.apply-container { max-width: 760px; margin: 0 auto; padding: 1.25rem 1.5rem; }
.apply-header { text-align: center; margin-bottom: 1.25rem; }
.apply-header .section-tag { font-size: 0.7rem; padding: 0.2rem 0.7rem; margin-bottom: 0.4rem; }
.apply-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.35rem; font-weight: 800; margin-bottom: 0.3rem; }
.apply-sub { color: var(--text2); font-size: 0.8rem; }

.step-progress { margin-bottom: 1.25rem; }
.step-track { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item:not(:last-child)::after {
  content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.step-item.done:not(:last-child)::after { background: var(--primary); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--text3); z-index: 1; transition: all 0.3s;
}
.step-item.active .step-circle { background: var(--primary); border-color: var(--primary); color: white; }
.step-item.done .step-circle { background: var(--success); border-color: var(--success); color: white; }
.step-label { font-size: 0.6rem; color: var(--text3); margin-top: 0.3rem; text-align: center; font-weight: 500; }
.step-item.active .step-label { color: var(--primary); font-weight: 600; }

.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow);
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.form-step-sub { color: var(--text2); font-size: 0.75rem; margin-bottom: 1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.7rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em; }
.form-input, .form-select, .form-textarea {
  padding: 0.55rem 0.75rem; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.85rem; font-family: inherit;
  transition: border-color 0.2s; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-textarea { resize: vertical; min-height: 100px; }

.skills-input-wrap { position: relative; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.skill-tag {
  display: flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary);
  padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}
.skill-tag button { background: none; border: none; cursor: pointer; color: var(--primary); font-size: 0.85rem; line-height: 1; padding: 0; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.3s;
  background: var(--bg);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon {
  width: 40px; height: 40px; margin: 0 auto 0.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary-light); color: var(--primary);
}
.upload-icon svg { width: 18px; height: 18px; }
.upload-text { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.upload-sub { font-size: 0.72rem; color: var(--text3); }

.review-section { margin-bottom: 1.5rem; }
.review-section h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 0.75rem; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.review-item { }
.review-item .k { font-size: 0.8rem; color: var(--text3); }
.review-item .v { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.form-actions { display: flex; gap: 0.6rem; justify-content: space-between; margin-top: 1rem; }
.btn-next, .btn-prev, .btn-submit {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit; display: flex; align-items: center;
  justify-content: center; gap: 6px; white-space: nowrap;
}
.btn-next { background: var(--primary); color: white; border: none; }
.btn-next:hover { background: var(--primary-dark); }
.btn-prev { background: transparent; color: var(--text2); border: 1.5px solid var(--border); }
.btn-prev:hover { border-color: var(--primary); color: var(--primary); }
.btn-submit { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,70,229,0.4); }

/* SUCCESS POPUP */
.success-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,0.6); align-items: center; justify-content: center; padding: 1rem;
}
.success-overlay.active { display: flex; }
.success-overlay .success-screen {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 320px; width: 100%; box-shadow: var(--shadow-lg);
}

/* SUCCESS SCREEN */
.success-screen {
  text-align: center; padding: 1.25rem 1rem;
}
.success-icon {
  width: 44px; height: 44px; background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.6rem; font-size: 1.1rem; color: white;
}
.app-id-box {
  background: var(--primary-light); border: 1.5px solid var(--primary);
  border-radius: 10px; padding: 0.6rem 1rem; margin: 0.75rem auto;
  max-width: 220px;
}
.app-id-label { font-size: 0.6rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.app-id-val { font-size: 1rem; font-weight: 800; color: var(--primary); font-family: monospace; }

/* STATUS PAGE */
#page-status.active {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  flex: 1 1 auto !important; min-height: 0 !important;
}
.status-container { max-width: 480px; margin: 0 auto; padding: 1rem 1.25rem; width: 100%; }
.status-search { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.status-search h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.status-search p { color: var(--text2); font-size: 0.75rem; margin-bottom: 0.85rem; }
.status-input-row { display: flex; gap: 0.5rem; }
.status-input {
  flex: 1; padding: 0.55rem 0.8rem; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.8rem; font-family: inherit;
}
.status-input:focus { outline: none; border-color: var(--primary); }
.btn-track { padding: 0.55rem 1rem; border-radius: 8px; border: none; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }

.status-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; display: none; }
.status-result.visible { display: block; }
.candidate-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.candidate-avatar {
  width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; color: white;
}
.candidate-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.candidate-pos { font-size: 0.875rem; color: var(--text2); }
.candidate-app-id { font-size: 0.8rem; color: var(--text3); font-family: monospace; }

.progress-bar-wrap { margin-bottom: 2rem; }
.progress-bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text2); margin-bottom: 0.5rem; }
.progress-bar-track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 999px; transition: width 0.8s ease; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 1rem; padding-bottom: 1.5rem; position: relative; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border);
}
.timeline-item.done:not(:last-child)::before { background: var(--primary); }
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: var(--surface2); border: 2px solid var(--border); position: relative; z-index: 1;
}
.timeline-item.done .timeline-dot { background: var(--primary); border-color: var(--primary); color: white; }
.timeline-item.current .timeline-dot { background: var(--warning); border-color: var(--warning); color: white; animation: pulse 1.5s infinite; }
.timeline-content { padding-top: 8px; }
.timeline-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.timeline-date { font-size: 0.8rem; color: var(--text3); }

/* CONTACT PAGE */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.contact-info {}
.contact-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.contact-info p { color: var(--text2); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-item-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-item-text h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-item-text p { font-size: 0.875rem; color: var(--text2); }

/* SITE FOOTER */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 1rem 0 0; font-size: 0.75rem; }
.site-footer .logo-icon { width: 26px; height: 26px; font-size: 11px; border-radius: 7px; }
.site-footer .logo-text { font-size: 0.85rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem;
  padding-bottom: 1rem;
}
.footer-col h4 { color: white; font-size: 0.72rem; font-weight: 700; margin-bottom: 0.35rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.68rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 0.5rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.3rem; font-size: 0.62rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 1rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* BOTTOM NAV (mobile) */
.bottom-nav {
  display: none; position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: none;
  padding: 0.5rem 0; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}
.bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0.4rem 1rem; cursor: pointer; border-radius: 10px;
  background: none; border: none; color: var(--text3); font-family: inherit; min-width: 48px; min-height: 48px; justify-content: center;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item span { font-size: 0.65rem; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container, .nav-inner, .hero-inner, .stats-inner {
    max-width: 100%;
  }
  .jobs-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .job-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .container,
  .nav-inner,
  .hero-inner,
  .stats-inner,
  .job-detail-layout,
  .apply-container,
  .status-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-inner {
    height: 60px;
    gap: 0.75rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 14px;
  }

  .logo-text { font-size: 1rem; }
  .nav-links { display: none; }
  .nav-actions {
    margin-left: auto;
    gap: 0.4rem;
  }
  .nav-actions > a,
  .nav-actions > .btn-primary {
    display: none;
  }
  .page {
    padding-top: 60px;
  }
  .page.active {
    display: block !important;
    min-height: calc(100vh - 60px);
    background: var(--bg);
    visibility: visible;
    opacity: 1;
  }
  section { padding: 1.5rem 0; }
  .section-header {
    margin-bottom: 1rem;
    text-align: left;
  }
  .section-title { line-height: 1.15; }

  .hero {
    display: block !important;
    padding: 1.5rem 0;
    min-height: auto;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%) !important;
    visibility: visible;
    opacity: 1;
  }
  .hero-text,
  .hero-badge,
  .hero h1,
  .hero p,
  .hero-btns {
    visibility: visible;
    opacity: 1;
  }
  .hero-badge {
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: left;
  }
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  .hero p {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
  }
  .hero-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero-btns button,
  .btn-white,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
  .hero-visual { display: none; }

  .stats-bar { padding: 1rem 0; }
  .stats-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .stat-item {
    background: var(--surface2);
    border-radius: 10px;
    padding: 0.9rem 0.5rem;
  }

  .why-grid,
  .featured-jobs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .job-card,
  .job-detail-card,
  .sidebar-card,
  .form-card,
  .status-search,
  .status-result {
    border-radius: var(--radius);
  }
  .job-detail-card,
  .sidebar-card {
    padding: 1.25rem;
  }

  .jobs-search-bar {
    flex-direction: column;
    width: 100%;
  }
  .jobs-layout,
  .jobs-main,
  .jobs-grid,
  .filter-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  #page-jobs .container {
    overflow: hidden;
  }
  .search-input-wrap {
    min-width: 0;
    width: 100%;
  }
  .search-input-wrap input {
    min-width: 0;
  }
  .jobs-search-bar .btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  .filter-panel {
    padding: 1rem;
    border-radius: var(--radius);
  }
  .filter-group {
    margin-bottom: 1rem;
  }
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.5rem;
    padding-bottom: 0;
  }
  .filter-chip {
    flex: 0 1 auto;
    white-space: nowrap;
    max-width: 100%;
    padding: 0.45rem 0.85rem;
  }
  .filter-select,
  .filter-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 1rem;
  }
  .filter-panel button[onclick="resetFilters()"] {
    width: 100% !important;
    max-width: 100%;
    text-align: center;
  }
  .job-card-top {
    display: block;
  }
  .job-card-top > div:last-child {
    text-align: left !important;
    margin-top: 0.45rem;
  }
  .job-card-meta {
    gap: 0.45rem 0.75rem;
  }
  .job-card-footer {
    align-items: stretch;
  }
  .job-card-btn {
    width: 100%;
    padding: 0.65rem 1rem;
  }

  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .bottom-nav { display: block; }

  .job-detail-layout {
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
  }
  .job-detail-title,
  #job-detail-content h1 {
    font-size: 1.2rem !important;
    line-height: 1.15;
  }
  .job-detail-meta {
    gap: 0.65rem;
  }
  .job-detail-meta-item {
    width: 100%;
  }
  .job-detail-btns,
  .job-detail-btns button,
  .btn-primary-lg,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .btn-next,
  .btn-prev,
  .btn-submit {
    flex: 1;
    justify-content: center;
  }

  .apply-container,
  .status-container {
    padding-top: 0.85rem;
  }
  .apply-header {
    text-align: left;
    margin-bottom: 0.85rem;
  }
  .apply-title {
    font-size: 1.15rem;
  }
  .step-progress {
    margin-bottom: 0.85rem;
  }
  .form-card {
    padding: 0.85rem;
  }
  .upload-zone {
    padding: 1.25rem 1rem;
  }
  .success-screen {
    padding: 1rem 0.75rem;
  }

  .status-input-row {
    flex-direction: column;
  }
  .btn-track {
    width: 100%;
  }
  .candidate-info {
    align-items: flex-start;
  }

  .contact-layout {
    gap: 1.25rem;
  }
  .contact-item {
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-inner,
  .hero-inner,
  .stats-inner,
  .job-detail-layout,
  .apply-container,
  .status-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .logo-text {
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding: 1.25rem 0;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .hero-badge {
    margin-bottom: 0.6rem;
  }
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .stat-item .stat-num {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }

  section { padding: 1.25rem 0; }
  .section-tag {
    font-size: 0.72rem;
  }
  .job-detail-card,
  .sidebar-card,
  .form-card,
  .status-search,
  .status-result {
    padding: 1rem;
  }

  .job-card-footer {
    flex-direction: column;
    gap: 0.65rem;
  }
  .jobs-layout {
    gap: 1rem;
  }
  .filter-panel h3 {
    margin-bottom: 1rem;
  }
  .filter-group label {
    font-size: 0.75rem;
  }
  .filter-chip {
    font-size: 0.78rem;
    padding: 0.45rem 0.8rem;
  }
  .jobs-search-bar {
    margin-bottom: 1rem;
  }
  .search-input-wrap {
    padding: 0.75rem 1rem;
  }
  .job-meta-item {
    width: 100%;
  }
  .job-type-badge,
  .job-salary {
    align-self: flex-start;
  }

  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .step-item:not(:last-child)::after {
    top: 12px;
  }
  .step-label {
    font-size: 0.55rem;
  }

  .candidate-avatar {
    width: 48px;
    height: 48px;
  }
  .timeline-item {
    gap: 0.75rem;
  }
  .bottom-nav-inner {
    padding: 0 0.15rem;
  }
  .bottom-nav-item span {
    font-size: 0.6rem;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
