/* 1. Fonts
   Local font files can be added later in app/static/fonts/.
   The stack below avoids browser 404s while keeping the intended families. */

/* 2. Variables */
:root {
  --green: #22B36B;
  --green-dark: #15824D;
  --sky: #8EC9E8;
  --sky-soft: #E6F6FB;
  --gold: #F4C542;
  --gold-soft: #FFF7D6;
  --text: #1F3440;
  --muted: #5F6B73;
  --bg: #EEF6F3;
  --bg-soft: #F4F8F7;
  --surface: #FFFFFF;
  --surface-muted: #F8FBFA;
  --surface-green: #EAF6F0;
  --surface-sky: #EAF7FB;
  --surface-alt: #EEF6F3;
  --surface-soft: #FBFDFE;
  --border: #D6E3E0;
  --border-strong: #C8D7DC;
  --danger: #B42318;
  --success: #137A4B;
  --header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.96) 100%);
  --nav-user-bg: rgba(255, 255, 255, 0.72);
  --admin-table-bg: rgba(255, 255, 255, 0.86);
  --danger-bg: #FFFDFB;
  --danger-soft: #FFF2F0;
  --success-soft: #F2FAF5;
  --info-soft: #F2FAFC;
  --image-caption-bg: rgba(255, 255, 255, 0.86);
  --image-caption-border: rgba(255, 255, 255, 0.54);
  --focus-ring: rgba(142, 201, 232, 0.34);
  --title-font: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: "Encode Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 14px 34px rgba(31, 52, 64, 0.07);
  --shadow-soft: 0 6px 18px rgba(31, 52, 64, 0.05);
}

[data-theme="dark"] {
  color-scheme: dark;
  --green: #35D184;
  --green-dark: #22B36B;
  --sky: #72C7E8;
  --sky-soft: #17333B;
  --gold: #F4C542;
  --gold-soft: #3B3316;
  --text: #F3F7F8;
  --muted: #B8C7CC;
  --bg: #0F1A1D;
  --bg-soft: #132327;
  --surface: #172A2E;
  --surface-muted: #1D3438;
  --surface-green: #142F27;
  --surface-sky: #17313A;
  --surface-alt: #132327;
  --surface-soft: #1A3034;
  --border: #2B454B;
  --border-strong: #3A5960;
  --danger: #FF8F86;
  --success: #35D184;
  --header-bg: linear-gradient(180deg, rgba(23, 42, 46, 0.96), rgba(19, 35, 39, 0.94));
  --nav-user-bg: rgba(29, 52, 56, 0.82);
  --admin-table-bg: rgba(23, 42, 46, 0.9);
  --danger-bg: #2B1D1D;
  --danger-soft: #3A2423;
  --success-soft: #15382A;
  --info-soft: #17313A;
  --image-caption-bg: rgba(23, 42, 46, 0.88);
  --image-caption-border: rgba(184, 199, 204, 0.26);
  --focus-ring: rgba(114, 199, 232, 0.26);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* 3. Reset/base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(142, 201, 232, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 46%, var(--surface-green) 100%);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.56;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 62vh;
  background: transparent;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-dark); }

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.brand,
.nav-link,
.nav-action,
.btn,
.badge,
.eyebrow {
  font-family: var(--title-font);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
}

p {
  margin-bottom: 14px;
  color: var(--muted);
}

/* 4. Layout */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 52px 0;
  background: var(--bg-soft);
}

.section-compact {
  padding: 30px 0;
}

.section-tight {
  padding-top: 30px;
  background: linear-gradient(180deg, var(--bg-soft), var(--surface-green));
}

.section-alt {
  background: var(--surface-green);
}

