/* VesselBoss app styles (dark theme from the Figma design) */
:root {
  --bg: #161F28;
  --card: #253444;
  --card-hover: #2E4155;
  --input: #1E2A37;
  --line: #34475C;
  --text: #FFFFFF;
  --muted: #9AA7B5;
  --blue: #0E9CEC;
  --blue-dark: #0B82C6;
  --red: #E84C4F;
  --gold: #C9A227;
  --green: #22A93B;
  --yellow: #E3CD00;
  --orange: #FF762D;
  --grey: #5B6875;
  --radius: 4px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 600px;
  margin: 0 auto;
  padding: calc(8px + var(--safe-top)) 12px calc(96px + var(--safe-bottom));
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.pad { padding: 16px 4px; }

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bar-title { font-size: 18px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: none; padding: 0; border-radius: 50%; flex-shrink: 0;
}
.icon-btn:active { background: var(--card); }
.icon-btn.small { width: 32px; height: 32px; }
.boat-name { text-align: center; font-size: 22px; font-weight: 600; line-height: 30px; margin: 0 0 8px; }

.status-bar {
  display: flex; align-items: center; justify-content: center; min-height: 24px; padding: 2px 8px;
  border-radius: 2px; font-weight: 600; font-size: 15px; background: var(--grey); margin-bottom: 8px;
}
.status-bar.green { background: var(--green); }
.status-bar.yellow { background: var(--yellow); color: #111; }
.status-bar.orange { background: var(--orange); }
.status-bar.red { background: var(--red); }

.sync-banner {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  background: var(--input); border-radius: var(--radius); padding: 6px 10px; margin-bottom: 8px;
}
.sync-banner svg { width: 18px; height: 18px; flex-shrink: 0; }
.sync-banner.offline { color: #FFD27A; }

/* ---------- home cards ---------- */
.cards { display: flex; flex-direction: column; gap: 8px; }
.card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 16px; border: 0;
  border-radius: var(--radius); background: var(--card); text-align: left;
}
.card:active, .card:hover { background: var(--card-hover); }
.card img { flex-shrink: 0; }
.card-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-title { font-weight: 600; }
.card-sub { font-size: 13px; color: var(--muted); }
/* Sections not built yet: greyed out, can't be tapped */
.card.soon { opacity: .4; cursor: default; }
.card.soon:hover, .card.soon:active { background: var(--card); }
.card.soon img { filter: grayscale(1); }
.badge.yellow { background: var(--yellow); color: #111; }
.badge {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}

/* ---------- record lists ---------- */
.rec-list { display: flex; flex-direction: column; gap: 4px; }
.list-heading { font-size: 15px; font-weight: 600; color: var(--muted); margin: 20px 4px 8px; }
.rec {
  display: flex; gap: 10px; padding: 10px 12px; background: var(--card);
  border-left: 3px solid var(--red); border-radius: 2px;
}
.rec.gold { border-left-color: var(--gold); }
.rec.green { border-left-color: var(--green); }
.rec.yellow { border-left-color: var(--yellow); }
.rec.magenta { border-left-color: #E253F5; }
.rec.canceled .rec-title { text-decoration: line-through; color: var(--muted); }
.rec:active { background: var(--card-hover); }
.rec.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 40% { background: #2F6B3A; } 100% { background: var(--card); } }
.rec-main { flex: 1; min-width: 0; }
.rec-title { font-weight: 600; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 8px; vertical-align: middle; }
.rec-text {
  font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rec-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.rec-date { font-size: 13px; font-weight: 700; }
.rec-date.orange { color: #FF9F43; }
.rec-time { font-size: 13px; font-weight: 600; color: #36D6E7; }
.rec-small { font-size: 12px; color: var(--muted); white-space: nowrap; margin-top: -4px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 2px; min-width: 76px; text-align: center; }
.tag.red { background: var(--red); }
.tag.gold { background: var(--gold); }
.tag.green { background: var(--green); }

.fab {
  position: fixed; right: max(16px, calc(50% - 284px)); bottom: calc(20px + var(--safe-bottom));
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--blue);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.fab svg { width: 30px; height: 30px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 72px; text-align: center; }
.empty-icon img { filter: grayscale(1) brightness(1.6); opacity: .6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 8px 20px; border: 0; border-radius: var(--radius); font-weight: 600;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); }
.btn-primary:active { background: var(--blue-dark); }
.btn-danger { background: var(--red); }
.btn-outline { background: none; border: 1px solid var(--line); }
.btn-text-danger { background: none; color: var(--red); margin-top: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; }
.link { background: none; border: 0; color: var(--blue); padding: 8px; font-size: 14px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
label, .field-label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.field-label { margin-bottom: -6px; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--card); font-size: 16px; /* 16px stops iPhone zooming in */
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: #6F7E8D; }
input:disabled, textarea:disabled { opacity: .8; }
textarea { resize: vertical; min-height: 0; }
.form-error { color: #FF8A8C; font-size: 14px; margin: 0; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-btn, .stack-btn {
  border: 0; border-radius: 2px; background: var(--card); min-height: 36px; font-size: 14px; padding: 6px;
}
.stack-btn { min-height: 30px; padding: 3px 6px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.seg-btn.active.red, .stack-btn.active.red { background: var(--red); }
.seg-btn.active.gold { background: var(--gold); }
.seg-btn.active.green, .stack-btn.active.green { background: var(--green); }
.stack-btn.active.yellow { background: var(--yellow); color: #111; }
.stack-btn.active.orange { background: var(--orange); }
.seg-btn.active, .stack-btn.active { font-weight: 600; }

.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 0; padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.add { display: flex; align-items: center; justify-content: center; }
.photo.add svg { width: 32px; height: 32px; }
.photo-x {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 0;
}
.photo-x svg { width: 16px; height: 16px; }

.history { margin-top: 12px; }
.hist { background: var(--card); padding: 10px 12px; border-radius: 2px; margin-bottom: 4px; font-size: 14px; }
.hist-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.hist-head span { color: var(--muted); font-size: 12px; }
.hist-body { color: #C9D2DB; overflow-wrap: anywhere; }
.hist s { color: var(--muted); }
.note-text { white-space: pre-wrap; color: var(--text); }
.search { margin-bottom: 8px; background: var(--input); }
.done-toggle { display: block; margin: 12px auto 4px; }

/* ---------- members ---------- */
.member { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: 2px; }
.member-main { flex: 1; min-width: 0; }
.member select { width: auto; padding: 6px 8px; font-size: 14px; background: var(--input); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.role { font-size: 13px; color: var(--muted); }
.danger { color: var(--red); }

/* ---------- sign in ---------- */
.auth { max-width: 400px; margin: 0 auto; padding-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth h1 { text-align: center; font-size: 30px; margin: 8px 0 0; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 24px; font-weight: 700; }
.auth-brand img { width: 64px; height: 64px; }
.auth input { background: #fff; color: #111; }
.auth input::placeholder { color: #999; }
.code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; }
.auth-links { display: flex; justify-content: space-between; }

/* ---------- menu ---------- */
.menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; display: flex; justify-content: flex-end; }
.menu {
  width: min(300px, 85vw); height: 100%; background: var(--bg); padding: calc(16px + var(--safe-top)) 0 16px;
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,.4);
  animation: slide .2s ease-out;
}
@keyframes slide { from { transform: translateX(100%); } }
.menu-head { padding: 0 20px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-user { font-weight: 600; }
.menu-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 20px;
  background: none; border: 0; font-size: 16px;
}
.menu-item:active, .menu-item:hover { background: var(--card); }
.menu-ico { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.menu-ico svg { width: 24px; height: 24px; }
.menu-ico.yellow { color: var(--yellow); }
.menu-ico.blue { color: var(--blue); }
.menu-ico.green { color: var(--green); }
.menu-ico.red { color: var(--red); }
.menu-ico.violet { color: #A58BF0; }
.menu-text { display: flex; flex-direction: column; min-width: 0; }
.menu-title { font-weight: 600; }
.menu-desc { font-size: 13px; color: var(--muted); }
/* Sync status: small info line at the very bottom, not a menu option */
.menu-sync { display: flex; align-items: center; gap: 6px; padding: 4px 20px 8px; font-size: 12px; color: var(--muted); }
.menu-sync svg { width: 14px; height: 14px; color: #8BE0A0; flex-shrink: 0; }
.menu-sync.off svg { color: #FFD27A; }
.menu-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 4px; }
.menu-bottom .menu-title { color: var(--red); }

/* ---------- toast, dialog, photo viewer ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: #fff; color: #111; padding: 10px 16px; border-radius: 20px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 6px; opacity: 0; pointer-events: none; transition: .2s; z-index: 70;
  box-shadow: 0 4px 16px rgba(0,0,0,.4); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok svg { color: var(--green); width: 18px; height: 18px; }
.dialog-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.dialog { background: var(--card); border-radius: 8px; padding: 20px; width: 100%; max-width: 360px; }
.dialog h3 { margin: 0 0 8px; }
.dialog p { margin: 0 0 16px; color: #C9D2DB; font-size: 15px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.viewer { position: fixed; inset: 0; background: #000; z-index: 80; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; }
.viewer-x { position: absolute; top: calc(12px + var(--safe-top)); right: 12px; background: rgba(255,255,255,.15); }

/* ---------- tabs, notices, small form bits ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 10px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--blue); }
.notice { padding: 8px 12px; border-radius: var(--radius); margin-bottom: 8px; font-weight: 600; text-align: center; }
.notice.red { background: rgba(232, 76, 79, .15); color: #FF8A8C; }
.optional { color: var(--muted); font-size: 13px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; min-height: 44px; }

/* ---------- tracking ---------- */
.map-wrap { position: relative; margin: 8px 0; }
.map { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.range-btn { border: 0; border-radius: 2px; background: var(--card); padding: 6px; font-size: 13px; }
.range-btn.active { background: var(--blue); font-weight: 600; }
.last-info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-bottom: 8px; }
.last-title { font-weight: 600; }
.ok-text { color: #8BE0A0; }
.small { font-size: 12px; }
.req-card { background: var(--card); border-left: 3px solid var(--yellow); padding: 10px 12px; border-radius: 2px;
  margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.req-card.waiting { border-left-color: var(--blue); }
.req-card .link { align-self: flex-start; padding: 0; }
.track-on { background: rgba(34, 169, 59, .12); border: 1px solid rgba(34, 169, 59, .5); border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.track-on-title { font-weight: 600; color: #8BE0A0; display: flex; align-items: center; gap: 8px; }
.track-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.track-actions .btn:only-child { grid-column: 1 / -1; }
.track-actions .btn { padding-left: 8px; padding-right: 8px; }
.tracking-pill { display: inline-flex; align-self: center; margin: -4px auto 8px; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #8BE0A0; background: rgba(34, 169, 59, .15); border-radius: 12px; padding: 2px 10px;
  width: max-content; }
#trackSlot { display: flex; justify-content: center; }
#trackSlot:empty { display: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 0 rgba(52, 199, 89, .7);
  animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
.boat-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #E84C4F;
  border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); box-sizing: border-box; }
.map .maplibregl-popup-content { background: #fff; color: #161F28; font: 13px/1.3 inherit; padding: 6px 10px; }
.map .maplibregl-ctrl-attrib { font-size: 11px; }
.map-msg { position: absolute; inset: 40% 0 auto; margin: 0; }

/* ---------- first-time welcome ---------- */
.choice { background: var(--card); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choice h2 { font-size: 17px; margin: 0; }
.choice p { margin: 0; }
.choice-email { font-weight: 600; word-break: break-all; }
.auth-links:has(> :only-child) { justify-content: center; }

/* ---------- my boats / invitations ---------- */
.boats-page { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.boats-page h1 { text-align: center; margin: 4px 0 8px; }
.auth-brand.small { margin-bottom: 0; }
.boat-card svg { color: var(--blue); flex-shrink: 0; }
.add-boat { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-boat svg { width: 20px; height: 20px; color: var(--green); }
.invite-card { background: var(--card); border-left: 3px solid var(--yellow); border-radius: 2px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invite-note { display: block; background: var(--card); border-left: 3px solid var(--yellow); border-radius: 2px; padding: 10px 12px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.invite-note .link { padding: 0; }
.invite-boat { font-size: 20px; }
.pending { color: var(--yellow); }

/* ---------- users ---------- */
.section-title { font-size: 17px; font-weight: 600; margin: 18px 2px 8px; }
.invite-box { background: var(--card); border-radius: var(--radius); padding: 14px; margin-top: 0; }
.access { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.access legend { padding: 0; margin-bottom: 6px; }
.access-opt { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 2px; background: var(--input); cursor: pointer; }
.access-opt input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.access-opt > span { display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.access-opt:has(input:checked) { outline: 2px solid var(--blue); }
.member-main .rec-title, .member-main .rec-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member select { flex-shrink: 0; }
.member-main .rec-text:has(.pending) { white-space: normal; }
.rec-list + .section-title { margin-top: 32px; }

/* ---------- invite links ---------- */
.links:empty { display: none; }
.links { margin-top: 4px; }
.link-avatar { background: var(--input); font-size: 16px; }
.join-note { background: var(--card); border-left: 3px solid var(--yellow); border-radius: 2px; padding: 10px 12px; margin: 0; }
.dialog-value { width: 100%; font-size: 13px; padding: 8px; margin: 0 0 16px; }
.map .center-btn { display: flex; align-items: center; justify-content: center; color: #333; }
.warn-text { color: var(--yellow); }

/* ---------- subscription ---------- */
.sub-status { background: var(--card); border-left: 3px solid var(--blue); border-radius: 2px; padding: 12px; font-weight: 600; margin-top: 4px; }
.sub-status.paid { border-left-color: var(--green); }
.sub-status.ended, .sub-status.lapsed, .sub-status.grace { border-left-color: var(--red); }
.sub-more { font-weight: 400; font-size: 14px; color: #C9D2DB; margin-top: 4px; }
.sub-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; background: var(--input); border-radius: 2px; padding: 6px 4px 6px 12px; margin-top: 8px; }
.sub-card-actions { display: flex; flex-wrap: wrap; }
.danger-link { color: #FF8A8C; }
.sub-usage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sub-usage > div { background: var(--input); border-radius: 2px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sub-usage b { font-size: 18px; }
.plans { display: flex; flex-direction: column; gap: 8px; }
.plan { --plan: 91, 104, 117; border-radius: var(--radius); padding: 14px 12px 15px;
  display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 4px; align-items: end;
  border-left: 4px solid rgb(var(--plan));
  background: linear-gradient(90deg, rgba(var(--plan), .34), rgba(var(--plan), .12)), var(--card); }
.plan > * { grid-column: 1 / -1; }
.plan > .muted { grid-column: 1; grid-row: 2; }
.plan-head { margin-bottom: 11px; }
.plan[data-plan="solo"] { --plan: 14, 156, 236; }        /* blue */
.plan[data-plan="team"] { --plan: 34, 169, 59; }         /* green */
.plan[data-plan="elite"] { --plan: 201, 162, 39; }       /* gold */
.plan[data-plan="enterprise"] { --plan: 142, 107, 232; } /* violet */
.plan .muted { color: #C9D2DB; }
.plan.current { outline: 2px solid #fff; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-name { font-size: 17px; font-weight: 600; }
.plan-price { font-weight: 600; white-space: nowrap; }
.plan .tag { justify-self: start; margin-top: 4px; }
.tag.suggest { background: #fff; color: #161F28; }
.sub-notes { margin: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.sub-notes p { margin: 0; }
.sub-notes a { color: var(--blue); }
.plan > .plan-btn { grid-column: 2; grid-row: 2; background: #fff; color: #161F28; border: 0; border-radius: 7px;
  min-height: 30px; margin-top: -10px; padding: 4px 16px; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.plan > .plan-btn:active { background: #D9E0E7; }

/* ---------- paying ---------- */
.pay-box { background: var(--card); border-radius: var(--radius); padding: 14px; }
.pay-plan { font-size: 18px; font-weight: 600; }
.pay-box select { background: var(--input); }
.card-field { height: 46px; margin-top: 6px; border-radius: var(--radius); background: var(--input); overflow: hidden; }
.card-field iframe { width: 100%; height: 46px; border: 0; display: block; }
.pay-box .field-label { margin-bottom: 0; }
.pay-summary { display: flex; flex-direction: column; gap: 4px; }
.pay-summary:empty { display: none; }
.pay-summary > div { display: flex; justify-content: space-between; gap: 12px; color: #C9D2DB; }
.pay-summary .pay-total { color: var(--text); font-weight: 600; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.pay-box p { margin: 0; }

/* ---------- subscription notices under the boat status ---------- */
.sub-bar { display: block; padding: 6px 10px; border-radius: 2px; margin-bottom: 8px; font-size: 14px; font-weight: 600; text-align: center; color: inherit; text-decoration: none; }
.sub-bar.red { background: rgba(232, 76, 79, .18); color: #FF9A9C; border: 1px solid rgba(232, 76, 79, .5); }
.sub-bar.yellow { background: rgba(227, 205, 0, .14); color: #F2E05A; border: 1px solid rgba(227, 205, 0, .45); }
.sub-bar.grey { background: var(--input); color: var(--muted); font-weight: 400; }
.seats { margin: -4px 2px 8px; }
