:root {
  --primary: #0A2885;
  --primary-dark: #071d64;
  --primary-soft: #e7edfb;
  --ink: #1a1d26;
  --muted: #6b7280;
  --line: #e6e8ef;
  --paper: #f4f6fb;
  --card: #ffffff;
  --shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
  --radius: 16px;
  --sans: Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
}
h1, h2, h3 { margin: 0 0 8px; letter-spacing: -0.03em; line-height: 1.2; }
p { margin: 0 0 10px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: #d9e2fb; }

.skip { position: absolute; left: 12px; top: -40px; background: white; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
}
.site-nav { display: flex; gap: 18px; margin-left: 12px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.site-nav a:hover { color: var(--primary); }
.header-login { margin-left: auto; }
.nav-account { display: none; }
.inline-form { display: inline; margin: 0; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: white; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfd5e4; }
.btn-quiet { width: 100%; border-color: rgba(255,255,255,.35); color: white; background: transparent; }
.btn[disabled] { opacity: 0.7; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-block { width: 100%; }

.search-wrap { padding: 18px 0 0; }
.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.search-bar .grow { flex: 1; min-width: 180px; }
.search-bar label { margin: 0; }
.search-bar input, .search-bar select { margin: 0; }

input, select, textarea {
  width: 100%;
  border: 1px solid #d9deea;
  background: white;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
label input, label select, label textarea { margin-top: 6px; font-weight: 450; }
.hint { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-top: 4px; }

.board {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0 56px;
}
.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 88px;
}
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filter-head h2 { font-size: 0.95rem; margin: 0; }
.filter-head a { font-size: 0.82rem; font-weight: 600; }
.filter-label {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.filter-row:hover { background: var(--primary-soft); text-decoration: none; }
.filter-row em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 0.82rem; }
.filter-row .tick {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5cad8;
  border-radius: 4px;
  display: inline-block;
  background: white;
}
.filter-row.is-on { color: var(--primary); font-weight: 700; }
.filter-row.is-on .tick { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 2px white; }

.result-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.result-head h1 { font-size: 1.45rem; font-weight: 700; }
.group-title { margin: 18px 0 12px; font-size: 1.05rem; }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.role-card:hover { border-color: #c9d4f5; }
.role-top { display: flex; gap: 12px; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  flex: none;
}
.role-top h3 { font-size: 1.05rem; margin: 0; }
.role-top h3 a { color: inherit; text-decoration: none; }
.role-top h3 a:hover { color: var(--primary); }
.company, .loc { margin: 0; color: var(--muted); font-size: 0.86rem; }
.tag-row, .skill-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0; }
.tag, .skill-list li {
  background: #f3f5fa;
  color: #374151;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}
.summary {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.role-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.pager a.is-on { background: var(--primary); border-color: var(--primary); color: white; }
.pager a:hover { border-color: var(--primary); text-decoration: none; }
.pager .is-disabled { color: #b0b6c3; }

.page-block { padding: 22px 0 64px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.steps span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef1f6;
  font-size: 0.78rem;
}
.steps .is-current { color: var(--primary); border-color: #c9d4f5; }
.steps .is-current span, .steps .is-done span { background: var(--primary); color: white; }

.job-layout, .apply-layout, .pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.panel, .apply-card, .login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.apply-card { position: sticky; top: 90px; }
.apply-card h2 { font-size: 1.35rem; }
.prose h2 { margin-top: 22px; font-size: 1.2rem; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li + li { margin-top: 6px; }
.meta-line { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-wide { grid-column: 1 / -1; }
.form-section { margin-top: 8px; }
.form-section h2 { font-size: 1.05rem; margin-bottom: 12px; }

.pay-summary { margin-bottom: 16px; }
.pay-amount {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin: 4px 0 8px;
}
.kv { display: grid; grid-template-columns: 160px 1fr; margin: 8px 0 0; }
.kv dt { color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fine-print { color: var(--muted); font-size: 0.84rem; }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
[data-razorpay-status] { margin-top: 12px; }
.alert-warn { background: #fff4e8; color: #6a3412; border: 1px solid #f0d2b8; }
.alert-ok { background: #e8f6ee; color: #145c32; border: 1px solid #b7e4c7; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }
.flash-wrap { padding-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 3px; }

.rzp {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 18, 40, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rzp.is-open { display: flex; }
.rzp-modal {
  width: min(420px, 100%);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.rzp-head {
  background: var(--primary);
  color: white;
  padding: 16px 16px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rzp-head p { margin: 0; color: #dbe4ff; font-size: 0.82rem; }
.rzp-head strong { display: block; font-size: 1.45rem; letter-spacing: -0.03em; }
.rzp-x {
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.rzp-body { padding: 16px; }
.demo-pill {
  display: inline-flex;
  background: #fff4d6;
  color: #8a5a00;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.methods { display: grid; gap: 8px; margin: 12px 0; }
.method {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
.method input { width: auto; }
.method-panel { display: none; margin-bottom: 10px; }
.method-panel.is-shown { display: block; }
.rzp-foot {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 8px 0 0;
}

.login-wrap { padding: 48px 0 72px; }
.login-card { max-width: 440px; }
body.page-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-auth #content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 148px;
}
body.page-auth .login-wrap {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0;
}
body.page-auth .login-card { width: 100%; }
.otp-field { margin-top: 6px; }
.otp-row { display: flex; gap: 8px; align-items: center; }
.otp-row input { margin: 0; flex: 1; min-width: 0; }
.otp-row .btn { flex: 0 0 auto; white-space: nowrap; }
.otp-box { margin-top: 8px; }
.otp-field.is-verified [data-otp-status] { color: #157a3a; font-weight: 600; }
.login-switch {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.login-switch:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
body.page-auth .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
}
.site-footer { border-top: 1px solid var(--line); background: white; padding: 26px 0 16px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-note { color: var(--muted); font-size: 0.85rem; }
.empty { padding: 28px; text-align: center; }

.status { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.status-paid { background: #e5f6ec; color: #157a3a; }
.status-pending { background: #fff1e4; color: #9a4b12; }
.status-closed { background: #eef0f4; color: #4b5160; }
.account-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.account-table { min-width: 720px; }
.account-table .btn { min-height: 34px; padding: 0 12px; }

.admin-body { background: var(--paper); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-side {
  background: var(--primary);
  color: white;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.admin-side .brand, .admin-side .brand small { color: white; }
.admin-side .brand-mark { background: white; color: var(--primary); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { color: white; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.admin-nav a.is-active, .admin-nav a:hover { background: rgba(255,255,255,.14); }
.logout-form { margin-top: auto; }
.admin-main { padding: 28px 22px 48px; }
.admin-title { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.admin-title h1 { font-size: 1.7rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat span { display: block; color: var(--muted); font-size: 0.8rem; }
.stat strong { font-size: 1.45rem; color: var(--primary); }
.filters-admin, .filters { }
.admin-main .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; background: transparent; border: 0; box-shadow: none; padding: 0; position: static; }
.admin-main .filters form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.chip.is-on { background: var(--primary); color: white; border-color: var(--primary); }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.note { background: #fff4e8; border: 1px solid #f0d2b8; color: #6a3412; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }

@media (max-width: 1200px) {
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .board, .job-layout, .apply-layout, .pay-layout, .stat-row { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .apply-card { position: static; }
  .footer-inner, .result-head, .admin-title { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .header-login { display: none; }
  .nav-account { display: block; }
  .account-head { flex-direction: column; align-items: flex-start; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .search-bar, .form-grid, .kv, .admin-shell { display: flex; flex-direction: column; }
  .admin-shell { display: grid; grid-template-columns: 1fr; }
  .logout-form { margin-top: 8px; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
}
