@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

.is-hidden {
    display: none !important;
}

:root {
    --pro-bg: var(--bg-primary);
    --pro-card-bg: var(--bg-surface);
    --pro-border: var(--border-subtle);
    --pro-text: var(--text-primary);
    --pro-text-dim: var(--text-dim);
    --pro-accent: var(--accent-primary);
    --pro-accent-gold: var(--accent-gold);
    --pro-success: var(--accent-emerald);
    --pro-warning: var(--accent-gold);
    --pro-danger: var(--accent-crimson);
    --pro-radius: 16px;
    --pro-shadow: var(--shadow-premium);
    --bg-surface-rgb: 255, 255, 255;
    /* Default fallback */

    /* SHADES & SURFACES (SYNCHRONIZED WITH MAIN) */
    --pro-white: var(--bg-primary);
    --pro-gray-50: var(--bg-surface);
    --pro-gray-100: var(--bg-secondary);
    --pro-gray-200: var(--border-subtle);
    --pro-gray-300: var(--text-dim);
    --pro-gray-400: var(--text-dim);
    --pro-gray-500: var(--text-secondary);
    --pro-gray-600: var(--text-secondary);
    --pro-blue-50: var(--bg-accent);
    --pro-blue-100: var(--bg-glass);
    --pro-blue-600: var(--accent-primary);
    --pro-blue-700: var(--accent-primary);
    --pro-amber-100: var(--area-warning-bg);
    --pro-amber-400: var(--accent-gold);
    --pro-amber-800: var(--accent-gold);
    --pro-red-100: var(--area-danger-bg);
    --pro-red-200: var(--area-danger-bg);
    --pro-red-500: var(--accent-crimson);
    --pro-black: #000000;

    /* DARK SURFACE PROTOCOL (FOR GALIA/ELITE NODES) */
    --pro-dark-bg: var(--bg-deep);
    --pro-dark-surface: var(--bg-surface);
    --pro-dark-text: var(--text-primary);

    /* ELITE SELECT COLORS */
    --elite-select-bg: rgba(255, 255, 255, 0.05);
    --elite-select-border: rgba(255, 255, 255, 0.1);
    --elite-select-hover: rgba(255, 255, 255, 0.08);

    /* SOVEREIGN GSC COLORS */
    --nx-gsc-red: var(--accent-crimson);
    --nx-gsc-blue: var(--accent-primary);
    --nx-gsc-green: var(--accent-emerald);
    --nx-gsc-gold: var(--accent-gold);
}

body {
    background-color: var(--pro-bg);
    color: var(--pro-text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: background 0.3s ease;
}

/* FULLSCREEN MODE PROTOCOL */
.nx-fullscreen-active {
    overflow: hidden;
}

.nx-fullscreen-active .nx-pro-sidebar {
    display: none;
}

.nx-fullscreen-active .nx-pro-main-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    height: 100vh;
    width: 100vw;
}

.nx-fullscreen-active .nx-pro-header {
    border-bottom: 2px solid var(--pro-accent);
}

/* PULSING VALIDATION */
@keyframes nx-pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        border-color: var(--pro-danger);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
        border-color: var(--pro-danger);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: var(--pro-danger);
    }
}

.nx-validation-error {
    animation: nx-pulse-error 1.5s infinite;
    border-width: 2px !important;
}

/* SCOPED SHELL & LAYOUT */
.nx-pro-editor-shell {
    display: flex;
    min-height: 100vh;
    margin-top: 70px;
    position: relative;
}

@media (max-width: 1100px) {
    .nx-pro-editor-shell {
        display: block;
        /* Stack on mobile */
    }
}

/* SIDEBAR DRAWER PROTOCOL */

.nx-pro-sidebar {
    width: 280px;
    background: var(--pro-white);
    border-right: 1px solid var(--pro-border);
    padding: 24px;
    position: sticky;
    top: 0px;
    /* Offset for global header */
    height: calc(100vh - 1px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 1000;
    overflow-y: auto;
}

@media (max-width: 1100px) {

    .nx-pro-input,
    .nx-pro-textarea,
    .nx-pro-select {
        font-size: 10px !important;
    }

    .nx-pro-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 9999;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    }

    .nx-pro-sidebar.nx-sidebar-active {
        transform: translateX(0);
        display: flex !important;
        padding-top: 15px !important;
    }
}

.nx-pro-sidebar-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--pro-text);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    padding-left: 6px;
}

.nx-pro-sidebar-brand svg,
.nx-pro-sidebar-brand i {
    width: 24px;
    height: 24px;
    color: var(--pro-accent);
}

.nx-pro-nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-pro-nav-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--pro-text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.nx-pro-nav-item:hover {
    background: var(--pro-gray-100);
    color: var(--pro-text);
}

.nx-pro-nav-item.active {
    background: var(--pro-blue-50);
    color: var(--pro-accent);
}

.nx-pro-nav-item svg,
.nx-pro-nav-item i {
    width: 20px;
    height: 20px;
    color: var(--pro-gray-400);
}

.nx-pro-nav-item.active svg,
.nx-pro-nav-item.active i {
    color: var(--pro-accent);
}

.nx-pro-sidebar-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--pro-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 12px 0 4px 16px;
    opacity: 0.8;
}

.nx-pro-sidebar-divider {
    height: 1px;
    background: var(--pro-border);
    margin: 16px 0;
}

