/* ═══════════════════════════════════════════
   ORBIT PROTOTYPE v4 — style.css
   Globe-centric, modal-driven, mobile-first
   Compositor & Governance 3D Preview
   ═══════════════════════════════════════════ */

:root {
    --bg: #020202;
    --panel: #050505;
    --line: rgba(255, 255, 255, 0.08);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.76);
    --dim: rgba(255, 255, 255, 0.2);
    --blue: #ffffff;
    --blue-glow: rgba(10, 43, 255, 0.26);
    --success: #00c853;
    --danger: #ff3b30;
    --nav-h: 48px;
    --mono: 'Roboto', monospace;
    --border-diegetic: 1px solid rgba(255, 255, 255, 0.12);
    --bg-diegetic: #050505;

    /* aliases for compatibility with original app's variables */
    --cyan: var(--blue);
    --cyan-glow: var(--blue-glow);

    /* layout variables for home redesign */
    --home-sidebar-w: 180px;
    --live-panel-w: 220px;
    --home-panel-gap: 14px;
    --mobile-footer-h: 56px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ── Starfield & Scanlines ── */
#starField {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
}

/* ═══════════════════════════════════════
   SYSTEM TRANSITION OVERLAY
   ═══════════════════════════════════════ */

.system-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.system-transition.active {
    opacity: 1;
    pointer-events: auto;
}

.st-content {
    text-align: center;
    position: relative;
}

.st-scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.015) 1px,
            rgba(255, 255, 255, 0.015) 2px);
    pointer-events: none;
    animation: stScanDrift 0.5s linear infinite;
}

.st-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    animation: stFlicker 0.15s steps(2) infinite;
    position: relative;
    z-index: 1;
}

.st-sub {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--dim);
    margin-top: 8px;
    animation: stFadeIn 0.3s ease 0.1s both;
    position: relative;
    z-index: 1;
}

@keyframes stFlicker {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes stScanDrift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(2px);
    }
}

@keyframes stFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Toast ── */
.toast-container {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast {
    background: rgba(8, 8, 8, 0.95);
    border: 1px solid var(--line);
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn .4s ease, toastOut .4s ease 3.4s forwards;
    border-radius: 6px;
    backdrop-filter: blur(12px);
}

.toast-icon {
    font-size: 14px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ── Nav ── */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    background: var(--bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    z-index: 500;
}

.nav-brand {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text);
}

.nav-brand span {
    font-weight: 100;
    color: var(--muted);
}

.nav-center {
    display: flex;
    align-items: center;
}

.platform-switch {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 2px;
}

.platform-switch button {
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all .2s;
}

.platform-switch button.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.platform-switch button:hover {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-wallet {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
}

.wallet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.wallet-addr {
    display: none;
}

@media (min-width: 600px) {
    .wallet-addr {
        display: inline;
    }
}

/* ── Globe ── */
#globeContainer {
    position: fixed;
    inset: 0;
    z-index: 2;
    padding-top: var(--nav-h);
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease, padding 0.3s ease;
}

#globeContainer.ready {
    opacity: 1;
}

@media (min-width: 540px) {
    #globeContainer {
        padding-left: var(--home-sidebar-w);
        padding-right: calc(var(--live-panel-w) + var(--home-panel-gap));
    }
}

#globeContainer.dimmed {
    opacity: 0.3;
    filter: blur(2px);
    pointer-events: none;
}

#globeViz {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#globeViz:active {
    cursor: grabbing;
}

#globeContainer.node-hover #globeViz {
    cursor: pointer;
}

.globe-node-hit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 30px;
    padding: 8px 12px 9px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-12px, -50%);
    isolation: isolate;
}

.globe-node-hit::before {
    content: '';
    position: absolute;
    inset: 4px 5px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.14));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 4px 18px rgba(0, 0, 0, 0.38);
    opacity: 0.72;
    transition: border-color .2s ease, background .2s ease, opacity .2s ease, transform .2s ease;
}

.globe-node-hit:hover::before,
.globe-node-hit:focus-visible::before {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
    opacity: 1;
    transform: scaleX(1.02);
}

