/* ============================================================
   SWELLNOTES — Coastal Editorial
   ============================================================ */

:root {
  --ocean-deep: #041428;
  --ocean-dark: #0a2240;
  --ocean-mid: #103560;
  --ocean-surface: #1a4a7a;
  --foam: #e8f4f8;
  --sand: #f8f0e3;
  --sand-warm: #fff8ef;
  --teal: #1a73e8;
  --teal-glow: #4a9af5;
  --cyan: #38bdf8;
  --coral: #ff5757;
  --gold: #fbbf24;
  --text: #0f1729;
  --text-soft: #4a5568;
  --text-muted: #8896a8;
  --bg: #f4f7fa;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.85);
  --glass-dark: rgba(9,26,47,0.75);
  --r: 16px;
  --shadow: 0 4px 24px rgba(4,13,26,0.08);
  --shadow-lg: 0 12px 48px rgba(4,13,26,0.14);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

/* ---- LANDING PAGE ---- */
.landing-page {
  height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
}
.landing-bg {
  position: absolute; inset: 0;
  background: #041428;
}
.landing-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.landing-video-mobile { display: none; }
.landing-video-desktop { display: block; }
@media (max-width: 768px) {
  .landing-video-mobile { display: block; }
  .landing-video-desktop { display: none; }
}
@media (orientation: portrait) {
  .landing-video-mobile { display: block; }
  .landing-video-desktop { display: none; }
}
.landing-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(4,20,40,0.35) 0%,
    rgba(4,20,40,0.1) 25%,
    rgba(4,20,40,0.05) 50%,
    rgba(4,20,40,0.3) 75%,
    rgba(4,20,40,0.6) 100%);
}
.landing-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px; padding: 0 1.75rem;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  height: 100%;
}
.landing-top { padding-top: 9vh; margin-bottom: auto; }
.landing-logo-corner {
  position: absolute; top: env(safe-area-inset-top, 12px); left: 16px;
  margin-top: 12px;
  height: 44px; width: 44px; object-fit: cover;
  border-radius: 11px; z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.landing-title {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 400;
  color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 0.25rem;
}
.landing-sub {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
}
.landing-form-area { width: 100%; padding-bottom: 12vh; }
.landing-avatar-row {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.landing-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.15); border: 2px dashed rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s;
  overflow: hidden;
}
.landing-avatar:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.landing-avatar img { width: 100%; height: 100%; object-fit: cover; }
.landing-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 12px;
  padding: 0.7rem 1rem; font-size: 0.95rem; font-family: var(--font-body);
  color: #fff; outline: none; transition: all 0.2s;
}
.landing-input::placeholder { color: rgba(255,255,255,0.5); }
.landing-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }
.landing-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.8rem 1rem; border-radius: 12px;
  font: 700 0.95rem var(--font-body); cursor: pointer;
  border: none; transition: all 0.2s;
}
.landing-btn-create {
  background: #fff; color: var(--ocean-deep);
}
.landing-btn-create:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.landing-btn-create .landing-arrow { font-size: 1.1rem; }
.landing-btn-primal {
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; border: 1px solid rgba(255,255,255,0.15);
}
.landing-btn-primal:hover { background: rgba(0,0,0,0.65); transform: translateY(-1px); }
.landing-btn-primal .btn-icon { width: 20px; height: 20px; border-radius: 4px; }
.landing-divider {
  height: 1px; margin: 0.85rem 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- HEADER ---- */
header {
  background: var(--ocean-deep);
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; height: 60px; }

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 28px; width: 28px; object-fit: cover; border-radius: 6px; }
.logo-icon { width: 28px; height: 28px; border-radius: 6px; }
.logo-text { font-family: var(--font-body); font-size: 1.15rem; color: white; letter-spacing: -0.01em; font-weight: 300; display: none; }

nav { display: flex; gap: 2px; flex: 1; }
.nav-btn {
  background: none; border: none; color: rgba(255,255,255,0.45);
  padding: 0.45rem 0.9rem; border-radius: 8px; cursor: pointer;
  font: 500 0.85rem var(--font-body); transition: all 0.2s; text-decoration: none;
}
.nav-btn:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }
.nav-btn.active { color: white; background: rgba(26,115,232,0.2); }
.nav-ext { margin-left: auto; }

.auth-section { flex-shrink: 0; display: flex; gap: 0.5rem; align-items: center; }
#auth-buttons { display: flex; gap: 0.5rem; align-items: center; }