/* ELITE SELECT SYSTEM (High-Fidelity) */
.nx-elite-select-container {
    position: relative;
    width: 100%;
}

.nx-elite-select {
    appearance: none;
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    background: var(--bg-surface);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    color: var(--pro-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.nx-elite-select:hover {
    border-color: var(--pro-accent);
    background: var(--bg-secondary);
}

.nx-elite-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    border-color: var(--pro-accent);
}

.nx-elite-select-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--pro-gray-400);
    transition: 0.3s;
}

/* GATEWAY INTELLIGENCE INPUT */
.nx-gateway-intelligence-input {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    font-weight: 600;
    color: var(--pro-accent) !important;
}

.nx-gateway-intelligence-input::placeholder {
    color: rgba(37, 99, 235, 0.5);
}

/* PROMO PREVIEW BOX */
.nx-promo-preview-box {
    background: var(--bg-deep);
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid var(--pro-accent-gold);
}

.nx-promo-preview-header {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--pro-accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nx-promo-preview-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.nx-promo-price-old {
    font-size: 0.9rem;
    color: var(--pro-text-dim);
    text-decoration: line-through;
}

.nx-promo-price-new {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pro-text);
}

.nx-promo-reward-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--pro-accent-gold);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* DYNAMIC IMPORT BUTTONS */
.nx-import-btn {
    display: none;
    /* Hidden by default, shown when clone selected */
    align-items: center;
    gap: 4px;
    background: var(--pro-blue-50);
    color: var(--pro-accent);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.nx-import-btn:hover {
    background: var(--pro-accent);
    color: #fff;
    transform: translateY(-1px);
}

.nx-import-btn.is-active {
    display: inline-flex;
}

/* DATA LIST CUSTOM */
.nx-smart-datalist-input {
    position: relative;
}

/* PRIVACY HUB SWITCH */
.nx-privacy-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--area-danger-bg);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.1);
    margin-top: 15px;
}

.nx-privacy-switch input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pro-danger);
}

.nx-privacy-info {
    display: flex;
    flex-direction: column;
}

.nx-privacy-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--pro-danger);
}

.nx-privacy-desc {
    font-size: 0.75rem;
    color: var(--pro-text-dim);
}

.nx-pro-main-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--pro-bg);
    min-width: 0;
    transition: all 0.3s ease;
}

.nx-pro-header {
    padding: 7px 30px;
    background: var(--pro-white);
    border-bottom: 1px solid var(--pro-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nx-pro-scroll-area {
    padding: 40px;
    padding-bottom: 120px;
}

.nx-pro-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.nx-pro-main-col {
    min-width: 0;
}

.nx-pro-side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nx-pro-decision-hub {
    position: relative;
    z-index: 10;
}

@media (max-width: 1300px) {
    .nx-pro-grid-layout {
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    .nx-pro-grid-layout {
        grid-template-columns: 1fr;
    }

    .nx-pro-side-col {
        order: 2;
    }
}

/* SCOPED CARDS */
.nx-pro-card {
    background: var(--pro-white);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    overflow: unset;
    box-shadow: var(--pro-shadow);
    margin-bottom: 24px;
}

.nx-pro-card-header {
    padding: 16px 24px;
    border-radius: 16px 16px 0 0;
    background: var(--pro-gray-50);
    border-bottom: 1px solid var(--pro-border);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--pro-gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nx-pro-card-body {
    padding: 24px;
}

#section-identity .nx-pro-form-group {
    padding: 2px 22px 22px 22px;
}

/* FORM ELEMENTS (SCOPED) */
.nx-pro-form-group {
    margin-top: 8px;
    margin-bottom: 1px;
}

.nx-pro-label {
    display: flex;
    font-size: 11px;
    font-weight: 700;
    color: var(--pro-gray-600);
    padding-left: 11px;
    padding-bottom: 3px;
    gap: 4px;
    align-items: center;
}

.nx-pro-input,
.nx-pro-textarea,
.nx-pro-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--pro-gray-300);
    background: var(--pro-white);
    font-size: 12px;
    color: var(--pro-text);
    transition: all 0.2s;
    box-sizing: border-box;
}

.nx-pro-input:focus {
    border-color: var(--pro-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* CATEGORY MATRIX (SUPREME INSTITUTIONAL - GSC STYLE) */
#supreme-edit-form .category-selection-matrix {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding-bottom: 10px !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#supreme-edit-form .category-selection-matrix::-webkit-scrollbar {
    height: 4px;
}

#supreme-edit-form .category-selection-matrix::-webkit-scrollbar-thumb {
    background: var(--pro-gray-200);
    border-radius: 10px;
}

#supreme-edit-form .category-radio-node {
    position: relative !important;
    cursor: pointer !important;
    border: none;
    border-radius: 16px !important;
    padding: 1px 1px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* background: var(--pro-white) !important; */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 74px !important;
    flex: 0 0 auto !important;
    min-width: fit-content !important;
}

#supreme-edit-form .category-radio-node input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

#supreme-edit-form .category-radio-node .radio-node-content {
    display: flex !important;
    border-radius: 13px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: initial;
    min-height: 74px;
    position: relative !important;
    padding: 3px 20px;
    overflow: hidden;
    color: var(--pro-gray-500) !important;
    transition: inherit !important;
}

