:root {
  --ink: #10242c;
  --muted: #5b7380;
  --line: #d6e7ea;
  --paper: #f4fbf9;
  --white: #ffffff;
  --ocean: #08758b;
  --deep: #063343;
  --sea: #22b9a5;
  --foam: #e9fffb;
  --sand: #f0dfc2;
  --safety: #ff8a4c;
  --shadow: 0 22px 55px rgba(6, 56, 73, 0.16);
  --soft-shadow: 0 16px 36px rgba(6, 56, 73, 0.1);
  --hero-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=85");
  --reports-image: url("https://images.unsplash.com/photo-1439405326854-014607f694d7?auto=format&fit=crop&w=1600&q=85");
  --crew-image: url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=1600&q=85");
  --spots-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1600&q=85");
  --profile-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=85");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 185, 165, 0.22), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(8, 117, 139, 0.18), transparent 28%),
    linear-gradient(180deg, #f5fffd 0%, var(--paper) 44%, #edf8f7 100%);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(34, 185, 165, 0.55);
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.ocean-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.swell {
  position: absolute;
  left: -20vw;
  width: 140vw;
  height: 220px;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.75) 0 3%, transparent 4%),
    repeating-radial-gradient(ellipse at center, transparent 0 34px, rgba(8, 117, 139, 0.14) 35px 37px, transparent 38px 76px);
  border-radius: 50%;
  filter: blur(0.2px);
  animation: swell-drift 18s linear infinite;
}

.swell-one {
  top: 130px;
}

.swell-two {
  top: 46vh;
  opacity: 0.18;
  animation-duration: 24s;
  animation-direction: reverse;
}

.swell-three {
  bottom: -50px;
  opacity: 0.16;
  animation-duration: 30s;
}

.sun-glow {
  position: absolute;
  right: 8vw;
  top: 90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(242, 122, 61, 0.16), transparent 68%);
  border-radius: 50%;
}

@keyframes swell-drift {
  from {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(8vw) translateY(14px);
  }
  to {
    transform: translateX(0) translateY(0);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 12px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(16, 33, 42, 0.08);
  box-shadow: 0 12px 34px rgba(6, 56, 73, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.has-scrolled .topbar {
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  padding-bottom: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(6, 56, 73, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--deep), var(--ocean));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(6, 56, 73, 0.18);
  font-weight: 800;
  letter-spacing: 0;
}

.brand small,
.eyebrow,
.muted {
  color: var(--muted);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  font-size: 0.78rem;
}

.top-links {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 999px;
}

.top-links a {
  padding: 8px 12px;
  color: var(--deep);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.top-links a:hover {
  background: #e8f3f1;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 5vw, 62px);
  align-items: end;
  min-height: clamp(620px, 76vh, 780px);
  padding: clamp(42px, 7vw, 84px);
  margin: 18px 0 26px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 32, 43, 0.9) 0%, rgba(5, 55, 70, 0.68) 42%, rgba(5, 55, 70, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 32, 43, 0.48), rgba(3, 32, 43, 0.08)),
    var(--hero-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(6, 56, 73, 0.24);
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: auto -8% -22% -8%;
  z-index: -1;
  height: 46%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.32), transparent 42%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px 34px);
  opacity: 0.5;
  transform: rotate(-2deg);
  animation: hero-tide 16s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 56, 73, 0.48));
  pointer-events: none;
}

@keyframes hero-tide {
  0%,
  100% {
    transform: translateX(-2%) rotate(-2deg);
  }
  50% {
    transform: translateX(2%) rotate(-2deg);
  }
}

