/* ============================================================
   NWO MR — Spectral Holographic UI
   - Ultra-thin Bricolage Grotesque + Geist Mono
   - Hairline borders (0.5px) on glass surfaces
   - Animated iridescent aurora background
   - TimeMachine 3D coverflow deck (v2)
   ============================================================ */

:root {
    /* Triadic spectrum used everywhere */
    --c1: #ff3df0;   /* magenta */
    --c2: #4dd9ff;   /* cyan */
    --c3: #b3ff5c;   /* lime */
    --c4: #ffd24d;   /* amber */
    --c5: #9966ff;   /* violet */

    --ink:   #f4f1ff;
    --ink-2: #b5b1ce;
    --ink-3: #6d6985;
    --ink-4: #3a374d;

    --void:  #07060e;
    --void-2:#0d0b18;
    --glass: rgba(255, 255, 255, 0.025);
    --glass-2: rgba(255, 255, 255, 0.045);

    --line:  rgba(255, 255, 255, 0.08);
    --line-2:rgba(255, 255, 255, 0.16);

    --hairline: 0.5px;

    --font-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
    --font-body:    'Geist', 'Helvetica Neue', sans-serif;
    --font-mono:    'Geist Mono', 'SF Mono', monospace;

    --t-fast: 200ms;
    --t-med:  400ms;
    --t-slow: 900ms;
    --ease:   cubic-bezier(0.2, 0.7, 0.2, 1);

    --hdr-h: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--void);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 14px;
    letter-spacing: 0.01em;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================================
   AURORA BACKGROUND
   ============================================================ */

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

.aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    mix-blend-mode: screen;
}

.aurora-1 {
    width: 60vw; height: 60vw;
    top: -15vw; left: -10vw;
    background: radial-gradient(circle, var(--c1) 0%, transparent 60%);
    animation: drift-1 28s var(--ease) infinite alternate;
}

.aurora-2 {
    width: 70vw; height: 70vw;
    bottom: -20vw; right: -20vw;
    background: radial-gradient(circle, var(--c2) 0%, transparent 60%);
    animation: drift-2 34s var(--ease) infinite alternate;
}

.aurora-3 {
    width: 50vw; height: 50vw;
    top: 40vh; left: 30vw;
    background: radial-gradient(circle, var(--c5) 0%, transparent 60%);
    animation: drift-3 41s var(--ease) infinite alternate;
}

@keyframes drift-1 { to { transform: translate(20vw, 25vh) scale(1.2); } }
@keyframes drift-2 { to { transform: translate(-15vw, -20vh) scale(0.85); } }
@keyframes drift-3 { to { transform: translate(10vw, -30vh) scale(1.3); } }

.aurora-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.aurora-noise {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER
   ============================================================ */

.hdr {
    position: relative;
    z-index: 10;
    height: var(--hdr-h);
    padding: 0 36px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 48px;
    background: rgba(7, 6, 14, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: var(--hairline) solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
}

.phi {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 36px;
    line-height: 1;
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hue-shift 12s linear infinite;
    text-shadow: 0 0 30px rgba(255,61,240,0.3);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 15px;
    letter-spacing: 0.18em;
}

.net-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-right: 6px;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--c3);
    border: var(--hairline) solid var(--line);
    border-radius: 2px;
    background: var(--glass);
}

@keyframes hue-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50%      { filter: hue-rotate(60deg); }
}

.nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--ink-3);
    border: var(--hairline) solid transparent;
    border-radius: 2px;
    transition: all var(--t-fast) var(--ease);
    text-transform: uppercase;
}

.nav-item:hover {
    color: var(--ink-2);
    border-color: var(--line);
    background: var(--glass);
}

.nav-item.is-active {
    color: var(--ink);
    background: var(--glass-2);
    border-color: var(--line-2);
}

.nav-num {
    font-size: 9px;
    color: var(--ink-4);
}

.nav-item.is-active .nav-num {
    color: var(--c2);
}

.hdr-end {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-3);
    display: inline-block;
}

.dot.live {
    background: var(--c3);
    box-shadow: 0 0 12px var(--c3);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

.wallet {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink);
    background: transparent;
    border: var(--hairline) solid var(--line-2);
    border-radius: 2px;
    transition: all var(--t-fast) var(--ease);
    font-weight: 300;
}