.btn-glass {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); color: white;
  padding: 0.4rem 1rem; border-radius: 8px; font: 600 0.82rem var(--font-body);
  cursor: pointer; transition: all 0.2s;
}
.btn-glass:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.2); }
.btn-icon { width: 18px; height: 18px; border-radius: 4px; }

.btn-outline {
  background: none; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6);
  padding: 0.4rem 0.9rem; border-radius: 8px; font: 500 0.82rem var(--font-body);
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.78rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.72rem; border-color: #d1d5db; color: var(--text-muted); }
.btn-xs:hover { border-color: var(--coral); color: var(--coral); }

.btn-solid {
  background: var(--teal); color: var(--ocean-deep); border: none;
  padding: 0.55rem 1.2rem; border-radius: 10px; font: 700 0.9rem var(--font-body);
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
}
.btn-solid:hover { background: var(--teal-glow); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(26,115,232,0.3); }
.btn-solid:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; padding: 0.75rem; margin-top: 0.75rem; }

.btn-primal-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #111; color: white; border: none;
  padding: 0.55rem 1.2rem; border-radius: 10px; font: 700 0.9rem var(--font-body);
  cursor: pointer; transition: all 0.2s;
}
.btn-primal-dark:hover { background: #222; transform: translateY(-1px); }
.btn-primal-dark .btn-icon { width: 20px; height: 20px; border-radius: 4px; }

.user-pill { display: flex; align-items: center; gap: 0.5rem; }
.user-avatar-sm { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
#user-name { color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600; }
#user-info { display: flex; align-items: center; gap: 0.75rem; }
.hidden { display: none !important; }

/* ---- HERO ---- */
.hero { position: relative; height: 320px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: brightness(0.7) saturate(1.1); }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,13,26,0.3) 0%, rgba(4,13,26,0.1) 40%, rgba(244,247,250,1) 100%);
}
.hero-content { position: absolute; bottom: 2.5rem; left: 0; right: 0; text-align: center; }
.hero-title { font: 3rem var(--font-display); color: var(--ocean-deep); letter-spacing: -0.02em; line-height: 1; }
.hero-sub { font: 400 1rem var(--font-body); color: var(--text-soft); margin-top: 0.4rem; }
.hero-cover-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.55); color: white; border: none; border-radius: 8px;
  padding: 0.4rem 0.7rem; font: 600 0.8rem var(--font-body); cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero-cover-btn:active { background: rgba(0,0,0,0.75); }

/* ---- MAIN ---- */
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.view { display: none; } .view.active { display: block; }

/* ---- CARDS ---- */
.card { background: var(--card); border-radius: var(--r); padding: 1.75rem; box-shadow: var(--shadow); }
.card-form { max-width: 680px; margin: 0 auto; }
.card-header { margin-bottom: 1.25rem; }
.card-header h2 { font-family: var(--font-display); font-size: 1.6rem; }

h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-family: var(--font-display); font-size: 1.15rem; }
.muted { color: var(--text-muted); font-size: 0.85rem; }

/* ---- FORM ---- */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #000; margin: 1.25rem 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 1px solid #ddd; }

input, select, textarea {
  padding: 0.55rem 0.75rem; border: 1.5px solid #dde3eb; border-radius: 10px;
  font: 400 0.92rem var(--font-body); background: white; transition: all 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,170,0.12); }
textarea { resize: vertical; }

/* ---- CONDITIONS PANEL ---- */
.conditions-panel {
  background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-mid) 100%);
  border-radius: 14px; padding: 1rem 1.25rem; margin: 0.75rem 0; color: white;
  border: 1px solid rgba(255,255,255,0.06);
}
.cond-loading { text-align: center; padding: 1rem; color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.cond-block h4 { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 0.2rem; }
.cond-val { font-size: 1.3rem; font-weight: 700; }
.cond-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }
.swells-list { display: flex; flex-direction: column; gap: 0.3rem; }
.swell-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; }
.swell-compass {
  width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.4rem; font-weight: 800; flex-shrink: 0;
}
.swell-detail { font-weight: 600; font-size: 0.7rem; }
.swell-meta { font-size: 0.55rem; color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); padding: 0.1rem 0.3rem; border-radius: 3px; }

