*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0f4c8a;
  --blue-dark:  #0a3a6e;
  --blue-mid:   #1a6db5;
  --blue-light: #eff6ff;
  --teal:       #0891b2;
  --text:       #111827;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --bg:         #f9fafb;
  --white:      #ffffff;
  --green:      #059669;
  --radius:     10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
/* Keep breathing room between the square icon and the wordmark only —
   everything that follows the icon (the "SeaJobs" span + the ".com" span)
   should sit flush together as one word. */
.logo .logo-icon { margin-right: 8px; }

.logo-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo span { color: #7dd3fc; }
/* ".com" TLD suffix after the wordmark — subtle on both dark and light backgrounds */
.logo     .logo-tld { color: rgba(255,255,255,.55); font-weight: 600; }
.auth-logo .logo-tld { color: #94a3b8; font-weight: 600; }

.search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap input {
  width: 100%;
  padding: 9px 40px 9px 14px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  outline: none;
  transition: background .2s;
}

.search-wrap input::placeholder { color: rgba(255,255,255,.6); }
.search-wrap input:focus { background: rgba(255,255,255,.22); }

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.65);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-ghost {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-solid {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
  display: inline-block;
}

.btn-solid:hover { opacity: .9; }

/* ── NAV BAR ── */
.nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 90;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav-item { position: relative; }

.nav-tab {
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  display: flex; align-items: center; gap: 5px;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit; line-height: inherit; user-select: none;
}

.nav-tab:hover { color: var(--blue); }
.nav-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.nav-item:hover > .nav-tab { color: var(--blue); border-bottom-color: var(--blue); }

.nav-tab .chevron { display: inline-block; transition: transform .2s; opacity: .55; }
.nav-item:hover > .nav-tab .chevron { transform: rotate(180deg); opacity: 1; }

/* ── DROPDOWN ── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 260px;
  padding: 8px 0;
  z-index: 200;
}

.nav-item:hover > .nav-dropdown { display: block; }

.dropdown-header {
  padding: 8px 16px 6px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 16px;
  font-size: 13px; color: var(--text);
  cursor: pointer; transition: background .15s, color .15s;
  gap: 12px;
}

.dropdown-item:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-item-name { flex: 1; }

.dropdown-count {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: #f3f4f6; border-radius: 20px; padding: 2px 8px; flex-shrink: 0;
}

.dropdown-item:hover .dropdown-count { background: #dbeafe; color: var(--blue); }

.dropdown-footer {
  padding: 8px 16px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.dropdown-footer a { font-size: 12.5px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.dropdown-footer a:hover { text-decoration: underline; }

.nav-dropdown.cols-2 { min-width: 520px; }
.nav-dropdown.cols-2 .dropdown-list { display: grid; grid-template-columns: 1fr 1fr; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0a2f5a 0%, #0f4c8a 50%, #1a6db5 100%);
  padding: 80px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40 Q20 20 40 40 Q60 60 80 40 L80 80 L0 80Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%23f9fafb' d='M0,20 C360,40 1080,0 1440,20 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover; pointer-events: none;
}

.hero-inner { max-width: 780px; margin: 0 auto; position: relative; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.9);
  margin-bottom: 24px; letter-spacing: .3px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 800;
  color: var(--white); line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px;
}

.hero h1 em { font-style: normal; color: #7dd3fc; }

.hero p { font-size: 16px; color: rgba(255,255,255,.78); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }

/* Hero search */
.hero-search {
  display: flex; gap: 0; max-width: 680px; margin: 0 auto 28px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.2); overflow: hidden;
}

.hero-search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-right: 1px solid var(--border);
}

.hero-search-field svg { color: var(--muted); flex-shrink: 0; }

.hero-search-field input {
  flex: 1; border: none; outline: none; font-size: 14px;
  color: var(--text); padding: 14px 0; background: transparent;
}

.hero-search-field input::placeholder { color: var(--muted); }

.hero-search-select {
  display: flex; align-items: center; padding: 0 14px;
  border-right: 1px solid var(--border); gap: 8px;
}

.hero-search-select svg { color: var(--muted); flex-shrink: 0; }

.hero-search-select select {
  border: none; outline: none; font-size: 14px; color: var(--text);
  background: transparent; cursor: pointer; padding: 14px 0; min-width: 140px;
}

.hero-search-btn {
  padding: 0 28px; background: var(--blue); color: var(--white);
  border: none; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}

.hero-search-btn:hover { background: var(--blue-dark); }

.hero-quick-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }

.hero-quick-link {
  padding: 5px 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; font-size: 12px; color: rgba(255,255,255,.85);
  cursor: pointer; transition: background .2s;
}

.hero-quick-link:hover { background: rgba(255,255,255,.18); }

.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 52px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); flex-wrap: wrap;
}

.hero-stat-value { font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.58); margin-top: 4px; letter-spacing: .3px; }

/* ── SECTIONS ── */
.section { padding: 60px 20px; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}

.section-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.section-sub   { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.section-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

/* ── JOB CARDS ── */
.jobs-bg { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.jcard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}

.jcard:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); border-color: #d1d5db; }