.wallet:hover {
    color: var(--c2);
    border-color: var(--c2);
    background: var(--glass);
}

.wallet.is-connected {
    color: var(--c3);
    border-color: rgba(179, 255, 92, 0.4);
}

.w-arrow {
    font-size: 14px;
    opacity: 0.6;
}

@keyframes shift-bg {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================================
   STAGE & VIEWS
   ============================================================ */

.stage {
    position: relative;
    z-index: 5;
    height: calc(100vh - var(--hdr-h));
    overflow: hidden;
}

.view {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease);
    overflow-y: auto;
    overflow-x: hidden;
}

.view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-head {
    padding: 60px 60px 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: clamp(48px, 6vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-sub {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 15px;
    color: var(--ink-2);
    max-width: 640px;
    line-height: 1.5;
}

/* ============================================================
   TIMELINE — coverflow deck (v2)
   ============================================================ */

.view-timeline {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
}

.tm-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    padding: 40px 60px 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.tm-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: clamp(56px, 7vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.tm-sub {
    font-weight: 200;
    font-size: 14px;
    color: var(--ink-2);
    max-width: 500px;
    line-height: 1.5;
    margin-top: 14px;
}

.tm-stats {
    display: flex;
    gap: 28px;
}

.kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-left: 28px;
    border-left: var(--hairline) solid var(--line);
}

.kpi-num {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--ink);
    background: linear-gradient(135deg, var(--c2), var(--c3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.kpi-lbl {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--ink-3);
}

/* The 3D scene + deck */

.tm-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1800px;
    perspective-origin: 50% 45%;
    overflow: visible;
    outline: none;
}

.tm-deck {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0; height: 0;
    transform-style: preserve-3d;
}

/* Card. Width/height/centering are set inline by JS so they can swap
   responsively without media query overrides. */
.tm-card {
    position: absolute;
    background: rgba(13, 11, 24, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: var(--hairline) solid var(--line-2);
    border-radius: 8px;
    padding: 20px 24px 18px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition: transform var(--t-med) var(--ease),
                opacity var(--t-med) var(--ease),
                filter var(--t-med) var(--ease),
                border-color var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
}

.tm-card.is-focused {
    box-shadow: 0 30px 80px rgba(153, 102, 255, 0.18),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.tm-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--card-c, var(--c2)), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
    pointer-events: none;
}

.tm-card.is-focused::before { opacity: 0.6; }
.tm-card:hover::before { opacity: 1; }

.tm-card .c-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.tm-card .c-type {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 9.5px;
    letter-spacing: 0.22em;
    color: var(--card-c, var(--c2));
}

.tm-card .c-time {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 10px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

/* The preview panel — image of the agent's avatar / item mesh /
   environment thumbnail, or a stylized glyph fallback. */
.tm-card .c-preview {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    border: var(--hairline) solid var(--line);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--card-c, var(--c2)) 18%, transparent),
            color-mix(in srgb, var(--c5) 12%, transparent)
        ),
        rgba(7, 6, 14, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-card .c-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tm-card .c-preview-glyph {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 64px;
    line-height: 1;
    background: linear-gradient(135deg, var(--card-c, var(--c2)), var(--c5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 28px color-mix(in srgb, var(--card-c, var(--c2)) 40%, transparent);
    position: relative;
}

/* "3D" hint for events whose preview URL is a .glb / .gltf model */
.tm-card .c-preview-tag {
    position: absolute;
    top: -8px;
    right: -28px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    background: var(--card-c, var(--c2));
    padding: 2px 6px;
    border-radius: 100px;
    opacity: 0.85;
}

.tm-card .c-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
}

.tm-card .c-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 22px;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tm-card .c-sub {
    font-weight: 200;
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.4;
}

.tm-card .c-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: var(--hairline) solid var(--line);
    gap: 12px;
}

.tm-card .c-actor {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tm-card .c-actor-av {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-c, var(--c2)), var(--c5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--void);
    font-weight: 300;
    flex-shrink: 0;
}

.tm-card .c-actor-name {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-card .c-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    text-align: right;
    flex-shrink: 0;
}

.tm-card .c-value {
    color: var(--c3);
}

/* ============================================================
   SCRUBBER — pill knob with ‹ ● › buttons
   ============================================================ */

.tm-scrub {
    padding: 16px 60px 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.scrub-track {
    position: relative;
    height: 1px;
    background: var(--line);
    cursor: pointer;
}

.scrub-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
    width: 0;
    pointer-events: none;
}

/* The knob is now a horizontal pill: [‹  ●  ›].
   JS sets `left: X%`; we re-center the pill on that point via translate. */
.scrub-knob {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 5px;
    background: rgba(13, 11, 24, 0.88);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: var(--hairline) solid var(--line-2);
    border-radius: 100px;
    cursor: grab;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
                0 0 14px color-mix(in srgb, var(--c2) 30%, transparent);
    pointer-events: auto;
    transition: box-shadow var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease),
                left var(--t-fast) linear;
}

.scrub-knob:hover {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6),
                0 0 24px color-mix(in srgb, var(--c2) 50%, transparent);
}