#supreme-edit-form .category-radio-node i,
#supreme-edit-form .category-radio-node svg {
    width: 40px !important;
    height: 40px !important;
    stroke-width: 2px !important;
    position: absolute !important;
    top: -3px;
    left: -9px !important;
    bottom: unset;
}

#supreme-edit-form .category-radio-node span {
    font-size: 11px;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    margin-left: 12px !important;
    max-width: initial;
}

/* ACTIVE STATE: NEXUS PRIME BLUE */
#supreme-edit-form .category-radio-node:hover {
    border-color: var(--pro-accent) !important;
    background: var(--pro-gray-200) !important;
}

#supreme-edit-form .category-radio-node:has(input:checked) {
    border-color: var(--pro-accent) !important;
    background: var(--pro-gray-100);
}

#supreme-edit-form .category-radio-node:has(input:checked) .radio-node-content {
    color: var(--pro-accent) !important;
}

/* STRUCTURAL GRID (MASTER PROTOCOL) */
.nx-pro-structural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.nx-pro-structural-item {
    position: relative;
    cursor: pointer;
    background: var(--pro-white);
    border: 1px solid var(--pro-gray-100);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nx-pro-structural-item input {
    position: absolute;
    opacity: 0;
}

.structural-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.structural-item-inner i,
.structural-item-inner svg {
    width: 28px;
    height: 28px;
    color: var(--pro-gray-400);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.structural-item-inner span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--pro-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    transition: all 0.3s;
}

/* HOVER STATE */
.nx-pro-structural-item:hover {
    transform: translateY(-4px);
    border-color: var(--pro-gray-300);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.nx-pro-structural-item:hover .structural-item-inner i {
    color: var(--pro-gray-600);
}

/* ACTIVE STATE (SUPREME AMBER/GOLD) */
.nx-pro-structural-item.is-active {
    border-color: var(--pro-amber-400);
    /* Amber 400 */
    background: var(--pro-white);
    box-shadow: 0 0 0 1px var(--pro-amber-400), 0 8px 15px -3px rgba(251, 191, 36, 0.2);
}

.nx-pro-structural-item.is-active .structural-item-inner i,
.nx-pro-structural-item.is-active .structural-item-inner svg {
    color: var(--pro-blue-600);
    /* Blue 600 */
    transform: scale(1.1);
}

.nx-pro-structural-item.is-active .structural-item-inner span {
    color: var(--pro-blue-700);
    /* Blue 700 */
}

.nx-pro-matrix-grid,
.nx-form-matrix-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: end;
}

/* PREMIUM AI-LIKE UX ENHANCEMENTS */
.nx-pro-card.is-premium-hub {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.1);
    position: relative;
}

.nx-pro-card.is-premium-hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.8;
}

.nx-pro-card.is-premium-hub .nx-pro-card-header {
    color: var(--accent-gold);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.nx-pro-label {}

.nx-pro-label i,
.nx-pro-label svg {
    width: 16px;
    height: 16px;
    color: var(--pro-blue-600);
}

.nx-pro-sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pro-border), transparent);
    margin: 20px 0;
}

.nx-btn-action {
    width: 100%;
    padding: 12px;
    background: var(--pro-gray-50);
    border: 1px dashed var(--pro-border);
    border-radius: 8px;
    color: var(--pro-gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 12px;
}

.nx-btn-action:hover {
    background: var(--pro-blue-50);
    border-color: var(--pro-blue-600);
    color: var(--pro-blue-600);
}

.nx-media-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--pro-border);
    background: var(--pro-gray-100);
    transition: 0.2s;
}

.nx-media-item:hover {
    border-color: var(--pro-accent);
}

.nx-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nx-media-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: 0.2s;
}

.nx-media-item:hover .nx-media-controls {
    opacity: 1;
}

.nx-pro-btn-media {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--pro-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.nx-pro-btn-media:hover {
    background: var(--pro-accent);
}

.nx-pro-btn-media.is-active {
    background: var(--pro-warning);
    color: var(--pro-black);
    opacity: 1;
}

.nx-media-drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s;
}

.nx-media-item:hover .nx-media-drag-handle {
    opacity: 1;
}

.nx-media-action-bar {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    padding: 10px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px dashed var(--pro-border);
}

.btn-ghost-crimson {
    background: transparent;
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    transition: all 0.3s;
}

.btn-ghost-crimson:hover {
    background: var(--accent-crimson);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* INTEL BOX */
.nx-pro-intel-box {
    margin-top: 16px;
    background: var(--pro-gray-50);
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 16px;
}

.nx-pro-intel-header {
    padding: 12px 16px;
    background: var(--pro-blue-50);
    border-bottom: 1px solid var(--pro-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--pro-blue-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nx-pro-intel-body {
    padding: 16px;
}

.nx-pro-checkbox-label {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--pro-gray-600);
    cursor: pointer;
}

/* BUTTONS */
.nx-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--pro-border);
    background: var(--bg-surface);
    color: var(--pro-text);
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.nx-pro-btn-secondary {
    background: var(--pro-gray-100);
    color: var(--pro-blue-600);
    border-color: var(--pro-blue-100);
}

.nx-pro-btn-secondary:hover {
    background: var(--pro-blue-100);
    border-color: var(--pro-blue-600);
}

.nx-pro-btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    gap: 4px;
}

.nx-pro-btn-primary {
    background: var(--pro-accent);
    color: var(--pro-white);
    border-color: var(--pro-accent);
}