.globe-node-hit:focus-visible {
    outline: none;
}

.globe-node-dot {
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    margin-left: -2px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.72), 0 0 20px rgba(255, 255, 255, 0.2);
}

.globe-node-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: inherit;
    opacity: 0;
    animation: globe-pulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes globe-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.8);
        opacity: 0;
    }
}

.globe-node-name {
    position: relative;
    z-index: 1;
    padding-left: 9px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.65px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.globe-hud {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
    text-align: center;
    transition: opacity 0.4s ease;
}

.globe-hud.hidden {
    opacity: 0;
}

.globe-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 1);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2.4px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: none;
    opacity: 0.8;
    transition: opacity .25s ease, color .25s ease, transform .25s ease;
}

#globeContainer.node-hover .globe-hint {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* ── FOCO DE PAÍS EN EL GLOBO ── */
#globeFocusChip {
    position: absolute;
    top: calc(var(--nav-h) + 12px);
    right: 14px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 8, 8, 0.92);
    color: var(--text);
    font-family: inherit;
    font-size: 8.5px;
    letter-spacing: 1.2px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

#globeFocusChip:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 992px) {
    #globeFocusChip {
        right: calc(var(--live-panel-w) + var(--home-panel-gap) + 6px);
    }
}

/* ── Globe Tooltip (Glassmorphism) ── */
.globe-tooltip {
    background: rgba(8, 8, 8, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    pointer-events: none;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.tt-name {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 4px;
}

.tt-city {
    font-size: 14px;
    font-weight: 100;
    letter-spacing: 1px;
    color: var(--text);
}

.tt-meta {
    font-size: 9px;
    color: var(--muted);
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.tt-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── FABs ── */
.fab-group {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fab-group.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.fab {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all .3s;
    backdrop-filter: blur(16px);
}

.fab-icon {
    font-size: 16px;
    line-height: 1;
}

.fab-text {
    display: none;
}

.fab-primary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cyan);
    border-color: rgba(255, 255, 255, 0.15);
    padding: 14px;
}

.fab-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.fab-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 12px;
}

.fab-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

@media (min-width: 600px) {
    .fab {
        padding: 12px 20px !important;
    }

    .fab-text {
        display: inline;
    }
}

/* ═══════════════════════════════════════
   OS-WINDOW MODAL SYSTEM
   ═══════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.os-window {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    width: 94vw;
    max-height: 90vh;
}

.modal-overlay.active .os-window {
    transform: translateY(0) scale(1);
}

.os-large {
    max-width: 720px;
}

.os-compact {
    max-width: 480px;
}

@media (min-width: 768px) {
    .os-large {
        width: 82vw;
        max-width: 1000px;
    }

    /* Node Inspector: fixed browser-like window */
    #modalNode .os-window {
        height: 78vh;
    }

    /* Dashboard: fixed height too */
    #modalDashboard .os-window {
        height: 74vh;
    }
}

.os-header {
    height: 32px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    flex-shrink: 0;
}

.os-header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.os-dots-container {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.os-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background .2s;
}

.os-dots-container:hover .os-dot {
    background: rgba(255, 255, 255, 0.25);
}

.os-dot-close {
    position: relative;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.os-dot-close::before,
.os-dot-close::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all .3s;
}

.os-dots-container:hover .os-dot-close::before {
    width: 9px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    transform: rotate(45deg);
}

.os-dots-container:hover .os-dot-close::after {
    width: 9px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    transform: rotate(-45deg);
}

.os-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.os-scroll {
    overflow-y: auto;
}

/* OS Sidebar (Dashboard) */
.os-modal-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.os-sidebar {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    overflow-x: auto;
    flex-shrink: 0;
}

.os-sidebar-item {
    padding: 14px 20px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    flex: 1;
}

.os-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.os-sidebar-item.active {
    color: var(--cyan);
}

.os-sidebar-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan);
}