.hero-copy {
  max-width: 740px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.45rem, 5.3vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pills span {
  padding: 8px 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.section-heading,
.quick-stats,
.toolbar,
.badge-row {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.icon-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active,
.bottom-nav a:active,
.bottom-nav button:active {
  transform: translateY(1px) scale(0.98);
}

.primary-button.is-loading,
.secondary-button.is-loading,
.danger-button.is-loading {
  position: relative;
  opacity: 0.82;
  cursor: progress;
}

.primary-button.is-loading::before,
.secondary-button.is-loading::before,
.danger-button.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 8px;
  vertical-align: -0.12em;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spin 0.72s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-button {
  padding: 13px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--sea));
  box-shadow: 0 16px 34px rgba(8, 117, 139, 0.3);
}

.hero-section .primary-button {
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-section .secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.secondary-button,
.ghost-button {
  padding: 13px 18px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(6, 56, 73, 0.08);
}

.text-button {
  color: var(--ocean);
  background: transparent;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #edf3f3;
}

.danger-button {
  padding: 13px 18px;
  color: #8c321f;
  background: #ffe0d2;
  border: 1px solid rgba(140, 50, 31, 0.18);
}

.auth-button.is-signed-in {
  color: var(--white);
  background: var(--deep);
  border-color: var(--deep);
}

.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notification-button {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.notification-button strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: var(--white);
  background: var(--safety);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
}

.coast-card {
  position: relative;
  align-self: end;
  min-height: 360px;
  overflow: hidden;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
    rgba(5, 55, 70, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.coast-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.26) 44%, transparent 54%),
    radial-gradient(circle at 76% 16%, rgba(255, 255, 255, 0.55), transparent 13%);
  opacity: 0.3;
  mix-blend-mode: soft-light;
  animation: light-sweep 8s ease-in-out infinite;
}

@keyframes light-sweep {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.56;
  }
  50% {
    transform: translateX(8%);
    opacity: 0.88;
  }
}

.wave-lines {
  position: absolute;
  inset: 32% 0 auto;
  z-index: 2;
  display: grid;
  gap: 15px;
  opacity: 0.58;
  transform: rotate(-4deg);
}

.wave-lines span {
  display: block;
  width: 140%;
  height: 16px;
  margin-left: -20%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0 20%, transparent 21%) 0 0 / 72px 18px repeat-x;
  animation: wave-slide 7s linear infinite;
}

.wave-lines span:nth-child(2) {
  opacity: 0.75;
  animation-duration: 9s;
  animation-direction: reverse;
}

.wave-lines span:nth-child(3) {
  opacity: 0.48;
  animation-duration: 12s;
}

@keyframes wave-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(72px);
  }
}

.app-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--deep), var(--ocean));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dash-greeting {
  display: grid;
  gap: 4px;
}

.dash-greeting span {
  opacity: 0.78;
  font-weight: 800;
}

.dash-greeting strong {
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.app-dashboard .secondary-button {
  background: rgba(255, 255, 255, 0.92);
}

.onboarding-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 28px;
  padding: 18px;
  color: var(--deep);
  background:
    radial-gradient(circle at 4% 0%, rgba(34, 185, 165, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 248, 246, 0.78));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.onboarding-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(3, 32, 43, 0.88), rgba(3, 32, 43, 0.44)),
    url("https://images.unsplash.com/photo-1484821582734-6c6c9f99a672?auto=format&fit=crop&w=1100&q=82") center / cover;
  border-radius: 16px;
}

.onboarding-copy .eyebrow,
.onboarding-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.onboarding-copy h2 {
  max-width: 520px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.onboarding-copy p {
  max-width: 560px;
  margin: 0;
  line-height: 1.55;
}

.launch-checklist {
  display: grid;
  gap: 10px;
}

.launch-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.07);
}