.scrub-knob.is-dragging {
    cursor: grabbing;
    transition: box-shadow var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease);
    /* No `left` transition while dragging — needs to track cursor 1:1 */
}

.scrub-arrow {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ink-2);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1;
    font-weight: 300;
    user-select: none;
    transition: background var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease),
                transform var(--t-fast) var(--ease);
}

.scrub-arrow:hover {
    background: var(--glass-2);
    color: var(--ink);
}

.scrub-arrow:active {
    transform: scale(0.9);
}

.scrub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 12px var(--c2);
    margin: 0 2px;
    flex-shrink: 0;
    pointer-events: none;
}

.scrub-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--ink-3);
}

#scrubFocusLabel {
    color: var(--ink);
}

/* Empty state */

.tm-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 40px;
}

.tm-empty.hidden { display: none; }

.empty-glyph {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 120px;
    line-height: 1;
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hue-shift 12s linear infinite;
    margin-bottom: 12px;
}

.empty-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 28px;
    letter-spacing: -0.01em;
}

.empty-body {
    font-weight: 200;
    color: var(--ink-2);
    max-width: 380px;
    line-height: 1.5;
}

.cta {
    margin-top: 14px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--void);
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
    background-size: 200% 200%;
    animation: shift-bg 8s ease infinite;
    border-radius: 2px;
    transition: transform var(--t-fast) var(--ease);
    font-weight: 400;
}

.cta:hover {
    transform: translateY(-2px);
}

/* ============================================================
   AGENT DETAIL VIEW
   ============================================================ */

.view-agent {
    padding: 40px 60px;
}

.ad-head {
    max-width: 1600px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: var(--hairline) solid var(--line);
}

.back-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-3);
    padding: 10px 16px;
    border: var(--hairline) solid var(--line);
    border-radius: 2px;
    transition: all var(--t-fast) var(--ease);
}

.back-btn:hover {
    color: var(--ink);
    border-color: var(--c2);
}

.ad-id {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ad-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c1), var(--c5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 200;
    color: var(--void);
    border: var(--hairline) solid var(--line-2);
}

.ad-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 200;
    letter-spacing: -0.02em;
}

.ad-addr {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.1em;
}

.ad-verify {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    padding: 6px 12px;
    border-radius: 100px;
    border: var(--hairline) solid var(--line-2);
}
.ad-verify.is-verified {
    background: rgba(179, 255, 92, 0.08);
    color: var(--c3);
    border-color: rgba(179, 255, 92, 0.3);
}

.ad-rep {
    text-align: right;
}

.ad-rep-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ink-3);
}

.ad-rep-val {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 300;
    background: linear-gradient(135deg, var(--c2), var(--c3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.ad-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 28px;
}

.ad-rail, .ad-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rail-block {
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    padding: 20px;
}

.rail-title, .seg-tabs, .feed-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ink-3);
}

.rail-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: var(--hairline) solid var(--line);
}

.vital, .fin, .feat-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    color: var(--ink-2);
}

.vital span, .fin span, .feat-status span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--ink-3);
}

.vital b, .fin b {
    font-family: var(--font-mono);
    font-weight: 300;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.feat-status b.dot {
    background: var(--ink-4);
}

.feat-status.is-live b.dot {
    background: var(--c3);
    box-shadow: 0 0 8px var(--c3);
    animation: pulse 2s infinite;
}

/* Gallery */

.ad-center {
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    padding: 20px;
}

.seg-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: var(--hairline) solid var(--line);
}

