:root {
  /* alignerr.com palette — warm off-white + soft muted teal / terracotta */
  --bg: #f1ede6;
  --bg-soft: #f9f6f0;
  --surface: #fffdf8;
  --border: rgba(67, 126, 142, .22);
  --border-strong: rgba(67, 126, 142, .34);
  --text: #2a2622;
  --muted: rgba(42, 38, 34, .6);
  --brand: #36707f;
  --brand-2: #274e58;
  --accent: #c9774f;
  --success: #3a785c;
  /* soft pastel brand fill (chips, soft buttons) */
  --soft-bg: #dcecef;
  --soft-bg-hover: #bcd9e0;
  --soft-text: #274e58;
  --chip-bg: #eff6f8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(42, 38, 34, .05), 0 1px 3px rgba(42, 38, 34, .08);
  --shadow: 0 10px 30px rgba(42, 38, 34, .12);
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Category color themes (shared by cards and detail pages) */
.job-card, .detail-hero {
  --tag: #4d97a5;
  --card-surface: color-mix(in srgb, var(--tag) 14%, var(--surface));
  --card-border: color-mix(in srgb, var(--tag) 36%, var(--border));
  --card-glow: color-mix(in srgb, var(--tag) 30%, transparent);
}
[data-cat="AI"]          { --tag: #8567bf; }
[data-cat="Engineering"]  { --tag: #41699e; }
[data-cat="Security"]     { --tag: #b94a59; }
[data-cat="Data"]         { --tag: #3fa7b5; }
[data-cat="Product"]      { --tag: #6f9a4f; }
[data-cat="Design"]       { --tag: #c473ad; }
[data-cat="Support"]      { --tag: #4d97a5; }
[data-cat="Sales"]        { --tag: #c9774f; }
[data-cat="Marketing"]    { --tag: #d2883c; }
[data-cat="Content"]      { --tag: #7fae93; }
[data-cat="Operations"]   { --tag: #6b7a8c; }
[data-cat="People"]       { --tag: #ab7196; }
[data-cat="Finance"]      { --tag: #3a9d7e; }
[data-cat="Legal"]        { --tag: #9a8a78; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 237, 230, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.logo-set { display: inline-flex; align-items: center; gap: 5px; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px;
  line-height: 1; text-transform: lowercase;
  transition: transform .18s ease, box-shadow .18s ease;
  text-shadow: 0 1px 1px rgba(42, 38, 34, .18);
}
.brand .logo.l1 { background: #f9a8d4; }   /* soft pink   */
.brand .logo.l2 { background: #a5d8f3; }   /* soft blue   */
.brand .logo.l3 { background: #c4b5fd; }   /* soft purple */
.brand:hover .logo { transform: translateY(-2px); }
.brand:hover .logo.l1 { box-shadow: 0 6px 14px rgba(249, 168, 212, .5); }
.brand:hover .logo.l2 { box-shadow: 0 6px 14px rgba(165, 216, 243, .5); }
.brand:hover .logo.l3 { box-shadow: 0 6px 14px rgba(196, 181, 253, .5); }
.brand-text { margin-left: 3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: var(--bg); }
.nav-links a.btn-primary:hover { color: var(--bg); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: var(--brand-2); }
.btn-ghost { background: var(--soft-bg); border-color: transparent; color: var(--soft-text); }
.btn-ghost:hover { background: var(--soft-bg-hover); }

/* Hero */
.hero { padding: 72px 0 30px; text-align: center; }
.hero-stats { display: inline-flex; gap: 34px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.hero-stats .s { text-align: left; }
.hero-stats .s b { display: block; font-size: 22px; font-weight: 800; }
.hero-stats .s span { font-size: 13.5px; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--chip-bg); color: var(--brand); border: 1px solid var(--border);
}
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.03; margin: 20px auto 16px; max-width: 900px; letter-spacing: -1.5px; font-weight: 800; }
.hero h1 .grad { color: var(--brand); }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Toolbar / filters */
.toolbar {
  margin: 24px auto 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
}
.search-input {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 15px; outline: none;
}
.search-input::placeholder { color: #9aa2b1; }
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .12s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--soft-bg); color: var(--soft-text); border-color: transparent; }

/* Section head */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 16px; }
.section-head h2 { font-size: 24px; margin: 0; letter-spacing: -.5px; }
.section-head .count { color: var(--muted); font-size: 14px; }

/* Job grid */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; padding-bottom: 40px; }
.job-card {
  background: var(--card-surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden; isolation: isolate;
}
.job-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background:
    radial-gradient(circle at 16% 0%, var(--card-glow), transparent 48%),
    linear-gradient(135deg, var(--card-glow), transparent 62%);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.job-card:hover::before { opacity: 1; }
.job-top { display: flex; align-items: center; gap: 12px; }
.company-badge {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px;
  background: var(--tag, var(--brand));
}
.job-company { color: var(--muted); font-size: 13px; }
.job-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; letter-spacing: -.3px; }
.job-blurb { color: var(--muted); font-size: 14px; margin: -4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13.5px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tag, var(--brand)) 12%, #fff); border: 1px solid color-mix(in srgb, var(--tag, var(--brand)) 28%, transparent); color: color-mix(in srgb, var(--tag, var(--brand)) 70%, #2a2622); }
.job-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.rate { font-weight: 800; color: var(--text); font-size: 16px; }
.job-link { color: color-mix(in srgb, var(--tag, var(--brand)) 80%, #2a2622); font-weight: 600; font-size: 14px; }
.pill-level { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tag, var(--brand)) 16%, #fff); color: color-mix(in srgb, var(--tag, var(--brand)) 75%, #2a2622); border: 1px solid color-mix(in srgb, var(--tag, var(--brand)) 30%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Detail page */
.detail-hero { padding: 34px 0 10px; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); }
.detail-hero > .detail-card { background: color-mix(in srgb, var(--tag) 5%, var(--surface)); border-color: color-mix(in srgb, var(--tag) 18%, var(--border)); }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .company-badge { width: 60px; height: 60px; font-size: 24px; border-radius: 14px; background: color-mix(in srgb, var(--tag) 82%, #fff); }
.detail-title { font-size: clamp(24px, 4vw, 34px); margin: 4px 0 6px; line-height: 1.15; letter-spacing: -.8px; }
.detail-sub { color: var(--muted); font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; letter-spacing: -.3px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 6px 0; color: rgba(42, 38, 34, .78); }
.prose p { color: rgba(42, 38, 34, .78); }
.detail-head .tag { background: color-mix(in srgb, var(--tag) 8%, #fff); border-color: color-mix(in srgb, var(--tag) 20%, transparent); color: rgba(42, 38, 34, .7); }
.aside { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.aside dl { margin: 0; display: grid; gap: 14px; }
.aside .row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border-strong); padding-bottom: 12px; }
.aside .row:last-of-type { border-bottom: none; }
.aside dt { color: var(--muted); font-size: 13px; }
.aside dd { margin: 0; font-weight: 600; text-align: right; }
.aside .btn { width: 100%; margin-top: 8px; }

/* ---- Icons ---- */
.ic { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; flex-shrink: 0; }

/* ---- Detail page: richer layout ---- */
.detail-banner {
  border-radius: var(--radius); padding: 26px; margin-bottom: 8px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--tag) 20%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--tag) 14%, var(--surface)), color-mix(in srgb, var(--tag) 4%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--tag) 22%, var(--border));
}
.cat-badge {
  display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--tag) 16%, #fff);
  color: color-mix(in srgb, var(--tag) 72%, #2a2622);
  border: 1px solid color-mix(in srgb, var(--tag) 28%, transparent);
}
.detail-highlights { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.detail-highlights .hl {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 170px;
  background: rgba(255, 253, 248, .7); border: 1px solid color-mix(in srgb, var(--tag) 18%, var(--border));
  border-radius: 12px; padding: 12px 14px;
}
.detail-highlights .hl-ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--tag) 16%, #fff);
  color: color-mix(in srgb, var(--tag) 78%, #2a2622);
}
.detail-highlights .hl-ic .ic { width: 19px; height: 19px; }
.detail-highlights .hl b { display: block; font-size: 15px; }
.detail-highlights .hl small { color: var(--muted); font-size: 12.5px; }

.prose h3 .h-ic {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; vertical-align: -8px; margin-right: 8px;
  background: color-mix(in srgb, var(--tag) 14%, #fff);
  color: color-mix(in srgb, var(--tag) 78%, #2a2622);
}
.prose ul.ticks { list-style: none; padding-left: 0; }
.prose ul.ticks li { position: relative; padding-left: 30px; margin: 10px 0; color: rgba(42, 38, 34, .8); }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--tag) 22%, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2622' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* Aside pay block */
.aside-pay {
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tag) 20%, #fff), color-mix(in srgb, var(--tag) 8%, #fff));
  border: 1px solid color-mix(in srgb, var(--tag) 26%, transparent);
}
.aside-pay small { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.aside-pay .aside-rate { font-size: 26px; font-weight: 800; color: var(--text); margin-top: 4px; }
.aside dt { display: inline-flex; align-items: center; gap: 7px; }
.aside dt .ic { width: 15px; height: 15px; color: color-mix(in srgb, var(--tag) 70%, var(--muted)); }

/* Detail buttons (soft, colored like the theme) */
.btn-apply {
  background: color-mix(in srgb, var(--tag) 88%, #000); color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--tag) 30%, transparent);
}
.btn-apply:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--tag) 96%, #000); box-shadow: 0 10px 24px color-mix(in srgb, var(--tag) 38%, transparent); }
.btn-soft {
  background: color-mix(in srgb, var(--tag) 14%, #fff);
  color: color-mix(in srgb, var(--tag) 70%, #2a2622);
  border-color: color-mix(in srgb, var(--tag) 24%, transparent);
}
.btn-soft:hover { background: color-mix(in srgb, var(--tag) 22%, #fff); }
.btn .ic { width: 17px; height: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 0; color: var(--muted); background: var(--bg-soft); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-grid .about { max-width: 380px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { color: var(--text); font-size: 15px; margin: 0 0 12px; }
.footer-links a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Content / legal pages ---- */
.container.narrow { max-width: 820px; }
.page-hero { padding: 56px 0 24px; text-align: center; }
.page-title { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1px; margin: 0 0 12px; }
.page-lede { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.page-body { padding-bottom: 50px; }
.page-body h3 { font-size: 19px; margin: 30px 0 10px; letter-spacing: -.3px; }
.page-body p { color: rgba(42, 38, 34, .82); }
.page-body ul { padding-left: 20px; }
.page-body li { margin: 7px 0; color: rgba(42, 38, 34, .82); }
.page-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.page-body a:hover { color: var(--brand-2); }
.muted-note { color: var(--muted); font-size: 14px; font-style: italic; }
.page-body ul.ticks { list-style: none; padding-left: 0; }
.page-body ul.ticks li { position: relative; padding-left: 30px; }
.page-body ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--soft-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23274e58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 2px 20px; transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 16.5px;
  padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--brand); display: inline-flex; transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { margin: 0; color: rgba(42, 38, 34, .8); }
.faq-answer a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.faq-cta {
  text-align: center; margin: 30px 0 50px; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--soft-bg), color-mix(in srgb, var(--soft-bg) 40%, var(--surface)));
  border: 1px solid var(--border);
}
.faq-cta h3 { margin: 0 0 6px; font-size: 20px; }
.faq-cta p { margin: 0 0 16px; color: var(--muted); }

/* ---- Contact cards ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: 50px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card h3 { margin: 12px 0 6px; font-size: 16px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.contact-card a { color: var(--brand); }
.contact-card a:hover { text-decoration: underline; }
.contact-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--soft-bg); color: var(--soft-text);
}
.contact-ic .ic { width: 22px; height: 22px; }
.contact-cta-card { background: linear-gradient(135deg, var(--soft-bg), var(--surface)); }
.contact-cta-card .btn { margin-top: 14px; }

/* ---- Auth / sign-in page ---- */
.auth-main { position: relative; min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 48px 20px; overflow: hidden; }

/* animated decorative background */
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: blobFloat 14s ease-in-out infinite; }
.auth-bg .b1 { width: 340px; height: 340px; background: #f9a8d4; top: -60px; left: -40px; }
.auth-bg .b2 { width: 300px; height: 300px; background: #a5d8f3; bottom: -70px; right: -30px; animation-delay: -4s; }
.auth-bg .b3 { width: 260px; height: 260px; background: #c4b5fd; top: 40%; left: 55%; animation-delay: -8s; }

.auth-bg .float { position: absolute; opacity: .85; border-radius: 8px; }
.auth-bg .f1 { width: 26px; height: 26px; background: #f9a8d4; top: 16%; left: 14%; animation: drift1 16s ease-in-out infinite; }
.auth-bg .f2 { width: 20px; height: 20px; background: #a5d8f3; border-radius: 50%; top: 26%; right: 16%; animation: drift2 19s ease-in-out infinite; }
.auth-bg .f3 { width: 32px; height: 32px; background: #c4b5fd; bottom: 18%; left: 20%; animation: drift3 22s ease-in-out infinite; }
.auth-bg .f4 { width: 18px; height: 18px; background: #86efac; border-radius: 50%; bottom: 24%; right: 22%; animation: drift4 17s ease-in-out infinite; }
.auth-bg .f5 { width: 22px; height: 22px; background: #fcd34d; bottom: 12%; left: 46%; animation: drift1 21s ease-in-out infinite reverse; }
.auth-bg .f6 { width: 16px; height: 16px; background: #f9a8d4; border-radius: 50%; top: 12%; right: 34%; animation: drift3 18s ease-in-out infinite; }
.auth-bg .f7 { width: 28px; height: 28px; background: #a5d8f3; top: 60%; left: 8%; animation: drift2 24s ease-in-out infinite reverse; }
.auth-bg .f8 { width: 20px; height: 20px; background: #c4b5fd; border-radius: 50%; top: 8%; left: 40%; animation: drift4 20s ease-in-out infinite; }

@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-24px) scale(1.08); } }
@keyframes drift1 { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(60px,40px) rotate(45deg); } 50% { transform: translate(120px,-30px) rotate(120deg); } 75% { transform: translate(30px,-70px) rotate(200deg); } 100% { transform: translate(0,0) rotate(360deg); } }
@keyframes drift2 { 0% { transform: translate(0,0) rotate(0); } 33% { transform: translate(-80px,50px) rotate(90deg); } 66% { transform: translate(-40px,120px) rotate(200deg); } 100% { transform: translate(0,0) rotate(360deg); } }
@keyframes drift3 { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-50px,-60px) rotate(-60deg); } 50% { transform: translate(70px,-90px) rotate(-140deg); } 75% { transform: translate(90px,-20px) rotate(-260deg); } 100% { transform: translate(0,0) rotate(-360deg); } }
@keyframes drift4 { 0% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-110px,-80px) rotate(180deg); } 100% { transform: translate(0,0) rotate(360deg); } }

.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 430px; text-align: center; }
.auth-card {
  background: rgba(255, 253, 248, .82); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px;
  padding: 38px 34px; box-shadow: 0 24px 60px rgba(42, 38, 34, .16);
  animation: authIn .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.auth-title { font-size: 27px; letter-spacing: -.7px; margin: 0 0 8px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.auth-sub strong { color: var(--text); }

.auth-consent {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; cursor: pointer;
}
.auth-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); cursor: pointer; }
.auth-consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.btn-google {
  width: 100%; background: #fff; color: var(--text);
  border: 1px solid var(--border-strong); font-weight: 600; font-size: 15.5px;
  padding: 13px 18px; border-radius: 12px; gap: 12px;
  transition: opacity .15s ease, transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn-google:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(42, 38, 34, .14); }
.btn-google:disabled { opacity: .4; cursor: not-allowed; }
.ic-google { width: 20px; height: 20px; }

.auth-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.auth-secure .ic { width: 13px; height: 13px; }

.auth-help { margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-help a { color: var(--brand); }
.auth-help a:hover { text-decoration: underline; }

/* ---- Candidate application page ---- */
.apply-main {
  position: relative;
  overflow: hidden;
  padding: 56px 0 24px;
}
.apply-main::before,
.apply-main::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
}
.apply-main::before {
  width: 360px;
  height: 360px;
  background: #a5d8f3;
  top: 20px;
  left: -120px;
}
.apply-main::after {
  width: 320px;
  height: 320px;
  background: #f9a8d4;
  right: -110px;
  bottom: 30px;
}
.apply-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 210px);
}
.apply-intro h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 18px 0 16px;
}
.apply-intro p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 0 18px;
}
.apply-note {
  max-width: 560px;
  padding: 15px 16px;
  border-radius: 14px;
  color: rgba(42, 38, 34, .78);
  background: rgba(255, 253, 248, .68);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.apply-card {
  background: rgba(255, 253, 248, .86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 24px 70px rgba(42, 38, 34, .16);
}
.apply-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-bg);
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .25s ease;
}
.question-step {
  display: none;
  animation: questionIn .24s ease both;
}
.question-step.active { display: block; }
@keyframes questionIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.question-step label {
  display: block;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.8px;
  font-weight: 800;
  margin: 0 0 10px;
}
.question-help {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 15px;
}
.apply-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 15px 16px;
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.apply-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(54, 112, 127, .14);
  background: #fff;
}
textarea.apply-input {
  resize: vertical;
  min-height: 150px;
}
.apply-error {
  min-height: 22px;
  color: #b94a59;
  font-size: 14px;
  margin: 14px 0 0;
}
.apply-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.apply-actions .btn { min-width: 132px; }
.apply-actions .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.apply-success {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 22px 0 4px;
}
.fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fireworks span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  animation: fireworkPop 1.6s ease-out infinite;
}
.fireworks span:nth-child(1) { left: 18%; top: 18%; background: #f9a8d4; animation-delay: 0s; }
.fireworks span:nth-child(2) { left: 76%; top: 20%; background: #a5d8f3; animation-delay: .18s; }
.fireworks span:nth-child(3) { left: 48%; top: 8%; background: #c4b5fd; animation-delay: .35s; }
.fireworks span:nth-child(4) { left: 28%; top: 70%; background: #fcd34d; animation-delay: .52s; }
.fireworks span:nth-child(5) { left: 82%; top: 66%; background: #86efac; animation-delay: .7s; }
.fireworks span:nth-child(6) { left: 12%; top: 52%; background: #c9774f; animation-delay: .9s; }
@keyframes fireworkPop {
  0% { opacity: 0; transform: scale(.2); box-shadow: 0 0 0 0 currentColor; }
  18% { opacity: 1; transform: scale(1); box-shadow: 0 -22px 0 #f9a8d4, 18px -12px 0 #a5d8f3, 20px 14px 0 #c4b5fd, 0 24px 0 #fcd34d, -20px 14px 0 #86efac, -18px -12px 0 #c9774f; }
  100% { opacity: 0; transform: scale(1.25); box-shadow: 0 -42px 0 transparent, 34px -24px 0 transparent, 38px 26px 0 transparent, 0 44px 0 transparent, -38px 26px 0 transparent, -34px -24px 0 transparent; }
}
.success-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--success);
  font-size: 30px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.apply-success h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.7px;
  position: relative;
  z-index: 1;
}
.apply-success p {
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 500px;
  position: relative;
  z-index: 1;
}
.apply-success .success-soft {
  color: rgba(42, 38, 34, .76);
  margin-bottom: 24px;
}
.apply-success .btn {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .auth-bg .blob, .auth-bg .float, .auth-card, .question-step { animation: none; }
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .toolbar { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .apply-shell { grid-template-columns: 1fr; min-height: auto; }
  .apply-intro { text-align: center; }
  .apply-intro p, .apply-note { margin-left: auto; margin-right: auto; }
  .apply-card { border-radius: 22px; }
}

@media (max-width: 560px) {
  .apply-main { padding-top: 34px; }
  .apply-shell { gap: 22px; }
  .apply-actions { flex-direction: column-reverse; }
  .apply-actions .btn { width: 100%; }
}
