/* =========================================================
   Sukses Career — shared design system
   ========================================================= */

:root {
  --purple-50: #f9f7ff;
  --purple-100: #e4dffd;
  --purple-500: #7960f4;
  --purple-600: #6247e0;
  --purple-700: #4f37c2;
  --purple-900: #241a5e;
  --navy-900: #1a1440;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #b3b3b3;
  --ink-100: #f4f4f5;
  --ink-50: #fafafa;

  --green-500: #28bb65;
  --green-100: #c6fbdc;
  --red-500: #eb5757;
  --red-100: #ffefef;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --amber-500: #d97706;

  --border: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 10px 28px rgba(15,23,42,.09);
  --shadow-lg: 0 20px 48px rgba(36,26,94,.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink-900); background: #fff; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; margin: 0; color: inherit; text-align: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--purple-500); color: #fff; }
.btn-primary:hover { background: var(--purple-600); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--purple-500); color: var(--purple-600); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 76px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 50;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.nav-logo .career-tag { color: var(--purple-600); font-weight: 500; }
.nav-logo-img { height: 32px; width: auto; max-width: 180px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-700); }
.nav-links a:hover, .nav-links a.is-active { color: var(--purple-600); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; }
.lang-toggle span { padding: 6px 12px; }
.lang-toggle span.is-active { background: var(--purple-500); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 13px; font-weight: 600; }
.nav-user .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--purple-100); color: var(--purple-700); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(120deg, var(--navy-900), var(--purple-900) 70%);
  color: #fff; margin-top: 70px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 44px 40px 26px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner .brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-inner p { color: rgba(255,255,255,.72); max-width: 460px; font-size: 13.5px; line-height: 1.7; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 40px; display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.6); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 16px; }