.section-header {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-header-row {
  max-width: none;
  display: grid;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.page-header {
  padding: 44px 0;
  background: linear-gradient(180deg, var(--surface-sky), var(--bg-soft));
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.page-header p {
  max-width: 680px;
}

/* 5. Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(31, 52, 64, 0.045);
  backdrop-filter: blur(12px);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--sky), rgba(244, 197, 66, 0.72));
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark-img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
  font-family: var(--title-font);
  letter-spacing: -0.02em;
}

.brand-text strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.brand-text span {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-menu {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 79px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 4px;
}

.nav-menu.is-open {
  display: flex;
}

.nav-link,
.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-link:hover,
.nav-action:hover {
  background: rgba(34, 179, 107, 0.08);
  color: var(--green-dark);
}

.nav-link-strong {
  color: var(--surface);
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 8px 18px rgba(34, 179, 107, 0.16);
}

.nav-link-strong:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--surface);
}

.nav-user {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--nav-user-bg);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--title-font);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: inset -5px -5px 0 currentColor;
}

[data-theme="dark"] .theme-toggle-icon {
  box-shadow: inset 5px 0 0 transparent;
}

.inline-form {
  display: inline;
}

/* 6. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--surface);
}

.btn-secondary {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

.btn-secondary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--surface);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-small {
  min-height: 36px;
  padding: 8px 12px;
}

.btn-full {
  width: 100%;
}

.text-link {
  color: var(--green-dark);
  font-family: var(--title-font);
  font-weight: 700;
}

/* 7. Hero */
.hero {
  padding: 42px 0 36px;
  background: linear-gradient(180deg, var(--surface-sky) 0%, var(--bg-soft) 78%, var(--surface-green) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.hero-content {
  max-width: 710px;
}

.hero-text {
  max-width: 650px;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-kicker {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-family: var(--title-font);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-panel h2 {
  font-size: 1.25rem;
}

.hero-panel p {
  margin-bottom: 0;
}

.hero-mini-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.hero-mini-grid div {
  min-height: 70px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
}

.hero-mini-grid strong,
.hero-mini-grid span {
  display: block;
}

.hero-mini-grid strong {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 0.94rem;
}

.hero-mini-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* 8. Sections */
.value-grid,
.brand-grid,
.sponsor-grid,
.jobs-grid {
  display: grid;
  gap: 16px;
}

/* 8. Home visual/images */
.home-visual,
.service-layout {
  display: grid;
  gap: 22px;
  align-items: center;
}

.image-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-card-main {
  min-height: 245px;
}

.image-card-secondary {
  min-height: 205px;
}

.image-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid var(--image-caption-border);
  border-radius: 999px;
  background: var(--image-caption-bg);
  color: var(--text);
  font-family: var(--title-font);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 52, 64, 0.10);
}

.trust-card {
  padding: 24px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.trust-list,
.auth-checks {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.trust-list span,
.auth-checks span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
}

.trust-list span::before,
.auth-checks span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--green);
}

.section-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.value-card,
.brand-card,
.sponsor-card,
.service-card,
.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.value-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 166px;
  padding: 20px;
}

.value-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--green);
}

.value-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--border-strong);
  font-family: var(--title-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 9. Cards */
.brand-card,
.sponsor-card {
  min-height: 158px;
  padding: 20px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.brand-card::before,
.sponsor-card::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: var(--gold);
}

.brand-card:hover,
.sponsor-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.brand-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--title-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.service-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.service-card .badge {
  width: fit-content;
}

.content-card,
.apply-card,
.filter-shell,
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

/* 10. Jobs */
.jobs-grid-list {
  gap: 18px;
}

.job-card {
  display: grid;
  gap: 16px;
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.job-card-body {
  min-width: 0;
}

.job-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.job-card h2,
.job-card h3 {
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.job-meta span:first-child {
  color: var(--text);
  font-weight: 700;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-green {
  border-color: var(--green);
  background: var(--surface-green);
  color: var(--green-dark);
}

.badge-sky {
  border-color: var(--sky);
  background: var(--sky-soft);
  color: var(--text);
}

.badge-gold {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
}

.filter-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
}

.filters {
  display: grid;
  gap: 10px;
}

/* 11. Forms */
.form-page {
  padding: 42px 0 52px;
  min-height: auto;
  background: var(--bg);
}

.form-shell {
  max-width: 900px;
}

.form-shell-narrow {
  max-width: 560px;
}

.form-card {
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 22px;
}

.form-header h1 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.auth-layout {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.auth-card {
  width: 100%;
}

.auth-side-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  box-shadow: var(--shadow-soft);
}

.auth-side-panel h2 {
  font-size: 1.45rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field,
label {
  display: grid;
  gap: 7px;
}

label {
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.94rem;
  font-weight: 600;
}

.field label {
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.94rem;
  font-weight: 600;
}

.form-section {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.form-section legend {
  padding: 0 8px;
  color: var(--text);
  font-family: var(--title-font);
  font-size: 0.9rem;
  font-weight: 700;
}

.input,
.textarea,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  min-height: 50px;
  padding: 12px 14px;
  font-family: var(--body-font);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.select,
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.textarea,
textarea {
  resize: vertical;
}

.input:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--focus-ring);
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(34, 179, 107, 0.10);
}

.input:hover,
.textarea:hover,
input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

.helper-text,
.help-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.social-auth {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-social {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--title-font);
  font-weight: 700;
  text-align: left;
  cursor: not-allowed;
  opacity: 1;
}

.btn-social small {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--title-font);
  font-weight: 800;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-divider span {
  white-space: nowrap;
}

.form-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.94rem;
}

.form-footnote a {
  color: var(--green-dark);
  font-family: var(--title-font);
  font-weight: 700;
}

.check-field {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
}

/* 12. Alerts */
.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.alert-error {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.alert-success {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.alert-info {
  border-color: var(--sky);
  background: var(--info-soft);
}

/* 13. Sponsors/services */
.detail-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 16px;
}

.detail-sidebar {
  min-width: 0;
}

.content-card,
.apply-card {
  padding: 22px;
}

.sidebar-summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 12px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sidebar-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-summary strong {
  color: var(--text);
  font-weight: 600;
}

.empty-state {
  padding: 28px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  margin-bottom: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar,
.company-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--green-dark);
  font-family: var(--title-font);
  font-weight: 800;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.avatar-lg,
.company-logo {
  width: 72px;
  height: 72px;
}

.avatar-xl {
  width: 124px;
  height: 124px;
  font-size: 2.2rem;
}

.company-logo {
  border-radius: 16px;
}

.avatar img,
.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-preview {
  box-shadow: 0 12px 28px rgba(31, 52, 64, 0.10);
}

.upload-control input[type="file"] {
  padding-top: 13px;
}

.panel-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid,
.account-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.account-card,
.security-card {
  min-width: 0;
}

.security-card {
  display: grid;
  gap: 16px;
}

.panel-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  border-color: var(--green);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.panel-summary .progress-card {
  flex: 1 1 220px;
  min-width: 220px;
  margin-left: auto;
}

.progress-card {
  display: grid;
  gap: 7px;
}

.progress-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.progress-card strong {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 1.4rem;
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.panel-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-actions {
  margin: 0 0 22px;
}

.dashboard-grid .value-card,
.account-card,
.security-card .content-card {
  border-color: rgba(31, 52, 64, 0.10);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.mini-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.stat-grid-compact {
  margin: 14px 0 0;
}

.stat-grid article,
.table-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-grid article {
  padding: 18px;
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.stat-grid strong {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 2rem;
}

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 0.92rem;
}

td a {
  color: var(--text);
  font-weight: 700;
}

.verification-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
}

.verification-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.verification-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}

.verification-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.verification-list strong {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 0.9rem;
}

.danger-zone {
  border-color: var(--danger);
  background: var(--danger-bg);
}

/* Admin */
.admin-shell {
  padding: 28px 0 44px;
  background: linear-gradient(180deg, var(--surface-green), var(--bg-soft));
}

.admin-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-green) 100%);
  box-shadow: var(--shadow-soft);
}

