/* ============================================================
   discover.css — Boat discovery surface
   ============================================================ */

:root {
    --dx-bg: #f8fbff;
    --dx-bg2: #ffffff;
    --dx-surface: #f1f6fc;
    --dx-border: #d4e3f5;
    --dx-border-light: #e8f0fa;
    --dx-text: #0f172a;
    --dx-text2: #475569;
    --dx-text3: #94a3b8;
    --dx-accent: #0ea5e9;
    --dx-accent-deep: #0369a1;
    --dx-ocean: #0c4a6e;
    --dx-warm: #f59e0b;
    --dx-coral: #fb7185;
    --dx-emerald: #10b981;
    --dx-violet: #8b5cf6;
    --dx-radius: 14px;
    --dx-radius-sm: 8px;
    --dx-shadow: 0 2px 12px rgba(14,100,180,0.08);
    --dx-shadow-lg: 0 8px 32px rgba(14,100,180,0.12);
    --dx-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--dx-font);
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 35%, #fff 100%);
    color: var(--dx-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.dx-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dx-border);
    padding: 14px 20px;
}
.dx-header-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.dx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.dx-logo-mark { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(14,100,180,0.15)); }
.dx-logo-word { font-weight: 800; font-size: 17px; color: var(--dx-ocean); letter-spacing: -0.015em; }
.dx-nav { display: flex; align-items: center; gap: 6px; }
.dx-nav-link {
    padding: 7px 12px; border-radius: 8px; color: var(--dx-text2); font-size: 13px; font-weight: 600;
    transition: all 150ms;
}
.dx-nav-link:hover { background: var(--dx-surface); color: var(--dx-text); }
.dx-nav-link.active { color: var(--dx-accent-deep); background: rgba(14,165,233,0.08); }
.mm-unread-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font: 700 11px/18px Inter, system-ui, sans-serif;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.mm-unread-badge[hidden] { display: none; }
.dx-signin-btn, .dx-signup-btn {
    padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: all 150ms; border: 1px solid transparent;
}
.dx-signin-btn { background: transparent; border-color: var(--dx-border); color: var(--dx-text); }
.dx-signin-btn:hover { background: var(--dx-surface); }
.dx-signup-btn { background: var(--dx-accent); color: #fff; }
.dx-signup-btn:hover { background: var(--dx-accent-deep); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,165,233,0.3); }
.dx-user { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dx-text2); }
.dx-user-name { font-weight: 700; color: var(--dx-text); }
.dx-user-logout { color: var(--dx-text3); font-weight: 600; }

/* ── Hero ── */
.dx-hero {
    padding: 56px 20px 36px;
    background: linear-gradient(180deg, rgba(14,100,180,0.04), transparent);
}
.dx-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.dx-hero h1 {
    font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -0.025em;
    color: var(--dx-ocean); line-height: 1.15; margin-bottom: 12px;
}
.dx-hero p {
    font-size: clamp(14px, 1.6vw, 17px); color: var(--dx-text2);
    max-width: 640px; margin: 0 auto 28px; line-height: 1.55;
}
.dx-hero-stats {
    display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
    margin-top: 12px;
}
.dx-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dx-stat-num {
    font-size: 28px; font-weight: 800; color: var(--dx-accent-deep);
    font-feature-settings: 'tnum';
}
.dx-stat-label { font-size: 11px; color: var(--dx-text3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* ── View toggle ── */
.dx-view-toggle {
    max-width: 720px; margin: 16px auto 24px;
    padding: 6px;
    display: flex; gap: 0;
    background: #ffffff;
    border: 1px solid var(--dx-border);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(14,100,180,0.10);
    position: relative; z-index: 5;
}
.dx-view-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; background: transparent; border: none; border-radius: 100px;
    color: var(--dx-text2); font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dx-view-btn:hover { color: var(--dx-text); background: var(--dx-surface); }
.dx-view-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--dx-accent), var(--dx-accent-deep));
    box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}