.seg {
    padding: 12px 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ink-3);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: all var(--t-fast) var(--ease);
}

.seg:hover { color: var(--ink-2); }

.seg.is-active {
    color: var(--ink);
    border-bottom-color: var(--c2);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.g-empty, .feed-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-3);
    font-style: italic;
    font-size: 13px;
}

.g-item {
    background: var(--glass-2);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--t-fast) var(--ease);
    cursor: pointer;
}

.g-item:hover {
    border-color: var(--c2);
    transform: translateY(-2px);
}

.g-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--c1), var(--c5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 40px;
    color: rgba(255,255,255,0.5);
    font-weight: 200;
}

.g-info {
    padding: 10px 12px;
}

.g-cat {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--c2);
}

.g-name {
    font-size: 13px;
    margin: 4px 0 6px;
    line-height: 1.3;
}

.g-price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c3);
}

/* Activity feed */

.feed {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.feed-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: var(--hairline) solid var(--line);
}

.feed-row:last-child { border-bottom: none; }

.feed-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: var(--hairline) solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--c2);
}

.feed-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feed-desc {
    font-size: 12.5px;
    line-height: 1.35;
}

.feed-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
}

/* ============================================================
   AGENTS GRID / MARKET GRID
   ============================================================ */

.agents-grid, .market-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.agent-cell {
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    padding: 22px;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-cell:hover {
    border-color: var(--c2);
    transform: translateY(-2px);
    background: var(--glass-2);
}

.ac-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c1), var(--c5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--void);
    font-weight: 200;
}

.ac-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 200;
    letter-spacing: -0.01em;
}

.ac-addr {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
}

.ac-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 14px;
    border-top: var(--hairline) solid var(--line);
}

.ac-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-stat b {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--c2);
    font-weight: 300;
    font-variant-numeric: tabular-nums;
}

.ac-stat span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--ink-3);
}

/* Market */

.filters {
    max-width: 1600px;
    margin: 0 auto 30px;
    padding: 0 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink-3);
    border: var(--hairline) solid var(--line);
    border-radius: 100px;
    transition: all var(--t-fast) var(--ease);
}

.filter:hover { color: var(--ink-2); border-color: var(--line-2); }

.filter.is-active {
    color: var(--ink);
    background: var(--glass-2);
    border-color: var(--c2);
}

.m-item {
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--t-fast) var(--ease);
}

.m-item:hover {
    border-color: var(--c2);
    transform: translateY(-2px);
}

.m-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 56px;
    color: rgba(255,255,255,0.55);
    font-weight: 200;
}

.m-info {
    padding: 16px 20px;
}

.m-cat {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.22em;
    color: var(--c2);
    margin-bottom: 6px;
}

.m-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 200;
    margin-bottom: 10px;
}

.m-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: var(--hairline) solid var(--line);
}

.m-price {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--c3);
    font-variant-numeric: tabular-nums;
}

.buy-btn {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--void);
    background: var(--c3);
    border-radius: 2px;
    transition: all var(--t-fast) var(--ease);
}

.buy-btn:hover { background: var(--c2); }

/* ============================================================
   FEATURES
   ============================================================ */

.feat-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.feat-card {
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    padding: 28px;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.feat-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, var(--feat-c, var(--c2)) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
    pointer-events: none;
    mix-blend-mode: screen;
}

.feat-card:hover { border-color: var(--line-2); }
.feat-card:hover::after { opacity: 0.08; }

.feat-card[data-feat="avatar"] { --feat-c: var(--c1); }
.feat-card[data-feat="blaster"] { --feat-c: var(--c2); }
.feat-card[data-feat="articraft"] { --feat-c: var(--c3); }
.feat-card[data-feat="sim"] { --feat-c: var(--c4); }
.feat-card[data-feat="market"] { --feat-c: var(--c5); }
.feat-card[data-feat="identity"] { --feat-c: var(--c1); }

.feat-glyph {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 200;
    color: var(--feat-c, var(--c2));
    line-height: 1;
}