.launch-step > span,
.empty-state-mark {
  display: inline-grid;
  min-width: 48px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-step.is-done > span {
  background: linear-gradient(135deg, #0f6f55, var(--sea));
}

.launch-step strong,
.launch-step p {
  display: block;
  margin: 0;
}

.launch-step p {
  margin: 3px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.coast-sky,
.coast-sea,
.coast-shore {
  display: none;
}

.coast-sky {
  top: 0;
  height: 42%;
  background: linear-gradient(#bbe2e6, #e6f1ee);
}

.coast-sea {
  top: 34%;
  height: 38%;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    linear-gradient(135deg, #0f7387, #24a58e);
}

.coast-shore {
  bottom: 0;
  height: 36%;
  background: linear-gradient(160deg, var(--sand), #f6edda 54%, #d4bea0);
}

.coast-overlay {
  position: relative;
  z-index: 3;
  right: auto;
  bottom: auto;
  left: auto;
  padding: 18px;
  color: var(--white);
  background: rgba(6, 56, 73, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.coast-overlay span,
.coast-overlay small {
  display: block;
  opacity: 0.8;
}

.coast-overlay strong {
  display: block;
  margin: 6px 0;
  font-size: 1.25rem;
}

.live-stack {
  position: relative;
  z-index: 4;
  top: auto;
  right: auto;
  left: auto;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.live-stack article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(6, 56, 73, 0.16);
  backdrop-filter: blur(14px);
}

.live-stack strong,
.live-stack small {
  display: block;
}

.live-stack small {
  color: rgba(255, 255, 255, 0.72);
}

.live-dot {
  width: 12px;
  height: 12px;
  background: var(--safety);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(242, 122, 61, 0.16);
}

.live-dot.green {
  background: var(--sea);
  box-shadow: 0 0 0 6px rgba(34, 167, 143, 0.16);
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.experience-strip article {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.experience-strip span {
  width: fit-content;
  padding: 5px 8px;
  color: var(--white);
  background: var(--ocean);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.experience-strip strong {
  font-size: 1.08rem;
}

.experience-strip p {
  margin: 0;
  color: #455960;
  line-height: 1.5;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 28px;
}

.quick-stats article,
.report-card,
.side-panel,
.spot-card,
.trust-section,
.modal-card {
  background: var(--white);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  transform: translateZ(0);
  will-change: transform;
}

.category-card,
.crew-card,
.profile-panel,
.calendar-panel,
.day-plans,
.map-panel {
  transform: translateZ(0);
  will-change: transform;
}

.quick-stats article {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 250, 248, 0.82));
}

.quick-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--deep);
}

.quick-stats span {
  color: var(--muted);
}

.home-preview,
.reports-section {
  padding: 38px 0 18px;
}

.reports-section,
.crew-section,
.spots-section {
  position: relative;
}

.reports-section > .section-heading:first-child,
.crew-section > .section-heading:first-child,
.spots-section > .section-heading:first-child {
  position: relative;
  min-height: 230px;
  align-items: end;
  overflow: hidden;
  padding: clamp(24px, 5vw, 42px);
  margin-bottom: 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 32, 43, 0.9), rgba(3, 32, 43, 0.48) 58%, rgba(3, 32, 43, 0.18)),
    linear-gradient(180deg, transparent 42%, rgba(3, 32, 43, 0.5)),
    var(--section-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.reports-section > .section-heading:first-child::before,
.crew-section > .section-heading:first-child::before,
.spots-section > .section-heading:first-child::before {
  content: "";
  position: absolute;
  inset: auto -8% -48px -8%;
  z-index: -1;
  height: 120px;
  background:
    radial-gradient(ellipse at 35% 20%, rgba(255, 255, 255, 0.28), transparent 46%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px 32px);
  opacity: 0.55;
  animation: hero-tide 18s ease-in-out infinite;
}

.reports-section > .section-heading:first-child {
  --section-image: var(--reports-image);
}

.crew-section > .section-heading:first-child {
  --section-image: var(--crew-image);
}

.spots-section > .section-heading:first-child {
  --section-image: var(--spots-image);
}

.reports-section > .section-heading:first-child h2,
.crew-section > .section-heading:first-child h2,
.spots-section > .section-heading:first-child h2 {
  max-width: 680px;
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.reports-section > .section-heading:first-child .eyebrow,
.crew-section > .section-heading:first-child .eyebrow,
.spots-section > .section-heading:first-child .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.reports-section > .section-heading:first-child .primary-button,
.crew-section > .section-heading:first-child .primary-button,
.spots-section > .section-heading:first-child .primary-button {
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 230px;
  padding: 20px;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(5, 34, 44, 0.04) 0%, rgba(5, 34, 44, 0.76) 82%),
    var(--category-image),
    linear-gradient(145deg, var(--ocean), var(--sea));
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(180deg, transparent 42%, rgba(3, 32, 43, 0.4));
}

.category-card:nth-child(1) {
  --category-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.category-card:nth-child(2) {
  --category-image: url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=900&q=80");
}

.category-card:nth-child(3) {
  --category-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=80");
}

.category-card:nth-child(4) {
  --category-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80");
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(6, 56, 73, 0.14);
}

.category-card span {
  width: fit-content;
  padding: 5px 8px;
  color: var(--white);
  background: var(--ocean);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card strong {
  max-width: 210px;
  font-size: 1.16rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.category-card p {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.toolbar {
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -8px 0 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box span {
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-tools small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.filter-pill.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-color: var(--deep);
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.18);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.content-grid.reports-only {
  grid-template-columns: minmax(0, 1fr);
}

.main-feed {
  padding: clamp(16px, 3vw, 24px);
  background:
    radial-gradient(circle at 4% 0%, rgba(34, 185, 165, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 250, 248, 0.72));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading.tight {
  margin-bottom: 12px;
}

.report-feed,
.crew-list,
.spot-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 248, 0.86));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--deep);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.empty-state p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.report-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 251, 0.94));
  border-color: rgba(16, 33, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-report {
  display: grid;
}

.report-card:hover,
.crew-card:hover,
.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(6, 56, 73, 0.14);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 12px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--deep), var(--ocean));
  background-position: center;
  background-size: cover;
  border-radius: 999px;
  font-weight: 900;
}

.avatar.has-photo {
  color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(6, 56, 73, 0.16);
}

.report-header strong,
.report-header span {
  display: block;
}

.report-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.member-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  padding: 0;
  color: var(--deep);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.member-button:hover {
  color: var(--ocean);
}

.member-button span:last-child {
  color: inherit;
  font-size: 0.9rem;
}

.compact-member .avatar,
.chip-member .avatar,
.chat-member .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}

.chat-member {
  gap: 6px;
}

.chat-member .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
}

.chat-member span:last-child {
  font-size: 0.78rem;
}

.chip-member {
  min-height: 34px;
  padding: 4px 9px 4px 4px;
  color: var(--white);
  background: var(--deep);
}

.chip-member span:last-child {
  color: var(--white);
}

.report-image {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(8, 117, 139, 0.08), rgba(34, 185, 165, 0.08)),
    var(--image, linear-gradient(135deg, #2f8192, #e8d8bd));
  background-size: cover;
  background-position: center;
}

.report-body,
.crew-card,
.spot-card,
.side-panel,
.trust-section {
  padding: 18px;
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.report-actions button {
  min-height: 36px;
  color: var(--deep);
  background: linear-gradient(180deg, #f7fffd, #eaf7f5);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.report-actions button:hover {
  background: #dff4ef;
}

.report-actions button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.16);
}

.report-comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.1), transparent 34%),
    #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-comment-list {
  display: grid;
  gap: 8px;
}

.report-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 9px;
  background: var(--white);
  border: 1px solid rgba(16, 33, 42, 0.06);
  border-radius: 12px;
}

.report-comment p,
.report-comment small,
.comment-empty {
  margin: 0;
}

.report-comment p {
  color: var(--ink);
  line-height: 1.4;
}

.report-comment small,
.comment-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.report-comment-form input {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row {
  color: var(--muted);
  font-size: 0.86rem;
}

.report-body h3,
.crew-card h3,
.spot-card h3 {
  margin: 8px 0;
}

.report-body p,
.crew-card p,
.spot-card p,
.trust-section p {
  color: #455960;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--deep);
  background: #e9f7f4;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.condition-good {
  color: #0f5d3b;
  background: #daf4e5;
}

.condition-pumping,
.condition-clean,
.condition-clear-visibility {
  color: #075a6b;
  background: #d8f3f5;
}

.condition-okay {
  color: #79610a;
  background: #f5e9b7;
}

.condition-messy,
.condition-flat,
.condition-windy,
.condition-poor-visibility,
.condition-strong-current,
.condition-boats-around,
.condition-choppy,
.condition-gusty,
.condition-crowded,
.condition-rough {
  color: #77510e;
  background: #f7e2ba;
}

.condition-calm,
.condition-quiet {
  color: #0f5d3b;
  background: #daf4e5;
}

.condition-bad,
.condition-unsafe {
  color: #8c321f;
  background: #ffe0d2;
}

.status-open {
  color: #0f5d3b;
  background: #daf4e5;
}

.status-full {
  color: #77510e;
  background: #f7e2ba;
}

.status-needs-update {
  color: #075a6b;
  background: #d8f3f5;
}

.status-cancelled,
.attendance-no-show {
  color: #8c321f;
  background: #ffe0d2;
}

.status-completed,
.attendance-showed {
  color: #0f5d3b;
  background: #daf4e5;
}

.attendance-pending {
  color: var(--muted);
  background: #edf3f3;
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 88px;
}

.crew-card {
  display: grid;
  gap: 11px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 252, 250, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crew-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.crew-details span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.84rem;
}

.crew-details strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.participant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safety-strip {
  display: grid;
  gap: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 138, 76, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 138, 76, 0.2);
  border-radius: 14px;
}

.safety-strip strong {
  color: var(--deep);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.safety-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.safety-strip span {
  padding: 6px 9px;
  color: #7a3d18;
  background: #fff0e7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.concern-button {
  color: #8c321f;
  background: transparent;
}

.share-button {
  color: var(--ocean);
}

.share-button:hover {
  color: var(--deep);
  background: #e9f7f4;
}

.concern-button:hover {
  color: #6f2515;
  background: #fff0e7;
}

.join-button {
  justify-self: start;
}

.join-button.is-joined {
  color: var(--white);
  background: var(--sea);
  border-color: var(--sea);
}

.join-button.is-host {
  color: var(--deep);
  background: #e8f3f1;
  opacity: 1;
  cursor: default;
}

.join-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.attendance-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(210px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.attendance-actions button {
  padding: 8px 10px;
}

.group-chat {
  display: grid;
  gap: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 185, 165, 0.12), transparent 38%),
    #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.group-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-chat-header span,
.chat-locked {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-author-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.chat-author-row > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-messages {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.chat-message {
  display: grid;
  gap: 3px;
  max-width: 92%;
  justify-self: start;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid rgba(16, 33, 42, 0.06);
  border-radius: 14px;
}

.chat-message.is-you {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--sea));
  border-color: transparent;
}

.chat-message.is-you .member-button,
.chat-message.is-you .chat-author-row > span,
.chat-message.is-you p {
  color: var(--white);
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-compose input {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.chat-locked {
  margin: 0;
  padding: 10px;
  background: #f7fbfa;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.crew-section,
.spots-section {
  padding: 58px 0 22px;
}

.crew-planner {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px;
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 185, 165, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(239, 250, 248, 0.74));
  border: 1px solid rgba(16, 33, 42, 0.07);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.calendar-panel,
.day-plans {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 248, 0.88));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.calendar-panel::before,
.day-plans::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--sea), var(--ocean));
}

.calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.calendar-header strong {
  font-size: 1.25rem;
}

.calendar-header span {
  max-width: 190px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 7px 4px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.calendar-day:not(.empty):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 56, 73, 0.12);
}