/* ---------- Hero / landing ---------- */
.hero { background: linear-gradient(160deg, var(--purple-50), #fff 60%); padding: 64px 40px 50px; text-align: center; }
.hero h1 { font-size: 36px; margin: 0 0 14px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero p { color: var(--ink-500); max-width: 560px; margin: 0 auto 30px; font-size: 15px; }
.search-panel {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; padding: 6px 6px 6px 20px; gap: 10px;
}
.search-panel input { flex: 1; border: none; outline: none; padding: 12px 4px; font-size: 14px; }
.search-panel .divider { width: 1px; height: 26px; background: var(--border); }

.section { max-width: 1200px; margin: 0 auto; padding: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head p { color: var(--ink-500); font-size: 13.5px; margin: 4px 0 0; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-row select, .filter-row input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 600;
  color: var(--ink-700); background: #fff;
}
.chip:hover { border-color: var(--purple-500); color: var(--purple-600); }
.chip.is-active { background: var(--purple-500); border-color: var(--purple-500); color: #fff; }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .job-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .job-grid { grid-template-columns: 1fr; } }
.job-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card .co-badge { width: 42px; height: 42px; border-radius: 10px; background: var(--purple-100); color: var(--purple-700); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.job-card h3 { font-size: 15.5px; margin: 4px 0 0; }
.job-card .meta { font-size: 12.5px; color: var(--ink-500); }
.job-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { background: var(--ink-100); color: var(--ink-700); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag.purple { background: var(--purple-100); color: var(--purple-700); }
.job-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.job-card .posted { font-size: 11.5px; color: var(--ink-300); }

/* ---------- Job detail ---------- */
.detail-shell { max-width: 1000px; margin: 0 auto; padding: 40px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; }
@media (max-width: 800px) { .detail-shell { grid-template-columns: 1fr; } }
.detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.detail-head h1 { font-size: 24px; margin: 6px 0; }
.detail-head .meta { color: var(--ink-500); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.detail-block { margin-bottom: 26px; }
.detail-block h3 { font-size: 15px; margin: 0 0 10px; }
.detail-block ul { padding-left: 18px; list-style: disc; }
.detail-block li { font-size: 13.5px; line-height: 1.8; color: var(--ink-700); }
.detail-block p { font-size: 13.5px; line-height: 1.8; color: var(--ink-700); }
.side-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; position: sticky; top: 96px; }
.side-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--ink-100); font-size: 13px; }
.side-card .row:last-of-type { border-bottom: none; }
.side-card .row span:first-child { color: var(--ink-500); }
.side-card .row span:last-child { font-weight: 600; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--purple-50); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; }
.auth-tabs { display: flex; background: var(--ink-100); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 9px; border: none; background: none; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-500); }
.auth-tabs button.is-active { background: #fff; color: var(--purple-600); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px var(--purple-100); }

/* ---------- Apply flow ---------- */
.apply-shell { max-width: 720px; margin: 0 auto; padding: 40px; }
.apply-steps { display: flex; margin-bottom: 34px; }
.apply-step { flex: 1; text-align: center; position: relative; }
.apply-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-100); color: var(--ink-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: 700; font-size: 13px; }
.apply-step.is-active .num, .apply-step.is-done .num { background: var(--purple-500); color: #fff; }
.apply-step .lbl { font-size: 12px; color: var(--ink-500); }
.apply-step.is-active .lbl { color: var(--purple-700); font-weight: 600; }
.apply-panel { display: none; }
.apply-panel.is-active { display: block; }
.upload-box { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 34px; text-align: center; color: var(--ink-500); }
.upload-box.has-file { border-color: var(--green-500); background: var(--green-100); color: #1b7a45; }
.confirm-box { text-align: center; padding: 40px 20px; }
.confirm-box .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); color: var(--green-500); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 18px; }

/* ---------- Profile ---------- */
.profile-shell { max-width: 1100px; margin: 0 auto; padding: 40px; }
.profile-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.profile-top .avatar-lg { width: 60px; height: 60px; border-radius: 50%; background: var(--purple-100); color: var(--purple-700); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.profile-top .name { font-size: 19px; font-weight: 700; }
.profile-top .role { font-size: 13px; color: var(--ink-500); }
.profile-top .progress-group { display: flex; gap: 30px; margin-left: auto; }
.progress-item { min-width: 160px; }
.progress-item .pt { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.progress-track { height: 6px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.progress-fill { height: 100%; background: var(--purple-500); border-radius: 999px; }

.profile-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.profile-tabs button { padding: 12px 2px; background: none; border: none; font-size: 13.5px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; }
.profile-tabs button.is-active { color: var(--purple-600); border-color: var(--purple-500); }
.profile-panel { display: none; }
.profile-panel.is-active { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field.full { grid-column: 1/-1; }
.card-block { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; margin-bottom: 22px; }
.card-block h3 { font-size: 15px; margin: 0 0 18px; }

.app-track-item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 14px; }
.app-track-item .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.app-track-item h4 { margin: 0; font-size: 14.5px; }
.app-track-item .meta { font-size: 12px; color: var(--ink-500); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge-purple { background: var(--purple-100); color: var(--purple-700); }
.badge-green { background: var(--green-100); color: #1b7a45; }
.badge-blue { background: var(--blue-100); color: #1d4ed8; }
.mini-track { display: flex; }
.mini-step { flex: 1; text-align: center; position: relative; }
.mini-step .d { width: 18px; height: 18px; border-radius: 50%; background: var(--ink-100); margin: 0 auto 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.mini-step .l { position: absolute; top: 8px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.mini-step:last-child .l { display: none; }
.mini-step.is-done .d { background: var(--green-500); box-shadow: none; }
.mini-step.is-done .l { background: var(--green-500); }
.mini-step.is-current .d { background: var(--purple-500); box-shadow: 0 0 0 3px var(--purple-100); }
.mini-step span.lbl { font-size: 10.5px; color: var(--ink-500); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 999px; }

/* ---------- Tia chatbot widget (career) ---------- */
#tia-fab {
  position: fixed; right: 26px; bottom: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--purple-500); border: none; box-shadow: var(--shadow-lg); z-index: 60;
  display: flex; align-items: center; justify-content: center;
}
#tia-fab:hover { background: var(--purple-600); }
.tia-panel {
  position: fixed; top: 0; right: -400px; width: 380px; max-width: 92vw; height: 100vh; background: #fff;
  box-shadow: -12px 0 40px rgba(15,23,42,.18); z-index: 70; display: flex; flex-direction: column;
  transition: right .25s ease;
}
.tia-panel.is-open { right: 0; }
.tia-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.tia-head-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tia-spark { color: var(--purple-500); }
.tia-close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--ink-500); }
.tia-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tia-greet { text-align: center; padding: 18px 8px 6px; }
.tia-spark-lg { font-size: 30px; color: var(--purple-500); margin-bottom: 8px; }
.tia-greet h4 { margin: 0 0 6px; font-size: 16px; }
.tia-greet p { margin: 0; font-size: 13px; color: var(--ink-500); }
.tia-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.tia-msg-bot { background: var(--ink-100); align-self: flex-start; border-bottom-left-radius: 4px; }
.tia-msg-user { background: var(--purple-500); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.tia-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.tia-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--purple-100); background: var(--purple-50); color: var(--purple-700); font-size: 12px; font-weight: 600; }
.tia-chip:hover { background: var(--purple-100); }
.tia-input-row { display: flex; gap: 8px; padding: 0 18px 12px; }
.tia-input-row input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; }
.tia-input-row input:focus { outline: none; border-color: var(--purple-500); }
.tia-send { width: 38px; height: 38px; border-radius: 50%; background: var(--purple-500); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tia-disclaimer { font-size: 10.5px; color: var(--ink-300); text-align: center; padding: 0 18px 14px; }