.dx-view-btn svg { transition: transform 200ms ease; }
.dx-view-btn.active svg { transform: scale(1.1); }

/* ── Main / Grid ── */
.dx-main { max-width: 1280px; margin: 0 auto; padding: 28px 20px 80px; }
.dx-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Card ── */
.dx-card {
    background: var(--dx-bg2); border: 1px solid var(--dx-border-light);
    border-radius: var(--dx-radius); overflow: hidden;
    box-shadow: var(--dx-shadow);
    transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.dx-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dx-shadow-lg);
    border-color: var(--dx-border);
}
.dx-card.is-featured {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15), var(--dx-shadow);
}
.dx-card.is-demo { opacity: 0.92; }
.dx-card.is-demo:hover { opacity: 1; }

.dx-card-link { display: flex; flex-direction: column; flex: 1; }

/* Hero */
.dx-card-hero {
    height: 180px; background-color: var(--dx-surface); background-size: cover; background-position: center;
    position: relative;
    border-bottom: 1px solid var(--dx-border-light);
}
.dx-pin {
    position: absolute; top: 10px; left: 10px;
    background: var(--dx-warm); color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 4px 9px; border-radius: 100px;
    display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
/* Country flag — PNG image at /assets/flags/{cc}.png. Emoji flags don't
   render on Windows Chrome (falls back to letter codes), so we ship our
   own bitmap library. */
.dx-flag {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 18px; object-fit: cover; border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.dx-live {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(16, 185, 129, 0.95); color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 4px 9px; border-radius: 100px;
    display: inline-flex; align-items: center; gap: 5px;
}
.dx-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dx-pulse 1.4s ease-in-out infinite; }
@keyframes dx-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.dx-demo-tag {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(15, 23, 42, 0.78); color: #fff;
    font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 3px 7px; border-radius: 4px;
}

/* Body */
.dx-card-body { padding: 14px 16px 12px; flex: 1; }
.dx-card-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dx-card-name {
    font-size: 16px; font-weight: 800; color: var(--dx-text);
    letter-spacing: -0.01em; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.dx-tier {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
}
.dx-tier-admiral { background: linear-gradient(135deg, var(--dx-warm), #fbbf24); color: #fff; box-shadow: 0 2px 6px rgba(245,158,11,0.4); }
.dx-tier-captain { color: var(--dx-accent-deep); border: 1.5px solid var(--dx-accent-deep); width: 19px; height: 19px; }

.dx-card-meta { font-size: 12px; color: var(--dx-text3); margin-bottom: 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-card-tagline {
    font-size: 13px; color: var(--dx-text2); line-height: 1.4; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Signals */
.dx-card-signals {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px;
}
.dx-sig {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 100px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
    line-height: 1;
}
.dx-sig svg { flex-shrink: 0; }
.dx-sig-active { background: rgba(16,185,129,0.12); color: var(--dx-emerald); }
.dx-sig-underway { background: rgba(14,165,233,0.12); color: var(--dx-accent-deep); }
.dx-sig-anchor { background: rgba(99,102,241,0.12); color: #4f46e5; }
.dx-sig-dock { background: rgba(148,163,184,0.18); color: var(--dx-text2); }
.dx-sig-reply { background: rgba(139,92,246,0.12); color: var(--dx-violet); }
.dx-sig-new { background: rgba(251,113,133,0.12); color: var(--dx-coral); }
.dx-sig-trending { background: rgba(245,158,11,0.14); color: #d97706; }

/* Foot */
.dx-card-foot {
    padding: 10px 16px 14px;
    border-top: 1px solid var(--dx-border-light);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12px;
}
.dx-followers { color: var(--dx-text2); }
.dx-followers strong { color: var(--dx-text); font-weight: 800; }
.dx-follow-btn {
    padding: 6px 14px; border-radius: 100px;
    background: var(--dx-accent); color: #fff; border: none;
    font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: all 150ms;
}
.dx-follow-btn:hover { background: var(--dx-accent-deep); transform: translateY(-1px); }
.dx-follow-btn.is-following {
    background: var(--dx-emerald); cursor: default;
}
.dx-follow-btn:disabled { cursor: default; transform: none; }

/* Load more */
.dx-loadmore { text-align: center; margin-top: 32px; }
.dx-loadmore button {
    padding: 12px 28px; border-radius: 100px;
    background: #fff; border: 1px solid var(--dx-border);
    color: var(--dx-text2); font-weight: 700; font-size: 13px; font-family: inherit;
    cursor: pointer; transition: all 150ms;
}
.dx-loadmore button:hover { color: var(--dx-text); border-color: var(--dx-accent); }

/* ── Map ── */
.dx-map-pane { padding-top: 0; }
.dx-map { height: 70vh; min-height: 500px; border-radius: var(--dx-radius); overflow: hidden;
    background: var(--dx-surface); display: flex; align-items: center; justify-content: center;
    color: var(--dx-text3); font-size: 14px; }

/* ── Auth modal ── */
.dx-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.dx-modal[hidden] { display: none; }
.dx-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(8px); }
.dx-modal-card {
    position: relative; background: #fff; border-radius: 16px;
    padding: 28px 26px; max-width: 420px; width: 100%;
    box-shadow: 0 20px 60px rgba(15,23,42,0.3);
    z-index: 1;
}
.dx-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--dx-surface); color: var(--dx-text2);
    font-size: 22px; cursor: pointer; line-height: 1;
    transition: all 150ms;
}
.dx-modal-close:hover { background: var(--dx-border-light); color: var(--dx-text); }
.dx-modal-tabs {
    display: flex; gap: 0; padding: 4px;
    background: var(--dx-surface); border-radius: 100px; margin-bottom: 16px;
}
.dx-modal-tab {
    flex: 1; padding: 8px 12px; border: none; background: transparent;
    border-radius: 100px; font-family: inherit; font-size: 12px; font-weight: 700;
    color: var(--dx-text2); cursor: pointer; transition: all 150ms;
}
.dx-modal-tab.active { background: #fff; color: var(--dx-accent-deep); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.dx-modal-sub { color: var(--dx-text2); font-size: 13px; margin-bottom: 14px; line-height: 1.4; }
.dx-modal-pane { display: flex; flex-direction: column; gap: 8px; }
.dx-modal-pane[hidden] { display: none; }
.dx-modal-row { display: flex; gap: 8px; }
.dx-modal-pane input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--dx-border);
    border-radius: 8px; font-family: inherit; font-size: 14px; outline: none;
    transition: border-color 150ms;
}
.dx-modal-pane input:focus { border-color: var(--dx-accent); }
.dx-modal-submit {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: var(--dx-accent); color: #fff; font-weight: 700; font-size: 14px; font-family: inherit;
    cursor: pointer; transition: background 150ms; margin-top: 4px;
}
.dx-modal-submit:hover { background: var(--dx-accent-deep); }
.dx-modal-error { padding: 8px 12px; background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; border-radius: 8px; font-size: 12px; margin-bottom: 12px; }

/* ── Demo toast ── */
.dx-toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(15,23,42,0.96); color: #fff;
    padding: 12px 20px; border-radius: 100px;
    font-size: 13px; max-width: 90%;
    box-shadow: 0 8px 32px rgba(15,23,42,0.3);
    z-index: 200;
    animation: dx-toast-in 200ms ease-out;
}
.dx-toast strong { color: var(--dx-warm); }
@keyframes dx-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============================================================
   POLISH LAYER — animations & microinteractions (Phase 2B)
   ============================================================ */

/* Cards stagger-in on first paint so the grid feels assembled,
   not dumped. ~80ms cascade across the first ~12 cards. */
@keyframes dx-card-rise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.dx-grid .dx-card { animation: dx-card-rise 460ms cubic-bezier(0.18, 0.9, 0.28, 1) backwards; }
.dx-grid .dx-card:nth-child(1)  { animation-delay: 0ms; }
.dx-grid .dx-card:nth-child(2)  { animation-delay: 35ms; }
.dx-grid .dx-card:nth-child(3)  { animation-delay: 70ms; }
.dx-grid .dx-card:nth-child(4)  { animation-delay: 105ms; }
.dx-grid .dx-card:nth-child(5)  { animation-delay: 140ms; }
.dx-grid .dx-card:nth-child(6)  { animation-delay: 175ms; }
.dx-grid .dx-card:nth-child(7)  { animation-delay: 210ms; }
.dx-grid .dx-card:nth-child(8)  { animation-delay: 245ms; }
.dx-grid .dx-card:nth-child(9)  { animation-delay: 280ms; }
.dx-grid .dx-card:nth-child(10) { animation-delay: 315ms; }
.dx-grid .dx-card:nth-child(11) { animation-delay: 350ms; }
.dx-grid .dx-card:nth-child(12) { animation-delay: 385ms; }
@media (prefers-reduced-motion: reduce) {
    .dx-grid .dx-card { animation: none; }
}

/* Hero image lazy fade — when the <div> background loads, fade it in.
   We can't natively detect bg-image load, so simulate via a blur+grow
   reveal that runs in parallel with image fetching. Hides the abrupt
   "appear" once the image loads. */
.dx-card-hero {
    position: relative;
    transition: filter 320ms ease, transform 240ms ease;
}
.dx-card:hover .dx-card-hero {
    transform: scale(1.04);
    filter: brightness(1.04) saturate(1.08);
}
.dx-card-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,100,180,0.06), rgba(14,165,233,0.04));
    z-index: 0; pointer-events: none;
}