.feat-card h3 {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.feat-card p {
    font-weight: 200;
    color: var(--ink-2);
    line-height: 1.5;
    font-size: 13px;
}

.feat-live {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: var(--hairline) solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
}

.feat-live b {
    color: var(--feat-c, var(--c2));
    font-weight: 400;
}

.feat-active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feat-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 4px 8px;
    background: var(--glass-2);
    border: var(--hairline) solid var(--line);
    border-radius: 100px;
    color: var(--ink-2);
    letter-spacing: 0.1em;
}

/* ============================================================
   HOW-TO
   ============================================================ */

.view-howto { padding-bottom: 80px; }

.howto-canvas {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.howto-canvas svg {
    width: 100%;
    height: auto;
    display: block;
}

.howto-legend {
    max-width: 1600px;
    margin: 30px auto 0;
    padding: 0 60px;
    display: flex;
    gap: 28px;
}

.lg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--ink-2);
}

.lg-sw {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Flowchart node styles */

.fc-lane {
    fill: rgba(255,255,255,0.02);
    stroke: var(--line);
    stroke-width: 0.5;
}

.fc-lane-label {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3em;
}
.fc-lane-label.h { fill: var(--c1); }
.fc-lane-label.a { fill: var(--c2); }
.fc-lane-label.r { fill: var(--c3); }

.fc-lane-body {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 200;
    fill: var(--ink-2);
}

.fc-node {
    fill: rgba(13, 11, 24, 0.85);
    stroke-width: 1.2;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.fc-node.h { stroke: var(--c1); }
.fc-node.a { stroke: var(--c2); }
.fc-node.r { stroke: var(--c3); }

.fc-node:hover {
    fill: rgba(13, 11, 24, 0.98);
    filter: drop-shadow(0 0 12px currentColor);
}

.fc-label {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 17px;
    fill: var(--ink);
    pointer-events: none;
    letter-spacing: -0.01em;
}

.fc-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    fill: var(--ink-3);
    pointer-events: none;
}

.fc-arrow {
    stroke: var(--line-2);
    stroke-width: 1;
    fill: none;
    marker-end: url(#fc-arrowhead);
}

.fc-arrow.cross {
    stroke-dasharray: 4 4;
    stroke: var(--c5);
    opacity: 0.65;
}

.fc-callout {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.32em;
    fill: var(--ink-3);
}

/* ============================================================
   TOAST
   ============================================================ */

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 1000;
    padding: 14px 22px;
    background: rgba(13, 11, 24, 0.95);
    backdrop-filter: blur(20px);
    border: var(--hairline) solid var(--line-2);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--ink);
    transition: transform var(--t-med) var(--ease);
    pointer-events: none;
    max-width: 480px;
    text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--c1); color: var(--c1); }
.toast.ok  { border-color: var(--c3); color: var(--c3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    .ad-grid { grid-template-columns: 1fr; }
    .ad-rail, .ad-feed { order: 2; }
    .tm-meta { grid-template-columns: 1fr; }
    .tm-stats { flex-wrap: wrap; gap: 18px; }
    .kpi { padding-left: 18px; }
}

@media (max-width: 768px) {
    .hdr { grid-template-columns: auto auto; padding: 0 18px; gap: 12px; }
    .nav { display: none; }
    .page-head, .tm-meta, .filters, .agents-grid, .market-grid, .feat-grid, .howto-canvas {
        padding-left: 20px; padding-right: 20px;
    }
    .tm-scrub { padding-left: 20px; padding-right: 20px; }
    .tm-card .c-preview { height: 88px; }
    .tm-card .c-preview-glyph { font-size: 44px; }
    .tm-card .c-title { font-size: 18px; }
    .scrub-arrow { width: 20px; height: 20px; font-size: 14px; }
}

/* ============================================================
   ADD-ON STYLES — paste at end of src/styles.css
   Adds: Create-tab tools + Media modal
   ============================================================ */

/* ============================================================
   CREATE VIEW — generation tools
   ============================================================ */

.view-create { padding-bottom: 60px; }

.create-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 22px;
}

.create-tool {
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.create-tool--stub {
    opacity: 0.55;
}

.ct-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ct-glyph {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 38px;
    color: var(--c2);
    line-height: 1;
}

.ct-head h3 {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 22px;
    letter-spacing: -0.01em;
    flex: 1;
}

.ct-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.1em;
    width: 100%;
    margin-top: -6px;
}

.ct-desc {
    font-weight: 200;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}

