:root {
  --bg: #ffffff;
  --bg-soft: #F6F8FB;
  --bg-wash: #EAF2FF;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --primary: #0B5FFF;
  --primary-dark: #0847C7;
  --primary-soft: rgba(11, 95, 255, 0.10);
  --accent: #FF6A3D;
  --accent-dark: #E85228;
  --featured: #7C3AED;
  --featured-soft: rgba(124, 58, 237, 0.12);
  --verified: #0B5FFF;
  --verified-soft: rgba(11, 95, 255, 0.12);
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --navy: #0B1F44;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
  --max: 1140px;
  --nav-h: 56px;
  --grad-btn: linear-gradient(135deg, #0B5FFF 0%, #0847C7 100%);
  --grad-accent: linear-gradient(135deg, #FF6A3D 0%, #F4511E 100%);
  --grad-badge: linear-gradient(135deg, rgba(11,95,255,0.10), rgba(11,95,255,0.04));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1,h2,h3,h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }

.icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.container {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .container { width: min(100% - 2rem, var(--max)); }
}
.site-main { flex: 1; min-width: 0; }
body { overflow-x: hidden; }

/* Nav - slim bar. Default solid; on home hero overlays and stays transparent until scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #07122A;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
/* Home: fixed over hero so transparent truly shows hero navy, not page white */
body.has-hero-nav .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.has-hero-nav .site-header.is-solid {
  background: rgba(7, 18, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
}
/* Other pages always solid */
body:not(.has-hero-nav) .site-header {
  background: #07122A;
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-width: 0;
}
@media (min-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }
  .nav .brand { justify-self: start; }
  .nav .nav-links { justify-self: center; }
  .nav .nav-actions { justify-self: end; flex-wrap: nowrap; justify-content: flex-end; }
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.03em;
  min-width: 0;
  flex-shrink: 0;
}
.brand-logo { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.brand span {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.brand .brand-me {
  color: #93C5FD;
  font-weight: 600;
}
.nav-links {
  display: none; gap: 1.15rem; align-items: center;
  color: #94A3B8; font-weight: 500; font-size: .92rem;
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  display: flex; align-items: center; gap: .35rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.nav-toggle {
  display: inline-flex; background: none; border: 0; padding: .35rem;
  cursor: pointer; color: #E2E8F0; flex-shrink: 0;
}
.site-header .btn-ghost { color: #CBD5E1; }
.site-header .btn-ghost:hover { color: #fff; }
.site-header .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.site-header .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}
.site-header .btn-sm { padding: .38rem .85rem; font-size: .86rem; font-weight: 600; }
/* Truncated account name — never stretch the bar */
.site-header .nav-actions .nav-user-label {
  max-width: 7.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
  padding-inline: .65rem;
}
/* Logout lives in the mobile menu below 900px */
.site-header .nav-actions .nav-logout { display: none; }
@media (max-width: 380px) {
  .site-header .nav-actions .nav-user-label {
    max-width: 5.25rem;
    padding-inline: .45rem;
    font-size: .8rem;
  }
  .site-header .nav-actions .btn-sm:not(.nav-user-label) {
    padding: .35rem .65rem;
    font-size: .8rem;
  }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-actions { flex: 0 1 auto; gap: .45rem; }
  .site-header .nav-actions .nav-logout { display: inline-flex; }
  .site-header .nav-actions .nav-user-label {
    max-width: 11rem;
    display: inline-flex;
    align-items: center;
    padding-inline: .85rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: var(--radius-pill); padding: .7rem 1.25rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px rgba(11,95,255,.28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(11,95,255,.36); filter: brightness(1.03); }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px rgba(255,106,61,.28); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ========== HERO BANNER ========== */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}
/* Pull hero under fixed transparent nav */
body.has-hero-nav .hero {
  margin-top: 0;
}
.hero-banner {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  /* room for fixed nav sitting on top of hero */
  padding: calc(var(--nav-h) + 1.85rem) 0 2.5rem;
}
@media (min-width: 768px) {
  .hero-banner {
    min-height: clamp(480px, 62vh, 620px);
    padding: calc(var(--nav-h) + 3rem) 0 4rem;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(11,95,255,0.45), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(14,165,233,0.22), transparent 50%),
    linear-gradient(160deg, #071530 0%, #0B1F44 45%, #0A2A66 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: gridPulse 10s ease-in-out infinite;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-a {
  width: 280px; height: 280px;
  background: #0B5FFF;
  top: -60px; right: 8%;
  animation-delay: 0s;
}
.hero-orb-b {
  width: 200px; height: 200px;
  background: #38BDF8;
  bottom: -40px; left: 10%;
  opacity: 0.35;
  animation-delay: -4s;
}
.hero-orb-c {
  width: 140px; height: 140px;
  background: #FF6A3D;
  top: 40%; left: 45%;
  opacity: 0.18;
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.06); }
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
.hero-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: shineSweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shineSweep {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}
/* Mobile: real side padding + vertical breathing room so hero is not edge-to-edge */
@media (max-width: 767px) {
  .hero .container.hero-inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 1.5rem;
    box-sizing: border-box;
  }
  .hero h1 {
    margin-bottom: .9rem;
    padding-inline: .2rem;
    line-height: 1.18;
  }
  .hero .lead {
    margin-bottom: 1.45rem;
    padding-inline: .35rem;
    font-size: .95rem;
    line-height: 1.55;
  }
  .hero .search-pill {
    margin-top: .15rem;
    padding: 1rem;
    gap: .75rem;
  }
  .hero .chips {
    margin-top: 1.35rem;
    gap: .5rem;
    padding-inline: .15rem;
  }
}
.hero h1 {
  font-size: clamp(1.85rem, 6.5vw, 3.35rem);
  margin-bottom: .65rem;
  color: #fff;
  font-weight: 700;
  animation: fadeUp .75s ease .05s both;
  padding-inline: .15rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #93C5FD, #fff 40%, #7DD3FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: .98rem;
  margin-bottom: 1.15rem;
  color: #CBD5E1;
  max-width: 620px;
  margin-inline: auto;
  padding-inline: .15rem;
  line-height: 1.5;
  animation: fadeUp .75s ease .12s both;
}
@media (min-width: 768px) {
  .hero .lead {
    font-size: 1.08rem;
    margin-bottom: 1.6rem;
  }
}
.hero .search-pill {
  animation: fadeUp .8s ease .18s both;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
}
.hero .chips {
  animation: fadeUp .85s ease .26s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Quote band under hero */
.quote-band {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0 1.5rem;
  min-height: 5.5rem;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: opacity .28s ease, transform .28s ease;
}
.quote-band blockquote.is-fading {
  opacity: 0;
  transform: translateY(6px);
}
.quote-band .quote-text {
  display: block;
}
.quote-band .quote-text::before { content: "\201C"; }
.quote-band .quote-text::after { content: "\201D"; }
.quote-band cite,
.quote-band .quote-cite {
  display: block;
  margin-top: .45rem;
  font-style: normal;
  font-size: .85rem;
  font-weight: 500;
  color: #94A3B8;
  font-family: var(--font);
}

/* Light hero variant (secondary pages) */
.hero-light {
  background: var(--bg-soft);
  color: var(--text);
  padding: 2.75rem 0 2.25rem;
  overflow: hidden;
  position: relative;
}
.hero-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% -10%, rgba(11,95,255,0.10), transparent 60%);
  pointer-events: none;
}
.hero-light .hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-light h1 { color: var(--text); }
.hero-light .lead { color: var(--text-muted); }

/* Search: compact labeled card on mobile, horizontal pill on desktop */
.search-pill {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: .85rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.search-pill:focus-within {
  border-color: rgba(11,95,255,.35);
  box-shadow: 0 0 0 3px rgba(11,95,255,.12), 0 12px 28px rgba(0,0,0,.14);
}
.search-pill .field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .3rem;
  width: 100%;
  min-width: 0;
  flex: none;
  color: var(--text-muted);
  box-sizing: border-box;
}
.search-pill .field-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748B;
  padding-left: .15rem;
  line-height: 1.2;
}
.search-pill .field-control {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-width: 0;
  background: #F6F8FB;
  border: 1px solid #E8EEF6;
  border-radius: 12px;
  padding: .55rem .75rem;
  box-sizing: border-box;
  min-height: 44px;
}
.search-pill .field-control:focus-within {
  border-color: rgba(11,95,255,.35);
  background: #F8FBFF;
}
.search-pill .field .icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: #64748B;
}
.search-pill input,
.search-pill select {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.search-pill select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.05rem center;
  padding-right: 1.35rem;
}
.search-pill .divider {
  display: none;
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.search-pill .btn {
  width: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  padding: .7rem 1rem;
  min-height: 44px;
  font-size: .95rem;
  margin-top: .1rem;
}

@media (min-width: 768px) {
  .search-pill {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: .35rem;
    border-radius: var(--radius-pill);
    padding: .45rem .45rem .45rem 1rem;
  }
  .search-pill .field {
    flex: 1 1 0;
    flex-direction: row;
    width: auto;
    gap: 0;
  }
  .search-pill .field-label { display: none; }
  .search-pill .field-control {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: .25rem .4rem;
    min-height: 0;
  }
  .search-pill .field-control:focus-within {
    background: transparent;
    border: 0;
  }
  .search-pill .divider { display: block; }
  .search-pill .btn {
    width: auto;
    border-radius: var(--radius-pill);
    padding: .7rem 1.25rem;
    min-height: 0;
    white-space: nowrap;
    font-size: .95rem;
    margin-top: 0;
  }
  .search-pill input,
  .search-pill select {
    font-size: .95rem;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  padding-inline: .1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: .4rem .7rem;
  font-weight: 600;
  font-size: .78rem;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  max-width: 100%;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.16); border-color: rgba(11,95,255,.3); }
.chip-icon {
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); flex-shrink: 0;
}
.chip-icon .icon { width: .85rem; height: .85rem; }
@media (min-width: 768px) {
  .chips { gap: .65rem; margin-top: 1.5rem; }
  .chip { padding: .7rem .95rem; font-size: .92rem; border-radius: 14px; }
  .chip-icon { width: 32px; height: 32px; border-radius: 10px; }
  .chip-icon .icon { width: 1.15rem; height: 1.15rem; }
}

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--navy); }

.roles-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .roles-grid { grid-template-columns: 1fr 1.2fr; align-items: center; }
}
.roles-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 1.25rem; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.role-item {
  border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.role-item:hover { transform: translateY(-2px); border-color: rgba(11,95,255,.35); box-shadow: var(--shadow-sm); }
.role-item--featured {
  border-color: rgba(11,95,255,.28);
  background: linear-gradient(160deg, #F5F9FF 0%, #fff 70%);
}
.role-item--featured strong { color: var(--primary, #0B5FFF); }
.role-item strong { display: block; margin-bottom: .2rem; color: var(--navy); }
.role-item span { color: var(--text-muted); font-size: .9rem; }

.material-list { display: grid; gap: .55rem; margin-top: .65rem; }
.material-item {
  border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; background: #fff;
}
.material-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; list-style: none;
}
.material-item summary::-webkit-details-marker { display: none; }
.material-item__type {
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  background: #F1F5F9; border-radius: 999px; padding: .2rem .55rem; white-space: nowrap;
}
.material-item__body { margin-top: .75rem; }
.material-poster {
  display: block; width: 100%; max-width: 420px; border-radius: 12px;
  border: 1px solid var(--border); margin-bottom: .65rem;
}
.material-manage-list { display: grid; gap: .65rem; }
.material-manage-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.material-manage-item:last-child { border-bottom: 0; padding-bottom: 0; }

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .4rem .65rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  max-height: 240px;
  overflow-y: auto;
}
.admin-category-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .9rem;
  cursor: pointer;
}

.illus-panel {
  border-radius: 24px; padding: 1.75rem 1.5rem 2rem; min-height: 280px;
  background: linear-gradient(155deg, #F0F7FF 0%, #FFFFFF 55%, #FFF8F5 100%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.illus-art {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1rem;
  line-height: 0;
}
.illus-art svg,
.illus-panel svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 280px;
  margin: 0 auto;
}
.illus-panel h2 { color: var(--navy); font-size: 1.25rem; }
.illus-panel p { margin-bottom: 0; }

/* Company carousel */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pill {
  border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill);
  padding: .4rem .85rem; font-size: .88rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.pill.active, .pill:hover { color: var(--primary); border-color: rgba(11,95,255,.4); background: #F0F7FF; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 99px; }
.company-card, .gig-card {
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 1.15rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: cardIn .5s ease both;
  min-width: 0;
}
.company-card h3 {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.company-card:hover, .gig-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(11,95,255,.18);
}
a.company-card-link {
  display: block; color: inherit; text-decoration: none;
}
.company-card-viewall {
  background: linear-gradient(160deg, #F5F9FF 0%, #fff 70%);
  border-style: dashed;
}
.company-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.company-logo, .gig-logo {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-wash);
  display: grid; place-items: center; margin-bottom: .75rem; overflow: hidden;
  color: var(--primary); font-weight: 700;
}
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  font-size: .75rem; font-weight: 700; line-height: 1; border-radius: var(--radius-pill);
  padding: .28rem .58rem; min-height: 1.55rem; box-sizing: border-box;
  border: 1px solid transparent; vertical-align: middle;
  background: var(--grad-badge); color: var(--primary);
}
.badge .icon, .badge svg {
  width: .85rem; height: .85rem; flex-shrink: 0; display: block;
}
.badge-success { background: rgba(5,150,105,.12); color: var(--success); border-color: rgba(5,150,105,.22); }
.badge-warn { background: rgba(217,119,6,.12); color: var(--warning); border-color: rgba(217,119,6,.22); }
.badge-accent { background: rgba(255,106,61,.12); color: var(--accent-dark); }
.badge-muted { background: #F1F5F9; color: var(--text-muted); }
.badge-verified {
  background: var(--verified-soft);
  color: var(--verified);
  border-color: rgba(11,95,255,0.18);
}
.badge-verified .icon { color: var(--verified); stroke: var(--verified); }
.badge-featured {
  background: var(--featured-soft);
  color: var(--featured);
  border-color: rgba(124,58,237,0.2);
}
.badge-ic {
  background: rgba(11,95,255,0.08);
  color: var(--navy);
  border-color: rgba(11,95,255,0.16);
}
.badge-pay {
  background: rgba(5,150,105,0.08);
  color: #047857;
  border-color: rgba(5,150,105,0.18);
}

/* Opportunity meta: professional muted labels (no rainbow) */
.gig-meta .badge {
  background: #F1F5F9;
  color: #475569;
  border-color: #E2E8F0;
  border-radius: 10px;
  font-weight: 600;
}
.gig-meta .badge .icon,
.gig-meta .badge svg { color: #64748B; stroke: #64748B; }

.status-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .32rem .55rem .32rem .7rem;
  line-height: 1.2;
}
.status-tab--direct {
  color: #57534E;
  border-color: #E7E5E4;
  background: #FAFAF9;
}

.gig-card-flags .badge,
.gig-flag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: .75rem;
  padding: .22rem .5rem;
  min-height: 1.4rem;
  line-height: 1;
}
.gig-card-flags .badge .icon,
.gig-flag .icon {
  color: var(--text-muted);
  stroke: var(--text-muted);
}

.gig-card .btn-primary {
  box-shadow: none;
}
.gig-card .btn-primary:hover {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  filter: none;
}

/* Info (i) tip */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.info-tip__btn {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #fff;
  color: #64748B;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.info-tip__btn:hover,
.info-tip.is-open .info-tip__btn {
  color: var(--navy);
  border-color: #94A3B8;
  background: #F8FAFC;
}
.info-tip__btn .icon,
.info-tip__btn svg {
  width: .72rem;
  height: .72rem;
  display: block;
}
.info-tip__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(280px, 72vw);
  padding: .7rem .8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}
.info-tip__panel[hidden] { display: none !important; }
.info-tip__title {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.info-tip__body { display: block; color: var(--text-muted); }
.badge .info-tip,
.status-tab .info-tip,
.gig-flag .info-tip { margin-left: .1rem; }

/* Opportunity list layout */
.gigs-layout { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .gigs-layout { grid-template-columns: 250px 1fr; align-items: start; }
}
.filters {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) {
  .filters {
    position: sticky;
    top: calc(var(--nav-h) + 12px);
    z-index: 2;
  }
}
.filters h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--navy); }
.filters label { display: block; font-size: .85rem; font-weight: 600; margin: .6rem 0 .25rem; }
.filters input:not([type="checkbox"]), .filters select, .form-control {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem; background: #fff;
}
.form-control:focus, .filters input:not([type="checkbox"]):focus, .filters select:focus {
  outline: 2px solid rgba(11,95,255,.22); border-color: var(--primary);
}
.filters .check-row {
  display: flex; align-items: center; gap: .5rem;
  margin: .85rem 0 0; font-weight: 600; color: var(--text);
  white-space: nowrap; cursor: pointer; line-height: 1.2;
}
.filters .check-row input[type="checkbox"] {
  width: 1rem; height: 1rem; margin: 0; flex-shrink: 0;
  accent-color: var(--primary); border: none; padding: 0;
}
.gig-list { display: grid; gap: 1rem; }
.gig-card h3 {
  font-size: 1.1rem; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gig-card h3 a {
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gig-card h3 a:hover { color: var(--primary); }
.gig-card-company {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem;
  margin: .2rem 0 .15rem; min-width: 0;
}
.gig-card-company-name {
  min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gig-card-flags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.gig-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .65rem 0; }
.gig-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }

/* Forms */
.auth-card, .panel {
  width: min(100% - 2rem, 480px); margin: 2rem auto;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.panel-wide { width: min(100% - 2rem, 920px); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.help { font-size: .85rem; color: var(--text-muted); }

/* Flash */
.flash-wrap { width: min(100% - 2rem, var(--max)); margin: 1rem auto 0; display: grid; gap: .5rem; }
.flash {
  border-radius: 12px; padding: .75rem 1rem; font-weight: 500; border: 1px solid;
}
.flash-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.flash-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.flash-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* Footer */
.site-footer {
  margin-top: auto; background: #07122A; color: #CBD5E1; padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.site-footer .brand .brand-me { color: #93C5FD; }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; color: #94A3B8;
}

/* Dashboard / tables */
.dash-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1.25rem; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 1.5rem; color: var(--navy); }

.dash-section { margin-top: 2rem; }
.dash-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.dash-section-head h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); color: var(--navy); margin: 0 0 .2rem; }
.dash-section-head .muted { margin: 0; }