/* ── Desktop sidebar: file-explorer style ── */
@media (min-width: 768px) {
    .os-modal-content {
        flex-direction: row;
        flex: 1;
        min-height: 0;
    }

    .os-sidebar {
        flex-direction: column;
        width: 148px;
        min-width: 148px;
        border-bottom: none;
        border-right: 1px solid var(--line);
        overflow-x: visible;
        overflow-y: auto;
        justify-content: flex-start;
        padding: 4px 0;
    }

    .os-sidebar-item {
        justify-content: flex-start;
        padding: 9px 14px;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 1.5px;
        flex: 0 0 auto;
    }

    .os-sidebar-item.active {
        background: rgba(255, 255, 255, 0.06);
        border-left: 2px solid var(--cyan);
        padding-left: 12px;
    }

    .os-sidebar-item.active::after {
        display: none;
    }

    .sidebar-group-label {
        display: block;
        font-size: 7px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--dim);
        padding: 10px 14px 4px;
        user-select: none;
    }
}

/* Node Tab visibility */
.node-tab {
    display: none;
}

.node-tab.active {
    display: block;
    animation: fadeIn .3s ease;
}

.os-main-view {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}

.os-badge {
    background: rgba(0, 242, 255, 0.15);
    color: var(--cyan);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    letter-spacing: 0;
}

.dash-tab {
    display: none;
}

.dash-tab.active {
    display: block;
}

/* ── OS Form Elements ── */
.os-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 300;
    outline: none;
    transition: border-color .2s;
}

.os-input:focus {
    border-color: var(--cyan);
}

.os-input-sm {
    padding: 8px 10px;
    font-size: 12px;
}

.os-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
}

.os-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.os-btn-primary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--cyan);
}

.os-btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px var(--cyan-glow);
}

.os-btn-success {
    background: rgba(0, 200, 83, 0.12);
    border-color: rgba(0, 200, 83, 0.3);
    color: var(--success);
}

.os-section {
    margin-bottom: 16px;
}

.os-section-title {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

/* ════════════════════════════════════════
   NODE INSPECTOR — Fixed Browser Window
   ════════════════════════════════════════ */

.node-inspector-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.node-3d-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: radial-gradient(circle at center, #15151b 0%, #050508 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.node-3d-container canvas,
#node3DDetail {
    width: 100% !important;
    height: 100% !important;
}

.node-3d-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.node-3d-name {
    font-size: 15px;
    font-weight: 100;
    letter-spacing: 2px;
    color: var(--cyan);
}

.node-3d-loc {
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.node-3d-type {
    display: inline-block;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--cyan);
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 6px;
}

.node-info-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .node-inspector-layout {
        flex-direction: row;
        height: 100%;
        gap: 0;
    }

    .node-3d-container {
        width: 52%;
        height: 100%;
        border-radius: 0;
        flex-shrink: 0;
    }

    .node-info-panel {
        flex: 1;
        padding: 16px;
        overflow-y: auto;
    }
}

/* ═══════════════════════════════════════
   BUILDER
   ═══════════════════════════════════════ */

.builder-step {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.builder-step:last-of-type {
    border-bottom: none;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
}

.resolve-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.resolve-bar .os-input-sm {
    flex: 1;
    min-width: 100px;
}

.sel-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
    margin-bottom: 8px;
    min-height: 4px;
}

.sel-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--cyan);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sel-thumb img,
.sel-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sel-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
}

@media (min-width: 600px) {
    .nft-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .nft-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nft-card {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 24, 33, 0.5);
    transition: all .2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.nft-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.nft-card.selected {
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
}

.nft-media {
    width: 100%;
    max-height: 220px;
    min-height: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
}

.nft-media img,
.nft-media video {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

.nft-info {
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.6);
}

.nft-title {
    font-size: 10px;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-artist {
    font-size: 9px;
    color: var(--muted);
}

.builder-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   EXHIBITIONS LIST
   ═══════════════════════════════════════ */

.exh-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exh-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}

.exh-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.exh-row.active {
    background: rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--cyan);
}

.exh-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.exh-pip.pending {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.exh-pip.approved {
    background: var(--success);
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.4);
}