.admin-hero-compact {
  padding: 22px 24px;
}

.admin-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-hero p {
  max-width: 780px;
  margin-bottom: 0;
}

.admin-hero-subtitle {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-hero-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-subnav {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--nav-user-bg);
  box-shadow: var(--shadow-soft);
}

.admin-subnav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--title-font);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-subnav a:hover,
.admin-subnav a.is-active {
  background: var(--surface-green);
  color: var(--green-dark);
}

.admin-section,
.admin-kpi-section {
  margin-top: 26px;
}

.admin-priority-grid,
.admin-shortcut-grid,
.admin-kpi-compact-grid,
.admin-activity-grid {
  display: grid;
  gap: 14px;
}

.admin-priority-card,
.admin-shortcut-card,
.admin-kpi-group,
.admin-activity-card,
.admin-application-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-priority-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 210px;
  padding: 18px;
  border-top: 4px solid var(--green);
}

.admin-count {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.admin-priority-card h3,
.admin-shortcut-card h3,
.admin-kpi-group h3,
.admin-activity-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.admin-priority-card p,
.admin-shortcut-card p,
.admin-list-header p,
.admin-activity-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-shortcut-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 170px;
  padding: 18px;
}

.admin-shortcut-card:hover,
.admin-priority-card:hover,
.admin-application-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.admin-kpi-group {
  padding: 18px;
  background: var(--surface-muted);
}

.admin-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.admin-kpi-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-kpi-row strong {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 1.2rem;
}

.admin-card-heading,
.admin-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-list-header {
  margin: 22px 0 14px;
}

.admin-list-header h2 {
  margin-bottom: 4px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.admin-card-heading {
  margin-bottom: 14px;
}

.admin-card-heading a,
.admin-list-link {
  color: var(--green-dark);
  font-family: var(--title-font);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}

.notification-unread {
  border-color: color-mix(in srgb, var(--green) 42%, var(--border));
  background: color-mix(in srgb, var(--green) 7%, var(--surface-muted));
}

.admin-list-item strong {
  display: block;
  color: var(--text);
  font-family: var(--title-font);
  font-size: 0.95rem;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-activity-card {
  padding: 18px;
}

.admin-application-list {
  display: grid;
  gap: 14px;
}

.admin-application-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-application-card h2 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.admin-application-card blockquote {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: var(--surface-green);
  color: var(--text);
}

.admin-card-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--title-font);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-table-card {
  background: var(--admin-table-bg);
}

.admin-table th {
  white-space: nowrap;
}

.admin-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.admin-badges {
  margin-top: 0;
}

.status-badge {
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--title-font);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-success {
  border-color: var(--green);
  background: var(--surface-green);
  color: var(--green-dark);
}

.status-warning {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--text);
}