.nx-pro-btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nx-pro-btn-xl {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

.nx-pro-btn-remove {
    background: var(--pro-red-200);
    color: var(--pro-red-500);
    border: 1px solid var(--pro-red-100);
    width: 44px;
    height: 33px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.nx-pro-btn-remove:hover {
    background: var(--pro-red-500);
    color: var(--pro-white);
}

/* FOOTER BAR */
.nx-pro-footer-bar {
    position: fixed;
    bottom: 0;
    left: 280px;
    right: 0;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--pro-border);
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* GALIA GAUGE */
/* GALIA INTELLIGENCE GAUGE */
.nx-pro-galia-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    color: var(--pro-white);
}

.nx-pro-galia-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pro-gray-200);
}

.nx-pro-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pro-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--pro-white);
}

.nx-pro-aura-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

svg.circular-chart {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    color: var(--accent-messenger);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1.5s ease-out forwards;
    stroke: var(--pro-accent);
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    fill: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 800;
}

/* MODAL */
.nx-pro-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-pro-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.nx-pro-modal {
    background: var(--pro-white);
    border-radius: 24px;
    width: 650px;
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-pro-modal-overlay.is-active .nx-pro-modal {
    transform: scale(1);
}

.nx-pro-modal-header h3 {
    font-weight: 800;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nx-pro-modal-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--pro-gray-50);
    border-bottom: 1px solid var(--pro-border);
    align-items: flex-start;
}

.nx-pro-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--pro-gray-400);
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.nx-pro-modal-close:hover {
    color: var(--pro-danger);
    transform: scale(1.04);
}

.nx-pro-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* NEXUS EXIF HUB & RELIABILITY SHIELD (UNIVERSAL) */
.nx-exif-hub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nx-reliability-shield {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nx-reliability-shield.is-elite {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.nx-reliability-shield.is-certified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.nx-reliability-shield.is-institutional {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af23;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.nx-reliability-shield.is-unverified {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.nx-reliability-shield.is-violation {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.nx-reliability-shield.is-ai {
    background: rgba(139, 92, 246, 0.1);
    /* Violet/Neural */
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
    padding: 9px 21px 9px 14px;
    font-size: 9px;
    margin: 9px auto;
}

.nx-reliability-shield i,
.nx-reliability-shield svg {
    width: 20px;
    height: 20px;
}

.nx-forensic-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--pro-gray-100);
}

.nx-forensic-row .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pro-gray-500);
    text-transform: uppercase;
}

.nx-forensic-row .val {
    font-size: 0.9rem;
    font-weight: 600;
    /* Rule 40 */
    color: var(--pro-text);
}

.nx-forensic-row .val.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.nx-forensic-sovereignty {
    background: var(--pro-gray-50);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--pro-border);
}

.nx-forensic-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--pro-accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nx-exif-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--pro-text);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.nx-exif-location:hover {
    background: #000;
    transform: translateY(-2px);
}

/* DIST REPEATER */
.nx-pro-dist-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 7px;
}

/* UTILS */
.nx-mb-lg {
    margin-bottom: 24px;
}

.nx-mt-md {
    margin-top: 16px;
}

.nx-mt-lg {
    margin-top: 24px;
}

.nx-text-dim {
    color: var(--pro-text-dim);
}

.nx-text-small,
.nx-pro-text-small {
    font-size: 0.85rem;
    color: var(--pro-gray-600);
    margin: 0;
    line-height: 1.5;
}

.green,
.is-green {
    color: var(--pro-success) !important;
}

.yellow,
.is-yellow {
    color: var(--pro-warning) !important;
}

.red,
.is-red {
    color: var(--pro-danger) !important;
}

.nx-text-xs {
    font-size: 0.75rem;
    color: var(--pro-gray-500);
}

.nx-icon-gold {
    color: var(--pro-accent-gold);
}


.nx-media-drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--pro-white);
    padding: 4px;
    border-radius: 4px;
    cursor: grab;
    z-index: 5;
    opacity: 0;
    transition: 0.2s;
}

.nx-media-item:hover .nx-media-drag-handle {
    opacity: 1;
}

@keyframes nxFlash {
    0% {
        background-color: rgba(37, 99, 235, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

.nx-highlight-flash {
    animation: nxFlash 1s ease-out;
}

/* SUPREME CONTENT HUB & EDITOR */
.nx-mini-editor {
    background: var(--pro-white);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}

.nx-mini-editor.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--pro-white) !important;
}

.nx-mini-editor.is-fullscreen .nx-editor-content,
.nx-mini-editor.is-fullscreen textarea {
    flex: 1 !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 60px 40px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    background: var(--pro-white) !important;
}


.nx-mini-editor.is-fullscreen .nx-editor-toolbar {
    padding: 15px 40px;
    justify-content: center;
    background: var(--pro-gray-50);
}

.nx-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pro-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nx-editor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    color: var(--pro-text-dim);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 800;
    font-size: 0.8rem;
}

.nx-editor-btn:hover {
    background: var(--pro-gray-100);
    color: var(--pro-text);
    transform: translateY(-1px);
}

.nx-editor-btn.is-active {
    background: var(--pro-blue-50);
    color: var(--pro-accent);
    border-color: rgba(37, 99, 235, 0.1);
}

.nx-editor-btn svg,
.nx-editor-btn i {
    width: 18px !important;
    height: 18px !important;
}