/* ---- WAVE SHAPE TABS ---- */
.shape-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.shape-tab {
  padding: 0.4rem 0.6rem; border: 1.5px solid #dde3eb; border-radius: 8px;
  background: white; font: 600 0.75rem var(--font-body); color: var(--text-soft);
  cursor: pointer; transition: all 0.15s; text-align: center; white-space: nowrap;
}
.shape-tab:hover { border-color: #999; }
.shape-tab.active { border-color: #000; background: #000; color: #fff; }

/* ---- RATING ---- */
.rating-row { display: flex; align-items: center; gap: 1rem; }
.rating-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px; background: #e2e8f0; outline: none; border: none; padding: 0;
}
.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: #000; cursor: pointer; border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.rating-num {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 800 1.3rem var(--font-body); flex-shrink: 0; background: #fff; color: #000; border: 3px solid #cbd5e1;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rating-num.pulse { animation: ratingPulse 0.3s ease; }
@keyframes ratingPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.rating-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- MEDIA ROW ---- */
.media-row { display: flex; gap: 0.5rem; }
.media-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem; border: 1.5px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font: 500 0.85rem var(--font-body);
  color: #333; transition: all 0.15s;
}
.media-btn:active { background: #f5f5f5; }
.media-btn.recording { border-color: var(--coral); border-style: solid; background: #fff5f5; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.media-btn.recording .rec-dot { animation: pulse 1s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.rec-status { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.82rem; color: var(--coral); font-weight: 600; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 1s ease infinite; }
.playback { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.5rem; background: #f8fafc; border-radius: 10px; }
.playback audio { flex: 1; height: 32px; }
.transcript { background: var(--sand); padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.85rem; font-style: italic; color: var(--text-soft); margin-top: 0.4rem; }
.transcript.listening { border: 2px solid var(--coral); background: #fff5f5; }

.video-thumb { width: 100%; max-height: 200px; border-radius: 10px; margin-top: 0.5rem; background: black; }
#video-preview { margin-top: 0.5rem; }

/* ---- FEED ---- */
.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.filters { display: flex; gap: 0.4rem; }
.filters select, .filters input { padding: 0.35rem 0.5rem; font-size: 0.82rem; border-radius: 8px; }
.feed-filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.feed-filters select { padding: 0.4rem 0.6rem; font-size: 0.82rem; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; }
.feed-list { display: flex; flex-direction: column; gap: 0.6rem; }

.feed-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: start;
  padding: 0.85rem 1rem; border-bottom: 1px solid #eee;
  cursor: pointer; transition: background 0.15s;
}
.feed-card:last-child { border-bottom: none; }
.feed-card:active { background: #f9f9f9; }

.feed-date { text-align: center; min-width: 36px; }
.feed-date .day { font: 800 1.3rem var(--font-body); color: #000; line-height: 1; }
.feed-date .mo { font-size: 0.6rem; color: #999; text-transform: uppercase; letter-spacing: 0.05em; }

.feed-body { min-width: 0; }
.feed-user { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem; }
.feed-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.feed-avatar-placeholder { width: 20px; height: 20px; border-radius: 50%; background: #222; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.5rem; font-weight: 800; flex-shrink: 0; }
.feed-name { font-weight: 600; font-size: 0.85rem; color: #000; }
.feed-tod { color: #aaa; font-size: 0.75rem; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.2rem; }

.tag { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.65rem; font-weight: 600; }
.tag-swell { background: #f5f5f5; color: #333; }
.tag-height { background: #f5f5f5; color: #333; }
.tag-wind { background: #f5f5f5; color: #333; }
.tag-video { background: #f0f0f0; color: #555; }
.tag-voice { background: #f0f0f0; color: #555; }
.tag-shape { background: #f5f5f5; color: #333; }
.tag-barrel { background: #000; color: #fff; }
.tag-observed { background: #f5f5f5; color: #888; }

.feed-video-thumb { position: relative; margin-top: 0.4rem; border-radius: 8px; overflow: hidden; max-height: 200px; background: #000; }
.feed-video-thumb video { width: 100%; display: block; border-radius: 8px; max-height: 200px; object-fit: cover; background: #000; }
.feed-video-thumb .feed-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; padding-left: 3px; pointer-events: none;
  backdrop-filter: blur(2px);
}

.feed-rating { text-align: center; }
.rbadge {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 0.95rem var(--font-body);
  background: #fff; color: #000; border: 2.5px solid #ddd;
}
.r-low { border-color: #ccc; color: #999; }
.r-mid { border-color: #999; }
.r-high { border-color: #333; }
.r-epic { border-color: #000; background: #000; color: #fff; }

.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ---- SURFERS ---- */
.surfers-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.surfer-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border: 1px solid #e8ecf1; border-radius: 12px; transition: all 0.15s;
}
.surfer-card:hover { border-color: var(--cyan); }
.surfer-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #e8ecf1; }
.surfer-av-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-dark), var(--ocean-surface));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.surfer-info { flex: 1; }
.surfer-name { font-weight: 600; font-size: 0.95rem; }
.surfer-meta { font-size: 0.78rem; color: var(--text-muted); }
.btn-follow {
  padding: 0.3rem 0.9rem; border-radius: 8px; font: 600 0.78rem var(--font-body);
  cursor: pointer; transition: all 0.15s; border: 2px solid var(--teal); background: var(--teal); color: var(--ocean-deep);
}
.btn-follow:hover { background: var(--teal-glow); }
.btn-follow.following { background: transparent; color: var(--teal); }
.btn-follow.following:hover { background: #fee2e2; color: var(--coral); border-color: var(--coral); }
.btn-follow.is-you { background: transparent; color: var(--text-muted); border-color: #e8ecf1; cursor: default; }

/* ---- MODAL ---- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,13,26,0.6); backdrop-filter: blur(8px); }
.modal-content {
  position: relative; background: var(--card); border-radius: 20px; padding: 2rem;
  box-shadow: var(--shadow-lg); max-height: 85vh; overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-sm { max-width: 400px; width: 100%; text-align: center; }
.modal-lg { max-width: 700px; width: 100%; }
.modal-close { position: absolute; top: 0.75rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 0.75rem; }
.modal-sub { color: var(--text-muted); font-size: 0.85rem; margin: 0.25rem 0 1.25rem; }
.modal-loading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; }
.spinner { width: 24px; height: 24px; border: 3px solid #e2e8f0; border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-code { width: 220px; height: 220px; border-radius: 12px; margin: 0 auto; display: block; }
.pulse-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }
.check-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin: 0.75rem 0; }
.modal-success { color: var(--teal); font-weight: 700; font-size: 1.1rem; }
.modal-divider { height: 1px; background: #e8ecf1; margin: 1.25rem 0; }
.modal-footer-text { font-size: 0.82rem; color: var(--text-muted); }
.modal-footer-text a, .link-btn { color: var(--teal); text-decoration: none; font-weight: 600; background: none; border: none; cursor: pointer; font-size: inherit; font-family: inherit; }

/* Avatar upload */
.avatar-upload { margin-bottom: 1rem; }
.avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  background: var(--foam); border: 2px dashed #c8d3e0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--text-muted); font-size: 0.65rem; cursor: pointer; transition: all 0.2s;
  overflow: hidden;
}
.avatar-placeholder:hover { border-color: var(--teal); color: var(--teal); }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* ---- DETAIL ---- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.detail-block h4 { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.15rem; }
.detail-block p { font-size: 1rem; font-weight: 600; }
.detail-notes { background: var(--sand); padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.9rem; line-height: 1.5; margin: 0.75rem 0; }
.detail-voice { margin: 0.75rem 0; }
.detail-voice audio { width: 100%; height: 36px; }
.detail-transcript { background: var(--sand); padding: 0.5rem 0.75rem; border-radius: 8px; font-style: italic; font-size: 0.85rem; margin-top: 0.4rem; }
.detail-video { margin: 0.75rem 0; }
.detail-video video { width: 100%; border-radius: 12px; max-height: 360px; }

.comment-row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.comment-row textarea { flex: 1; }
#comments-section { margin-top: 1.25rem; border-top: 1px solid #e8ecf1; padding-top: 1rem; }
.comment { padding: 0.6rem; border-left: 3px solid var(--teal); margin-bottom: 0.5rem; background: #f8fafc; border-radius: 0 8px 8px 0; }
.comment-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.comment-body { font-size: 0.85rem; line-height: 1.4; }

/* ---- SPOT PICKER ---- */
.spot-picker {
  position: fixed; inset: 0; z-index: 50;
  background: linear-gradient(160deg, #0a2240 0%, #103560 30%, #1a5a8a 60%, #1a73e8 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow-y: auto; padding: 2rem 1.5rem;
}
.spot-picker::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/wave-bg.jpg') center bottom / cover no-repeat;
  opacity: 0.15;
}
.spot-picker .card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  max-width: 420px; width: 100%;
}
.spot-picker .card h2 { color: #fff; }
.spot-picker .card .muted { color: rgba(255,255,255,0.6); }
.spot-picker .card .section-label { color: rgba(255,255,255,0.5); }
.spot-picker .card input[type="text"] {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.spot-picker .card input[type="text"]::placeholder { color: rgba(255,255,255,0.4); }
.spot-picker .card input[type="text"]:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); }
.spot-picker .spot-result {
  border-color: rgba(255,255,255,0.15); color: #fff;
}
.spot-picker .spot-result:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); }
.spot-picker .spot-result-name { color: #fff; }
.spot-picker .spot-result-loc { color: rgba(255,255,255,0.5); }
.spot-picker-auth { text-align: center; margin-bottom: 0.5rem; }
.spot-picker-btns { max-width: 300px; margin: 0 auto; }
.spot-picker-logo {
  position: relative; z-index: 1;
  height: 64px; width: 64px; object-fit: cover; margin-bottom: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.spot-results { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.spot-result {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border: 1px solid #e8ecf1; border-radius: 12px; cursor: pointer; transition: all 0.15s;
}
.spot-result:hover { border-color: var(--teal); background: #f0fdf9; }
.spot-result-name { font-weight: 600; font-size: 0.95rem; }
.spot-result-loc { font-size: 0.8rem; color: var(--text-muted); }
.spot-result-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--ocean-dark); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

.spot-switcher { flex-shrink: 0; }
.spot-select {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: white; padding: 0.3rem 0.6rem; border-radius: 8px;
  font: 500 0.82rem var(--font-body); cursor: pointer;
}

/* Cover photo upload */
.cover-placeholder {
  width: 100%; height: 120px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--foam); border: 2px dashed #c8d3e0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  color: var(--text-muted); font-size: 0.75rem; cursor: pointer; transition: all 0.2s; overflow: hidden;
}
.cover-placeholder:hover { border-color: var(--teal); color: var(--teal); }
.cover-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; margin: 0.75rem 0; }
.toggle-label { font-size: 0.9rem; font-weight: 500; }
.toggle-check { width: 20px; height: 20px; cursor: pointer; accent-color: var(--teal); }

.invite-link-box { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.invite-input { flex: 1; font-size: 0.8rem; padding: 0.5rem; border-radius: 8px; border: 1.5px solid #dde3eb; background: #f8fafc; }

/* ---- SETTINGS ---- */
#settings-modal .modal-content { background: linear-gradient(180deg, #0a1628 0%, #0f2440 100%); color: white; }
#settings-modal .modal-close { color: rgba(255,255,255,0.5); }
#settings-modal h2 { color: white; }
.settings-section { margin-top: 1.25rem; }
.settings-profile { display: flex; align-items: center; gap: 0.75rem; }
.settings-avatar-wrap { position: relative; cursor: pointer; flex-shrink: 0; }
.settings-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #e8ecf1; aspect-ratio: 1; }
.settings-avatar-edit {
  position: absolute; bottom: -2px; right: -2px; background: var(--ocean-dark); color: white;
  font-size: 0.55rem; font-weight: 700; padding: 1px 5px; border-radius: 6px; border: 1.5px solid white;
}
.settings-name { font-weight: 700; font-size: 1rem; }
.settings-pubkey { font-size: 0.7rem; color: rgba(255,255,255,0.4); font-family: monospace; word-break: break-all; }

.settings-primal-card {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem; background: linear-gradient(135deg, var(--ocean-dark), var(--ocean-mid));
  border-radius: 12px; color: white; margin-bottom: 1rem;
}
.settings-primal-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.settings-primal-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.settings-primal-desc { font-size: 0.78rem; opacity: 0.7; line-height: 1.4; }

.settings-steps { margin-top: 0.5rem; }
.settings-step { display: flex; align-items: center; gap: 0.6rem; margin: 0.75rem 0 0.25rem; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--teal);
  color: var(--ocean-deep); display: flex; align-items: center; justify-content: center;
  font: 800 0.75rem var(--font-body); flex-shrink: 0;
}

.key-reveal { margin: 0.5rem 0; }
.key-box {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}
.key-dots { flex: 1; color: rgba(255,255,255,0.3); letter-spacing: 2px; }
.nsec-text { flex: 1; font-size: 0.65rem; word-break: break-all; color: rgba(255,255,255,0.8); line-height: 1.4; }
.key-warning { font-size: 0.7rem; color: var(--coral); margin-top: 0.4rem; text-align: center; }

/* ---- USER LINKS ---- */
.user-link { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; color: inherit; }
.user-link:hover .feed-name, .user-link:hover .surfer-name { color: var(--teal); }
.user-link-inline { color: inherit; text-decoration: none; font-weight: 600; }
.user-link-inline:hover { color: var(--teal); }
.surfer-profile-link { text-decoration: none; flex-shrink: 0; }
.surfer-name-link { text-decoration: none; color: inherit; font-weight: 600; font-size: 0.95rem; display: block; }
.surfer-name-link:hover { color: var(--teal); }

/* ---- DELETE ---- */
.btn-delete-session {
  display: block; width: 100%; margin-top: 1rem; padding: 0.5rem;
  background: none; border: 1px solid #e5e7eb; border-radius: 8px;
  color: var(--text-muted); font: 500 0.82rem var(--font-body);
  cursor: pointer; transition: all 0.15s;
}
.btn-delete-session:hover { border-color: var(--coral); color: var(--coral); background: #fff5f5; }

/* ---- SHARE ---- */
.share-preview {
  background: var(--ocean-dark); border-radius: 12px; padding: 1rem; color: white;
  margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.5;
}
.share-preview video { width: 100%; border-radius: 8px; margin-top: 0.5rem; max-height: 200px; }
.share-preview .share-stats { opacity: 0.6; font-size: 0.8rem; margin-top: 0.4rem; }
.share-text {
  width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid #dde3eb; border-radius: 10px;
  font: 400 0.92rem var(--font-body); resize: vertical; margin-bottom: 0.5rem;
}
.share-buttons { display: flex; gap: 0.5rem; }
.btn-share {
  flex: 1; padding: 0.6rem; border: none; border-radius: 10px; font: 600 0.85rem var(--font-body);
  color: white; cursor: pointer;
}
.btn-whatsapp { background: #25D366; }
.btn-messages { background: #34C759; }
.btn-native { background: var(--ocean-mid); }
.log-crew-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; flex-wrap: wrap; }
.barrel-input-row {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem;
}
.barrel-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #ddd;
  background: white; color: #000; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.barrel-btn:active { background: #000; color: white; }
.barrel-count-input {
  width: 56px; text-align: center; font: 800 1.5rem var(--font-body);
  border: none; background: none; color: var(--text-main); -moz-appearance: textfield;
}
.barrel-count-input::-webkit-inner-spin-button,
.barrel-count-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.feed-avatar-wrap { position: relative; flex-shrink: 0; }
.barrel-badge {
  position: absolute; bottom: -3px; right: -5px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--ocean-dark); color: white;
  font: 700 0.55rem var(--font-body); display: flex; align-items: center;
  justify-content: center; padding: 0 3px; border: 1.5px solid white;
}
.surfer-barrels { color: var(--ocean-mid); font-weight: 600; }
.barrel-count {
  font-size: 0.65rem; font-weight: 700; color: #fff;
  background: #000; padding: 0.1rem 0.35rem; border-radius: 4px;
  margin-left: 0.15rem; white-space: nowrap;
}

/* ---- SEARCH ---- */
.search-card { margin-bottom: 1rem; }
.search-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem; margin-top: 1rem;
}
.range-row { display: flex; align-items: center; gap: 0.4rem; }
.range-sep { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }
.input-sm { width: 100%; padding: 0.45rem 0.6rem; font-size: 0.85rem; }
.search-actions { display: flex; gap: 0.5rem; margin-top: 1rem; align-items: center; }
.search-filters { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.search-filters .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.search-results { margin-top: 1rem; }
.search-summary {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding: 0.75rem 1rem; background: var(--foam); border-radius: 10px;
  margin-bottom: 0.75rem; font-size: 0.85rem;
}
.search-stat { display: flex; flex-direction: column; }
.search-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.search-stat-value { font-weight: 700; font-size: 1.1rem; }
.search-result-list { display: flex; flex-direction: column; gap: 0.5rem; }

/* ---- ANALYSIS ---- */
/* Pro */
.pro-features { text-align: left; margin: 0 auto; max-width: 240px; }
.pro-feature { padding: 0.4rem 0; font-size: 0.9rem; font-weight: 500; }
.pro-feature::before { content: '✓ '; font-weight: 800; }
.pro-badge { display: inline-block; background: #000; color: #fff; font-size: 0.55rem; font-weight: 800; padding: 0.1rem 0.35rem; border-radius: 4px; vertical-align: middle; margin-left: 0.3rem; }

/* Forecast Match */
.fm-day { font: 700 1rem var(--font-headline); margin: 1.5rem 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--ocean-dark); }
.fm-day:first-child { margin-top: 0.5rem; }
.fm-slot { padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; }
.fm-time { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.fm-conditions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.fm-swell { background: #e0f2fe; color: #0369a1; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.fm-wind { background: #dcfce7; color: #15803d; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.fm-surf { background: #fef9c3; color: #a16207; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.fm-result { border-radius: 10px; padding: 0.6rem 0.75rem; margin-top: 0.3rem; }
.fm-fire { background: #ecfdf5; border: 1px solid #a7f3d0; }
.fm-fun { background: #f0f9ff; border: 1px solid #bae6fd; }
.fm-ok { background: #fffbeb; border: 1px solid #fde68a; }
.fm-meh { background: #fff1f2; border: 1px solid #fecaca; }
.fm-nodata { background: #f8fafc; border: 1px solid #e2e8f0; }
.fm-rating { font: 800 1.1rem var(--font-body); }
.fm-stats { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.fm-no-match { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
.fm-sessions { margin-top: 0.4rem; }
.fm-session {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0;
  font-size: 0.8rem; cursor: pointer; border-radius: 6px;
}
.fm-session:hover { background: rgba(0,0,0,0.03); }
.fm-session-rating {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-weight: 800; font-size: 0.7rem;
  background: #fff; border: 2px solid #cbd5e1;
}
.fm-session-rating.r-low { border-color: #f87171; }
.fm-session-rating.r-mid { border-color: #facc15; }
.fm-session-rating.r-high { border-color: #4ade80; }
.fm-session-rating.r-epic { border-color: #2dd4bf; }

/* ---- FOOTER ---- */
footer { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); font-size: 0.8rem; }
footer a { color: var(--teal); text-decoration: none; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  padding: 0.7rem 1.2rem; border-radius: 10px; color: white;
  font: 600 0.85rem var(--font-body); z-index: 300;
  animation: slideUp 0.3s ease; box-shadow: var(--shadow-lg);
}
.toast-success { background: var(--teal); color: var(--ocean-deep); }
.toast-error { background: var(--coral); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  header { padding-bottom: 0; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto; padding: 0.6rem 0; gap: 0;
  }
  .logo { grid-column: 1; grid-row: 1; }
  .auth-section { grid-column: 2; grid-row: 1; }
  nav {
    grid-column: 1 / -1; grid-row: 2;
    display: flex; gap: 0; overflow-x: auto;
    margin: 0.5rem -1.5rem 0; padding: 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  .nav-btn {
    flex: none; white-space: nowrap;
    padding: 0.6rem 0.85rem; font-size: 0.82rem;
    border-radius: 0; border-bottom: 2px solid transparent;
  }
  .nav-btn.active { background: none; border-bottom-color: var(--teal); }
  .nav-ext { margin-left: 0; }
  #auth-buttons { gap: 0.3rem; }
  .btn-glass { padding: 0.35rem 0.6rem; font-size: 0.72rem; }
  .btn-outline { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
  .btn-icon { width: 14px; height: 14px; }

  .hero { height: 200px; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 0.85rem; }

  main { padding: 1rem; }
  .card { padding: 1.25rem; }
  .card-form { margin: 0 -0.25rem; }
  .row-2 { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .feed-card { grid-template-columns: auto 1fr auto; }
  .cond-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .media-row { flex-direction: column; }
}

/* ===== MULTI-SPOT FEED ===== */
.crew-list { display: flex; flex-direction: column; gap: 0.5rem; }
.crew-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border: 1px solid #e8ecf1; border-radius: 12px;
  cursor: pointer; transition: all 0.15s;
}
.crew-card:hover { border-color: var(--cyan); background: var(--surface); }
.crew-card-cover { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.crew-card-cover-placeholder {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.crew-card-info { flex: 1; min-width: 0; }
.crew-card-info h3 { font-size: 0.95rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-card-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.crew-card-count:active { color: #000; }
.members-link { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.members-link:active { color: #000; }

.feed-spot-group { margin-bottom: 1.5rem; }
.feed-spot-group:last-child { margin-bottom: 0; }

.feed-spot-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: opacity 0.15s;
}
.feed-spot-header:hover { opacity: 0.8; }

.feed-spot-cover {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.feed-spot-cover-placeholder {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.feed-spot-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem; color: var(--text);
  margin: 0; line-height: 1.3;
}
.feed-spot-loc {
  font-size: 0.78rem; color: var(--text-muted);
}
.feed-spot-count {
  margin-left: auto; font-size: 0.75rem;
  color: var(--text-muted); white-space: nowrap;
}

/* ===== BROWSE SPOTS ===== */
.browse-spot-list { display: flex; flex-direction: column; gap: 0.5rem; }

.browse-spot-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; border-radius: 10px;
  background: var(--surface); transition: background 0.15s;
}
.browse-spot-card:hover { background: var(--surface-hover, rgba(255,255,255,0.06)); }

.browse-spot-img {
  width: 44px; height: 44px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.browse-spot-img-placeholder {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.05); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.browse-spot-info { flex: 1; min-width: 0; }
.browse-spot-name {
  font-weight: 600; font-size: 0.92rem;
  color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.browse-spot-meta {
  font-size: 0.78rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Sub-tabs */
.sub-tabs {
  display: flex; gap: 0.25rem; background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 3px;
}
.sub-tab {
  flex: 1; padding: 0.45rem 0.75rem; border: none; background: none;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
  border-radius: 6px; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.sub-tab.active {
  background: var(--teal); color: #fff;
}
.sub-tab:hover:not(.active) { color: var(--text); }

/* Pipeline Cards */
.pipeline-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pipeline-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; border-radius: 12px;
  background: var(--surface); transition: background 0.15s;
  cursor: default;
}
.pipeline-card:hover { background: var(--surface-hover, rgba(255,255,255,0.06)); }
.pipeline-cover {
  width: 56px; height: 56px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.pipeline-cover-placeholder {
  width: 56px; height: 56px; border-radius: 10px;
  background: rgba(255,255,255,0.05); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.pipeline-info { flex: 1; min-width: 0; }
.pipeline-name {
  font-weight: 600; font-size: 0.95rem;
  color: var(--text); display: flex; align-items: center; gap: 0.4rem;
  min-width: 0;
}
.pipeline-name-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.pipeline-desc {
  font-size: 0.82rem; color: var(--text-muted);
  margin-top: 0.15rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pipeline-meta {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem;
}
.pipeline-active {
  display: inline-block; background: #22c55e; color: #fff;
  font-size: 0.68rem; font-weight: 600; padding: 0.1rem 0.4rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em;
}
.pipeline-admins {
  display: flex; gap: 0.2rem; margin-top: 0.3rem;
}
.pipeline-admin-av {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid rgba(255,255,255,0.1);
}
.pipeline-admin-av-placeholder {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; color: var(--text-muted);
  border: 1.5px solid rgba(255,255,255,0.1);
}
.pipeline-action { flex-shrink: 0; }
.pipeline-action .btn-request {
  background: none; color: var(--text); border: 1.5px solid var(--border, rgba(255,255,255,0.15));
  padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.pipeline-action .btn-request:hover { background: rgba(255,255,255,0.06); }

/* Onboarding highlight for new users */
.pipeline-onboard-blur {
  filter: blur(4px); opacity: 0.4; pointer-events: none;
  user-select: none;
}
/* Onboarding overlay */
.onboard-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.onboard-overlay::before {
  content: ''; position: absolute; inset: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(240,243,247,0.6);
}
.onboard-overlay .card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Join Request Cards */
.join-request-card {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem; border-radius: 8px;
  background: rgba(255,255,255,0.03); margin-bottom: 0.4rem;
}
.join-request-info { flex: 1; min-width: 0; }
.join-request-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.join-request-msg { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 0.1rem; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--coral); color: #fff; font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  margin-left: 0.3rem; vertical-align: middle;
}

/* Report & Block */
.detail-actions { display: flex; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.btn-report { background: none; border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.btn-report:hover { border-color: var(--coral); color: var(--coral); }
.btn-report-inline { background: none; border: none; color: var(--text-muted); font-size: 0.75rem; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; }
.btn-report-inline:hover { color: var(--coral); }