/* Card hover bloom: subtle accent ring + lift. */
.dx-card { will-change: transform, box-shadow; }
.dx-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(14,165,233,0.18),
        0 4px 12px rgba(14,100,180,0.10),
        inset 0 0 0 1px rgba(14,165,233,0.12);
}
.dx-card.is-featured:hover {
    box-shadow:
        0 14px 40px rgba(245,158,11,0.28),
        0 4px 16px rgba(245,158,11,0.16),
        inset 0 0 0 1px rgba(245,158,11,0.5);
}

/* Live dot — already pulses, but add a halo behind it for emphasis. */
.dx-live-dot {
    position: relative;
}
.dx-live-dot::after {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%; background: rgba(255,255,255,0.55);
    animation: dx-live-halo 1.4s ease-out infinite;
    pointer-events: none;
}
@keyframes dx-live-halo {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Featured pin: a slow gentle shimmer across the gold gradient. */
.dx-pin {
    background: linear-gradient(120deg, var(--dx-warm), #fbbf24, var(--dx-warm));
    background-size: 220% 100%;
    animation: dx-pin-shimmer 5s linear infinite;
}
@keyframes dx-pin-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Signal badges: lift slightly on card hover. */
.dx-card:hover .dx-sig {
    transform: translateY(-1px);
}
.dx-sig {
    transition: transform 180ms ease, background 180ms ease;
}

/* Follow button — celebration moment. */
.dx-follow-btn {
    position: relative; overflow: visible;
    transition: all 180ms ease, transform 80ms ease;
}
.dx-follow-btn:active { transform: scale(0.96); }
.dx-follow-btn.is-confettiing { pointer-events: none; }
.dx-follow-btn.just-followed {
    background: var(--dx-emerald) !important;
    animation: dx-follow-burst 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dx-follow-burst {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
    35%  { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(16,185,129,0.0); }
    100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Confetti particles emitted from the Follow button */
.dx-confetti {
    position: absolute; pointer-events: none;
    width: 7px; height: 7px; border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: dx-confetti-fly 720ms cubic-bezier(0.18, 0.9, 0.32, 1) forwards;
    z-index: 10;
}
@keyframes dx-confetti-fly {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;
           transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) scale(0.4); }
}

/* Anonymous-signup celebration overlay (covers the page briefly on
   /discover after a successful signup-via-the-modal). */
.dx-celebrate {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(16,185,129,0.22), rgba(14,165,233,0.10) 50%, rgba(255,255,255,0) 70%);
    animation: dx-celebrate-fade 1.6s ease-out forwards;
}
@keyframes dx-celebrate-fade {
    0%   { opacity: 0; }
    18%  { opacity: 1; }
    100% { opacity: 0; }
}
.dx-celebrate-msg {
    font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: #fff;
    background: var(--dx-emerald);
    padding: 14px 28px; border-radius: 100px;
    box-shadow: 0 12px 40px rgba(16,185,129,0.4);
    transform: scale(0.6);
    animation: dx-celebrate-pop 1.6s cubic-bezier(0.18, 0.9, 0.28, 1) forwards;
}
@keyframes dx-celebrate-pop {
    0%   { transform: scale(0.6); }
    25%  { transform: scale(1.08); }
    35%  { transform: scale(1); }
    85%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.92); opacity: 0; }
}