.exh-pip.rejected {
    background: var(--danger);
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.4);
}

.exh-pip.draft {
    background: var(--dim);
}

.exh-info {
    flex: 1;
    min-width: 0;
}

.exh-name {
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exh-sub {
    font-size: 9px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exh-status-label {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--dim);
}

.empty-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 11px;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   HOME REDESIGN STYLES
   ═══════════════════════════════════════ */

.network-home-ui {
    position: fixed;
    top: var(--nav-h);
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 120;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

.network-home-ui.hidden {
    display: none !important;
}

.home-sidebar {
    width: var(--home-sidebar-w);
    height: 100%;
    background: #030303;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    z-index: 130;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.home-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    gap: 24px;
}

.home-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-sidebar-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
}

.home-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.home-sidebar-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 500;
}

.home-sidebar-icon {
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.home-sidebar-btn.active .home-sidebar-icon {
    opacity: 1;
}

.home-sidebar-btn .active-dot {
    position: absolute;
    right: 24px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-sidebar-btn.active .active-dot {
    opacity: 1;
    transform: scale(1);
}

.home-inbox-badge {
    margin-left: auto;
    font-size: 8px;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.home-sidebar-actions {
    margin-top: 8px;
    padding: 0 14px;
}

.home-btn-primary {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.home-btn-primary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.1);
}

.home-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-title {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--muted);
    line-height: 1;
}

.status-subtitle {
    font-size: 9px;
    color: var(--dim);
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Right Panel: Live Curations */
.live-curations {
    width: var(--live-panel-w);
    position: fixed;
    top: calc(var(--nav-h) + var(--home-panel-gap));
    bottom: var(--home-panel-gap);
    right: var(--home-panel-gap);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    z-index: 130;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s;
}

.live-curations-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.live-curations-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

.live-indicator {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-dot {
    font-size: 10px;
    line-height: 1;
    animation: beacon 2s infinite ease-in-out;
}

@keyframes beacon {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.live-curations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lc-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
}

button.lc-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 12px 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: left;
    transition: background 0.15s ease;
}

button.lc-item:last-child {
    border-bottom: none;
}

button.lc-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lc-node {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.lc-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
}

.lc-node-text {
    display: block;
    min-width: 0;
}

.lc-loc {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-name {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-exh {
    display: block;
    min-width: 0;
}

.lc-title {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-artist {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-works {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.lc-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}

.lc-works-label {
    font-size: 8px;
    color: var(--dim);
    margin-top: 3px;
    letter-spacing: 0.5px;
}

.mobile-actions-row {
    display: none;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(var(--mobile-footer-h) + 12px);
    z-index: 425;
    gap: 10px;
    pointer-events: none;
}

.mobile-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    max-width: 190px;
    margin: 0 auto;
    padding: 11px 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.92);
    color: var(--text);
    font-family: inherit;
    font-size: 8.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.mobile-pill span {
    font-size: 11px;
}

.mobile-pill:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.os-back-btn {
    display: none;
}

/* ── Modal overlay & window depth ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.os-window {
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.98);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    width: 94%;
    max-width: 660px;
    max-height: 88vh;
}

.modal-overlay.active .os-window {
    transform: translateY(0) scale(1);
}

.os-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.builder-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── Responsive Overrides (Only on very small screens < 480px) ── */
@media (max-width: 480px) {
    .home-sidebar {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid var(--line);
        border-radius: 14px 14px 0 0;
        background: rgba(5, 5, 5, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.75);
        z-index: 100;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .home-sidebar-content {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .home-sidebar-nav {
        flex: 1;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    .home-sidebar-btn {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 10px 4px 8px;
        font-size: 8.5px;
        letter-spacing: 0.8px;
        text-align: center;
        border-radius: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-sidebar-actions {
        display: none;
    }

    .home-sidebar-footer {
        display: none;
    }

    .mobile-actions-row {
        display: flex;
    }

    #globeContainer {
        bottom: var(--mobile-footer-h);
    }

    .live-curations {
        display: none;
    }
}