.ct-input {
    background: var(--glass-2);
    border: var(--hairline) solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 300;
    resize: vertical;
    outline: none;
    width: 100%;
    line-height: 1.5;
    transition: border-color var(--t-fast) var(--ease);
}

.ct-input:focus {
    border-color: var(--c2);
}

.ct-input::placeholder {
    color: var(--ink-4);
}

.ct-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ct-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink-3);
}

.ct-select select {
    background: var(--glass-2);
    border: var(--hairline) solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    outline: none;
}

.ct-go {
    margin-left: auto;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--void);
    background: linear-gradient(135deg, var(--c2), var(--c3));
    background-size: 200% 200%;
    border-radius: 2px;
    transition: transform var(--t-fast) var(--ease),
                background-position var(--t-med) var(--ease);
}

.ct-go:hover {
    transform: translateY(-1px);
    background-position: 100% 50%;
}

.ct-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ct-out {
    min-height: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-2);
}

.ct-out:not(:empty) {
    padding-top: 12px;
    border-top: var(--hairline) solid var(--line);
}

.ct-out .ct-out-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.ct-out .ct-out-thumb {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    background: var(--glass-2);
    border: var(--hairline) solid var(--line);
    object-fit: cover;
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease);
}

.ct-out .ct-out-thumb:hover {
    border-color: var(--c2);
}

.ct-out .ct-out-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.ct-out .ct-out-info b {
    color: var(--ink);
    font-weight: 300;
}

.ct-out .ct-out-info a {
    color: var(--c2);
    text-decoration: none;
    word-break: break-all;
}

.ct-out .ct-out-info a:hover { text-decoration: underline; }

.ct-out .ct-out-err {
    color: var(--c1);
    padding: 8px 0;
}

.ct-out .ct-out-pending {
    color: var(--c4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-out .ct-out-pending::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c4);
    box-shadow: 0 0 12px var(--c4);
    animation: pulse 1.4s ease-in-out infinite;
}

/* ============================================================
   MEDIA MODAL — for GLB meshes, splats, panoramas, images, videos
   ============================================================ */

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
}

.media-modal[hidden] { display: none; }

.mm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: zoom-out;
    animation: mm-fade-in 200ms var(--ease);
}

@keyframes mm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mm-frame {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    background: rgba(13, 11, 24, 0.92);
    border: var(--hairline) solid var(--line-2);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: mm-scale-in 240ms var(--ease);
}

@keyframes mm-scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.mm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: var(--hairline) solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.mm-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.mm-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mm-link {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ink-2);
    border: var(--hairline) solid var(--line-2);
    border-radius: 2px;
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
}

.mm-link:hover {
    color: var(--c2);
    border-color: var(--c2);
}

.mm-link[hidden] { display: none; }

.mm-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: var(--hairline) solid var(--line-2);
    color: var(--ink-2);
    font-size: 14px;
    transition: all var(--t-fast) var(--ease);
}

.mm-close:hover {
    color: var(--c1);
    border-color: var(--c1);
    transform: scale(1.05);
}

.mm-content {
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-content model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background: radial-gradient(ellipse at center, rgba(77,217,255,0.05), transparent 60%);
}

.mm-content img.mm-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mm-content video.mm-video {
    max-width: 100%;
    max-height: 100%;
}

.mm-content iframe.mm-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mm-content .mm-pano {
    width: 100%;
    height: 100%;
}