.status-danger {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.status-muted {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--muted);
}

.status-info {
  border-color: var(--sky);
  background: var(--surface-sky);
  color: var(--text);
}

.empty-note {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-muted);
}

.candidate-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.candidate-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-green);
  color: var(--green-dark);
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: 800;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-body {
  min-width: 0;
}

.candidate-meta,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.candidate-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.interview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-sky);
}

.inline-interview {
  margin-top: 14px;
  padding: 14px;
}

.inline-interview p {
  margin-bottom: 6px;
}

.map-link {
  margin-top: 12px;
}

.offer-covered {
  opacity: 0.82;
}

/* 14. Legal pages */
.legal-page {
  padding: 54px 0 70px;
  background: var(--bg-soft);
}

.legal-shell {
  max-width: 900px;
}

.legal-header {
  margin-bottom: 24px;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.18rem;
}

.legal-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 6px;
}

/* 15. Footer */
.footer {
  padding: 22px 0 12px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-green), var(--bg));
}

.footer-grid {
  display: grid;
  gap: 14px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 5px;
}

.footer-column h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0;
}

.footer-column a {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-column a:hover {
  color: var(--green-dark);
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--title-font);
  font-weight: 700;
}

.footer-brand p {
  max-width: 640px;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.footer-brand small {
  display: block;
  max-width: 540px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-trust ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.footer-bottom p,
.footer-bottom small {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* 16. Responsive */
@media (min-width: 720px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 4px;
  }

  .hero {
    padding: 56px 0 46px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-visual {
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  }

  .service-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .auth-layout {
    grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1fr);
    align-items: stretch;
  }

  .auth-side-panel {
    display: grid;
    align-content: center;
  }

  .brand-grid,
  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-header-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .job-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .filter-shell {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .filters {
    grid-template-columns: 1.2fr 0.75fr 0.85fr auto;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .panel-summary {
    grid-column: 1 / -1;
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-priority-grid,
  .admin-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-kpi-compact-grid,
  .admin-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-application-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .detail-sidebar {
    position: sticky;
    top: 92px;
  }

  .service-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .navbar {
    min-height: 68px;
    gap: 14px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark-img {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text span {
    font-size: 13px;
  }

  .brand-text small {
    display: none;
  }

  .nav-menu {
    top: 71px;
    left: 12px;
    right: 12px;
  }

  .hero {
    padding: 34px 0;
  }

  .hero-actions,
  .section-header-row {
    align-items: stretch;
  }

  .hero-actions .btn,
  .filter-shell > .btn,
  .job-card > .btn {
    width: 100%;
  }

  .form-card,
  .auth-side-panel,
  .trust-card,
  .content-card,
  .apply-card,
  .job-card,
  .value-card,
  .brand-card,
  .service-card,
  .hero-panel {
    padding: 18px;
  }

  .image-card-main,
  .image-card-secondary {
    min-height: 190px;
  }

  .footer {
    padding: 24px 0 14px;
  }

  .btn-social {
    grid-template-columns: 28px 1fr;
  }

  .btn-social small {
    grid-column: 2;
  }

  .profile-header,
  .panel-summary {
    align-items: flex-start;
  }

  .avatar-xl {
    width: 96px;
    height: 96px;
  }

  .panel-actions .btn,
  .inline-actions .btn {
    width: 100%;
  }

  .admin-shell {
    padding-top: 18px;
  }

  .admin-hero,
  .admin-priority-card,
  .admin-shortcut-card,
  .admin-activity-card,
  .admin-kpi-group,
  .admin-application-card {
    padding: 16px;
  }

  .admin-list-header,
  .admin-card-heading {
    display: grid;
  }

  .admin-list-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-table-actions {
    justify-content: stretch;
  }

  .admin-table-actions .btn {
    width: 100%;
  }
}

@media (min-width: 980px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .jobs-grid:not(.jobs-grid-list) {
    grid-template-columns: repeat(3, 1fr);
  }

  .jobs-grid:not(.jobs-grid-list) .job-card {
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 218px;
  }

  .jobs-grid:not(.jobs-grid-list) .job-card > .btn {
    width: fit-content;
    align-self: end;
    justify-self: start;
  }

  .admin-priority-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-kpi-compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