.calendar-day.empty {
  background: transparent;
  border-color: transparent;
}

.calendar-day small {
  color: var(--safety);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.calendar-day.has-plan {
  background: #e9fbf7;
  border-color: rgba(34, 185, 165, 0.5);
  box-shadow: inset 0 -4px 0 var(--sea), 0 8px 18px rgba(34, 185, 165, 0.12);
}

.calendar-day.selected {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(8, 117, 139, 0.28);
}

.calendar-day.selected small {
  color: #ffd7c4;
}

.crew-card-large {
  background: var(--white);
}

.time-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 8px;
  color: #075a6b;
  background: #d8f3f5;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.empty-plan {
  background: #f7fbfa;
}

.spots-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(34, 185, 165, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(239, 250, 248, 0.74));
  border: 1px solid rgba(16, 33, 42, 0.07);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.map-panel {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 460px;
  min-height: 460px;
  overflow: hidden;
  background: #c9d8c8;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 24px 52px rgba(6, 56, 73, 0.16);
}

.leaflet-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: inherit;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
}

.leaflet-marker-icon {
  display: block;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-control-container .leaflet-top {
  top: 10px;
}

.leaflet-control-container .leaflet-bottom {
  bottom: 10px;
}

.leaflet-control-container .leaflet-left {
  left: 10px;
}

.leaflet-control-container .leaflet-right {
  right: 10px;
}

.leaflet-control {
  pointer-events: auto;
}

.leaflet-control-zoom {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(6, 56, 73, 0.14);
}

.leaflet-control-zoom a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--deep);
  text-decoration: none;
  font-weight: 900;
}