/* Save button overlay on home jcards */
.jcard-wrap { position: relative; display: flex; flex-direction: column; }
.jcard-wrap .jcard { flex: 1; }
.jcard-save {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.92); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); transition: background .15s, border-color .15s, color .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.jcard-save:hover { border-color: #e11d48; color: #e11d48; background: #fff1f2; }
.jcard-save.saved { border-color: #e11d48; color: #e11d48; background: #fff1f2; }

.jcard-header {
  padding: 18px 18px 14px; display: flex; gap: 14px;
  align-items: flex-start; border-bottom: 1px solid var(--border);
}

.jcard-logo {
  width: 46px; height: 46px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
}

.jcard-hinfo { flex: 1; min-width: 0; }

.jcard-title {
  font-size: 14px; font-weight: 700; color: var(--blue); line-height: 1.4;
  transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.jcard-title:hover { color: var(--blue-dark); }
.jcard-company { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.jcard-body { padding: 14px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.jcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 500;
}

.tag-blue   { background: var(--blue-light); color: var(--blue); }
.tag-green  { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }
.tag-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.tag-gray   { background: #f3f4f6; color: #4b5563; }
.tag-teal   { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }

.jcard-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jcard-detail  { display: flex; align-items: center; gap: 6px; }
.jcard-detail-icon { color: var(--muted); flex-shrink: 0; }
.jcard-detail-text { font-size: 12.5px; color: var(--muted); }
.jcard-detail-text strong { color: var(--text); font-weight: 600; }

.jcard-footer {
  padding: 12px 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
}

.jcard-salary { font-size: 15px; font-weight: 800; color: var(--text); }
.jcard-salary-period { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.jcard-btn {
  padding: 7px 16px; background: var(--blue); color: var(--white);
  border: none; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: background .2s; display: inline-block;
}

.jcard-btn:hover { background: var(--blue-dark); color: var(--white); }

/* ── CATEGORY CARDS ── */
.categories-bg { background: var(--bg); }

.catcard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, border-color .2s, transform .15s; cursor: pointer;
}

.catcard:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); border-color: #bfdbfe; transform: translateY(-2px); }

.catcard-icon { width: 46px; height: 46px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.catcard-name { font-size: 14px; font-weight: 700; color: var(--text); }
.catcard-count { font-size: 12px; color: var(--muted); }
.catcard-arrow { margin-top: auto; display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--blue); }

/* ── COMPANY CARDS ── */
.companies-bg { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── COMPANY LIST PAGE ── */
.co-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-list-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none; color: var(--text);
  transition: box-shadow .15s, border-color .15s;
}
.co-list-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); border-color: #bfdbfe; }

.co-list-logo {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .5px;
}

.co-list-info { flex: 1; min-width: 0; }
.co-list-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-list-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.co-list-meta svg { flex-shrink: 0; }
.co-list-dot  { color: #cbd5e1; }

.co-list-jobs { flex-shrink: 0; }
.co-list-badge {
  font-size: 11.5px; font-weight: 600;
  background: #eff6ff; color: var(--blue);
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.co-list-badge--empty {
  background: #f1f5f9; color: var(--muted); font-weight: 400;
}

/* filter item active state (link-based) */
.filter-item--active { background: #eff6ff; border-radius: 6px; }
.filter-item--active span { color: #0f4c8a !important; font-weight: 600; }

.cocard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; transition: box-shadow .2s, border-color .2s; cursor: pointer;
}

.cocard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); border-color: #d1d5db; }

.cocard-logo {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
}

.cocard-name { font-size: 13px; font-weight: 700; color: var(--text); }
.cocard-type { font-size: 11.5px; color: var(--muted); }
.cocard-jobs { font-size: 12px; font-weight: 600; color: var(--blue); }

/* ── VESSEL CARDS ── */
.vessels-bg { background: var(--bg); }

.vessel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.vcard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 10px;
  transition: box-shadow .2s, border-color .2s; cursor: pointer;
}

.vcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #bfdbfe; }

.vcard-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue);
}

.vcard-name  { font-size: 12.5px; font-weight: 700; color: var(--text); }
.vcard-count { font-size: 11.5px; color: var(--muted); }

/* ── VESSEL A–Z LIST ── */
.vt-az-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.vt-az-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.vt-az-item svg { flex-shrink: 0; color: var(--blue); }
.vt-az-item:hover { border-color: #bfdbfe; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.vt-az-name { flex: 1; }
.vt-az-count {
  font-size: 11px; font-weight: 700;
  background: #eff6ff; color: var(--blue);
  border-radius: 20px; padding: 1px 8px; white-space: nowrap;
}
.vt-az-count--empty { background: #f1f5f9; color: var(--muted); font-weight: 400; }

/* ── HOW IT WORKS ── */
.how-bg { background: var(--white); border-top: 1px solid var(--border); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.how-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white);
  font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.how-step h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.how-step p  { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #0a2f5a 0%, #0f4c8a 100%);
  padding: 64px 20px; text-align: center; position: relative; overflow: hidden;
}

.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner { max-width: 640px; margin: 0 auto; position: relative; }
.cta-inner h2 { font-size: 32px; font-weight: 800; color: var(--white); letter-spacing: -.5px; margin-bottom: 14px; }
.cta-inner p  { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.6; }
.cta-buttons  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cta-btn-primary {
  padding: 13px 30px; background: var(--white); color: var(--blue);
  border: none; border-radius: 9px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); display: inline-block;
}

.cta-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--blue); }

.cta-btn-secondary {
  padding: 13px 30px; background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45); border-radius: 9px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s; display: inline-block;
}

.cta-btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