.app-cards { display: grid; gap: .85rem; }
.app-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, #F8FBFF 0%, #fff 55%);
  border: 1px solid rgba(11,95,255,.18); border-radius: 18px; padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.app-card h3 {
  margin: 0 0 .45rem; font-size: 1.08rem; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-card h3 a {
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-card h3 a:hover { color: var(--primary); }
.app-card-main { flex: 1 1 220px; min-width: 0; }
.app-card-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.app-status-badge {
  background: #EEF2FF; color: #3730A3; border-color: rgba(55,48,163,.15);
  text-transform: capitalize;
}
.app-card-actions { flex-shrink: 0; }
.app-card-actions .btn { min-width: 9.5rem; }
.dash-empty-apps { border-color: rgba(11,95,255,.2); }

.profile-complete-bar {
  margin-bottom: 1.15rem; padding: .9rem 1rem; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.profile-complete-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; margin-bottom: .55rem;
}
.profile-complete-head strong { color: var(--navy); }
.profile-complete-track {
  height: 8px; border-radius: 99px; background: #E2E8F0; overflow: hidden;
}
.profile-complete-track span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #38BDF8);
  transition: width .25s ease;
}

.field-missing .form-control,
.field-missing input[type="file"] {
  border-color: rgba(217,119,6,.45);
  background: #FFFBEB;
}
.field-missing-required .form-control,
.field-missing-required input[type="file"] {
  border-color: rgba(220,38,38,.4);
  background: #FEF2F2;
}
.field-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .12rem .4rem; border-radius: 6px;
  background: #FEF3C7; color: #92400E; vertical-align: middle;
}
.field-tag-required { background: #FEE2E2; color: #991B1B; }

.phone-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) 1fr;
  gap: .55rem;
  align-items: stretch;
}
.phone-row .phone-country { min-width: 0; }
.phone-row .phone-number { min-width: 0; }
@media (max-width: 520px) {
  .phone-row { grid-template-columns: 1fr; }
}