.mm-foot {
    padding: 10px 22px;
    border-top: var(--hairline) solid var(--line);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.mm-foot:empty { display: none; }

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ============================================================
   Make gallery items / market items / preview areas indicate they're clickable
   ============================================================ */

.tm-card .c-preview {
    cursor: zoom-in;
    transition: filter var(--t-fast) var(--ease);
}
.tm-card.is-focused .c-preview:hover {
    filter: brightness(1.15);
}

.g-item, .m-item { cursor: zoom-in; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .create-grid { padding-left: 20px; padding-right: 20px; }
    .mm-frame    { border-radius: 4px; }
    .mm-bar      { padding: 10px 14px; }
    .mm-title    { font-size: 16px; }
    .mm-content model-viewer { width: 100% !important; }
}

/* ============================================================
   V6 COMPATIBILITY ALIASES
   ============================================================ */

:root {
    --line-1: var(--line);
    --line-2: var(--line-2);
    --line-3: rgba(255,255,255,.24);

    --ink-1: var(--ink);
    --bg-0: var(--void);

    --accent: var(--c4);
}

/* ============================================================
   CREATE TAB HELPERS
   ============================================================ */

.create-tool.is-soon {
    opacity: 0.7;
}

.ct-head-text {
    flex: 1;
    min-width: 0;
}

.ct-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.ct-sub {
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-badge-live,
.ct-badge-soon {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    border: var(--hairline) solid currentColor;
    flex-shrink: 0;
}

.ct-badge-live {
    color: var(--c3);
}

.ct-badge-soon {
    color: var(--c4);
}

.ct-hint {
    font-size: 11px;
    color: var(--ink-3);
    line-height: 1.5;
}

/* ============================================================
   MEDIA MODAL NAVIGATION OVERLAY
   ============================================================ */

.mm-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 14px;
    z-index: 5;
    pointer-events: none;
}

.mm-nav-group {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(13,11,24,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--hairline) solid var(--line-2);
    pointer-events: auto;
}

.mm-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: var(--hairline) solid var(--line);
    color: var(--ink);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.mm-nav-btn:hover {
    background: var(--glass-2);
    border-color: var(--line-2);
}

.mm-nav-btn:active {
    transform: scale(.94);
}

.mm-nav-vr {
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        var(--c2),
        var(--c3)
    );
    color: var(--void);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease);
}

.mm-nav-vr:hover {
    transform: translateY(-1px);
}

.mm-nav-vr:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.mm-nav-reset {
    width: auto;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-style: dashed;
}

.mm-nav-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    max-width: 240px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(13,11,24,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--hairline) solid var(--line-2);
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.6;
    pointer-events: none;
    opacity: .85;
}

.mm-hint-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-hint-row kbd {
    padding: 1px 6px;
    border-radius: 4px;
    border: var(--hairline) solid var(--line-2);
    background: rgba(255,255,255,.05);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* ============================================================
   FEATURES V6 LAYOUT
   ============================================================ */

.features-stack {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0,320px) 1fr;
    gap: 32px;
    align-items: start;
    padding: 26px 0;
    border-bottom: var(--hairline) solid var(--line);
}

.feature-row:last-child {
    border-bottom: none;
}

.fr-meta {
    min-width: 0;
}

.fr-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fr-glyph {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: var(--hairline) solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    color: var(--ink);
    font-size: 18px;
    flex-shrink: 0;
}

.fr-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 300;
    color: var(--ink);
}

.fr-status {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    border: var(--hairline) solid currentColor;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fr-status.live {
    color: var(--c3);
}

.fr-status.soon {
    color: var(--c4);
}

.fr-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-2);
    margin-bottom: 12px;
}

.fr-tech {
    font-size: 11px;
    color: var(--ink-3);
    line-height: 1.7;
}

.fr-tech b {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fr-flow {
    overflow-x: auto;
    padding: 20px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    border: var(--hairline) solid var(--line);
}

.fr-flow svg {
    width: 100%;
    height: auto;
    max-height: 180px;
    display: block;
}

.fr-flow svg .flow-line {
    stroke: var(--line-2);
    stroke-width: .75;
    fill: none;
}

.fr-flow svg .flow-arrow {
    fill: var(--line-2);
}

.fr-flow svg .flow-node-bg {
    fill: rgba(255,255,255,.02);
    stroke: var(--line-2);
    stroke-width: .75;
}

.fr-flow svg .flow-node-text {
    fill: var(--ink);
    font-family: var(--font-display);
    font-size: 9.5px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.fr-flow svg .flow-node-sub {
    fill: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 7.5px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.fr-flow svg .flow-node-accent {
    fill: rgba(255,210,77,.08);
    stroke: var(--c4);
}

.fr-flow svg .flow-node-soon {
    fill: rgba(255,255,255,.015);
    stroke: var(--line-2);
    stroke-dasharray: 2 2;
}

/* ============================================================
   RESPONSIVE EXTENSIONS
   ============================================================ */

@media (max-width: 860px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 768px) {

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

    .mm-nav {
        bottom: 10px;
        gap: 8px;
        flex-wrap: wrap;
        padding: 0 8px;
    }

    .mm-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .mm-nav-hint {
        display: none;
    }
}