.nx-editor-btn.btn-ai {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 100%);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nx-editor-btn.btn-ai:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nx-editor-separator {
    width: 1px;
    height: 20px;
    background: var(--pro-border);
    margin: 0 4px;
}

.nx-editor-spacer {
    flex: 1;
}

.nx-editor-btn.btn-ai svg,
.nx-editor-btn.btn-ai i {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}


.nx-editor-content {
    padding: 20px;
    min-height: 200px;
    outline: none;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--pro-text);
}

.nx-editor-content h2 {
    font-size: 1.5em;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--pro-accent);
    font-weight: 700;
    border-bottom: 1px solid var(--pro-gray-100);
    padding-bottom: 0.5rem;
}

.nx-editor-content h3 {
    font-size: 1.17em;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--pro-text);
    font-weight: 600;
}

.nx-editor-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.nx-editor-content ul,
.nx-editor-content ol {
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}

.nx-editor-content blockquote {
    border-left: 4px solid var(--pro-accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(37, 99, 235, 0.03);
    font-style: italic;
    color: var(--pro-gray-700);
    border-radius: 0 8px 8px 0;
}

.nx-editor-content hr {
    border: none;
    border-top: 2px solid var(--pro-gray-100);
    margin: 2rem 0;
}

.nx-editor-content sub,
.nx-editor-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.nx-editor-content sup {
    top: -0.5em;
}

.nx-editor-content sub {
    bottom: -0.25em;
}

.nx-editor-textarea-code {
    width: 100%;
    height: 200px;
    display: none;
    border: none;
    background: var(--pro-dark-bg);
    color: var(--pro-dark-text);
    font-family: 'JetBrains Mono', monospace;
    padding: 20px;
    box-sizing: border-box;
}

/* HASHTAGS & STRATEGIC NODES */
.hashtag-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.nx-badge-gold {
    background: var(--pro-blue-50);
    border-bottom: 1px solid var(--pro-border);
    color: var(--pro-blue-600);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* HERITAGE SYSTEM */
.nx-pro-card-heritage {
    margin-bottom: 2rem;
}

.nx-heritage-group {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--pro-border);
}

.nx-heritage-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pro-gray-500);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.nx-heritage-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid var(--pro-border);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--pro-gray-50);
}

.nx-heritage-input:focus {
    border-color: var(--pro-accent);
    background: var(--pro-white);
    outline: none;
}

.nx-heritage-status {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--pro-gray-500);
    align-items: flex-start;
}