.leaflet-control-attribution {
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  font-size: 0.68rem;
}

.spot-map-marker {
  display: grid;
  place-items: center;
  color: var(--white);
  background: transparent;
}

.spot-map-marker span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(6, 56, 73, 0.22);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  color: var(--ink);
  line-height: 1.5;
}

.spot-card {
  display: grid;
  gap: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 252, 250, 0.92));
}

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

.spot-card button,
.spot-actions button {
  justify-self: start;
}

.trust-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 26px;
  align-items: center;
  margin: 32px 0 48px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(3, 32, 43, 0.9), rgba(3, 32, 43, 0.58) 58%, rgba(3, 32, 43, 0.3)),
    linear-gradient(180deg, transparent 48%, rgba(3, 32, 43, 0.58)),
    var(--profile-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.trust-section::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -12%;
  z-index: -1;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 185, 165, 0.32), transparent 68%);
  border-radius: 50%;
}

.trust-section h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.trust-section .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.trust-section > div:first-child p {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.badge-row {
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row span {
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.profile-card strong,
.profile-card p {
  display: block;
  margin: 0;
}

.profile-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-dashboard {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.profile-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.profile-save-message {
  padding: 12px 14px;
  color: #0f5d3b;
  background: #daf4e5;
  border: 1px solid rgba(15, 93, 59, 0.16);
  border-radius: 14px;
  font-weight: 900;
}

.profile-panel h3,
.profile-panel p {
  margin: 0;
}

.profile-panel h3 {
  color: var(--deep);
  font-size: 1.22rem;
}

.profile-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.profile-cta,
.profile-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 2rem;
}

.progress-ring {
  display: grid;
  width: 98px;
  aspect-ratio: 1;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--white) 0 57%, transparent 61%),
    conic-gradient(var(--ocean) var(--progress), #dcebe8 0);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 42, 0.06);
}

.progress-ring span {
  color: var(--deep);
  font-weight: 900;
}

.profile-detail-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 14px;
}

.profile-detail-list span {
  color: var(--muted);
  font-weight: 800;
}

.profile-detail-list strong {
  color: var(--deep);
  overflow-wrap: anywhere;
}

.sport-level-list {
  display: grid;
  gap: 7px;
}

.sport-level-list span {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  color: var(--deep);
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-level-list strong,
.sport-level-list em {
  margin: 0;
  font-style: normal;
}

.sport-level-list strong {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.muted-value {
  color: var(--muted);
}

.profile-edit-form {
  display: grid;
  gap: 13px;
}

.profile-photo-row,
.profile-form-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

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

.sport-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.profile-photo-large {
  width: 74px;
  height: 74px;
  font-size: 1.35rem;
}

.profile-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.member-profile-hero strong,
.member-profile-hero p {
  display: block;
  margin: 0;
}

.member-profile-hero strong {
  color: var(--deep);
  font-size: 1.22rem;
}

.member-profile-hero p {
  margin: 3px 0 10px;
  color: var(--muted);
}

.user-profile-modal-card {
  gap: 14px;
}

.notifications-modal-card {
  gap: 14px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: min(540px, 62vh);
  overflow-y: auto;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.notification-card.is-unread {
  background: #fff7f0;
  border-color: rgba(242, 122, 61, 0.34);
  box-shadow: inset 4px 0 0 var(--safety);
}

.notification-icon {
  display: grid;
  min-width: 46px;
  min-height: 32px;
  place-items: center;
  padding: 4px 8px;
  color: var(--white);
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.notification-card strong,
.notification-card p,
.notification-card small {
  display: block;
  margin: 0;
}

.notification-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.notification-card small {
  color: var(--muted);
  font-weight: 800;
}

.empty-notification {
  grid-template-columns: 1fr;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--deep);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.top-links a.is-active,
.bottom-nav a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.18);
}

.action-menu {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 31;
  display: none;
  width: min(240px, calc(100vw - 36px));
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.action-menu.is-open {
  display: grid;
  gap: 6px;
}

.action-menu button {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--deep);
  text-align: left;
  background: #f7fbfa;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.bottom-nav button {
  color: var(--white);
  background: var(--ocean);
  font-size: 1.3rem;
}

.toast-dock {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.toast-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  color: var(--deep);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 185, 165, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--ocean);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(6, 56, 73, 0.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-card.is-leaving {
  opacity: 0;
  transform: translateX(18px);
}

.toast-warning {
  border-left-color: var(--safety);
}

.toast-profile,
.toast-crew,
.toast-report,
.toast-spot {
  border-left-color: var(--sea);
}

.toast-icon {
  display: inline-grid;
  min-width: 46px;
  height: 32px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, #8c321f, var(--safety));
}

.toast-card strong,
.toast-card p {
  display: block;
  margin: 0;
}

.toast-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.toast-card .icon-button {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

.modal {
  width: min(560px, calc(100% - 26px));
  padding: 0;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(6, 22, 29, 0.52);
  backdrop-filter: blur(4px);
}

.modal-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 249, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.modal-card > .section-heading:first-child {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 33, 42, 0.08);
}

.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

.modal-card label.is-hidden {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.modal-helper {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.file-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.08);
}

.file-preview-thumb {
  width: 58px;
  height: 58px;
  background:
    linear-gradient(135deg, rgba(8, 117, 139, 0.14), rgba(34, 185, 165, 0.14)),
    var(--preview-image, linear-gradient(135deg, var(--ocean), var(--sea)));
  background-position: center;
  background-size: cover;
  border: 2px solid var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(6, 56, 73, 0.14);
}

.file-preview strong,
.file-preview span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-preview span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.safety-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 138, 76, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 138, 76, 0.2);
  border-radius: 14px;
}

.safety-card legend {
  padding: 0 6px;
  color: var(--deep);
  font-weight: 900;
}

.safety-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ocean);
}