/* Map markers — when injected, fade in from below. */
.leaflet-marker-icon {
    animation: dx-marker-drop 320ms cubic-bezier(0.18, 0.9, 0.28, 1) backwards;
}
@keyframes dx-marker-drop {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hover stat numbers: gentle weight-up to invite engagement. */
.dx-stat-num { transition: transform 220ms cubic-bezier(0.18, 0.9, 0.28, 1); }
.dx-hero-stats:hover .dx-stat-num { transform: translateY(-2px); }

/* ── Mobile ── */
@media (max-width: 720px) {
    .dx-header-inner { flex-wrap: wrap; }
    .dx-nav { flex-wrap: wrap; gap: 4px; }
    .dx-hero { padding: 36px 16px 24px; }
    .dx-hero-stats { gap: 24px; }
    .dx-stat-num { font-size: 22px; }
    .dx-grid { grid-template-columns: 1fr; gap: 14px; }
    .dx-card-hero { height: 160px; }
    .dx-logo-mark { width: 32px; height: 32px; }
    .dx-logo-word { font-size: 15px; }
}

/* ============================================================
   PLATFORM AUTH PILLS — cloned from boat-card.css for visual
   consistency across boat cards, /discover, /captains, /dm.
   ============================================================ */
.bc-user-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 5px 5px 12px; border-radius: 100px;
    background: var(--dx-surface); border: 1px solid var(--dx-border);
    font-size: 12px; font-weight: 600; color: var(--dx-text2);
    font-family: var(--dx-font); white-space: nowrap; flex-shrink: 0;
    line-height: 1; text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.bc-user-pill .bc-user-icon {
    color: var(--dx-accent); flex-shrink: 0;
    background: rgba(14, 165, 233, 0.10);
    width: 26px; height: 26px; padding: 6px; border-radius: 50%;
    box-sizing: border-box;
}
.bc-user-pill .bc-user-id {
    display: inline-flex; flex-direction: column; gap: 2px;
    min-width: 0; line-height: 1.15;
}
.bc-user-pill .bc-user-name {
    max-width: 200px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; color: var(--dx-text); font-weight: 700;
    font-size: 13px;
}
.bc-user-pill .bc-user-email {
    max-width: 200px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; color: var(--dx-text3); font-weight: 500;
    font-size: 10.5px; letter-spacing: 0.01em;
}
.bc-user-pill .bc-user-logout {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 100px;
    background: #fff; border: 1px solid var(--dx-border);
    font-size: 10px; font-weight: 800; color: var(--dx-text2);
    text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
    transition: all 150ms ease;
}
.bc-user-pill .bc-user-logout:hover {
    background: var(--dx-text); color: #fff; border-color: var(--dx-text);
}

.bc-login-pill {
    display: inline-flex !important; align-items: center; gap: 7px;
    padding: 8px 16px !important; border-radius: 100px !important;
    background: var(--dx-accent) !important;
    color: #fff !important; font-size: 12px !important; font-weight: 800 !important;
    font-family: var(--dx-font) !important;
    text-transform: uppercase; letter-spacing: 0.08em;
    text-decoration: none !important; white-space: nowrap; line-height: 1;
    transition: all 150ms ease;
    box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}
.bc-login-pill:hover {
    background: var(--dx-accent-deep) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.bc-login-pill .bc-user-icon { color: #fff !important; }
.bc-login-pill span { color: #fff !important; }

@media (max-width: 720px) {
    .bc-user-pill { font-size: 11px; padding: 4px 4px 4px 10px; gap: 6px; }
    .bc-user-pill .bc-user-icon { width: 22px; height: 22px; padding: 5px; }
    .bc-user-pill .bc-user-name { max-width: 110px; font-size: 12px; }
    .bc-user-pill .bc-user-email { max-width: 110px; font-size: 9.5px; }
    .bc-user-pill .bc-user-logout { font-size: 9px; padding: 3px 8px; }
    .bc-login-pill { padding: 6px 14px !important; font-size: 11px !important; }
}

/* ============================================================
   BRANDED FOOTER
   ============================================================ */
.dx-footer {
    margin-top: 60px; padding: 40px 20px 50px;
    background: linear-gradient(180deg, transparent, rgba(14,100,180,0.04));
    border-top: 1px solid var(--dx-border-light);
    text-align: center;
}
.dx-footer-inner { max-width: 1280px; margin: 0 auto; }
.dx-footer-mark { width: 64px; height: 64px; margin: 0 auto 12px;
    filter: drop-shadow(0 4px 12px rgba(14,100,180,0.15)); display: block; }
.dx-footer-tagline {
    font-size: 18px; font-weight: 800; color: var(--dx-ocean);
    letter-spacing: -0.01em; margin-bottom: 6px;
}
.dx-footer-sub {
    font-size: 13px; color: var(--dx-text2); max-width: 480px; margin: 0 auto 18px;
    line-height: 1.55;
}
.dx-footer-links {
    display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
    margin-top: 14px; padding-top: 18px;
    border-top: 1px solid var(--dx-border-light);
    font-size: 12px; color: var(--dx-text3);
}
.dx-footer-links a { color: var(--dx-text2); font-weight: 600; }
.dx-footer-links a:hover { color: var(--dx-accent-deep); }
.dx-footer-meta {
    margin-top: 12px; font-size: 11px; color: var(--dx-text3);
    letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
}

/* ============================================================
   HERO ENHANCEMENTS — captain illustration + nautical accent
   ============================================================ */
.dx-hero { position: relative; overflow: hidden; }
.dx-hero::before {
    /* Subtle wave SVG backdrop on the right */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    background:
      radial-gradient(circle at 88% 20%, rgba(14,165,233,0.10), transparent 40%),
      radial-gradient(circle at 12% 80%, rgba(14,116,144,0.08), transparent 50%);
}
.dx-hero-inner { position: relative; z-index: 1; }
.dx-hero-mark {
    width: 352px; height: 352px; max-width: 60vw; margin: 0 auto 24px; display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(14,100,180,0.22));
    animation: dx-hero-mark-float 6s ease-in-out infinite;
}
@keyframes dx-hero-mark-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .dx-hero-mark { animation: none; }
}
@media (max-width: 720px) {
    .dx-hero-mark { width: 240px; height: 240px; margin-bottom: 16px; }
}

/* ============================================================
   WAVE DIVIDER between hero and grid (purely decorative)
   ============================================================ */
.dx-wave-divider {
    height: 28px; width: 100%;
    background:
      linear-gradient(180deg, transparent, rgba(14,165,233,0.05));
    position: relative;
}
.dx-wave-divider::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0,30 C240,55 480,5 720,30 S1200,55 1440,30 L1440,60 L0,60 Z' fill='%23ffffff'/></svg>") center/cover;
}