.nx-heritage-badge {
    background: var(--accent-success);
    color: var(--text-on-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.nx-form-label-sovereign {
    display: block;
    font-size: 0.85rem;
    font-weight: 850;
    color: var(--pro-gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    padding-left: 11px;
}

/* PROMPTS REPEATER */
.nx-dist-repeater-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.nx-btn-remove-dist {
    background: var(--pro-red-200);
    color: var(--pro-red-500);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nx-prompt-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-royal {
    background: var(--pro-accent);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-royal.btn-ghost {
    background: var(--pro-blue-50);
    color: var(--pro-accent);
    border: 1px solid var(--pro-blue-100);
}

/* -------------------------------------------------------------------------- */
/*  UTILITY REPLACEMENT & STRUCTURAL HARDENING (00_RULES PROTOCOL)            */
/* -------------------------------------------------------------------------- */

.nx-gateway-section {
    margin-bottom: 32px !important;
}

.nx-hub-content-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nx-editor-textarea-hidden {
    display: none !important;
}

.nx-media-intel-box {
    margin-top: 24px !important;
}

.nx-trust-label {
    margin-top: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-economy-section,
.nx-promo-section,
.nx-distribution-section,
.nx-clone-section,
.nx-localization-section {
    margin-top: 32px !important;
}

.nx-promo-strategy-group {
    margin-top: 24px !important;
}

.nx-hub-dist-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nx-hub-dist-stack .nx-app-form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nx-extra-platforms-group {
    margin-top: 3px !important;
}

.nx-clone-hint {
    margin-top: 12px !important;
    font-size: 0.7rem !important;
    opacity: 0.8;
}

.nx-localization-stack,
.nx-partner-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nx-geo-focus-group {
    margin-top: 12px !important;
}

.nx-pro-form-group p,
.nx-pro-card-body p {
    font-size: 12px !important;
    line-height: 15px;
    padding-left: 9px;
    padding-right: 9px;
    padding-bottom: 1px;
    color: var(--exif-text-muted);
    letter-spacing: initial;
}

.nx-forensic-loading {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nx-shimmer-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--pro-blue-100);
    border-top-color: var(--pro-accent);
    border-radius: 50%;
    animation: nx-spin 1s linear infinite;
}

@keyframes nx-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ADDED SEMANTIC CLASSES FOR REMAINING UTILITIES */
.nx-video-group {
    margin-top: 32px !important;
}

.nx-highlight-hint {
    margin-top: 16px !important;
}

.nx-forensic-details-stack {
    margin-top: 24px !important;
}

/* MEDIA HUB GALLERY GRID */
.nx-pro-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.nx-media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pro-blue-50);
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-media-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nx-media-item.is-active-cover {
    border-color: var(--pro-accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.nx-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nx-media-actions {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.nx-media-item:hover .nx-media-actions {
    opacity: 1;
}

.nx-pro-btn-media {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--pro-slate-700);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nx-pro-btn-media:hover {
    transform: scale(1.1);
    background: var(--pro-accent);
    color: white;
}

.nx-pro-btn-media.is-active {
    background: var(--pro-accent);
    color: white;
}

/* ENHANCED FULLSCREEN WRITING MODE */
.nx-fullscreen-active .nx-pro-scroll-area {
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 40px min(10%, 100px);
    background: var(--pro-white);
}

.nx-fullscreen-active .nx-pro-grid-layout {
    display: block;
    /* Collapse grid */
    max-width: 900px;
    margin: 0 auto;
}

.nx-fullscreen-active .nx-pro-side-col {
    display: none;
}

.nx-fullscreen-active .nx-pro-decision-hub,
.nx-fullscreen-active #section-gateway,
.nx-fullscreen-active #section-media {
    display: none;
    /* Hide everything except the content editors */
}

.nx-fullscreen-active #section-identity,
.nx-fullscreen-active .nx-pro-card:has(.nx-hub-content-stack) {
    display: block;
    box-shadow: none;
    border: none;
}

/* SORTABLE GHOST STATE */
.nx-sortable-ghost {
    opacity: 0.4;
    background: var(--pro-accent) !important;
}

/* --- FORENSIC MEDIA HUB & INTERACTION PROTOCOL --- */
.nx-media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    justify-items: center;
}

.nx-media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--pro-gray-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-media-item {
    position: relative;
    overflow: hidden;
    border: 2px solid #2f57d987;
    border-radius: 24px;
    background: #f4f4fb;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.video-badge svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: block;
}

.nx-media-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--pro-shadow-lg);
}

.nx-media-item.is-active-cover {
    border: 3px solid var(--pro-accent);
}

.nx-media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nx-media-drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
}

.nx-media-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: space-between;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.nx-media-item:hover .nx-media-controls {
    opacity: 1;
}

.nx-pro-btn-media {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nx-pro-btn-media:hover {
    background: white;
    color: var(--pro-text);
}

.nx-pro-btn-media.is-active {
    background: var(--pro-accent);
    color: white;
}

/* DRAG & DROP ZONE */
.drag-drop-zone {
    border: 2px dashed var(--pro-gray-300);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: var(--pro-gray-50);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drag-drop-zone:hover {
    border-color: var(--pro-accent);
    background: rgba(37, 99, 235, 0.05);
}

.drag-drop-zone i {
    width: 40px;
    height: 40px;
    color: var(--pro-gray-400);
}

/* UI UTILITIES */
.nx-pro-input-group {
    display: flex;
    gap: 10px;
}

.nx-pro-input-group .nx-pro-input {
    flex: 1;
}

.nx-pro-input-group #title-input {
    font-size: 18px;
    border: 2px solid #efef07d1;
}

.nx-clone-tag {
    background: var(--pro-dark-bg);
    color: white;
    border: none;
    border-radius: 4px;
    min-width: 25px;
    height: 25px;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
}

/* VALIDATION PROTOCOL */
@keyframes nx-pulse-error {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        background: rgba(239, 68, 68, 0.1);
    }

    100% {
        transform: scale(1);
    }
}

.nx-validation-error {
    border: 2px solid var(--pro-danger) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: nx-shake 0.4s ease-in-out;
}

@keyframes nx-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.nx-property-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pro-gray-200);
}

/* Purged conflicting category rule */
/* End of purged section */

/* TOAST STYLES HANDLED BY MAIN.CSS - DO NOT OVERRIDE HERE */

/* DRAG & DROP HUB STATES */
.drag-drop-zone.is-dragover {
    border-color: var(--pro-accent) !important;
    background: rgba(var(--pro-accent-rgb), 0.1) !important;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(var(--pro-accent-rgb), 0.2);
}