.check-row span {
  color: var(--deep);
  font-weight: 800;
  line-height: 1.4;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus,
.profile-edit-form input:focus,
.profile-edit-form select:focus,
.profile-edit-form textarea:focus,
.chat-compose input:focus {
  border-color: rgba(34, 185, 165, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 185, 165, 0.14);
  outline: 0;
}

@media (max-width: 900px) {
  .top-links {
    display: none;
  }

  .topbar .ghost-button {
    display: none;
  }

  .topbar .auth-button,
  .topbar .login-button,
  .topbar .notification-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .account-actions {
    margin-left: auto;
  }

  .brand small {
    display: none;
  }

  .hero-section,
  .content-grid,
  .crew-planner,
  .spots-layout,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 720px;
    padding: 34px 20px 22px;
    margin-top: 10px;
    border-radius: 18px;
    align-items: end;
    background-position: 58% center;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .reports-section > .section-heading:first-child,
  .crew-section > .section-heading:first-child,
  .spots-section > .section-heading:first-child {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 280px;
    padding: 24px 20px;
  }

  .reports-section > .section-heading:first-child .primary-button,
  .crew-section > .section-heading:first-child .primary-button,
  .spots-section > .section-heading:first-child .primary-button {
    width: 100%;
    justify-content: center;
  }

  .search-tools {
    grid-template-columns: 1fr;
  }

  .search-tools .text-button {
    justify-self: start;
  }

  .coast-card {
    min-height: auto;
    padding: 14px;
  }

  .app-dashboard {
    grid-template-columns: 1fr;
  }

  .onboarding-panel {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 18px;
  }

  .onboarding-copy {
    min-height: 240px;
    padding: 18px;
  }

  .experience-strip {
    grid-template-columns: 1fr;
  }

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

  .category-card {
    min-height: 150px;
    padding: 14px;
  }

  .profile-cta,
  .profile-progress,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .crew-planner,
  .spots-layout {
    padding: 10px;
    border-radius: 18px;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions button {
    flex: 1 1 120px;
  }

  .profile-detail-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .sport-level-list span {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .profile-photo-row,
  .profile-form-grid,
  .sport-level-grid,
  .member-profile-hero {
    grid-template-columns: 1fr;
  }

  .notification-card {
    grid-template-columns: 1fr;
  }

  .attendance-row {
    grid-template-columns: 1fr;
  }

  .attendance-actions {
    justify-content: stretch;
  }

  .attendance-actions button {
    flex: 1 1 120px;
  }

  .notification-card .text-button {
    justify-self: start;
  }

  .quick-actions {
    justify-content: stretch;
  }

  .quick-actions button {
    flex: 1 1 140px;
  }

  .map-panel {
    min-height: 340px;
  }

  .side-panel {
    position: static;
  }

  .bottom-nav {
    display: grid;
    gap: 5px;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-height: 40px;
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  .toast-dock {
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .quick-stats,
  .report-card {
    grid-template-columns: 1fr;
  }

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

  .empty-state,
  .launch-step,
  .toast-card,
  .report-comment,
  .report-comment-form {
    grid-template-columns: 1fr;
  }

  .toast-card .icon-button {
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .quick-stats article {
    padding: 14px;
  }

  .report-image {
    min-height: 220px;
  }

  .crew-details {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .muted {
    display: none;
  }
}

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