/* ── Variables ── */
:root {
  --navy:    #0a1628;
  --blue:    #1a3a6c;
  --sky:     #2196f3;
  --sky-dk:  #1565c0;
  --gold:    #f4a820;
  --green:   #16a34a;
  --red:     #dc2626;
  --amber:   #d97706;
  --purple:  #9333ea;
  --bg:      #f0f2f7;
  --surface: #ffffff;
  --border:  #dde1ea;
  --text:    #1e293b;
  --muted:   #64748b;
  --r:       10px;
  --shadow:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
[class*="col-"] { padding: 0 .75rem; width: 100%; }
.col-md-4  { width: 100%; }
.col-md-5  { width: 100%; }
.col-md-6  { width: 100%; }
.col-md-8  { width: 100%; }
.col-md-10 { width: 100%; }
@media (min-width: 768px) {
  .col-md-4  { width: 33.33%; }
  .col-md-5  { width: 41.66%; }
  .col-md-6  { width: 50%; }
  .col-md-8  { width: 66.66%; }
  .col-md-10 { width: 83.33%; }
}
.col-lg-5 { width: 100%; }
@media (min-width: 992px) { .col-lg-5 { width: 41.66%; } }
.justify-content-center  { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end     { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start  { align-items: flex-start; }
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-none  { display: none; }
.flex-column { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.flex-grow-1 { flex: 1; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.text-center { text-align: center; }
.text-start  { text-align: left; }
.text-end    { text-align: right; }
.text-nowrap { white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.ms-auto { margin-left: auto; }
.ms-1 { margin-left: .25rem; }
.ms-2 { margin-left: .5rem; }
.ms-3 { margin-left: .75rem; }
.me-auto { margin-right: auto; }
.me-2 { margin-right: .5rem; }
.me-3 { margin-right: .75rem; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1.25rem; }
.py-2 { padding-top: .5rem;  padding-bottom: .5rem; }
.py-4 { padding-top: 1rem;   padding-bottom: 1rem; }
.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.border-top    { border-top:    1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.small      { font-size: .82rem; }
.fw-semibold { font-weight: 600; }
.fw-bold     { font-weight: 700; }
.fs-5 { font-size: 1.25rem; }
.text-warning-emphasis { color: #92400e; }

/* ── Nav ── */
.cs-nav {
  background: var(--navy);
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body { padding-top: 52px; }
.cs-nav .container {
  display: flex;
  align-items: stretch;
  height: 52px;
  gap: 0;
}
.cs-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--gold);
  text-decoration: none !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 0 1.1rem 0 0;
  margin-right: .5rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.cs-brand span { color: #fff; }
.cs-brand:hover { text-decoration: none !important; color: var(--gold); }

/* Main nav links */
.cs-nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}
.cs-nav-links a {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 600;
  padding: 0 .85rem;
  text-decoration: none;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  letter-spacing: .01em;
}
.cs-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.cs-nav-links a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.cs-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 5px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

/* Right side: subscribe + user */
.cs-nav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding-left: .75rem;
  border-left: 1px solid rgba(255,255,255,.1);
}
.btn-subscribe {
  background: var(--gold);
  color: #000 !important;
  border-color: var(--gold);
  font-weight: 700;
  font-size: .78rem;
  padding: .3rem .75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  text-decoration: none;
}
.btn-subscribe:hover { background: #e09a10; text-decoration: none; color: #000 !important; }

/* User menu */
.cs-nav-user  { position: relative; }
.cs-nav-user-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  border-radius: 8px;
  padding: .3rem .75rem;
  font-size: .82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background .15s;
}
.cs-nav-user-btn:hover { background: rgba(255,255,255,.14); }
.cs-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  min-width: 170px;
  padding: .35rem;
  display: none;
  z-index: 200;
}
.cs-dropdown.open { display: block; }
.cs-dropdown a, .cs-dropdown button {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .55rem .8rem;
  border-radius: 7px;
  font-size: .875rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}
.cs-dropdown a:hover, .cs-dropdown button:hover { background: var(--bg); text-decoration: none; }
.cs-dropdown .text-danger { color: var(--red) !important; }
.cs-dropdown-divider { height: 1px; background: var(--border); margin: .3rem .4rem; }

/* Mobile-only nav items — hidden on desktop */
.cs-nav-links .mobile-divider { display: none; }
.cs-nav-links .nav-mobile-only { display: none; }
@media (max-width: 700px) {
  .cs-nav-links .mobile-divider { display: block; }
  .cs-nav-links .nav-mobile-only { display: flex; }
}

/* Hamburger */
.cs-hamburger {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem .4rem;
  margin-left: auto;
  align-items: center;
}

/* Mobile nav */
@media (max-width: 700px) {
  .cs-nav .container { height: 50px; }
  body { padding-top: 50px; }
  .cs-brand { padding-right: .75rem; margin-right: 0; }
  .cs-nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0d1f3c;
    flex-direction: column;
    align-items: stretch;
    padding: .5rem .75rem .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    z-index: 50;
  }
  .cs-nav-links.open { display: flex; }
  .cs-nav-links a {
    padding: .7rem .75rem;
    border-radius: 8px;
    border-bottom: none;
    font-size: .9rem;
  }
  .cs-nav-links a:hover { background: rgba(255,255,255,.08); }
  .cs-nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
  .cs-nav-links .mobile-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: .4rem 0;
  }
  .cs-hamburger { display: flex; }
  /* Pill is just a name badge on mobile — hamburger menu has Profile/Log Out */
  .cs-nav-user-btn { pointer-events: none; cursor: default; }
  .cs-nav-user-btn .bi-chevron-down { display: none; }
  .cs-nav-right { border-left: none; padding-left: 0; gap: .35rem; }
  .btn-subscribe { display: none; }  /* shown in mobile menu instead */
}

/* ── Page content ── */
.cs-content { padding: 1.5rem 0 3rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card.p-4 { padding: 1.5rem !important; }
.card.p-3 { padding: 1rem !important; }
.card-header {
  padding: .8rem 1.1rem;
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
}
.card-body  { padding: 1.1rem; }
.card-footer {
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0 0 var(--r) var(--r);
}

/* Duty cards */
.row-cols-1 > .col, .row-cols-md-2 > .col, .row-cols-xl-3 > .col { padding: .375rem; }
.row-cols-1.g-3, .row-cols-md-2.g-3, .row-cols-xl-3.g-3 { margin: -.375rem; }
@media (min-width: 768px) {
  .row-cols-md-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .row-cols-xl-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Forms ── */
.form-label {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: .7rem .9rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(33,150,243,.12);
  outline: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6L0 0h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-text { font-size: .78rem; color: var(--muted); margin-top: .3rem; line-height: 1.4; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check-input {
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  accent-color: var(--sky);
}
.form-check-input:checked { background: var(--sky); border-color: var(--sky); }
.form-check-label { font-weight: 500; font-size: .92rem; cursor: pointer; }
.form-check.form-check-inline { display: inline-flex; margin-right: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .6rem 1.2rem;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-sm  { padding: .35rem .75rem; font-size: .8rem; border-radius: 6px; }
.btn-lg  { padding: .8rem 1.75rem; font-size: 1rem; }
.btn.w-100 { width: 100%; }
.btn-primary { background: var(--sky); color: #fff; border-color: var(--sky); }
.btn-primary:hover { background: var(--sky-dk); border-color: var(--sky-dk); color: #fff; text-decoration: none; }
.btn-warning { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.btn-warning:hover { background: #e09a10; color: #000; text-decoration: none; }
.btn-outline-primary { color: var(--sky); border-color: var(--sky); background: transparent; }
.btn-outline-primary:hover { background: var(--sky); color: #fff; text-decoration: none; }
.btn-outline-secondary { color: var(--muted); border-color: var(--border); background: transparent; }
.btn-outline-secondary:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.btn-outline-warning { color: var(--amber); border-color: var(--gold); background: transparent; }
.btn-outline-warning:hover { background: var(--gold); color: #000; text-decoration: none; }
.btn-outline-danger { color: var(--red); border-color: #fca5a5; background: transparent; }
.btn-outline-danger:hover { background: var(--red); color: #fff; border-color: var(--red); text-decoration: none; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .6rem;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-legal   { background: var(--green); color: #fff; }
.badge-illegal { background: var(--red);   color: #fff; }
.bg-primary    { background: var(--sky)   !important; color: #fff; }
.bg-success    { background: var(--green) !important; color: #fff; }
.bg-danger     { background: var(--red)   !important; color: #fff; }
.bg-warning    { background: var(--gold)  !important; color: #000; }
.bg-secondary  { background: #94a3b8      !important; color: #fff; }
.bg-info       { background: #0ea5e9      !important; color: #fff; }
.bg-light      { background: #f1f5f9      !important; }

/* ── Alerts ── */
.alert {
  padding: .85rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-dismissible { position: relative; padding-right: 2.5rem; }
.alert-link { font-weight: 600; color: inherit; text-decoration: underline; }
.btn-close {
  position: absolute; right: .75rem; top: .75rem;
  background: none; border: none; font-size: 1rem; cursor: pointer; opacity: .5;
  color: inherit;
}
.btn-close::before { content: '×'; font-size: 1.25rem; }
.btn-close:hover { opacity: 1; }

/* ── Table ── */
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th {
  padding: .7rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
}
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: #f8fafc; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.align-middle td { vertical-align: middle; }

/* ── Duty type styles ── */
.duty-fls  { border-left: 3px solid var(--sky);    background: #eff6ff; }
.duty-grst { border-left: 3px solid #0ea5e9;       background: #f0f9ff; }
.duty-goff { border-left: 3px solid var(--green);  background: #f0fdf4; }
.duty-gsic { border-left: 3px solid var(--red);    background: #fef2f2; }
.duty-gsby { border-left: 3px solid var(--gold);   background: #fffbeb; }
.duty-trn  { border-left: 3px solid var(--purple); background: #faf5ff; }
.duty-oth  { border-left: 3px solid #94a3b8;       background: #f8fafc; }

/* ── Text utilities ── */
.text-muted   { color: var(--muted)  !important; }
.text-danger  { color: var(--red)    !important; }
.text-success { color: var(--green)  !important; }
.text-primary { color: var(--sky)    !important; }
.text-warning { color: var(--amber)  !important; }
.text-info    { color: #0ea5e9       !important; }
.text-purple  { color: var(--purple) !important; }
.text-white   { color: #fff          !important; }
.text-dark    { color: var(--text)   !important; }

/* ── List utilities ── */
.list-unstyled { list-style: none; }

/* ── Footer ── */
.cs-footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  padding: 3rem 0 0;
  margin-top: 3rem;
  border-top: none;
}
.cs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
}
.cs-footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}
.cs-footer-logo span { color: var(--gold); }
.cs-footer-brand p {
  margin-bottom: .4rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
}
.cs-footer-legal-note {
  font-size: .72rem;
  color: rgba(255,255,255,.35) !important;
  margin-top: .75rem !important;
  line-height: 1.55;
}
.cs-footer-col h6 {
  color: rgba(255,255,255,.85);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .65rem;
}
.cs-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
}
.cs-footer-col ul li { margin-bottom: .35rem; }
.cs-footer-col a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.cs-footer-col a:hover { color: #fff; text-decoration: none; }
.cs-footer-disclaimer {
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  margin-top: .5rem;
  line-height: 1.5;
}
.cs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
  text-align: center;
  font-size: .72rem;
  color: rgba(255,255,255,.3);
}
@media (max-width: 767px) {
  .cs-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .cs-footer-brand { grid-column: 1 / -1; }
}

/* ── Subscribe highlight button ── */
.btn-subscribe {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
  font-size: .82rem;
  padding: .35rem .85rem;
  border-radius: 6px;
}
.btn-subscribe:hover { background: #e09a10; text-decoration: none; color: #000; }

/* ── Roster page wrapper ── */
.cs-roster-wrap { padding: 1rem 1.25rem 2rem; }

/* ── Mobile ── */
@media (max-width: 576px) {
  .cs-content { padding: 1rem 0 2rem; }
  .cs-content--roster { padding-top: 0; }
  .card.p-4 { padding: 1rem !important; }
  h2 { font-size: 1.3rem; }
  .btn-lg { padding: .75rem 1.25rem; }

  /* Roster strips: full viewport width, no card chrome */
  .cs-roster-wrap { padding: .75rem 0 2rem; }
  .cs-roster-wrap .card {
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-left: 0;
    margin-right: 0;
  }
  .cs-roster-wrap h2,
  .cs-roster-wrap .d-flex.align-items-center,
  .cs-roster-wrap .alert { padding-left: .75rem; padding-right: .75rem; }
}

/* ══════════════════════════════════════════════
   Landing page
══════════════════════════════════════════════ */
.lp-hero {
  background: linear-gradient(140deg, #0a1628 0%, #1a3a6c 100%);
  padding: 5rem 0 4.5rem;
  color: #fff;
  text-align: center;
}
.lp-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.lp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.lp-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}
.lp-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.lp-login-btn {
  border: 2px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  background: transparent;
}
.lp-login-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; text-decoration: none; }
.lp-note { margin-top: .5rem; font-size: .78rem; color: rgba(255,255,255,.4); }
.lp-social-proof {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .01em;
}
.lp-social-proof i { margin-right: .35rem; color: var(--gold); }

.lp-features { padding: 4rem 0; background: var(--bg); }
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.lp-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.lp-feat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.lp-feat-icon.blue   { background: #eff6ff; color: var(--sky); }
.lp-feat-icon.green  { background: #f0fdf4; color: var(--green); }
.lp-feat-icon.gold   { background: #fffbeb; color: var(--amber); }
.lp-feat-icon.purple { background: #faf5ff; color: var(--purple); }
.lp-feat-icon.red    { background: #fef2f2; color: var(--red); }
.lp-feat-icon.navy   { background: #eff1f7; color: var(--navy); }
.lp-feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.lp-feature p  { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Logbook feature highlight section ─────────────────────────────────────── */
.lp-logbook-highlight {
  padding: 5rem 0;
  background: #060f1e;  /* distinctly darker than --navy so it stands apart */
  color: #fff;
}
.lp-logbook-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .lp-logbook-inner { grid-template-columns: 1fr; gap: 2rem; }
  .lp-logbook-preview { display: none; }
}
.lp-logbook-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(244,168,32,.15);
  color: var(--gold);
  border: 1px solid rgba(244,168,32,.3);
  border-radius: 20px;
  padding: .25rem .8rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 1.25rem;
}
.lp-logbook-text h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
}
.lp-logbook-text p {
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.lp-logbook-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.lp-logbook-bullets li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}
.lp-logbook-bullets li i {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .15rem;
  font-size: 1rem;
}
/* Mock logbook preview card */
.lp-logbook-preview {
  display: flex;
  justify-content: center;
}
.lp-logbook-card {
  background: #0d1e35;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  font-size: .8rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.lp-logbook-card-header {
  background: rgba(255,255,255,.05);
  padding: .85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  font-size: .85rem;
}
.lp-logbook-month-badge {
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  padding: .15rem .55rem;
  font-size: .7rem;
  color: rgba(255,255,255,.5);
}
.lp-logbook-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: center;
  gap: .5rem;
}
.lp-lb-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.lp-lb-night { color: #93c5fd; }
.lp-lb-dim   { color: rgba(255,255,255,.3); }
.lp-lb-strong { font-weight: 600; color: #fff; }
.lp-lb-label {
  font-size: .6rem;
  color: rgba(255,255,255,.35);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lp-logbook-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr 1.5fr 1.5fr;
  gap: .25rem;
  padding: .5rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
  font-variant-numeric: tabular-nums;
}
.lp-logbook-row-header {
  font-size: .6rem;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: .6rem;
}
.lp-logbook-row-footer {
  font-weight: 600;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.03);
  border-bottom: none;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Logbook: future flight rows ── */
.logbook-row-future td {
  opacity: .45;
}
.logbook-future-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .02em;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
  border-radius: 3px;
  padding: .05rem .3rem;
  vertical-align: middle;
  margin-left: .3rem;
}

.lp-steps { background: var(--navy); padding: 4rem 0; color: #fff; }
.lp-steps h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -.02em;
}
.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.lp-step { text-align: center; }
.lp-step-num {
  width: 48px; height: 48px;
  background: var(--gold);
  color: #000;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.lp-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.lp-step p  { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.65; margin: 0; }

/* ── Trust / Privacy section ── */
.lp-trust {
  background: #f8faff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.lp-trust-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.lp-trust-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 2rem;
}
.lp-trust-heading i {
  font-size: 1.6rem;
  color: var(--navy);
}
.lp-trust-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -.02em;
}
.lp-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  gap: .9rem;
}
.lp-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.lp-trust-list li i {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

.lp-bottom-cta { padding: 4.5rem 0; text-align: center; background: var(--bg); }
.lp-bottom-cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}
.lp-bottom-cta p { color: var(--muted); margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════
   Auth forms
══════════════════════════════════════════════ */
.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  width: 100%;
  max-width: 420px;
  padding: 2.25rem;
}
.auth-brand { text-align: center; margin-bottom: 1.75rem; }
.auth-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy);
}
.auth-logo span { color: var(--sky); }
.auth-tagline { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.auth-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.auth-sub { color: var(--muted); font-size: .875rem; margin-bottom: 1.5rem; }
.btn-auth { padding-top: .7rem; padding-bottom: .7rem; font-size: .95rem; }
.auth-footer { text-align: center; margin-top: 1.25rem; margin-bottom: 0; font-size: .875rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field-error { color: var(--red); font-size: .78rem; margin-top: .25rem; }
.is-invalid { border-color: var(--red) !important; }

/* ══════════════════════════════════════════════
   Roster strip
══════════════════════════════════════════════ */
.roster-strip-outer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .375rem;
}
.roster-strip {
  display: flex;
  gap: 4px;
  min-width: max-content;
}
.rday {
  width: 70px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .1s;
  position: relative;
  cursor: pointer;
}
.rday.is-today  { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); }
.rday.is-past   { opacity: .42; }
.rday.has-offer {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
  cursor: pointer;
}
.offer-popup {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  padding: .35rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.rday-hdr {
  padding: .2rem .25rem;
  text-align: center;
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
  line-height: 1.4;
}
.rday.is-today .rday-hdr { background: var(--sky); color: #fff; border-color: var(--sky); }
.rday-body {
  flex: 1;
  padding: .25rem;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rday-duty {
  border-radius: 3px;
  padding: .12rem .28rem;
  font-size: .62rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.rday-duty.fls  { background: #dbeafe; color: #1e40af; white-space: normal; line-height: 1.25; }
.rday-route { display: block; font-size: .56rem; font-weight: 500; opacity: .8; margin-top: 1px; }
.rday-duty.grst { background: #e0f2fe; color: #075985; }
.rday-duty.goff { background: #dcfce7; color: #166534; }
.rday-duty.gsic { background: #fee2e2; color: #991b1b; }
.rday-duty.gsby { background: #fef9c3; color: #78350f; }
.rday-duty.gsba { background: #ffedd5; color: #9a3412; }
.rday-duty.grsv { background: #fde68a; color: #92400e; }
.rday-duty.gpos { background: #e0f2fe; color: #075985; } /* positioning — light blue */
.rday-duty.gpwn { background: #fdf4ff; color: #7e22ce; } /* FTL protection — soft purple */
.rday-duty.gadm { background: #f1f5f9; color: #475569; } /* ground duty — grey */
.rday-duty.glve { background: #dcfce7; color: #15803d; } /* leave — soft green */
.rday-duty.trn  { background: #f3e8ff; color: #6b21a8; }
.rday-duty.oth  { background: #f1f5f9; color: #475569; }
.rday-ci, .rday-co {
  text-align: center;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--navy);
  background: rgba(0,0,0,.04);
  border-radius: 3px;
  margin: 1px 3px;
  padding: .08rem .2rem;
  line-height: 1.4;
}
.rday-co { color: var(--muted); }
.rday-foot { padding: .2rem; border-top: 1px solid var(--border); }

/* ── Roster legend ── */
.roster-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  margin-top: .5rem;
  font-size: .68rem;
  color: var(--muted);
}
.roster-legend span {
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.rl-chip {
  display: inline-block;
  border-radius: 3px;
  padding: .05rem .28rem;
  font-size: .65rem;
  font-weight: 600;
  line-height: 1.4;
}
.rday-foot form { margin: 0; }
.rday-foot .btn {
  font-size: .62rem;
  padding: .18rem .3rem;
  border-radius: 4px;
  width: 100%;
  border-width: 1px;
}

/* ══════════════════════════════════════════════
   Compatible crew cards
══════════════════════════════════════════════ */
.compat-crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.compat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compat-card-hdr {
  padding: .6rem .85rem;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
}
.compat-card-body { padding: .75rem; }
.compat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-select-sm {
  padding: .3rem .7rem;
  font-size: .82rem;
  border-radius: 6px;
}

/* ── Navbar brand — no underline on hover ── */
.cs-brand:hover { text-decoration: none; }

/* ══════════════════════════════════════════════
   Synchronized roster compare grid
══════════════════════════════════════════════ */
.roster-compare-outer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .375rem;
}
.roster-compare-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: max-content;
}
.roster-compare-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.roster-user-sticky-wrap {
  position: sticky;
  top: 52px;
  z-index: 10;
  background: var(--surface);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 8px 0 0 var(--surface);
}
.roster-compare-row.user-row .roster-compare-label {
  background: var(--surface);
  border-color: var(--primary);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.roster-compare-row.user-row .roster-compare-label:hover {
  background: var(--navy-light, #e8edf5);
}
@media (max-width: 700px) {
  .roster-user-sticky-wrap { top: 50px; }
}
.roster-compare-label {
  width: 80px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: .68rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
}
.roster-compare-label .label-rank {
  font-size: .6rem;
  font-weight: 400;
  opacity: .75;
  margin-top: 1px;
}
.roster-compare-label .label-name {
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-label-clickable {
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.roster-label-clickable:hover {
  background: var(--navy-light, #e8edf5);
  border-color: var(--primary);
}
/* Inside compare grid strips don't need their own overflow */
.roster-compare-inner .roster-strip-outer { overflow-x: visible; }
/* Hide scrollbar on user row (it scrolls via JS sync, real scrollbar is on crew outer) */
#rosterUserOuter::-webkit-scrollbar { display: none; }

/* Divider between own roster and compatible crew rows */
.roster-crew-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0 .3rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-width: max-content;
}
.roster-crew-divider::before,
.roster-crew-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 40px;
}