.dash-boost {
  width: auto; margin: 2rem 0 0; padding: .85rem 1.1rem; cursor: pointer;
}
.dash-boost summary {
  font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; gap: .45rem;
}
.dash-boost summary::-webkit-details-marker { display: none; }

.copy-field { margin-bottom: 1rem; }
.copy-field:last-of-type { margin-bottom: 0; }
.copy-field__label {
  display: block; font-weight: 700; color: var(--navy); margin-bottom: .45rem; font-size: .92rem;
}
.copy-row {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.copy-row__value {
  flex: 1 1 12rem; min-width: 0; margin: 0; padding: .55rem .75rem;
  background: var(--bg-soft, #f4f6f9); border: 1px solid var(--border); border-radius: 10px;
  font-size: .88rem; word-break: break-all;
}
.copy-row__link { display: block; color: var(--accent); text-decoration: none; }
.copy-row__link:hover { text-decoration: underline; }
.copy-row [data-copy].is-copied { border-color: var(--accent); color: var(--accent); }

.dash-suggestions {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed var(--border);
}
.dash-suggestions-intro {
  max-width: 640px; margin-bottom: 1.35rem;
}
.dash-suggestions-intro h2 { font-size: 1.15rem; color: var(--text-muted); font-weight: 700; margin: 0 0 .35rem; }
.dash-suggest-list .gig-card {
  border-style: dashed; background: #FAFBFD;
}

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.sidebar-layout { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .sidebar-layout { grid-template-columns: 220px 1fr; }
}
.side-nav {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: .75rem;
  display: grid; gap: .25rem; height: fit-content; position: sticky; top: calc(var(--nav-h) + 12px);
}
.side-nav a {
  display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem; border-radius: 10px;
  color: var(--text-muted); font-weight: 600; font-size: .92rem;
}
.side-nav a:hover, .side-nav a.active { background: #F0F7FF; color: var(--primary); }

.sticky-apply {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
  padding: .75rem 1rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
@media (min-width: 800px) { .sticky-apply { display: none; } }
.page-pad-bottom { padding-bottom: 5rem; }

.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: #fff; border-top: 1px solid var(--border);
  grid-template-columns: repeat(4, 1fr); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: grid; place-items: center; gap: .15rem; padding: .4rem; font-size: .7rem;
  color: var(--text-muted); font-weight: 600;
}
.bottom-nav a.active { color: var(--primary); }
body.has-bottom-nav .site-footer { padding-bottom: 5rem; }
@media (max-width: 799px) {
  body.has-bottom-nav .bottom-nav { display: grid; }
}

.contract-box {
  max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; background: var(--bg-soft); font-size: .92rem; margin-bottom: 1rem;
}
.contract-box h3 { font-size: 1rem; }

.skeleton {
  background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 50%, #EEF2F7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: 12px; min-height: 1rem;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.mobile-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #0A162F; border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: .85rem 1rem 1rem; box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
body.has-hero-nav .site-header:not(.is-solid) .mobile-menu {
  background: rgba(7, 18, 42, 0.97);
}
.mobile-menu.open { display: grid; gap: .55rem; }
.mobile-menu a { font-weight: 500; padding: .45rem 0; color: #CBD5E1; font-size: .95rem; }
.mobile-menu a:hover { color: #fff; }

.prose h2 { margin-top: 1.5rem; color: var(--navy); }
.prose ul { padding-left: 1.2rem; color: var(--text-muted); }
.prose li { margin-bottom: .35rem; }

.how-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.how-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.how-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.how-num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-btn); color: #fff; font-weight: 700; margin-bottom: .75rem;
}
.how-card h3 { color: var(--navy); }

/* For companies marketing page */
.company-hero-actions {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .35rem;
}
.company-benefits-grid {
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.company-benefits-grid .how-card {
  padding: 1.5rem 1.35rem;
}
.company-benefits-grid .how-card p {
  margin-bottom: 0;
  line-height: 1.55;
}
.company-benefits-grid .how-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.company-benefits-grid .how-num .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.company-steps-grid {
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.company-steps-grid .how-card {
  padding: 1.5rem 1.35rem;
}
.company-steps-grid .how-card p {
  margin-bottom: 0;
  line-height: 1.55;
}
.company-includes-card .role-item span {
  display: block;
  margin-top: .25rem;
  line-height: 1.45;
}

.alert {
  border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; border: 1px solid;
}
.alert-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.alert-ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }

.empty {
  text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--border); border-radius: 16px; background: #fff;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #0B1F44 0%, #0B5FFF 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  right: -40px; top: -60px;
  animation: orbFloat 12s ease-in-out infinite;
}
.cta-strip h2, .cta-strip p { color: #fff; position: relative; z-index: 1; }
.cta-strip p { color: #DBEAFE; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
