/* Follow Piper — IG-style infinite scroll feed
   Replaces the bumble swipe deck. Layout (top to bottom):
   topbar → hero (latest moment) → trip map → scroll feed (moments + ads)
*/
:root {
    --bg: #0a0a0a;
    --bg-elev: #161616;
    --bg-2: #1c1c1f;
    --border: #262626;
    --text: #f7f3ee;
    --dim: #a8a29e;
    --love: #ff2d55;
    --accent: #ff4d7a;
    --red: #ff2d2d;
    --red-deep: #b30000;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}
body {
    -webkit-font-smoothing: antialiased;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* ---------- TOPBAR ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(10px);
}
.brand {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.05rem; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 8px;
}
.brand .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.day-chip {
    font-family: var(--font-head); font-size: 0.78rem;
    background: var(--bg-elev); border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 999px; color: var(--text);
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; max-width: 60vw;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.day-chip.has-video { border-color: rgba(255,45,45,0.45); }
.day-chip .dc-vid {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    background: var(--red); color: #fff;
    border-radius: 50%;
    font-size: 0.62rem; font-weight: 700;
    animation: vid-pulse 2.4s ease-in-out infinite;
}
@keyframes vid-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,45,0.55); }
    50%      { box-shadow: 0 0 0 5px rgba(255,45,45,0); }
}
.icon-btn {
    width: 36px; height: 36px; background: none; border: 0;
    color: var(--dim); display: flex; align-items: center; justify-content: center;
    border-radius: 10px; cursor: pointer;
}
.icon-btn:active { background: var(--bg-elev); }

/* Charge strip — discoverability for /charged from the home feed. */
.charge-strip {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(90deg, rgba(255,45,85,0.08), rgba(255,45,85,0.04));
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    font-family: var(--font-head); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 0.01em;
}
.charge-strip:hover { background: rgba(255,45,85,0.14); }
.charge-strip-inner { opacity: 0.92; }
@media (min-width: 600px) {
    .charge-strip { border: 0; }
}

/* ---------- HERO ---------- */
/* Aspect-ratio is set inline per-photo from media width/height so portrait,
   square, and landscape shots all display at their natural ratio without
   squish or crop. Fallback 3:4 matches the iPhone default portrait shape. */
.hero {
    position: relative;
    aspect-ratio: 3 / 4; /* fallback only — overridden inline from photo */
    max-height: 90vh;
    overflow: hidden;
    background: #0e0e0e;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    max-width: 560px;
    margin: 0 auto;
}
@media (min-width: 600px) {
    .hero {
        margin: 12px auto 18px;
        border: 1px solid var(--border);
        border-radius: 18px;
    }
}
.hero-media {
    position: absolute; inset: 0;
    background: #0e0e0e center/cover no-repeat;
}
.hero-media img, .hero-media video {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.hero-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 18px 22px;
    display: flex; flex-direction: column; gap: 6px;
}
.hero-tag {
    align-self: flex-start;
    font-family: var(--font-head); font-weight: 700;
    font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff;
    background: var(--red);
    padding: 4px 10px; border-radius: 999px;
}
.hero-title {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-meta {
    font-size: 0.85rem; color: rgba(255,255,255,0.85);
    display: flex; gap: 12px; align-items: center;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.hero-meta .sep { opacity: 0.5; }

/* ---------- TRIP MAP BAR (re-used styling, same as before) ---------- */
.trip-map-bar {
    height: 200px;
    border-bottom: 1px solid var(--border);
    background: #0e0e0e;
    display: flex; flex-direction: column;
    position: relative;
}
.tmb-map { flex: 1 1 auto; min-height: 0; background: #0e0e0e; }
.tmb-caption {
    height: 42px;
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    font-size: 0.84rem;
}
.tmb-cap-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tmb-cap-label {
    color: var(--dim);
    font-family: var(--font-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.7rem; margin-right: 6px;
}
.tmb-cap-site { color: var(--text); font-weight: 600; }
.tmb-cap-time { color: var(--dim); margin-left: 4px; font-size: 0.78rem; }
.tmb-cap-cta {
    flex-shrink: 0;
    background: var(--bg-elev); color: var(--text);
    padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
    font-family: var(--font-head); font-weight: 700;
    font-size: 0.76rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px;
}
.tmb-cap-cta.has-vid {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff; border-color: var(--red);
    animation: vid-pulse 2.4s ease-in-out infinite;
}
.tmb-pin {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff; border: 2px solid var(--red);
    box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.tmb-pin.latest { width: 18px; height: 18px; }
.tmb-pin.latest.has-vid {
    background: var(--red); border-color: #fff;
    box-shadow: 0 0 0 2px var(--red), 0 2px 8px rgba(255,45,45,0.6);
    animation: pin-pulse 2.4s ease-in-out infinite;
}
@keyframes pin-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--red), 0 2px 8px rgba(255,45,45,0.6); }
    50%      { box-shadow: 0 0 0 5px rgba(255,45,45,0.18), 0 2px 12px rgba(255,45,45,0.7); }
}

/* "You are here" pulsing pin reused from old code */
.fp-pin {
    position: relative; width: 24px; height: 24px;
}
.fp-pin .fp-pin-dot {
    position: absolute; inset: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
}
.fp-pin .fp-pin-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: var(--accent); opacity: 0.4;
    animation: fp-pulse 2s ease-out infinite;
}
@keyframes fp-pulse {
    0%   { transform: scale(0.4); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- FEED ---------- */
.feed {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 0 80px;
}

/* ---------- POST ---------- */
.post {
    background: var(--bg-elev);
    margin: 0 0 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
@media (min-width: 600px) {
    .post {
        border: 1px solid var(--border);
        border-radius: 18px;
        margin: 0 12px 18px;
        overflow: hidden;
    }
}
.post-head {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
}
.post-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--red));
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-head); font-weight: 700;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-who {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
}
.post-who-name {
    font-family: var(--font-head); font-weight: 700;
    font-size: 0.92rem; color: var(--text);
}
.post-who-loc {
    font-size: 0.76rem; color: var(--dim);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.post-date {
    font-size: 0.72rem; color: var(--dim);
    font-family: var(--font-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* Carousel */
.post-media {
    position: relative;
    background: #000;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.post-media-track {
    display: flex; height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}
.post-media-slide {
    flex: 0 0 100%;
    height: 100%;
    background: #000;
    display: flex; align-items: center; justify-content: center;
}
.post-media-slide img, .post-media-slide video {
    width: 100%; height: 100%; object-fit: cover;
}
.post-media-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.45); color: #fff; border: 0;
    border-radius: 50%; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    z-index: 3;
    opacity: 0; transition: opacity 0.2s;
}
.post-media:hover .post-media-nav { opacity: 1; }
.post-media-nav.prev { left: 8px; }
.post-media-nav.next { right: 8px; }
.post-media-nav:disabled { opacity: 0; pointer-events: none; }
.post-media-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 5px;
    z-index: 3;
}
.post-media-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s, width 0.2s;
}
.post-media-dot.on { background: #fff; width: 18px; border-radius: 3px; }

/* Actions */
.post-actions {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px 4px;
}
.post-act {
    background: none; border: 0; color: var(--text);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.12s, color 0.2s;
}
.post-act:active { transform: scale(0.85); }
.post-act svg { width: 26px; height: 26px; }
.post-act.liked { color: var(--love); }
.post-act.liked svg { fill: var(--love); }
.post-likes {
    padding: 0 14px 4px;
    font-size: 0.84rem; font-weight: 700;
    color: var(--text);
    font-family: var(--font-head);
}
.post-likes:empty { display: none; }
.post-caption {
    padding: 4px 14px 8px;
    font-size: 0.92rem; line-height: 1.45;
    color: var(--text);
}
.post-caption b { font-family: var(--font-head); margin-right: 6px; }
.post-tags {
    padding: 0 14px 8px;
    display: flex; flex-wrap: wrap; gap: 4px;
}
.post-tag {
    font-size: 0.74rem; color: var(--accent);
    font-family: var(--font-head); font-weight: 600;
}

/* Comments */
.post-comments {
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
}
.post-comments-toggle {
    width: 100%; text-align: left;
    background: none; border: 0; color: var(--dim);
    padding: 10px 14px;
    font-size: 0.8rem; font-family: var(--font-body);
}
.post-comments-toggle:hover { color: var(--text); }
.post-comments-list { display: none; padding: 0 14px 8px; }
.post-comments.open .post-comments-list { display: block; }
.post-comments.open .post-comments-toggle { color: var(--text); }
.post-comment {
    padding: 6px 0;
    font-size: 0.86rem; line-height: 1.4;
}
.post-comment b {
    font-family: var(--font-head); margin-right: 6px; color: var(--text);
}
.post-comment .c-text { color: var(--text); }
.post-comment .c-meta { font-size: 0.7rem; color: var(--dim); margin-left: 6px; }
.post-comment-form {
    display: none; padding: 10px 14px 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
}
.post-comments.open .post-comment-form { display: flex; }
.post-comment-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px; border-radius: 999px;
    font: inherit; font-size: 0.86rem;
    min-width: 0;
}
.post-comment-input:focus { outline: none; border-color: var(--accent); }
.post-comment-send {
    background: var(--accent); color: #fff; border: 0;
    border-radius: 999px; padding: 0 14px;
    font-family: var(--font-head); font-weight: 700; font-size: 0.84rem;
}
.post-comment-send:disabled { opacity: 0.5; cursor: default; }
.post-login-cta {
    padding: 10px 14px 14px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--dim);
}
.post-login-cta a { color: var(--accent); font-weight: 600; }

/* ---------- AD CARDS ---------- */
.ad-card {
    margin: 0 0 14px;
    padding: 22px 18px;
    color: #fff;
    border-top: 1px solid rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.4);
    text-align: center;
    position: relative; overflow: hidden;
}
.ad-card--photo {
    padding: 0;
    min-height: 280px;
}
.ad-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 20%;
}
.ad-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
}
.ad-card-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    z-index: 1;
    padding: 24px 18px 20px;
}
@media (min-width: 600px) {
    .ad-card { border-radius: 18px; margin: 0 12px 18px; border: 0; }
    .ad-card--photo { min-height: 360px; }
}
.ad-card-badge {
    display: inline-block;
    font-family: var(--font-head); font-weight: 700;
    font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 3px 10px; border-radius: 999px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.ad-card-title {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.5rem; letter-spacing: -0.01em;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.ad-card-sub {
    font-size: 0.94rem; opacity: 0.92;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.ad-card-cta {
    display: inline-block;
    background: #fff; color: #000;
    padding: 11px 24px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.12s;
}
.ad-card-cta:active { transform: scale(0.96); }
.ad-card-sponsor {
    display: block;
    margin-top: 10px;
    font-size: 0.62rem; opacity: 0.6;
    font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Newsletter signup card — replaces ads for non-logged-in visitors. */
.ad-card--signup {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1212 100%);
    padding: 28px 20px 24px;
}
.ad-card--signup .ad-card-title { text-shadow: none; }
.ad-card--signup .ad-card-sub { text-shadow: none; max-width: 360px; margin-left: auto; margin-right: auto; }
.ad-card-gbtn {
    display: flex; justify-content: center;
    min-height: 44px;
    margin-top: 4px;
}

/* Hero variant — used for the first signup card only. Bigger, warmer, BTS-focused. */
.ad-card--signup-hero {
    background: linear-gradient(135deg, #1a0a0e 0%, #3a0d1f 60%, #1a0a0e 100%);
    padding: 36px 22px 30px;
}
.ad-card--signup-hero .ad-card-title { font-size: 1.78rem; line-height: 1.18; }
.ad-card--signup-hero .ad-card-sub { font-size: 1rem; opacity: 0.95; max-width: 380px; margin: 8px auto 18px; }
.ad-card--signup-hero .ad-card-gbtn { margin-top: 6px; }

/* Sticky bottom signup bar — non-logged-in only, dismissable per session */
.fp-sticky-signup {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 120;
    background: rgba(14, 8, 12, 0.96);
    border-top: 1px solid rgba(255, 77, 122, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(.2,.7,.3,1);
}
.fp-sticky-signup.on { transform: translateY(0); }
.fp-sticky-signup__text {
    flex: 1; min-width: 0;
    font-size: 0.86rem; line-height: 1.3; color: var(--text);
}
.fp-sticky-signup__text strong {
    font-family: var(--font-head); font-weight: 700; color: #fff;
}
.fp-sticky-signup__btn {
    flex: 0 0 auto;
    min-height: 40px; display: flex; align-items: center;
}
.fp-sticky-signup__close {
    flex: 0 0 auto;
    background: none; border: 0; color: #8a8a8a;
    font-size: 1.4rem; line-height: 1; padding: 4px 8px; cursor: pointer;
    border-radius: 6px;
}
.fp-sticky-signup__close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
@media (max-width: 480px) {
    .fp-sticky-signup__text { font-size: 0.78rem; }
    .fp-sticky-signup__text .fp-line2 { display: none; }
}
body.fp-has-sticky-bar .feed { padding-bottom: 110px; }

/* ---------- END OF FEED ---------- */
.end-panel {
    text-align: center;
    padding: 40px 18px 30px;
    color: var(--dim);
}
.end-panel h3 {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.3rem; color: var(--text);
    margin-bottom: 8px;
}
.end-panel p { font-size: 0.92rem; margin-bottom: 18px; line-height: 1.5; }
.end-panel-links {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.end-panel-link {
    display: inline-block;
    background: var(--bg-elev); color: var(--text);
    border: 1px solid var(--border);
    padding: 9px 16px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 700; font-size: 0.84rem;
    text-decoration: none;
}

.feed-loading, .feed-end {
    text-align: center; padding: 22px;
    color: var(--dim); font-size: 0.85rem;
}

/* Map modal kept for the trip-map-bar tap */
.map-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none; align-items: stretch; justify-content: center;
    z-index: 200;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.map-modal.on { display: flex; }
.map-modal-inner {
    width: 100%; max-width: 600px; margin: 16px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 18px; display: flex; flex-direction: column;
    overflow: hidden; position: relative;
}
.map-modal .map-close {
    position: absolute; top: 10px; right: 10px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.65); border: 1px solid var(--border);
    color: #fff; font-size: 1.5rem; line-height: 1;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.map-modal .map-header {
    padding: 14px 56px 12px 18px;
    border-bottom: 1px solid var(--border);
}
.map-modal .map-header h3 {
    font-family: var(--font-head); font-weight: 700;
    font-size: 1.15rem; margin-bottom: 4px;
}
.map-modal .map-sub {
    font-size: 0.82rem; color: var(--accent);
    font-family: var(--font-head); font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
}
#map-container { flex: 1 1 auto; min-height: 320px; background: #0e0e0e; }
.map-fallback {
    height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--dim); font-family: var(--font-head); font-size: 0.9rem;
}
.fp-charge-pin {
    width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 2px solid var(--red); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.fp-charge-pin.has-vid {
    background: var(--red); color: #fff; border-color: #fff;
    box-shadow: 0 0 0 2px var(--red), 0 2px 12px rgba(255,45,45,0.55);
    animation: pin-pulse 2.4s ease-in-out infinite;
}
.map-charge-cta {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff; font-family: var(--font-head); font-weight: 700;
    text-decoration: none;
    border-top: 1px solid var(--border);
}
.map-charge-cta .cta-play {
    width: 28px; height: 28px;
    background: #fff; color: var(--red); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.map-charge-cta .cta-text {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.92rem;
}

/* Leaflet polish */
.leaflet-container { background: #0e0e0e !important; }

/* ---------- POST DETAIL MODAL ---------- */
.post-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    display: none;
    z-index: 220;
    overflow-y: auto;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.post-modal.on { display: block; }
.post-modal-inner {
    max-width: 560px; margin: 16px auto;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}
.post-modal-close {
    position: fixed; top: 12px; right: 12px; z-index: 10;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 1px solid var(--border);
    color: #fff; font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- LINK TREE ---------- */
.link-tree {
    max-width: 560px;
    margin: 16px auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.link-tree-item {
    max-width: 560px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s, border-color 0.15s;
}
.link-tree-item:hover {
    background: var(--bg-2);
    border-color: var(--accent);
}
.link-tree-item:active {
    transform: scale(0.98);
}
.link-tree-label {
    flex: 1;
}
.link-tree-arrow {
    color: var(--dim);
    font-size: 1.1rem;
    margin-left: 12px;
}
@media (min-width: 600px) {
    .link-tree { padding: 0; margin: 20px auto; gap: 10px; }
    .link-tree-item {
    max-width: 560px;
    margin: 10px auto; border-radius: 14px; padding: 16px 22px; }
}

/* Link tree header + subtitles */
.link-tree-header {
    max-width: 560px;
    margin: 20px auto 0;
    padding: 0 12px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}
.link-tree-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.link-tree-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--dim);
}
@media (min-width: 600px) {
    .link-tree-header { padding: 0; margin: 24px auto 0; }
}

/* ---------- BIO LINE ---------- */
.bio-line {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 14px 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--dim);
    line-height: 1.4;
    text-align: center;
}
@media (min-width: 600px) {
    .bio-line { padding: 14px 0 10px; }
}