@keyframes nx-toast-in {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.nx-ai-signature {
    opacity: 0.7;
    font-size: 0.78rem;
    border-top: 1px solid var(--pro-border);
    margin-top: 20px;
    padding-top: 12px;
    color: var(--pro-gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
    user-select: none;
}

.nx-ai-signature i,
.nx-ai-signature svg {
    width: 14px;
    height: 14px;
    color: var(--pro-accent);
}

.nx-forensic-loading {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- RESTORING INSTITUTIONAL REPUTATION & VIDEO HUB --- */

/* FORENSIC REPUTATION HUB */
.nx-pro-rep-stats {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--pro-gray-100);
}

.nx-pro-rep-stats .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nx-pro-rep-stats .stat-row .label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--pro-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nx-pro-rep-stats .stat-row .val {
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.nx-pro-rep-stats .stat-row .val.gold {
    color: var(--pro-accent-gold);
}

.nx-pro-rep-stats .stat-row .val.green {
    color: var(--pro-success);
}

.nx-pro-rep-stats .stat-row .val.red {
    color: var(--pro-danger);
}

/* VIDEO REALITY PREVIEW */
.nx-media-video-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    gap: 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nx-media-video-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(212, 175, 55, 0.05) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: nx-placeholder-shimmer 3s infinite linear;
}

@keyframes nx-placeholder-shimmer {
    0% {
        background-position: -100% -100%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.nx-media-video-placeholder i,
.nx-media-video-placeholder svg {
    width: 48px;
    height: 48px;
    color: #d4af37;
    /* Gold accent for Video Reality */
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.nx-media-video-placeholder span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* GAUGE ALIGNMENT */
/* GAUGE ALIGNMENT & SOBER DATA (RULE 40) */
.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke: var(--pro-accent);
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    fill: var(--accent-messenger);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    text-anchor: middle;
    font-weight: 600;
    /* Rule 40 */
}

/* FORENSIC REPUTATION HUB */
.nx-pro-rep-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
}

.nx-pro-rep-stats .stat-row {
    margin-top: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.nx-pro-rep-stats .stat-row .label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--pro-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nx-pro-rep-stats .stat-row .val {
    font-size: 0.85rem;
    font-weight: 600;
    /* Rule 40 */
    font-family: 'Roboto', sans-serif;
    /* Rule 40 */
}

.nx-pro-rep-stats .stat-row .val.gold {
    color: var(--pro-accent);
}

.nx-pro-rep-stats .stat-row .val.green {
    color: #10b981;
}

.nx-pro-rep-stats .stat-row .val.red {
    color: #ef4444;
}

/* NEXUS CERTIFIED BADGE (FORENSIC PROTOCOL) */
.nx-certified-badge {
    position: absolute;
    bottom: 3px;
    left: 5px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    color: #fff;
}

.nx-certified-badge i,
.nx-certified-badge svg {
    width: 30px !important;
    height: 30px !important;
    stroke-width: 2px !important;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-certified-badge.is-ai {
    background: #8b5cf6 !important;
    /* Neural Violet */
    color: #fff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* FORENSIC VIOLATION REPORT (Institutional Styles) */
.nx-forensic-violation-row {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(var(--nx-gsc-red-rgb, 234, 67, 53), 0.05);
    border-left: 4px solid var(--nx-gsc-red);
    border-radius: 4px;
}

.nx-violation-type {
    font-weight: 800;
    color: var(--nx-gsc-red);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.nx-violation-label {
    font-size: 13px;
    color: var(--pro-text);
    margin: 6px 0;
}

.nx-violation-impact {
    font-size: 10px;
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

.nx-certified-badge i,
.nx-certified-badge svg {
    width: 18px;
    height: 18px;
}

.nx-certified-badge.is-interactive {
    cursor: pointer;
}

.nx-certified-badge.is-interactive:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ICON UTILITIES */
.nx-icon-sm {
    width: 18px !important;
    height: 18px !important;
}

.nx-icon-xs {
    width: 14px !important;
    height: 14px !important;
}

.nx-icon-gold {
    color: var(--pro-accent) !important;
}

/* LINK BUTTON COMPONENT */
.nx-pro-link-btn {
    color: var(--pro-gray-500);
    font-size: 10px;
    background: var(--badge-warning-border);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

.nx-pro-link-btn.is-red {
    color: #ef4444 !important;
}

.nx-pro-link-btn.is-red svg {
    color: #ef4444 !important;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.3));
}

.nx-pro-link-btn:hover {
    opacity: 1;
    color: var(--pro-accent);
    transform: translateX(4px);
}

.nx-pro-link-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
}

/* --- REPUTATION & AI STATS (v83.1) --- */
.nx-pro-rep-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.nx-ai-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(100, 100, 100, 0.05);
    border-radius: 12px;
    border: 1px solid var(--pro-border);
    transition: all 0.3s ease;
}

.nx-ai-stat:hover {
    background: var(--pro-gray-100);
    transform: translateX(4px);
}

.nx-ai-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--pro-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nx-ai-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pro-text);
}

.nx-ai-value.green {
    color: var(--pro-success);
}

.nx-ai-value.yellow {
    color: var(--pro-warning);
}

.nx-ai-value.red {
    color: var(--pro-danger);
}

/* --- FORENSIC REPORT BUTTON --- */
.nx-btn-outline-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--pro-accent-gold);
    color: var(--pro-accent-gold);
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
}

.nx-btn-outline-gold:hover {
    background: var(--pro-accent-gold);
    color: var(--pro-white);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.nx-btn-outline-gold i,
.nx-btn-outline-gold svg {
    width: 18px;
    height: 18px;
}

.nx-mt-md {
    margin-top: 20px;
}

/* --- FORENSIC MODAL SYSTEM (RESTORATION) --- */
.nx-pro-modal-body {
    padding: 24px;
}

.nx-forensic-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--pro-gray-50);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--pro-border);
}

.nx-f-score-big {
    font-size: 20px;
    font-weight: 200;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--pro-shadow);
}

.nx-f-score-big.green {
    color: var(--pro-success);
    border: 4px solid var(--pro-success);
}

.nx-f-score-big.yellow {
    color: var(--pro-warning);
    border: 4px solid var(--pro-warning);
}

.nx-f-score-big.red {
    color: var(--pro-danger);
    border: 4px solid var(--pro-danger);
}

.nx-f-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nx-f-status strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--pro-text);
}

.nx-f-status p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--pro-text-dim);
}

.nx-f-violations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.nx-f-violation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--pro-danger);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--pro-text);
}

.nx-f-violation-item svg,
.nx-f-violation-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--pro-danger);
    margin-top: 2px;
}

.nx-f-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--pro-blue-50);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--pro-blue-700);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.nx-f-tip svg,
.nx-f-tip i {
    width: 20px;
    height: 20px;
    color: var(--pro-accent);
}

/* HASHTAG ELITE SYSTEM (O-O LOGIC) */
.nx-hashtag-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nx-hashtag-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.nx-hashtag-container .nx-pro-textarea {
    min-height: 44px;
    max-height: 180px;
    resize: none;
    overflow-y: hidden;
    line-height: 1.5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
}