/* ── FOOTER ── */
footer { background: #0d1b2e; color: rgba(255,255,255,.7); }

.footer-inner { max-width: 1280px; margin: 0 auto; padding: 52px 20px 32px; }

.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.footer-logo span { color: #7dd3fc; }
.footer-logo .logo-tld { color: rgba(255,255,255,.55); font-weight: 600; }
.footer-logo-icon { width: 28px; height: 28px; background: rgba(255,255,255,.1); border-radius: 7px; display: flex; align-items: center; justify-content: center; margin-right: 8px; }
.footer-tagline { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 240px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }

.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s;
}

.social-btn:hover { background: rgba(255,255,255,.15); }
.social-btn svg { color: rgba(255,255,255,.7); }

.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--white); margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.copyright { font-size: 12.5px; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12.5px; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-verified { background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe; }
.badge-urgent   { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.badge-new      { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }
.badge-featured { background: #fefce8; color: #a16207; border: 1px solid #fde68a; }
.badge-gray     { background: #f3f4f6; color: var(--muted); }

/* ── FLASH MESSAGES ── */
.flash {
  padding: 12px 16px; border-radius: 8px; font-size: 13.5px;
  display: flex; align-items: center; gap: 8px;
}
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #a7f3d0; }
.flash-error   { background: #fff1f2; color: #991b1b; border: 1px solid #fecdd3; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── PAGE BAND ── */
.page-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white); padding: 36px 20px;
}
.page-band-inner { max-width: 1280px; margin: 0 auto; }
.page-band h1 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 6px; }
.page-band p  { opacity: .8; font-size: 14px; }
.breadcrumb { display: flex; gap: 6px; font-size: 12px; opacity: .65; margin-bottom: 8px; align-items: center; }
.breadcrumb a { color: var(--white); }
.breadcrumb span::before { content: '/'; margin-right: 6px; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text); background: var(--white); transition: all .15s; gap: 4px;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pagination .dots   { border: none; color: var(--muted); background: none; }
.pagination .disabled { opacity: .35; pointer-events: none; }
.prev-btn, .next-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 14px; height: 36px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text); background: var(--white); transition: all .15s;
}
.prev-btn:hover, .next-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── AUTH MODAL STYLE ── */
.auth-card {
  background: var(--white); border-radius: 14px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2); overflow: hidden;
}
.auth-header { padding: 28px 28px 0; }
.auth-logo   { font-size: 18px; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.auth-logo span { color: var(--teal); }
.auth-title  { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.auth-sub    { font-size: 13px; color: var(--muted); }
.auth-body   { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 600; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }

.form-field input, .form-field select, .form-field textarea {
  padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color .2s; color: var(--text);
  background: var(--white); font-family: inherit;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-submit {
  padding: 12px; background: var(--blue); color: var(--white);
  border: none; border-radius: 9px; font-size: 15px; font-weight: 700;
  cursor: pointer; width: 100%; transition: background .2s;
}
.btn-submit:hover { background: var(--blue-dark); }

.btn-type-tabs { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.btn-type-tab  { flex: 1; padding: 9px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--white); color: var(--muted); border: none; transition: background .15s, color .15s; font-family: inherit; }
.btn-type-tab.active { background: var(--blue); color: var(--white); }

/* ── DASHBOARD ── */
.dash-body { background: var(--bg); }
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }

.dash-sidebar {
  background: var(--white); border-right: 1px solid var(--border);
  padding: 20px 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto;
}

.dash-main { padding: 28px 32px; }

.sidebar-section { margin-bottom: 4px; }

.sidebar-label {
  padding: 10px 20px 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--muted);
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 13.5px; color: var(--text);
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}

.sidebar-link:hover { background: var(--bg); color: var(--blue); }
.sidebar-link.active { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.sidebar-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.sidebar-link.active svg, .sidebar-link:hover svg { opacity: 1; }

.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.dash-header h1 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .value { font-size: 28px; font-weight: 800; color: var(--blue); }
.stat-card .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── JOBS TABLE (dashboard & listing) ── */
.jtable { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.jtable-head {
  display: grid;
  padding: 10px 20px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}

.jtable-row {
  display: grid;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
  font-size: 13px;
  transition: background .12s;
}

.jtable-row:last-child { border-bottom: none; }
.jtable-row:hover { background: #fafafa; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .vessel-grid { grid-template-columns: repeat(3, 1fr); }
  .vt-az-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .how-grid { gap: 28px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .search-wrap { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .vessel-grid { grid-template-columns: repeat(3, 1fr); }
  .vt-az-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search-field, .hero-search-select { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-search-btn { padding: 14px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-main { padding: 16px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .vessel-grid { grid-template-columns: repeat(2, 1fr); }
  .vt-az-grid  { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .co-list-card { flex-wrap: wrap; }
  .co-list-jobs { width: 100%; }
}

/* ─────────────────────────────────────────────
   JOBS LISTING PAGE
   ───────────────────────────────────────────── */

/* Breadcrumb bar (light, below nav) */
.bc-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.bc-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted);
}
.bc-bar-inner a { color: var(--blue); }
.bc-bar-inner a:hover { text-decoration: underline; }
.bc-sep { color: #d1d5db; }

/* Page layout: 260px filter sidebar + main */
.jobs-page {
  max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px;
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start;
}

/* Filter sidebar */
.jobs-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }

.filter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.filter-head {
  padding: 12px 16px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none;
}
.filter-head .f-clear {
  font-size: 11px; color: var(--blue); font-weight: 500; cursor: pointer;
}
.filter-head .f-clear:hover { text-decoration: underline; }
.filter-head .f-chevron { color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.filter-head.open .f-chevron { transform: rotate(180deg); }

.filter-body {
  padding: 10px 16px; display: flex; flex-direction: column; gap: 5px;
  max-height: 240px; overflow-y: auto; scrollbar-width: thin;
}
.filter-body::-webkit-scrollbar { width: 4px; }
.filter-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.filter-dept-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); padding: 8px 0 4px; border-top: 1px solid #f3f4f6; margin-top: 4px;
}
.filter-dept-label:first-child { border-top: none; margin-top: 0; padding-top: 2px; }

.filter-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); padding: 3px 6px; border-radius: 6px; margin: 0 -6px; }
.filter-item input[type="checkbox"] { accent-color: var(--blue); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.filter-item label { cursor: pointer; flex: 1; }
.filter-item .f-count { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.filter-item:has(input:checked) { background: #eff6ff; }
.filter-item:has(input:checked) label { color: #0f4c8a; font-weight: 600; }

.filter-search { padding: 8px 16px 4px; }
.filter-search input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 13px; outline: none; transition: border-color .2s;
}
.filter-search input:focus { border-color: var(--blue); }

.filter-radio-body { padding: 10px 16px; display: flex; flex-direction: column; gap: 5px; }
.filter-radio { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); padding: 3px 0; cursor: pointer; }
.filter-radio input[type="radio"] { accent-color: var(--blue); width: 14px; height: 14px; cursor: pointer; }
.filter-radio label { cursor: pointer; }

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  background: var(--blue-light); color: var(--blue); border: 1px solid #bfdbfe;
  border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.filter-chip:hover { background: #dbeafe; }

.sidebar-reset {
  width: 100%; padding: 9px; background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.sidebar-reset:hover { border-color: #9ca3af; color: var(--text); }

/* Jobs main column */
.jobs-main { display: flex; flex-direction: column; gap: 14px; }

.results-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px;
}
.results-count { font-size: 13px; color: var(--muted); }
.results-count strong { color: var(--text); font-size: 15px; }
.results-controls { display: flex; align-items: center; gap: 10px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-wrap select {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13px; background: var(--white); color: var(--text); outline: none; cursor: pointer;
}

/* Job row card */
.job-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px;
  align-items: center; transition: box-shadow .2s, border-color .2s; cursor: pointer;
}
.job-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); border-color: #d1d5db; }
.job-card.featured { border-left: 3px solid #f59e0b; }

.jc-logo {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; align-self: flex-start;
  overflow: hidden;
}
.jc-logo img { width: 100%; height: 100%; object-fit: contain; }

.jc-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jc-top  { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }

.jc-title { font-size: 15px; font-weight: 700; color: var(--blue); line-height: 1.3; transition: color .2s; }
.jc-title:hover { color: var(--blue-dark); text-decoration: underline; }

.jc-badges { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

.jc-company { font-size: 13px; color: var(--muted); }
.jc-company strong { color: var(--text); font-weight: 600; }

.jc-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.jc-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.jc-meta-item svg { flex-shrink: 0; }
.jc-meta-item strong { color: var(--text); font-weight: 600; }

.jc-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.jc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

.jc-salary-val    { font-size: 17px; font-weight: 800; color: var(--text); text-align: right; }
.jc-salary-period { font-size: 11px; color: var(--muted); margin-top: 1px; text-align: right; }

.jc-actions { display: flex; gap: 8px; }

.btn-apply {
  padding: 8px 18px; background: var(--blue); color: #fff; border: none;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s; white-space: nowrap; display: inline-block;
}
.btn-apply:hover { background: var(--blue-dark); color: #fff; }

.btn-save {
  width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.btn-save:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.btn-save.saved { border-color: #e11d48; color: #e11d48; background: #fff1f2; }

.jc-posted { font-size: 11.5px; color: var(--muted); text-align: right; }

/* ─────────────────────────────────────────────
   JOB DETAIL PAGE
   ───────────────────────────────────────────── */

.job-page {
  max-width: 1280px; margin: 0 auto; padding: 28px 20px 64px;
  display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start;
}

.job-main { display: flex; flex-direction: column; gap: 20px; }

/* Hero card */
.job-hero { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.job-hero-top {
  background: linear-gradient(135deg, #0a2f5a 0%, #0f4c8a 100%);
  padding: 28px 28px 24px; position: relative; overflow: hidden;
}
.job-hero-top::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.job-hero-inner { position: relative; display: flex; gap: 20px; align-items: flex-start; }

.job-company-logo {
  width: 68px; height: 68px; border-radius: 14px;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2); overflow: hidden;
}
.job-company-logo img { width: 100%; height: 100%; object-fit: contain; }

.job-hero-info { flex: 1; min-width: 0; }

.job-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* Override badge colors for dark background */
.job-hero-top .badge-verified { background: rgba(255,255,255,.15); color: #bfdbfe; border: 1px solid rgba(255,255,255,.2); }
.job-hero-top .badge-urgent   { background: rgba(225,29,72,.25);    color: #fda4af; border: 1px solid rgba(225,29,72,.35); }
.job-hero-top .badge-featured { background: rgba(245,158,11,.2);    color: #fde68a; border: 1px solid rgba(245,158,11,.3); }
.job-hero-top .badge-new      { background: rgba(5,150,105,.25);    color: #a7f3d0; border: 1px solid rgba(5,150,105,.3); }

.job-hero-title { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -.3px; margin-bottom: 8px; }

.job-hero-company { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); flex-wrap: wrap; }
.job-hero-company a { color: #7dd3fc; font-weight: 600; }
.job-hero-company a:hover { text-decoration: underline; }
.job-hero-company-sep { color: rgba(255,255,255,.3); }

.job-hero-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn-apply-hero {
  padding: 11px 26px; background: #fff; color: var(--blue); border: none;
  border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s; white-space: nowrap; display: inline-block;
}
.btn-apply-hero:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); color: var(--blue); }

.btn-save-hero, .btn-share-hero {
  width: 42px; height: 42px; border-radius: 9px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.8); transition: background .2s; flex-shrink: 0;
}
.btn-save-hero:hover, .btn-share-hero:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.btn-save-hero.saved { background: rgba(225,29,72,.3); border-color: rgba(225,29,72,.5); color: #fda4af; }

/* Details strip */
.job-details-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); }
.detail-item { padding: 16px 18px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.detail-item:last-child { border-right: none; }
.detail-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.detail-label svg { color: var(--muted); flex-shrink: 0; }
.detail-value { font-size: 14px; font-weight: 700; color: var(--text); }
.detail-sub   { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Content cards */
.content-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.card-head {
  padding: 15px 22px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card-head svg { color: var(--blue); flex-shrink: 0; }
.card-body { padding: 20px 22px; }

/* Requirements grid */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
}
.req-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.req-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 2px; }
.req-value { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* Prose / description */
.prose { font-size: 14px; line-height: 1.8; color: var(--text); display: flex; flex-direction: column; gap: 16px; }
.prose h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.prose ul li { color: var(--text); }
.prose p { color: #374151; }

/* Certificates */
.cert-list { display: flex; flex-direction: column; gap: 8px; }
.cert-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg);
}
.cert-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-icon.required { background: var(--blue-light); color: var(--blue); }
.cert-icon.optional { background: #f0fdf4; color: #059669; }
.cert-info { flex: 1; }
.cert-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cert-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.cert-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; flex-shrink: 0; }
.cert-badge.required { background: var(--blue-light); color: var(--blue); border: 1px solid #bfdbfe; }
.cert-badge.optional { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }

/* Tags row */
.tags-wrap { display: flex; gap: 8px; flex-wrap: wrap; }

/* Right sidebar column */
.job-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }

/* Apply card */
.apply-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }

.apply-salary { text-align: center; padding: 16px; background: var(--blue-light); border-radius: 9px; }
.apply-salary-val    { font-size: 28px; font-weight: 800; color: var(--blue); line-height: 1; }
.apply-salary-period { font-size: 12px; color: var(--blue-mid); margin-top: 4px; }
.apply-salary-note   { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.btn-apply-big {
  width: 100%; padding: 13px; background: var(--blue); color: #fff; border: none;
  border-radius: 9px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s;
  display: block; text-align: center;
}
.btn-apply-big:hover { background: var(--blue-dark); color: #fff; }

.btn-save-big {
  width: 100%; padding: 11px; background: var(--white); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 9px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .2s, color .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-save-big:hover { border-color: var(--blue); color: var(--blue); }

.apply-deadline { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); justify-content: center; }
.apply-deadline .urgent { color: #e11d48; font-weight: 600; }

.apply-divider { height: 1px; background: var(--border); }

.apply-meta { display: flex; flex-direction: column; gap: 10px; }
.apply-meta-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.apply-meta-label { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.apply-meta-value { font-weight: 600; color: var(--text); }

.apply-share { display: flex; gap: 8px; }
.share-btn {
  flex: 1; padding: 8px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); font-size: 12.5px; font-weight: 500; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .2s, color .2s;
}
.share-btn:hover { border-color: #9ca3af; color: var(--text); }
.share-btn.copied { background: #dcfce7; border-color: #86efac; color: #15803d; }
.share-btn.copied svg { stroke: #15803d; fill: #15803d; }

/* Company card (sidebar) */
.co-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.co-card-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.co-card-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.co-info  { display: flex; gap: 12px; align-items: center; }
.co-logo  {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#0369a1,#0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; overflow: hidden;
}
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-name     { font-size: 14px; font-weight: 700; color: var(--text); }
.co-type     { font-size: 12px; color: var(--muted); margin-top: 2px; }
.co-stats    { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co-stat     { padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.co-stat-val { font-size: 16px; font-weight: 800; color: var(--text); }
.co-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 1px; }

.btn-view-co {
  display: block; width: 100%; padding: 9px; background: var(--blue-light); color: var(--blue);
  border: 1.5px solid #bfdbfe; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s; text-align: center;
}
.btn-view-co:hover { background: #dbeafe; color: var(--blue); }

/* Hidden company lock states */
.co-locked {
  padding: 20px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.co-locked-icon { width: 44px; height: 44px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.co-locked p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Similar jobs card */
.similar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.similar-card-head { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.similar-item {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  display: flex; gap: 11px; align-items: flex-start; transition: background .15s;
}
.similar-item:last-child { border-bottom: none; }
.similar-item:hover { background: var(--bg); }
.similar-logo { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0; }
.similar-info  { flex: 1; min-width: 0; }
.similar-title { font-size: 13px; font-weight: 600; color: var(--blue); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.similar-title:hover { text-decoration: underline; }
.similar-co    { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.similar-sal   { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   RESPONSIVE — JOBS + JOB DETAIL
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .jobs-page { grid-template-columns: 230px 1fr; gap: 18px; }
  .job-page  { grid-template-columns: 1fr 290px; gap: 20px; }
  .job-details-strip { grid-template-columns: repeat(3, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .jobs-page { grid-template-columns: 1fr; }
  .jobs-sidebar { position: static; }
  .job-page  { grid-template-columns: 1fr; }
  .job-sidebar { position: static; }
  .job-hero-inner { flex-direction: column; }
  .job-hero-actions { flex-direction: row; }
  .job-details-strip { grid-template-columns: repeat(2, 1fr); }
  .job-card { grid-template-columns: 44px 1fr; }
  .jc-right { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SEAFARER PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */

/* Two-column layout: profile card + main content */
.profile-layout { display: grid; grid-template-columns: 268px 1fr; gap: 22px; align-items: start; }
.profile-left   { display: flex; flex-direction: column; gap: 0; position: sticky; top: 80px; }

/* ── Profile card (cover + avatar + info) ── */
.sf-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; overflow: hidden; }
.sf-cover { height: 72px; background: linear-gradient(135deg,#0a2f5a 0%,#0f4c8a 60%,#0891b2 100%); position: relative; }
.sf-avatar-wrap { position: absolute; bottom: -28px; left: 18px; }
.sf-avatar { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg,#0891b2,#0f4c8a); border: 3px solid var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); flex-shrink: 0; overflow: hidden; }
.sf-card-body { padding: 36px 18px 16px; }
.sf-name { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.2; }
.sf-rank { font-size: 12.5px; color: var(--blue); font-weight: 600; margin-top: 2px; }
.sf-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.sf-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.sb-avail { background: #f0fdf4; color: #065f46; border: 1px solid #a7f3d0; }
.sb-stcw  { background: var(--blue-light); color: var(--blue); border: 1px solid #bfdbfe; }
.sf-location { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* Profile completeness bar */
.sf-complete { margin-top: 14px; }
.complete-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.complete-label { color: var(--muted); }
.complete-pct { font-weight: 700; color: var(--blue); }
.complete-track { height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.complete-fill { height: 100%; background: linear-gradient(90deg,var(--blue),var(--teal)); border-radius: 4px; transition: width .4s; }

/* Availability toggle row */
.sf-avail-row { margin-top: 12px; padding: 9px 12px; background: #f0fdf4; border: 1px solid #a7f3d0; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-avail-text { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #059669; }
.sf-avail-dot  { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }

/* ── Profile side nav ── */
.profile-nav { background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.pn-group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.pn-group:last-child { border-bottom: none; }
.pn-label { padding: 6px 16px 2px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.pn-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: background .12s, color .12s; border-left: 3px solid transparent; text-decoration: none; }
.pn-item:hover { background: var(--bg); color: var(--blue); }
.pn-item.active { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.pn-item svg { flex-shrink: 0; opacity: .6; }
.pn-item.active svg, .pn-item:hover svg { opacity: 1; }
.pn-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.pnb-blue  { background: var(--blue-light); color: var(--blue); }
.pnb-red   { background: #fff1f2; color: #e11d48; }
.pnb-green { background: #f0fdf4; color: #059669; }
.pnb-amber { background: #fefce8; color: #92400e; }

/* ── Profile main sections ── */
.profile-main { display: flex; flex-direction: column; gap: 20px; }

/* Dashboard section */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ds-card { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 16px 18px; }
.ds-val { font-size: 28px; font-weight: 800; color: var(--blue); line-height: 1; }
.ds-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Activity feed */
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.act-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-blue  { background: var(--blue-light); color: var(--blue); }
.ai-green { background: #f0fdf4; color: #059669; }
.ai-amber { background: #fff7ed; color: #c2410c; }
.ai-red   { background: #fff1f2; color: #e11d48; }
.act-body { flex: 1; font-size: 13.5px; line-height: 1.5; }
.act-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-btn { padding: 12px 16px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 9px; color: var(--text); transition: all .15s; text-decoration: none; font-family: inherit; }
.qa-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.qa-btn svg { flex-shrink: 0; }

/* Profile card head (with left icon + title/sub) */
.card-head-row { display: flex; align-items: center; justify-content: space-between; }
.card-head-left { display: flex; align-items: center; gap: 10px; }
.card-head-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-head-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.card-head-sub   { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* Stub / coming soon placeholder */
.coming-soon { padding: 48px 24px; text-align: center; color: var(--muted); }
.coming-soon svg { opacity: .35; margin-bottom: 14px; }
.coming-soon h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.coming-soon p  { font-size: 13px; line-height: 1.6; }

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-left { position: static; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE FORM STYLES
   ═══════════════════════════════════════════════════════════ */

.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fg-full    { grid-column: span 2; }
.field      { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.field input,
.field select,
.field textarea {
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text); background: var(--white);
  font-family: inherit; outline: none; width: 100%; transition: border .15s;
  min-height: 42px; box-sizing: border-box;
}
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='2,4 6,8 10,4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,76,138,.07); }
.field input:disabled, .field select:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9ca3af; }
.field-hint     { font-size: 11.5px; color: var(--muted); }
.field-optional { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; text-transform: none; letter-spacing: 0; }
.field-error    { font-size: 12px; color: #dc2626; margin-top: 2px; }
.field input.has-error, .field select.has-error, .field textarea.has-error { border-color: #dc2626; }

/* ── SearchSelect combobox ──────────────────────────────────────────────────── */
.ss-wrap { position: relative; user-select: none; }
.ss-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 13px; min-height: 42px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); cursor: pointer;
  font-size: 14px; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.ss-trigger:hover { border-color: #94a3b8; }
.ss-trigger:focus,
.ss-wrap.ss-open .ss-trigger { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,76,138,.07); }
.ss-has-error .ss-trigger { border-color: #dc2626; }
.ss-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ss-placeholder { color: #9ca3af; }
.ss-chevron { flex-shrink: 0; color: #94a3b8; transition: transform .15s; }
.ss-wrap.ss-open .ss-chevron { transform: rotate(180deg); }

.ss-panel {
  position: absolute; z-index: 300;
  top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 1.5px solid #e2e8f0;
  border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.13);
  overflow: hidden;
}
.ss-search-row { padding: 8px 8px 6px; border-bottom: 1px solid #f1f5f9; }
.ss-search {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #e2e8f0; border-radius: 7px;
  padding: 7px 10px; font-size: 13px; font-family: inherit;
  outline: none; background: #f8fafc; color: var(--text);
}
.ss-search:focus { border-color: var(--blue); background: var(--white); }
.ss-options { max-height: 228px; overflow-y: auto; padding: 4px 0; }
.ss-group {
  padding: 7px 13px 3px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px; color: #94a3b8; pointer-events: none;
}
.ss-opt {
  padding: 8px 13px; font-size: 13.5px; color: #334155;
  cursor: pointer; outline: none; transition: background .1s;
}
.ss-opt-indented { padding-left: 22px; }
.ss-opt:hover,
.ss-opt:focus    { background: #f0f9ff; color: #0369a1; }
.ss-opt.ss-selected { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.ss-opt[data-val="0"] { color: #9ca3af; }

.form-sec-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
  padding: 14px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.form-sec-label:first-child { padding-top: 0; }

.form-save-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg);
  gap: 12px; flex-wrap: wrap;
}
.fsb-hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fsb-btns { display: flex; gap: 10px; }
.card-btn { padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; font-family: inherit; text-decoration: none; }
.cbtn-primary { background: var(--blue); color: #fff; border: none; }
.cbtn-primary:hover { background: var(--blue-dark); }
.cbtn-outline { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.cbtn-outline:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .fg-full   { grid-column: span 1; }
}

/* ── Toggle checkbox rows (Contact preferences) ── */
.toggle-field-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: border-color .15s;
}
.toggle-field-row:hover { border-color: var(--blue); }
.tf-checkbox {
  width: 18px; height: 18px; border-radius: 4px; accent-color: var(--blue);
  flex-shrink: 0; margin-top: 1px; cursor: pointer;
}
.tf-text  { flex: 1; }
.tf-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.tf-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Saved Jobs page ──────────────────────────────────────────────────────── */
.saved-jobs-list { display: flex; flex-direction: column; gap: 10px; }
.sji {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  display: flex; align-items: stretch; overflow: hidden; transition: box-shadow .15s;
}
.sji:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.sji.sji-expired { opacity: .55; }
.sji-link {
  flex: 1; display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; text-decoration: none; color: inherit;
}
.sji-logo {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
}
.sji-body { flex: 1; min-width: 0; }
.sji-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sji-link:hover .sji-title { color: var(--blue); }
.sji-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.sji-meta-sep { color: var(--border); }
.sji-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sji-salary { font-size: 13px; font-weight: 700; color: var(--text); }
.sji-saved-date { font-size: 11.5px; color: var(--muted); }
.sji-actions { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--border); flex-shrink: 0; }
.sji-remove {
  width: 32px; height: 32px; border-radius: 7px; border: 1.5px solid var(--border);
  background: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); transition: all .15s;
}
.sji-remove:hover { border-color: #e11d48; color: #e11d48; background: #fff1f2; }
.badge-expired { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.badge-active  { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; }
.btn-del-expired {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  background: #fff1f2; color: #e11d48; border: 1.5px solid #fecdd3;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-del-expired:hover { background: #ffe4e6; border-color: #e11d48; }

/* ── Doc / COC cards (Education & Docs + Certificates pages) ─────────────── */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  transition: box-shadow .15s;
}
.doc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.doc-card.doc-expired { opacity: .6; }
.doc-card-icon {
  width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0;
  background: #eff6ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.doc-card.doc-expired .doc-card-icon { background: #fff1f2; color: #e11d48; }
.doc-card-body  { flex: 1; min-width: 0; }
.doc-card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.doc-card-meta  { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.doc-card-meta span { display: flex; align-items: center; gap: 4px; }
.doc-meta-expired { color: #e11d48 !important; font-weight: 600; }
.doc-meta-warn    { color: #a16207 !important; font-weight: 600; }
.doc-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.doc-btn {
  width: 32px; height: 32px; border-radius: 7px; border: 1.5px solid var(--border);
  background: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); transition: all .15s;
}
.doc-btn-edit:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }
.doc-btn-del:hover  { border-color: #e11d48; color: #e11d48; background: #fff1f2; }

/* ── Shared modal layout for experience / education / certificates ────────── */
.exp-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.exp-page-title  { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0; }
.exp-page-sub    { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.exp-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; color: #64748b; }
.exp-empty svg { color: #cbd5e1; margin-bottom: 16px; }
.exp-empty p   { font-size: 13px; margin: 0 0 20px; }
.exp-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.45); z-index: 1000;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px 20px; overflow-y: auto;
}
.exp-modal {
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  width: 100%; max-width: 620px; margin: auto;
  animation: expSlide .18s ease;
}
@keyframes expSlide {
  from { opacity: 0; transform: translateY(-16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* Urgent / starting-soon pill — soft pulse + mild glow.
   Used on job lists when date_start is within 14 days (isStartingSoon()). */
.urgent-pulse {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px;
  background: #fee2e2; color: #b91c1c;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
  white-space: nowrap;
  animation: urgentPulse 1.4s ease-in-out infinite;
}
.urgent-pulse::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #dc2626;
  animation: urgentDot 1.4s ease-in-out infinite;
}
@keyframes urgentPulse {
  0%, 100% { background: #fee2e2; box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50%      { background: #fecaca; box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
}
@keyframes urgentDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .4;  transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) {
  .urgent-pulse, .urgent-pulse::before { animation: none; }
}
.exp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #e2e8f0;
}
.exp-modal-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.exp-modal-close {
  background: none; border: none; cursor: pointer; color: #94a3b8;
  padding: 4px; border-radius: 6px; display: flex; align-items: center;
  transition: background .12s, color .12s;
}
.exp-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.exp-modal-body { display: flex; flex-direction: column; gap: 4px; padding: 22px; }
.exp-modal-body .form-grid { margin-bottom: 4px; }
.exp-modal-body .field   { display: flex; flex-direction: column; gap: 5px; }
.exp-modal-body .fg-full { grid-column: span 2; }
.exp-modal-foot {
  padding: 16px 22px; border-top: 1px solid #e2e8f0;
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ── View switcher ───────────────────────────────────────────────────────── */
.exp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp-view-switch {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.evs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  color: #94a3b8;
  transition: background .12s, color .12s;
}
.evs-btn:first-child { border-right: 1px solid #e2e8f0; }
.evs-btn:hover  { background: #f8fafc; color: #475569; }
.evs-btn.active { background: #f0f9ff; color: #0284c7; }

/* ── Table view ──────────────────────────────────────────────────────────── */
.exp-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.exp-table thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.exp-table thead th:first-child { border-radius: 12px 0 0 0; }
.exp-table thead th:last-child  { border-radius: 0 12px 0 0; }
.exp-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.exp-table tbody tr:last-child  { border-bottom: none; }
.exp-table tbody td { padding: 11px 14px; color: #334155; vertical-align: middle; }
.exp-table tbody tr:hover td { background: #f8fafc; }
.exp-tr-active td { background: #f0fdf4 !important; }
.exp-tr-expired td { opacity: .55; }

.exp-td-num     { color: #94a3b8; font-size: 12px; width: 36px; }
.exp-td-date    { color: #475569; }
.exp-td-dur     { color: #0284c7; font-weight: 500; }
.exp-td-vessel  { min-width: 160px; }
.exp-td-actions { width: 72px; display: flex; align-items: center; gap: 4px; padding-right: 12px; }

.exp-t-name { font-weight: 600; color: #0f172a; display: block; }
.exp-t-imo {
  font-size: 11px; color: #64748b;
  background: #f1f5f9; padding: 1px 5px;
  border-radius: 4px; margin-left: 4px; vertical-align: middle;
}
.exp-t-onboard {
  font-size: 10px; font-weight: 700;
  background: #dcfce7; color: #15803d;
  padding: 2px 6px; border-radius: 10px;
  margin-left: 4px; vertical-align: middle;
}
.exp-t-expired-badge {
  font-size: 10px; font-weight: 600;
  background: #fee2e2; color: #dc2626;
  padding: 2px 6px; border-radius: 10px;
  margin-left: 4px; vertical-align: middle;
}
.exp-t-soon-badge {
  font-size: 10px; font-weight: 600;
  background: #fefce8; color: #a16207;
  padding: 2px 6px; border-radius: 10px;
  margin-left: 4px; vertical-align: middle;
}
.exp-t-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px; border: 1px solid;
  cursor: pointer; background: #fff;
  transition: background .12s;
}
.exp-t-edit { color: #0284c7; border-color: #bae6fd; }
.exp-t-edit:hover { background: #f0f9ff; }
.exp-t-del  { color: #dc2626; border-color: #fecaca; }
.exp-t-del:hover  { background: #fff5f5; }

/* ── Dashboard two-column layout ────────────────────────────────────────────── */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .dash-two-col { grid-template-columns: 1fr; }
}

.dash-col-card { margin-bottom: 0 !important; }

/* Expiry rows */
.dash-exp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}
.dash-exp-row:last-child { border-bottom: none; }
.dash-exp-info { flex: 1; min-width: 0; }
.dash-exp-title { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-exp-num   { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.dash-exp-date  { text-align: right; font-size: 12px; flex-shrink: 0; }
.dash-exp-days  { font-size: 10px; font-weight: 700; margin-top: 2px; }
.dash-exp-urgent .dash-exp-days { color: #e11d48; }
.dash-exp-urgent { color: #e11d48; }
.dash-exp-warn  .dash-exp-days { color: #d97706; }
.dash-exp-warn  { color: #d97706; }
.dash-exp-ok    .dash-exp-days { color: #059669; }
.dash-exp-ok    { color: #334155; }

.dash-empty-row {
  padding: 16px 18px; font-size: 13px; color: #94a3b8; text-align: center;
}

/* Job section heading */
.dash-jobs-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #64748b; font-weight: 500;
  margin: 4px 0 12px; padding: 0 2px;
}
.dash-jobs-head svg { color: #94a3b8; flex-shrink: 0; }
.dash-jobs-head strong { color: #334155; }

.dash-see-all {
  font-size: 12px; color: #0284c7; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.dash-see-all:hover { text-decoration: underline; }

/* Job rows */
.dash-job-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; transition: background .12s;
}
.dash-job-row:last-child { border-bottom: none; }
.dash-job-row:hover { background: #f8fafc; }

.dash-job-co {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px; background: #e0f2fe; color: #0369a1;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dash-job-info { flex: 1; min-width: 0; }
.dash-job-title { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-job-meta  { font-size: 11px; color: #64748b; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-job-start { text-align: right; flex-shrink: 0; font-size: 12px; font-weight: 700; color: #059669; line-height: 1.2; }
.dash-job-start-yr { font-size: 10px; font-weight: 400; color: #94a3b8; }

.dash-job-salary { text-align: right; flex-shrink: 0; font-size: 14px; font-weight: 800; color: #0284c7; line-height: 1.2; }
.dash-job-mo     { font-size: 10px; font-weight: 400; color: #94a3b8; }

/* ── My Applications ────────────────────────────────────────────────────────── */
.app-list { display: flex; flex-direction: column; gap: 10px; }

.app-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px 18px; display: flex; align-items: flex-start;
  gap: 14px; transition: box-shadow .15s;
}
.app-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.app-card-expired { opacity: .6; }

.app-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #eff6ff; color: #3b82f6; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.app-card-body { flex: 1; min-width: 0; }

.app-card-title {
  font-size: 14px; font-weight: 600; color: #0f172a;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.app-job-link { color: #0f172a; text-decoration: none; }
.app-job-link:hover { color: #0284c7; text-decoration: underline; }

.app-card-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.app-card-meta span {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #64748b;
}
.app-card-meta svg { color: #94a3b8; }

.app-card-actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

/* Application status badges */
.app-status {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap; letter-spacing: .3px;
}
.app-status-pending  { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }
.app-status-reviewed { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.app-status-short    { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.app-status-rejected { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.app-status-hired    { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; font-weight: 800; }
.app-status-exp      { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }
