/* SocialZ - SecondLife (socialzsl.net) - the approved black & white
   identity. One sheet for the landing page plus the small member
   pages; split per-page once the app grows in wave 2. */

/* Space Grotesk (OFL) - self-hosted variable font, weights 300-700.
   Heavier declarations (800/900) render at 700, which is intended. */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --z-black: #070707;
    --z-panel: #0f0f0f;
    --z-line: #262626;
    --z-white: #f5f5f5;
    --z-gray: #9a9a9a;
    --z-dim: #555;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--z-black);
    color: var(--z-white);
    font: 15px/1.65 'Space Grotesk', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* faint blueprint grid + drifting spotlight */
.z-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(245,245,245,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,245,245,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 78%);
}
.z-spot {
    position: fixed;
    z-index: 0;
    width: 62vw; height: 62vw;
    top: -24vw; left: 18vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,245,245,0.09), transparent 62%);
    filter: blur(60px);
    pointer-events: none;
    animation: z-spot 22s ease-in-out infinite alternate;
}
@keyframes z-spot { to { transform: translate(-14vw, 12vh) scale(1.18); } }

/* ============ nav ============ */
.z-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 34px;
    border-bottom: 1px solid var(--z-line);
    background: rgba(7, 7, 7, 0.82);
    backdrop-filter: blur(12px);
}
.z-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--z-white); }
.z-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-weight: 900;
    font-size: 20px;
    color: #070707;
    background: var(--z-white);
    box-shadow: 0 0 0 1px rgba(245,245,245,0.25), 0 8px 24px rgba(245,245,245,0.12);
}
.z-brand-name { font-size: 18px; font-weight: 900; letter-spacing: 0.01em; }
.z-brand-tag {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--z-gray);
}
.z-nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--z-white);
    border-radius: 999px;
    background: none;
    color: var(--z-white);
    cursor: pointer;
    font: 800 13px 'Space Grotesk', sans-serif;
    letter-spacing: 0.04em;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}
.z-nav-cta:hover { background: var(--z-white); color: #070707; transform: translateY(-1px); }

/* ============ hero ============ */
.z-hero {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 76px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 84px 34px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}
.z-members-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border: 1px solid var(--z-line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--z-gray);
    margin-bottom: 26px;
    animation: z-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.z-members-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--z-white);
    box-shadow: 0 0 0 0 rgba(245,245,245,0.5);
    animation: z-pulse 2.4s ease-out infinite;
}
@keyframes z-pulse {
    70% { box-shadow: 0 0 0 8px rgba(245,245,245,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,245,245,0); }
}
.z-h1 {
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.z-h1 .w {
    display: inline-block;
    animation: z-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.z-h1 .w:nth-child(1) { animation-delay: 0.05s; }
.z-h1 .w:nth-child(2) { animation-delay: 0.13s; }
.z-h1 .w:nth-child(3) { animation-delay: 0.21s; }
.z-h1 .w:nth-child(4) { animation-delay: 0.29s; }
.z-h1 .w:nth-child(5) { animation-delay: 0.37s; }
.z-h1 .ghost {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--z-white);
}
.z-lead {
    color: var(--z-gray);
    font-size: 16.5px;
    max-width: 47ch;
    margin-bottom: 34px;
    animation: z-rise 0.9s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.z-lead b { color: var(--z-white); font-weight: 700; }
.z-hero-points { display: grid; gap: 10px; max-width: 430px; }
.z-point {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 13.5px;
    color: var(--z-gray);
    animation: z-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.z-point:nth-child(1) { animation-delay: 0.5s; }
.z-point:nth-child(2) { animation-delay: 0.6s; }
.z-point:nth-child(3) { animation-delay: 0.7s; }
.z-point i {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border: 1px solid var(--z-line);
    border-radius: 8px;
    font-style: normal;
    font-size: 12px;
    color: var(--z-white);
}

/* ============ the resident pass ============ */
.z-passwrap {
    position: relative;
    animation: z-rise 1s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    perspective: 1200px;
}
.z-pass {
    position: relative;
    background: var(--z-white);
    color: #0a0a0a;
    border-radius: 20px;
    padding: 26px 26px 20px;
    max-width: 420px;
    margin-left: auto;
    transform: rotate(-2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(245, 245, 245, 0.07);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: z-hover 7s ease-in-out infinite;
    overflow: hidden;
}
.z-passwrap:hover .z-pass { transform: rotate(0deg) translateY(-6px); }
@keyframes z-hover { 50% { margin-top: -8px; } }
.z-pass::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(10,10,10,0.05) 50%, transparent);
    transform: skewX(-18deg);
    animation: z-sheen 6.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes z-sheen {
    0%, 60% { left: -75%; }
    90%, 100% { left: 130%; }
}
.z-pass-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.z-pass-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-weight: 900;
    font-size: 18px;
    color: var(--z-white);
    background: #0a0a0a;
}
.z-pass-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #777;
}
.z-pass h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; margin: 10px 0 2px; }
.z-pass-sub { font-size: 12.5px; color: #666; margin-bottom: 16px; }
.z-pass-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ececec;
    border-radius: 999px;
    padding: 4px;
    margin-top: 14px;
}
.z-pass-pill {
    position: absolute;
    top: 4px; bottom: 4px; left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #0a0a0a;
    transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.z-pass-tabs.alt .z-pass-pill { transform: translateX(100%); }
.z-ptab {
    position: relative;
    z-index: 1;
    border: 0; background: none; cursor: pointer;
    padding: 8px 0;
    font: 800 12.5px 'Space Grotesk', sans-serif;
    color: #666;
    transition: color 0.3s;
}
.z-ptab.active { color: var(--z-white); }
.z-field { margin-bottom: 11px; }
.z-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}
.z-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1.5px solid #d8d8d8;
    background: #fdfdfd;
    color: #0a0a0a;
    font: 500 14.5px 'Space Grotesk', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.z-field input:focus {
    outline: none;
    border-color: #0a0a0a;
    box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.08);
}
.z-btn {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid #0a0a0a;
    border-radius: 11px;
    cursor: pointer;
    font: 800 14.5px 'Space Grotesk', sans-serif;
    color: var(--z-white);
    background: #0a0a0a;
    transition: background 0.25s, color 0.25s, transform 0.2s, opacity 0.2s;
}
.z-btn:hover { background: transparent; color: #0a0a0a; transform: translateY(-2px); }
.z-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.z-pass-alt { text-align: center; font-size: 12.5px; color: #666; margin-top: 11px; }
.z-pass-alt a { color: #0a0a0a; font-weight: 800; text-decoration: none; border-bottom: 1px solid #0a0a0a; }
.z-barcode {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1.5px dashed #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.z-barcode-lines {
    height: 26px;
    flex: 1;
    background: repeating-linear-gradient(90deg, #0a0a0a 0 2px, transparent 2px 5px, #0a0a0a 5px 6px, transparent 6px 11px);
    opacity: 0.85;
}
.z-barcode span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #777;
    white-space: nowrap;
}

/* form feedback (the one functional splash of color on the site) */
.z-msg { display: none; margin: 10px 0 0; font-size: 13px; font-weight: 700; }
.z-msg.error { display: block; color: #b3261e; }
.z-msg.success { display: block; color: #146c2e; }
.z-pass .z-msg { text-align: center; }

/* ============ sections ============ */
.z-section {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 110px 34px;
}
.z-sec-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--z-gray);
    margin-bottom: 14px;
}
.z-section h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.02;
    margin-bottom: 14px;
}
.z-section h2 .ghost { color: transparent; -webkit-text-stroke: 1.2px var(--z-white); }
.z-sub { color: var(--z-gray); max-width: 56ch; margin-bottom: 48px; }

/* features - animated cards: a light traces each border while the
   card gently floats; hover lifts it and inverts the icon */
.z-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.z-card {
    position: relative;
    border-radius: 18px;
    padding: 1.5px;
    background: var(--z-line);
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
}
.z-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.6);
}
.z-card::before {
    content: '';
    position: absolute;
    inset: -120%;
    background: conic-gradient(transparent 0deg 285deg, rgba(245,245,245,0.95) 350deg, transparent 360deg);
    animation: z-trace 6.5s linear infinite;
}
.z-card:nth-child(2)::before { animation-delay: -1.1s; }
.z-card:nth-child(3)::before { animation-delay: -2.2s; }
.z-card:nth-child(4)::before { animation-delay: -3.3s; }
.z-card:nth-child(5)::before { animation-delay: -4.4s; }
.z-card:nth-child(6)::before { animation-delay: -5.5s; }
@keyframes z-trace { to { transform: rotate(360deg); } }
.z-card-in {
    position: relative;
    height: 100%;
    border-radius: 16.5px;
    padding: 26px 24px;
    background: linear-gradient(165deg, #141414, #0b0b0b);
    animation: z-cardfloat 7s ease-in-out infinite;
}
.z-card:nth-child(2) .z-card-in { animation-delay: 1.2s; }
.z-card:nth-child(3) .z-card-in { animation-delay: 2.4s; }
.z-card:nth-child(4) .z-card-in { animation-delay: 0.6s; }
.z-card:nth-child(5) .z-card-in { animation-delay: 1.8s; }
.z-card:nth-child(6) .z-card-in { animation-delay: 3s; }
@keyframes z-cardfloat { 50% { transform: translateY(-4px); } }
.z-card:hover .z-card-ico {
    width: 46px; height: 46px;
    border: 1.5px solid var(--z-white);
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 20px;
    color: var(--z-white);
    margin-bottom: 16px;
    transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.z-card:hover .z-card-ico {
    background: var(--z-white);
    color: #0a0a0a;
    transform: rotate(-8deg) scale(1.1);
}
.z-card strong {
    display: block;
    font-size: 16.5px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.z-card p { font-size: 13.5px; color: var(--z-gray); }

/* ============ about band (white) ============ */
.z-band-wrap { position: relative; z-index: 2; background: var(--z-white); }
.z-band {
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 34px;
    color: #0a0a0a;
}
.z-band .z-sec-eyebrow { color: #777; }
.z-band h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.02;
    margin-bottom: 40px;
}
.z-band h2 .ghost { color: transparent; -webkit-text-stroke: 1.2px #0a0a0a; }
.z-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}
.z-about-lead {
    font-size: 16.5px;
    line-height: 1.75;
    color: #3d3d3d;
    max-width: 52ch;
    border-left: 3px solid #0a0a0a;
    padding-left: 22px;
}
.z-about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.z-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #0a0a0a;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0a0a0a;
    transition: background 0.25s, color 0.25s, transform 0.25s;
    cursor: default;
}
.z-check:hover {
    background: #0a0a0a;
    color: var(--z-white);
    transform: translateY(-3px);
}
.z-check i {
    flex: 0 0 auto;
    width: 23px; height: 23px;
    display: grid; place-items: center;
    border-radius: 7px;
    font-style: normal;
    font-size: 12px;
    background: #0a0a0a;
    color: var(--z-white);
    transition: background 0.25s, color 0.25s;
}
.z-check:hover i { background: var(--z-white); color: #0a0a0a; }

/* ============ member pages (home stub, reset password) ============ */
.z-page {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 60px 24px;
}
.z-page .z-pass { transform: none; margin: 0; animation: none; width: 100%; }
.z-page-welcome { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #777; margin-bottom: 4px; }

/* footer */
.z-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 44px 34px 52px;
    border-top: 1px solid var(--z-line);
    color: var(--z-dim);
    font-size: 12.5px;
}
.z-footer a { color: var(--z-gray); text-decoration: none; }
.z-footer a:hover { color: var(--z-white); }

/* reveal */
.z-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.z-reveal.on { opacity: 1; transform: none; }
.z-cards .z-reveal:nth-child(2) { transition-delay: 0.08s; }
.z-cards .z-reveal:nth-child(3) { transition-delay: 0.16s; }
.z-cards .z-reveal:nth-child(4) { transition-delay: 0.24s; }
.z-cards .z-reveal:nth-child(5) { transition-delay: 0.32s; }
.z-cards .z-reveal:nth-child(6) { transition-delay: 0.4s; }
.z-about-list .z-reveal:nth-child(2) { transition-delay: 0.08s; }
.z-about-list .z-reveal:nth-child(3) { transition-delay: 0.16s; }
.z-about-list .z-reveal:nth-child(4) { transition-delay: 0.24s; }
.z-about-list .z-reveal:nth-child(5) { transition-delay: 0.32s; }
.z-about-list .z-reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes z-rise { from { opacity: 0; transform: translateY(26px); } }

@media (max-width: 980px) {
    .z-hero { grid-template-columns: 1fr; padding-top: 48px; gap: 44px; min-height: 0; }
    .z-pass { margin: 0 auto; transform: rotate(0); max-width: none; }
    .z-cards { grid-template-columns: 1fr; }
    .z-about { grid-template-columns: 1fr; gap: 28px; }
    .z-about-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .z-reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   MEMBER AREA (home / people / friends / profile) - approved profile
   design: scan-bracket avatars, pill tabs, barcode signatures.
   ====================================================================== */
.z-nav-links { display: flex; gap: 4px; flex: 1; margin-left: 16px; }
.z-nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--z-gray);
    transition: color 0.25s, background 0.25s;
}
.z-nav-link:hover { color: var(--z-white); background: rgba(245,245,245,0.06); }
.z-nav-link.active { color: #070707; background: var(--z-white); }
.z-nav-link .dot {
    position: absolute;
    top: 7px; right: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--z-white);
    box-shadow: 0 0 0 0 rgba(245,245,245,0.5);
    animation: z-pulse 2.4s ease-out infinite;
}
.z-nav-link.active .dot { background: #070707; }

/* member nav: brand + search left, centered links, account chip right */
.z-nav.z-nav-member {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}
.z-nav-member .z-nav-links { flex: 0 0 auto; margin-left: 0; justify-content: center; }
.z-nav-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.z-nav-search { min-width: 0; }
.z-nav-search input {
    width: 190px;
    max-width: 100%;
    padding: 9px 16px;
    background: var(--z-panel);
    border: 1.5px solid var(--z-line);
    border-radius: 999px;
    color: var(--z-white);
    font: 500 13px 'Space Grotesk', sans-serif;
    transition: border-color 0.25s, width 0.3s;
}
.z-nav-search input::placeholder { color: var(--z-dim); }
.z-nav-search input:focus { outline: none; border-color: var(--z-white); width: 240px; }

/* nav account chip + dropdown */
.z-nav-account { position: relative; justify-self: end; }
.z-nav-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--z-panel);
    border: 1.5px solid var(--z-line);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.25s, background 0.25s;
}
.z-nav-chip:hover { border-color: var(--z-white); }
.z-chip-ava {
    width: 34px; height: 34px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--z-white);
    color: #070707;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.z-chip-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.z-chip-names { display: grid; line-height: 1.2; }
.z-chip-names b {
    font-size: 13px;
    font-weight: 800;
    color: var(--z-white);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.z-chip-names span { font-size: 11px; color: var(--z-dim); }
.z-nav-chip .caret { font-size: 10px; color: var(--z-gray); }
.z-nav-chip .chip-dot {
    position: absolute;
    top: -4px; right: -4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--z-white);
    border: 2.5px solid var(--z-black);
    animation: z-pulse 2s infinite;
}
.z-nav-menu[hidden] { display: none; }
.z-nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #101010;
    border: 1.5px solid var(--z-line);
    border-radius: 14px;
    padding: 6px;
    z-index: 60;
    display: grid;
    gap: 2px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.z-nav-menu a,
.z-nav-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    text-align: left;
    cursor: pointer;
    font: 700 13px 'Space Grotesk', sans-serif;
    color: var(--z-white);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.z-nav-menu a:hover,
.z-nav-menu button:hover { background: var(--z-white); color: #070707; }
.z-nav-menu .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--z-white); }
.z-nav-menu a:hover .dot { background: #070707; }
.z-nav-menu .sep { height: 1px; background: var(--z-line); margin: 4px 6px; }

.z-wrap { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 26px 24px 80px; }
.z-page-title { font-size: 22px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; margin: 8px 0 4px; }
.z-page-sub { color: var(--z-gray); font-size: 13.5px; margin-bottom: 24px; }

/* profile header */
.z-cover {
    position: relative;
    height: 240px;
    border-radius: 20px;
    border: 1px solid var(--z-line);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 72% 20%, rgba(245,245,245,0.14), transparent 55%),
        linear-gradient(rgba(245,245,245,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,245,245,0.03) 1px, transparent 1px),
        linear-gradient(165deg, #161616, #0a0a0a);
    background-size: auto, 46px 46px, 46px 46px, auto;
}
.z-cover .coverimg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.z-cover-edit {
    position: absolute;
    right: 14px; bottom: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(245,245,245,0.5);
    border-radius: 999px;
    background: rgba(7,7,7,0.65);
    color: var(--z-white);
    cursor: pointer;
    font: 800 11.5px 'Space Grotesk', sans-serif;
    backdrop-filter: blur(6px);
    transition: background 0.25s, color 0.25s;
}
.z-cover-edit:hover { background: var(--z-white); color: #070707; }
.z-idrow {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    margin: -54px 0 0 30px;
}
.z-avatar {
    position: relative;
    width: 128px; height: 128px;
    border-radius: 26px;
    display: grid; place-items: center;
    font-size: 46px;
    font-weight: 900;
    color: #070707;
    background: var(--z-white);
    border: 5px solid var(--z-black);
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
    flex: 0 0 auto;
}
.z-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }
.z-avatar::before, .z-avatar::after {
    content: '';
    position: absolute;
    width: 26px; height: 26px;
    pointer-events: none;
}
.z-avatar::before {
    top: -12px; left: -12px;
    border-top: 2.5px solid var(--z-white);
    border-left: 2.5px solid var(--z-white);
    border-top-left-radius: 10px;
}
.z-avatar::after {
    bottom: -12px; right: -12px;
    border-bottom: 2.5px solid var(--z-white);
    border-right: 2.5px solid var(--z-white);
    border-bottom-right-radius: 10px;
}
.z-avatar-edit {
    position: absolute;
    left: 4px; bottom: 6px;
    width: 32px; height: 32px;
    border-radius: 11px;
    border: 2px solid var(--z-black);
    background: #070707;
    color: var(--z-white);
    cursor: pointer;
    font-size: 13px;
    display: grid; place-items: center;
    z-index: 1;
}
.z-avatar-edit:hover { background: var(--z-white); color: #070707; }
.z-idcol { flex: 1; padding-bottom: 8px; min-width: 0; }
.z-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.z-dispname { font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }
.z-badge {
    padding: 4px 12px;
    border: 1.5px solid var(--z-white);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.z-badge.ghosted { border-color: var(--z-dim); color: var(--z-dim); }
.z-meta { display: flex; gap: 20px; margin-top: 8px; font-size: 12.5px; color: var(--z-dim); font-weight: 700; }
.z-meta b { color: var(--z-white); }
.z-titles { margin-top: 8px; display: grid; gap: 2px; }
.z-titles span { font-size: 13px; color: #c9c9c9; font-weight: 600; }
.z-titles i { font-style: normal; color: var(--z-dim); padding: 0 5px; }
.z-actions { display: flex; gap: 10px; padding-bottom: 10px; }
.zp-btn {
    padding: 11px 22px;
    border: 1.5px solid var(--z-white);
    border-radius: 999px;
    cursor: pointer;
    font: 800 13px 'Space Grotesk', sans-serif;
    color: #070707;
    background: var(--z-white);
    transition: background 0.25s, color 0.25s, transform 0.2s, opacity 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.zp-btn:hover { background: transparent; color: var(--z-white); transform: translateY(-2px); }
.zp-btn.outline { background: transparent; color: var(--z-white); }
.zp-btn.outline:hover { background: var(--z-white); color: #070707; }
.zp-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.zp-btn.small { padding: 8px 16px; font-size: 12px; }

/* profile tabs */
.z-tabsbar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 26px 0 0;
    padding: 14px 0;
    border-top: 1px solid var(--z-line);
    border-bottom: 1.5px dashed #1e1e1e;
    position: relative;
}
.z-tab {
    position: relative;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    cursor: pointer;
    padding: 9px 17px;
    font: 800 12.5px 'Space Grotesk', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--z-gray);
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.z-tab:hover { color: var(--z-white); border-color: var(--z-line); }
.z-tab.active { background: var(--z-white); color: #070707; }
.z-tab .caret { font-size: 10px; margin-left: 4px; }
.z-more { position: relative; margin-right: auto; }
.z-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 210px;
    background: var(--z-panel);
    border: 1px solid var(--z-line);
    border-radius: 14px;
    padding: 7px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.z-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 11px 14px;
    border-radius: 9px;
    font: 700 13.5px 'Space Grotesk', sans-serif;
    color: var(--z-white);
    transition: background 0.2s, color 0.2s;
}
.z-menu button:hover { background: var(--z-white); color: #070707; }
[data-tabpane] { animation: z-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* columns + panels */
.z-cols {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: 20px;
    margin-top: 30px;
}
.z-panel {
    background: var(--z-panel);
    border: 1px solid var(--z-line);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.z-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.z-panel-head h3 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.z-panel-head a { font-size: 12px; font-weight: 800; color: var(--z-gray); text-decoration: none; }
.z-panel-head a:hover { color: var(--z-white); }
.z-bio { color: #c9c9c9; font-size: 14px; white-space: pre-line; }
.z-bio.empty { color: var(--z-dim); font-style: italic; }
.z-panel-note {
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--z-dim);
    border-top: 1px solid #1a1a1a;
    padding-top: 10px;
}
.z-pencil {
    border: 0; background: none; cursor: pointer;
    color: var(--z-gray); font-size: 14px;
    transition: color 0.2s;
}
.z-pencil:hover { color: var(--z-white); }

/* personal detail rows */
.z-pd-rows { display: grid; gap: 14px; margin-top: 4px; }
.z-pd-row { display: flex; gap: 13px; align-items: flex-start; }
.z-pd-row i {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1.5px solid var(--z-line);
    border-radius: 9px;
    font-style: normal;
    font-size: 13px;
    color: var(--z-white);
}
.z-pd-row strong { display: block; font-size: 13.5px; font-weight: 700; }
.z-pd-row span { font-size: 12px; color: var(--z-dim); }
.z-fam-cluster { display: flex; align-items: center; margin-top: 6px; }
.z-fam-ava {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid; place-items: center;
    font-size: 11px;
    font-weight: 900;
    border: 2px solid var(--z-panel);
    margin-left: -7px;
    background: var(--z-white);
    color: #070707;
    overflow: hidden;
}
.z-fam-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.z-fam-ava:first-child { margin-left: 0; }
.z-fam-more { font-size: 12px; font-weight: 800; color: var(--z-gray); margin-left: 9px; text-decoration: none; }
.z-pd-barcode {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1.5px dashed #222;
    display: flex;
    align-items: center;
    gap: 14px;
}
.z-pd-barcode .lines {
    height: 20px;
    flex: 1;
    background: repeating-linear-gradient(90deg, #f5f5f5 0 2px, transparent 2px 5px, #f5f5f5 5px 6px, transparent 6px 11px);
    opacity: 0.45;
}
.z-pd-barcode span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--z-dim);
    white-space: nowrap;
}

/* highlights + edit boxes */
.z-highlight-add {
    width: 100%;
    padding: 12px;
    border: 1.5px dashed var(--z-line);
    border-radius: 11px;
    background: none;
    color: var(--z-gray);
    cursor: pointer;
    font: 800 13px 'Space Grotesk', sans-serif;
    transition: border-color 0.25s, color 0.25s;
}
.z-highlight-add:hover { border-color: var(--z-white); color: var(--z-white); }
.z-editbox { display: none; }
.z-editbox.on { display: block; }
.z-viewbox.off { display: none; }
.z-editbox textarea, .z-editbox input[type="text"], .z-editbox select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1.5px solid var(--z-line);
    background: #0a0a0a;
    color: var(--z-white);
    font: 500 13.5px 'Space Grotesk', sans-serif;
    margin-bottom: 12px;
}
.z-editbox textarea { min-height: 110px; resize: vertical; }
.z-editbox textarea:focus, .z-editbox input[type="text"]:focus, .z-editbox select:focus { outline: none; border-color: var(--z-white); }
.z-editbox label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--z-dim); margin-bottom: 5px; }
.z-edit-actions { display: flex; gap: 10px; }
.z-link-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 10px; }
.z-link-form input, .z-link-form select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--z-line);
    background: #0a0a0a;
    color: var(--z-white);
    font: 500 13px 'Space Grotesk', sans-serif;
}
.z-link-form input:focus, .z-link-form select:focus { outline: none; border-color: var(--z-white); }

/* friends tiles + people grid */
.z-friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.z-friend {
    text-align: center;
    padding: 14px 8px 12px;
    border: 1px solid var(--z-line);
    border-radius: 14px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    text-decoration: none;
    color: var(--z-white);
    display: block;
}
.z-friend:hover { transform: translateY(-4px); border-color: rgba(245,245,245,0.5); background: #141414; }
.z-friend-ava {
    width: 52px; height: 52px;
    margin: 0 auto 8px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-weight: 900;
    font-size: 19px;
    background: var(--z-white);
    color: #070707;
    overflow: hidden;
}
.z-friend-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.z-friend strong { display: block; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-friend span { font-size: 10.5px; color: var(--z-dim); }
.z-people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.z-searchbar { display: flex; gap: 10px; margin-bottom: 22px; max-width: 480px; }
.z-searchbar input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--z-line);
    background: #0a0a0a;
    color: var(--z-white);
    font: 500 14px 'Space Grotesk', sans-serif;
}
.z-searchbar input:focus { outline: none; border-color: var(--z-white); }

/* request + generic rows */
.z-rows { display: grid; gap: 10px; }
.z-rowitem {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--z-panel);
    border: 1px solid var(--z-line);
    border-radius: 14px;
}
.z-rowitem .z-friend-ava { margin: 0; width: 44px; height: 44px; font-size: 16px; border-radius: 13px; flex: 0 0 auto; }
.z-rowitem strong { display: block; font-size: 14px; }
.z-rowitem span { font-size: 12px; color: var(--z-dim); }
.z-rowitem .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.z-rowitem a { color: var(--z-white); text-decoration: none; }
.z-rowitem a:hover strong { text-decoration: underline; }
.z-empty a { color: var(--z-white); font-weight: 800; }
.z-empty {
    border: 1.5px dashed var(--z-line);
    border-radius: 18px;
    padding: 30px 24px;
    text-align: center;
    color: var(--z-dim);
    font-size: 13.5px;
}
.z-empty b {
    display: block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--z-gray);
    margin-bottom: 4px;
}

/* about tab - section rail + editing panels */
.z-about-cols {
    display: grid;
    grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
    gap: 20px;
    align-items: start;
    margin-top: 30px;
}
.z-about-rail { position: sticky; top: 24px; }
.z-about-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    margin-bottom: 4px;
    background: none;
    border: 1.5px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font: 800 12.5px 'Space Grotesk', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--z-gray);
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.z-about-link:hover { color: var(--z-white); border-color: var(--z-line); }
.z-about-link.active { background: var(--z-white); color: #070707; }
@keyframes z-sectionflash { 0% { border-color: var(--z-white); } 100% { border-color: var(--z-line); } }
.z-flash { animation: z-sectionflash 1.2s ease; }
@media (prefers-reduced-motion: reduce) {
    .z-flash { animation: none; }
}

/* panes: photos + manage sections */
.z-pane-narrow { max-width: 680px; margin: 30px auto 0; }
.z-friends-full { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 30px; }
.z-photogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.z-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border: 1px solid var(--z-line);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
}
.z-switch {
    width: 42px; height: 24px;
    border-radius: 999px;
    border: 1.5px solid var(--z-white);
    background: none;
    cursor: pointer;
    position: relative;
    transition: background 0.25s;
}
.z-switch::after {
    content: '';
    position: absolute;
    top: 2.5px; left: 3px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--z-white);
    transition: left 0.25s, background 0.25s;
}
.z-switch.on { background: var(--z-white); }
.z-switch.on::after { left: 20px; background: #070707; }

@media (max-width: 980px) {
    .z-nav-links { overflow-x: auto; }
    .z-nav.z-nav-member { grid-template-columns: auto 1fr auto; }
    .z-nav-search input { width: 120px; }
    .z-nav-search input:focus { width: 150px; }
    .z-chip-names { display: none; }
    .z-cols { grid-template-columns: 1fr; }
    .z-about-cols { grid-template-columns: 1fr; }
    .z-about-rail { position: static; }
    .z-idrow { flex-direction: column; align-items: flex-start; margin-left: 16px; gap: 12px; }
    .z-actions { padding-bottom: 0; }
    .z-people-grid { grid-template-columns: repeat(2, 1fr); }
    .z-friends-full { grid-template-columns: repeat(3, 1fr); }
    .z-photogrid { grid-template-columns: repeat(2, 1fr); }
}