.nx-hashtag-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 2px;
    border: 1px dashed var(--pro-border);
    min-height: 40px;
}

.nx-hashtag-badge {
    background: var(--nx-gsc-blue);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    transition: 0.2s;
    cursor: pointer;
}

.nx-hashtag-badge:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.nx-hashtag-badge::before {
    content: '#';
    opacity: 0.6;
    margin-right: 2px;
}

/* DUPLICATE DETECTION & RECOVERY HINT (v83.1.1) */
.nx-pro-input.is-duplicate {
    border: 2px solid var(--pro-danger) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    animation: nx-shake 0.4s ease-in-out;
}

.nx-recovery-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--pro-accent);
    margin-top: 10px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.nx-recovery-hint i,
.nx-recovery-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* PATRONAGE / SPONSORSHIP SYSTEM Badges & Decision Hub */
.nx-pro-decision-hub.is-patronage-hub {
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.nx-patronage-alert-card {
    border: 1px solid var(--pro-accent-gold) !important;
    background: rgba(255, 215, 0, 0.05) !important;
    padding: 20px !important;
    border-radius: 8px !important;
}

.nx-patronage-alert-header {
    color: var(--pro-accent-gold) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
}

.nx-patronage-alert-text {
    margin-bottom: 15px !important;
    color: var(--pro-text, #fff) !important;
}

.nx-patronage-actions-row {
    display: flex !important;
    gap: 10px !important;
}

.nx-patronage-btn-approve {
    background: var(--pro-accent, #00d2ff) !important;
    color: var(--pro-dark-bg, #1a1a2e) !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.nx-patronage-btn-reject {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid var(--pro-danger, #ff4a4a) !important;
    color: var(--pro-danger, #ff4a4a) !important;
    font-weight: bold !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.nx-node-badge-status {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.nx-node-badge-status.is-active {
    background: rgba(0, 210, 255, 0.1) !important;
    border: 1px solid #00d2ff !important;
    color: #00d2ff !important;
}

.nx-node-badge-status.is-pending {
    background: var(--bg-tertiary);
    border: 1px solid var(--badge-bg);
    color: var(--accent-messenger);
    white-space: nowrap;
}

.nx-node-badge-status.is-rejected {
    background: rgba(255, 74, 74, 0.1) !important;
    border: 1px solid #ff4a4a !important;
    color: #ff4a4a !important;
}

.nx-patronage-help-text {
    font-size: 0.8rem !important;
    color: var(--pro-text-dim, #888) !important;
    margin-top: 5px !important;
}

/* NEXUS PRO MODAL GATE STYLES (AUREUS HIGH-FIDELITY) */
.nx-pro-modal-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 18, 25, 0.75);
    backdrop-filter: blur(12px);
    z-index: 2000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-pro-modal-gate.is-active {
    opacity: 1;
    visibility: visible;
}

.nx-pro-modal-box {
    background: #e9e9e9;
    border: 1px solid var(--nxp-gold, #d4af37);
    border-radius: 32px;
    padding: 45px 40px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    transform: scale(0.95) translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-pro-modal-gate.is-active .nx-pro-modal-box {
    transform: scale(1) translateY(0);
}

.nx-pro-modal-icon {
    width: 80px;
    height: 80px;
    background: #f1ebd8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--nxp-gold, #b8860b);
}

.nx-pro-modal-icon svg {
    width: 36px;
    height: 36px;
}

.nx-pro-modal-title {
    color: #333;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.nx-pro-modal-body {
    color: #444;
    line-height: 1.6;
    margin-bottom: 35px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nx-pro-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    margin: 0 auto;
    align-items: center;
}

.nx-pro-modal-actions .nx-pro-modal-close {
    font-size: 12px;
    background: #03a9f42b;
    padding: 7px 12px;
    width: max-content;
    border-radius: 10px;
}

.btn-royal {
    background: var(--nxp-accent, #1a44f0);
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-royal:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.nx-pro-modal-close {
    background: none;
    border: none;
    color: #718096;
    font-size: 29px;
    cursor: pointer;
    margin-top: 20px;
    transition: color 0.2s;
}

.nx-pro-modal-close:hover {
    color: #333;
}

.nx-supreme-zoom-layer {
    position: fixed;
    width: 360px;
    background: #0f1219;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.92) translateY(10px);
    overflow: hidden;
}

.nx-supreme-zoom-layer.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* CINEMA OVERLAY */
.nx-cinema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-cinema-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.nx-cinema-container {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-cinema-overlay.is-active .nx-cinema-container {
    transform: scale(1);
}

.nx-cinema-container img,
.nx-cinema-container video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}

.nx-cinema-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nx-cinema-close:hover {
    opacity: 1;
}

.nx-supreme-zoom-layer img,
.nx-supreme-zoom-layer video {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
    background: #000;
}

/* NEXUS SECTION HIGHLIGHT PROTOCOL */
@keyframes nx-section-flash {
    0% {
        background-color: rgba(6, 182, 212, 0.2);
        box-shadow: 0 0 0 2px #06b6d4;
    }

    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 transparent;
    }
}

.nx-section-highlight {
    animation: nx-section-flash 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* UX ERROR SYSTEM */
.nx-field-error-msg {
    color: var(--pro-danger, #ef4444);
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fade-in 0.3s ease-in-out;
}

@keyframes nx-pulse-error {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}