        /* ════════════════════════════════════════════════════
           MENUX ADMIN DESIGN SYSTEM
           ════════════════════════════════════════════════════ */
        .bm-admin-modern { max-width: 1400px; }
        .bm-admin-modern * { box-sizing: border-box; }
        .bm-admin-modern .wp-heading-inline { display: none !important; }

        /* ─── TOPBAR ─── */
        .bm-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            margin: 12px 0 0;
            box-shadow: 0 4px 20px -4px rgba(102,126,234,.4);
        }
        .bm-topbar-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .bm-topbar-icon {
            width: 36px; height: 36px;
            background: rgba(255,255,255,.2);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            border: 1px solid rgba(255,255,255,.3);
            flex-shrink: 0;
        }
        .bm-topbar-title {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            letter-spacing: -.3px;
        }
        .bm-topbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .bm-topbar-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
            text-decoration: none;
            border: none;
            white-space: nowrap;
            font-family: inherit;
            line-height: 1.2;
        }
        .bm-topbar-btn-ghost {
            background: rgba(255,255,255,.15);
            color: #fff;
            border: 1px solid rgba(255,255,255,.25);
        }
        .bm-topbar-btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
        .bm-topbar-btn-save {
            background: #fff;
            color: #4f46e5;
            box-shadow: 0 2px 8px rgba(0,0,0,.15);
        }
        .bm-topbar-btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

        /* ─── STICKY PREVIEW BAR ─── */
        .bm-preview-sticky {
            background: #fff;
            border-radius: 0 0 12px 12px;
            border: 1px solid #e5e7eb;
            border-top: none;
            box-shadow: 0 4px 16px -4px rgba(0,0,0,.1);
            margin-bottom: 0;
        }
        .bm-preview-sticky-inner {
            padding: 12px 16px 14px;
        }
        .bm-device-frame-compact {
            min-height: 60px !important;
            padding: 10px !important;
        }
        .bm-device-frame-compact .bm-preview-canvas {
            min-height: 40px;
        }

        /* ─── MAIN LAYOUT: SIDEBAR + CONTENT ─── */
        .bm-admin-layout {
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 0;
            margin-top: 20px;
            background: #fff;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0,0,0,.04);
        }

        /* ─── SIDEBAR ─── */
        .bm-admin-sidebar {
            background: #f8fafc;
            border-right: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
            min-height: 500px;
        }
        .bm-sidebar-nav {
            flex: 1;
            padding: 16px 0 8px;
            overflow-y: auto;
        }
        .bm-sidebar-group {
            margin-bottom: 4px;
        }
        .bm-sidebar-group-label {
            font-size: 10px;
            font-weight: 700;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: .8px;
            padding: 8px 16px 4px;
        }
        .bm-sidebar-item {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 16px;
            background: none;
            border: none;
            border-left: 3px solid transparent;
            font-size: 13px;
            font-weight: 500;
            color: #4b5563;
            cursor: pointer;
            text-align: left;
            transition: all .12s;
            font-family: inherit;
            line-height: 1.3;
        }
        .bm-sidebar-item:hover {
            background: #eef2ff;
            color: #4f46e5;
            border-left-color: #c7d2fe;
        }
        .bm-sidebar-item.active {
            background: linear-gradient(90deg, #eef2ff, #f5f3ff);
            color: #4f46e5;
            border-left-color: #667eea;
            font-weight: 600;
        }
        .bm-sidebar-footer {
            padding: 14px 16px;
            border-top: 1px solid #e5e7eb;
            background: #f8fafc;
        }

        /* ─── CONTENT AREA ─── */
        .bm-admin-content {
            padding: 24px;
            min-height: 500px;
            background: #fff;
        }

        /* ─── PANELS ─── */
        .bm-panel { display: block; }

        /* Hide the style panel's horizontal tab nav — sidebar replaces it */
        .bm-admin-layout .bm-tabs-nav { display: none; }
        /* Remove the style card outer wrapper top border since nav is gone */
        .bm-admin-layout .menux-style-panel > .bm-card-header { display: none; }

        /* ─── CARD UNIVERSAL ─── */
        .bm-admin-modern .bm-card {
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
            border: 1px solid #f1f5f9;
            margin-bottom: 20px;
            overflow: hidden;
            transition: box-shadow .2s;
        }
        .bm-admin-modern .bm-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }

        .bm-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 22px;
            border-bottom: 1px solid #f1f5f9;
            background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
        }
        .bm-card-icon {
            width: 44px; height: 44px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            background: #eef2ff;
            flex-shrink: 0;
        }
        .bm-card-icon-blue   { background: #dbeafe; }
        .bm-card-icon-pink   { background: #fce7f3; }
        .bm-card-icon-purple { background: #ede9fe; }
        .bm-card-icon-amber  { background: #fef3c7; }
        .bm-card-icon-green  { background: #d1fae5; }
        .bm-card-titles { flex: 1; min-width: 0; }
        .bm-card-title {
            margin: 0 0 2px;
            font-size: 15px;
            font-weight: 700;
            color: #111827;
            padding: 0;
        }
        .bm-card-subtitle {
            margin: 0;
            font-size: 12px;
            color: #6b7280;
            line-height: 1.4;
        }
        .bm-card-body { padding: 22px; }

        /* ─── FORM ELEMENTS ─── */
        .bm-form-row {
            display: grid;
            grid-template-columns: 180px 1fr;
            gap: 16px;
            align-items: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid #f9fafb;
        }
        .bm-form-row:last-child { border-bottom: none; padding-bottom: 0; }
        .bm-form-row:first-child { padding-top: 0; }
        .bm-form-label-text {
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            display: block;
            padding-top: 7px;
        }
        .bm-form-help {
            font-size: 12px;
            color: #6b7280;
            margin: 6px 0 0;
            line-height: 1.5;
        }
        .bm-form-help code {
            background: #f3f4f6;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 11px;
            color: #4b5563;
        }
        .bm-admin-modern .bm-input {
            width: 100%;
            max-width: 520px;
            padding: 8px 12px;
            font-size: 13px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            background: #fff;
            color: #111827;
            transition: border-color .15s, box-shadow .15s;
            font-family: inherit;
        }
        .bm-admin-modern .bm-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102,126,234,.15);
        }
        .bm-admin-modern .bm-select { padding-right: 32px; cursor: pointer; }
        .bm-select-sm { font-size: 12px !important; padding: 5px 8px !important; max-width: 150px !important; }

        /* ─── BUTTONS ─── */
        .bm-admin-modern .bm-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 9px 18px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
            border: 1px solid transparent;
            text-decoration: none;
            white-space: nowrap;
            font-family: inherit;
            line-height: 1.2;
        }
        .bm-btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            box-shadow: 0 2px 6px rgba(102,126,234,.3);
        }
        .bm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,.4); color: #fff; }
        .bm-btn-secondary {
            background: #fff;
            color: #374151;
            border-color: #d1d5db;
        }
        .bm-btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; color: #111827; }
        .bm-btn-sm { padding: 5px 12px; font-size: 11px; }
        .bm-btn-block { width: 100%; }

        /* ─── ALERT ─── */
        .bm-alert {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            line-height: 1.5;
        }
        .bm-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
        .bm-alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
        .bm-alert-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }

        /* ─── LANGUAGE CHIPS ─── */
        .bm-lang-chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
        }
        .bm-lang-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, #eef2ff, #e0e7ff);
            border: 1px solid #c7d2fe;
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 12px;
            color: #4338ca;
        }
        .bm-lang-chip strong { font-family: monospace; font-weight: 700; }
        .bm-lang-chip-label { color: #6366f1; opacity: .8; font-size: 11px; }

        /* ─── IMPORT/EXPORT GRID ─── */
        .bm-impexp-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        @media (max-width: 768px) { .bm-impexp-grid { grid-template-columns: 1fr; } }
        .bm-impexp-action {
            display: flex;
            gap: 14px;
            padding: 16px;
            background: #f9fafb;
            border-radius: 10px;
            border: 1px solid #f1f5f9;
        }
        .bm-impexp-action-icon {
            width: 40px; height: 40px;
            background: #fff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
            box-shadow: 0 1px 3px rgba(0,0,0,.05);
        }
        .bm-impexp-action-content { flex: 1; min-width: 0; }
        .bm-impexp-action-content strong {
            display: block;
            font-size: 13px;
            color: #111827;
            margin-bottom: 4px;
        }
        .bm-impexp-action-content p {
            margin: 0 0 10px;
            font-size: 12px;
            color: #6b7280;
            line-height: 1.4;
        }

        /* ─── PREVIEW FRAME ─── */
        .bm-preview-toolbar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            padding: 8px 12px;
            background: #f9fafb;
            border-radius: 8px;
            flex-wrap: wrap;
        }
        .bm-preview-tip {
            font-size: 11px;
            color: #6b7280;
            margin-left: auto;
            font-style: italic;
        }
        .bm-active-theme-badge {
            background: linear-gradient(135deg,#eef2ff,#e0e7ff);
            color: #4338ca;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 999px;
            border: 1px solid #c7d2fe;
        }
        /* ─── DEVICE SWITCHER ─── */
        .bm-device-switcher {
            display: flex;
            gap: 2px;
            background: #f1f3f5;
            border-radius: 8px;
            padding: 3px;
        }
        .bm-device-btn {
            background: none;
            border: none;
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            color: #6b7280;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
        }
        .bm-device-btn:hover { color: #374151; background: rgba(255,255,255,.6); }
        .bm-device-btn.active { background: #fff; color: #4f46e5; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

        /* ─── DEVICE FRAME WRAP ─── */
        .bm-device-frame-wrap {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            background: #f1f5f9;
            border-radius: 10px;
            padding: 16px;
            min-height: 80px;
            transition: background .3s;
        }
        .bm-device-outer {
            transition: width .3s cubic-bezier(.4,0,.2,1), max-width .3s;
            width: 100%;
        }
        .bm-device-outer.bm-device-desktop { width: 100%; }
        .bm-device-outer.bm-device-tablet  { width: 768px; max-width: 100%; }
        .bm-device-outer.bm-device-mobile  { width: 375px; max-width: 100%; }

        /* Device chrome (browser bar for tablet/mobile) */
        .bm-device-chrome { background: #e5e7eb; border-radius: 10px 10px 0 0; padding: 8px 12px; }
        .bm-device-chrome-bar { display: flex; align-items: center; gap: 6px; }
        .bm-chrome-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
        .bm-chrome-urlbar { flex: 1; height: 18px; background: #fff; border-radius: 9px; margin-left: 8px; opacity: .7; }

        .bm-preview-frame {
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
        }
        .bm-device-chrome + .bm-preview-frame { border-radius: 0 0 10px 10px; border-top: none; }
        .bm-preview-canvas {
            position: relative;
            max-height: 400px;
            overflow-y: auto;
            background: linear-gradient(45deg, #f3f4f6 25%, transparent 25%, transparent 75%, #f3f4f6 75%),
                        linear-gradient(45deg, #f3f4f6 25%, #fafafa 25%, #fafafa 75%, #f3f4f6 75%);
            background-size: 16px 16px;
            background-position: 0 0, 8px 8px;
            min-height: 60px;
            padding: 14px;
        }

        /* ─── BUILDER GRID ─── */
        .bm-add-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
        }
        @media (max-width: 900px) { .bm-add-grid { grid-template-columns: 1fr; } }

        /* ─── STRUTTURA MENU ─── */
        .bm-tip-inline {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .bm-tip-divider { color: #d1d5db; margin: 0 6px; }
        .bm-lang-mini {
            background: #eef2ff;
            color: #4338ca;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-family: monospace;
            font-weight: 600;
        }
        .bm-items-count {
            background: #f3f4f6;
            color: #4b5563;
            padding: 4px 12px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            margin-left: auto;
        }
        .bm-empty-msg {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #9ca3af;
            font-size: 13px;
            padding: 32px 20px;
            background: #f9fafb;
            border: 2px dashed #e5e7eb;
            border-radius: 10px;
            margin: 0;
        }
        .bm-empty-msg-icon { font-size: 22px; opacity: .6; }

        /* ─── SORTABLE LIST CONTAINER ─── */
        #menux-sortable {
            list-style: none;
            padding: 0;
            margin: 0;
            min-height: 50px;
        }

        /* ─── ACCORDION ITEMS ─── */
        .menux-item {
            background: #fff;
            border-bottom: 1px solid #f1f5f9;
            position: relative;
            transition: background .12s;
        }
        .menux-item:last-child { border-bottom: none; }
        .menux-item:hover { background: #fafbff; }
        .menux-item.menux-item-open {
            background: #f8f9ff;
            border-left: 3px solid #667eea;
        }
        .menux-item.menux-item-open + .menux-item { border-top: 1px solid #e5e7eb; }
        .menux-item.ui-sortable-helper {
            box-shadow: 0 6px 20px rgba(102,126,234,.18);
            border: 1px solid #c7d2fe !important;
            border-radius: 8px;
            background: #fff;
            border-left: none !important;
            z-index: 9999;
        }

        /* Accordion header — the clickable row */
        .menux-item-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 14px;
            cursor: pointer;
            user-select: none;
            min-height: 48px;
        }
        .menux-item.menux-item-open .menux-item-header {
            border-bottom: 1px solid #e8eaf6;
        }

        /* Drag handle */
        .menux-drag-handle {
            cursor: grab;
            color: #9ca3af;
            font-size: 18px;
            flex-shrink: 0;
            transition: color .15s, background .15s;
            line-height: 1;
            /* Generous hit area: users often miss a bare 18px glyph */
            padding: 4px;
            margin: -4px 0 -4px -4px;
            border-radius: 5px;
        }
        .menux-drag-handle:active { cursor: grabbing; }
        .menux-item:hover .menux-drag-handle { color: #667eea; background: #eef2ff; }
        .menux-item-title {
            flex: 1;
            font-size: 13px;
            font-weight: 600;
            color: #1f2937;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
        }
        .menux-item-meta { display:flex; gap:4px; align-items:center; flex-shrink:0; }
        .menux-item-badge {
            font-size: 10px;
            font-weight: 700;
            background: #eff6ff;
            color: #3b82f6;
            padding: 2px 7px;
            border-radius: 20px;
            letter-spacing: .2px;
        }
        .menux-item-badge-adv { background:#fefce8; color:#b45309; }
        .menux-item-chevron {
            font-size: 11px;
            color: #c4c9d4;
            flex-shrink: 0;
            transition: transform .18s;
        }
        .menux-item.menux-item-open .menux-item-chevron { transform: rotate(180deg); color: #667eea; }

        /* Delete button — red at rest so it reads as "delete" at a glance */
        .menux-item-delete {
            flex-shrink: 0;
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 6px;
            color: #ef4444;
            font-size: 16px;
            cursor: pointer;
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            line-height: 1;
            transition: background .12s, color .12s, border-color .12s;
        }
        .menux-item-delete:hover { background:#dc2626; border-color:#dc2626; color:#fff; }

        /* Accordion body */
        .menux-item-body {
            display: none;
            padding: 14px 16px 16px 18px;
            background: #f8f9ff;
        }
        .menux-item.menux-item-open .menux-item-body { display: block; }

        /* Sections inside body */
        .bm-item-section { margin-bottom: 14px; }
        .bm-item-section:last-child { margin-bottom: 0; }
        .bm-item-section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 10px;
            font-weight: 700;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: .6px;
            margin-bottom: 8px;
        }
        .bm-item-section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }
        .bm-item-advanced { margin-bottom: 14px; }
        .bm-item-advanced > summary::-webkit-details-marker { display: none; }
        .bm-item-advanced > summary { display: flex; }
        .menux-item-has-subs .menux-item-header { border-left: 2px solid #c7d2fe; }
        .menux-item.menux-item-open.menux-item-has-subs .menux-item-header { border-left: none; }

        /* Sortable placeholder */
        .menux-sortable-placeholder {
            background: #eef2ff !important;
            border: 2px dashed #818cf8 !important;
            visibility: visible !important;
            height: 48px !important;
            border-radius: 0 !important;
            margin: 0 !important;
        }

        /* ─── ADD SECTION TABS ─── */
        .bm-card-add-unified { margin-bottom: 16px; }
        .bm-add-tabs {
            display: flex;
            border-bottom: 1px solid #e5e7eb;
            padding: 0 16px;
            gap: 0;
        }
        .bm-add-tab-btn {
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            padding: 9px 18px;
            font-size: 13px;
            font-weight: 500;
            color: #6b7280;
            cursor: pointer;
            margin-bottom: -1px;
            font-family: inherit;
            transition: color .15s, border-color .15s;
        }
        .bm-add-tab-btn.active { color: #4f46e5; border-bottom-color: #4f46e5; }
        .bm-add-tab-btn:hover:not(.active) { color: #374151; }
        .bm-add-pane { padding: 16px; }

        /* ─── TABS NAV (style panel) ─── */
        .bm-tabs-nav {
            display: flex;
            gap: 0;
            border-bottom: 1px solid #e5e7eb;
            padding: 0 22px;
            overflow-x: auto;
            background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
        }
        .bm-tabs-nav::-webkit-scrollbar { height: 4px; }
        .bm-tabs-nav::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
        .bm-tab-btn {
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            margin-bottom: -1px;
            padding: 12px 18px;
            font-size: 13px;
            font-weight: 500;
            color: #6b7280;
            cursor: pointer;
            white-space: nowrap;
            transition: all .15s;
            position: relative;
        }
        .bm-tab-btn:hover { color: #4f46e5; background: rgba(102,126,234,.04); }
        .bm-tab-btn.active {
            color: #4f46e5;
            border-bottom-color: #667eea;
            font-weight: 600;
            background: transparent;
        }

        /* ─── TAB PANE (tabelle interne) ─── */
        .bm-tab-pane h4,
        .bm-tab-pane .bm-section-title,
        .bm-tab-pane > div > div[style*="text-transform:uppercase"] {
            position: relative;
        }

        /* ─── BUTTON SAVE FIXED ─── */
        .bm-admin-modern .button-primary,
        .bm-admin-modern input[type="submit"].button-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            border: none !important;
            text-shadow: none !important;
            box-shadow: 0 2px 6px rgba(102,126,234,.3) !important;
            padding: 8px 22px !important;
            height: auto !important;
            border-radius: 8px !important;
            font-weight: 600 !important;
            font-size: 13px !important;
        }
        .bm-admin-modern .button-primary:hover {
            box-shadow: 0 4px 12px rgba(102,126,234,.45) !important;
            transform: translateY(-1px);
        }
        /* Sidebar & topbar submit buttons — override WP defaults */
        .bm-admin-modern input[type="submit"].bm-btn-primary {
            -webkit-appearance: none;
            appearance: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            color: #fff !important;
            border: none !important;
            text-shadow: none !important;
            box-shadow: 0 2px 6px rgba(102,126,234,.3) !important;
            height: auto !important;
            cursor: pointer;
            border-radius: 8px !important;
            font-weight: 600 !important;
        }
        .bm-admin-modern input[type="submit"].bm-btn-primary:hover {
            box-shadow: 0 4px 12px rgba(102,126,234,.45) !important;
            transform: translateY(-1px);
        }
        .bm-admin-modern input[type="submit"].bm-topbar-btn-save {
            -webkit-appearance: none;
            appearance: none;
            background: #fff !important;
            color: #4f46e5 !important;
            border: none !important;
            text-shadow: none !important;
            height: auto !important;
            cursor: pointer;
        }
        .bm-admin-modern input[type="submit"].bm-topbar-btn-save:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
        }

        /* ─── MOBILE RESPONSIVE ─── */
        @media (max-width: 900px) {
            .bm-admin-layout { grid-template-columns: 1fr; }
            .bm-admin-sidebar { border-right: none; border-bottom: 1px solid #e5e7eb; min-height: auto; }
            .bm-sidebar-nav { display: flex; flex-wrap: wrap; padding: 8px; }
            .bm-sidebar-group { margin-bottom: 0; }
            .bm-sidebar-group-label { display: none; }
            .bm-sidebar-item { width: auto; border-left: none; border-bottom: 3px solid transparent; padding: 6px 12px; }
            .bm-sidebar-item.active { border-bottom-color: #667eea; border-left-color: transparent; }
        }
        @media (max-width: 782px) {
            .bm-topbar { flex-wrap: wrap; gap: 8px; }
            .bm-card-body { padding: 16px; }
            .bm-card-header { padding: 14px 16px; }
            .bm-form-row { grid-template-columns: 1fr; gap: 8px; }
            .bm-form-label-text { padding-top: 0; }
            .bm-admin-content { padding: 16px; }
        }

        /* ════════════════════════════════════════════════════
           STILI ORIGINALI (preservati)
           ════════════════════════════════════════════════════ */
        /* ─── GRADIENT PICKER WIDGET ─── */
        #bm-gp-strip {
            height: 32px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            margin-bottom: 10px;
            transition: background .2s;
        }
        .bm-gp-controls { display: flex; flex-direction: column; gap: 10px; }
        .bm-gp-type-row { display: flex; align-items: center; gap: 6px; }
        .bm-gp-type-btn {
            background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px;
            padding: 4px 12px; font-size: 12px; font-weight: 500; cursor: pointer;
            color: #475569; transition: all .15s; font-family: inherit;
        }
        .bm-gp-type-btn.active { background: #667eea; border-color: #667eea; color: #fff; }
        .bm-gp-type-btn:hover:not(.active) { background: #e2e8f0; }
        .bm-gp-clear-btn {
            margin-left: auto; background: none; border: 1px solid #e5e7eb;
            border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer;
            color: #9ca3af; font-family: inherit; transition: all .15s;
        }
        .bm-gp-clear-btn:hover { border-color: #fca5a5; color: #dc2626; background: #fee2e2; }
        .bm-gp-main { display: flex; gap: 16px; align-items: flex-start; }
        .bm-gp-colors { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
        .bm-gp-stop { display: flex; flex-direction: column; align-items: center; gap: 3px; }
        .bm-gp-stop label { font-size: 10px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
        .bm-gp-stop input[type="color"] { width: 40px; height: 40px; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; padding: 2px; background: #fff; }
        .bm-gp-stop input[type="color"]:hover { border-color: #667eea; }
        .bm-gp-dir-col { flex: 1; min-width: 0; }
        .bm-gp-dir-label { font-size: 10px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
        .bm-gp-compass { display: grid; grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(3, 28px); gap: 3px; margin-bottom: 8px; }
        .bm-gp-dir-btn {
            width: 28px; height: 28px; border: 1px solid #e5e7eb; border-radius: 6px;
            background: #f8fafc; font-size: 14px; cursor: pointer; display: flex;
            align-items: center; justify-content: center; transition: all .15s;
            padding: 0; color: #374151;
        }
        .bm-gp-dir-btn:hover { background: #eef2ff; border-color: #818cf8; }
        .bm-gp-dir-btn.active { background: #667eea; border-color: #667eea; color: #fff; }
        .bm-gp-dir-center { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
        .bm-gp-dir-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
        .bm-gp-angle-row { display: flex; align-items: center; gap: 6px; }
        .bm-gp-angle-row input[type="range"] { flex: 1; accent-color: #667eea; }
        #bm-gp-angle-lbl { font-size: 11px; color: #6b7280; font-weight: 600; min-width: 32px; text-align: right; }

        .menux-panel .postbox { padding:15px; margin-bottom:20px; }
        .menux-panel h3 { margin-top:0; }
        /* Input lingua compatti nei drag'n drop */
        .bm-lang-input { flex:1; min-width:80px; max-width:150px; font-size:11px !important; padding:3px 8px !important; height:26px !important; box-sizing:border-box; border:1px solid #d1d5db !important; border-radius:7px !important; background:#fff; color:#111827; transition:border-color .15s, box-shadow .15s; font-family:inherit; }
        .bm-lang-input:focus { outline:none !important; border-color:#667eea !important; box-shadow:0 0 0 2px rgba(102,126,234,.15) !important; }
        /* Input lingua nei pannelli Aggiungi */
        .bm-add-lang-inputs { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:6px; }
        .bm-add-lang-input  { flex:1; min-width:80px; max-width:150px; font-size:12px; padding:6px 10px; border:1px solid #d1d5db; border-radius:7px; }
        .bm-add-lang-input:focus { outline:none; border-color:#667eea; box-shadow:0 0 0 3px rgba(102,126,234,.15); }
        /* Language field with locale badge */
        .bm-lang-field { display:inline-flex; align-items:center; gap:0; flex-shrink:0; }
        .bm-lang-code {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e0e7ff;
            color: #4338ca;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: .5px;
            padding: 0 5px;
            height: 26px;
            border: 1px solid #c7d2fe;
            border-right: none;
            border-radius: 7px 0 0 7px;
            flex-shrink: 0;
            user-select: none;
        }
        .bm-lang-field .bm-lang-input {
            border-radius: 0 7px 7px 0 !important;
            min-width: 90px;
            max-width: 140px;
        }
        /* Riga input — tutto su una riga senza wrap */
        .bm-inputs-row { display:flex; gap:5px; align-items:center; flex-wrap:nowrap; margin-top:4px; overflow-x:auto; }
        /* Select visibilità */
        .menux-visibility { min-width:110px; font-size:12px; height:26px; padding:2px 6px; border:1px solid #d1d5db !important; border-radius:7px !important; background:#fff; cursor:pointer; transition:border-color .15s, box-shadow .15s; }
        .menux-visibility:focus { outline:none !important; border-color:#667eea !important; box-shadow:0 0 0 2px rgba(102,126,234,.15) !important; }
        /* Builder row: uniform rounded style for all inline inputs and selects */
        .bm-inputs-row input[type="text"],.bm-inputs-row input[type="datetime-local"],.bm-sm-item input[type="text"] { border:1px solid #d1d5db !important; border-radius:7px !important; background:#fff; box-sizing:border-box; }
        .bm-inputs-row input[type="text"]:focus,.bm-inputs-row input[type="datetime-local"]:focus,.bm-sm-item input[type="text"]:focus { outline:none !important; border-color:#667eea !important; box-shadow:0 0 0 2px rgba(102,126,234,.15) !important; }
        .bm-inputs-row select:not(.menux-visibility),.bm-sm-item select:not(.bm-child-type-sel) { border:1px solid #d1d5db !important; border-radius:7px !important; background:#fff; cursor:pointer; }
        .bm-inputs-row select:not(.menux-visibility):focus,.bm-sm-item select:not(.bm-child-type-sel):focus { outline:none !important; border-color:#667eea !important; box-shadow:0 0 0 2px rgba(102,126,234,.15) !important; }
        .bm-child-type-sel { border-radius:7px !important; }
        /* Icon pick button */
        .bm-icon-btn { height:26px; padding:2px 8px; font-size:13px; cursor:pointer; background:#f9fafb; border:1px solid #d1d5db !important; border-radius:7px !important; transition:border-color .15s, background .15s; white-space:nowrap; line-height:1; flex-shrink:0; }
        .bm-icon-btn:hover { border-color:#667eea !important; background:#eef2ff; }
        .menux-user-logged-in .bs-show-only-when-non-auth, .menux-user-guest .bs-show-only-when-auth { display: none !important; }

        /* ---- Theme Modal Cards ---- */
        .bm-modal-card { background:#fff; border:2px solid #e5e7eb; border-radius:8px; cursor:pointer; transition:all .15s; position:relative; overflow:hidden; }
        .bm-modal-card:hover { border-color:#667eea; transform:translateY(-2px); box-shadow:0 6px 20px rgba(102,126,234,.15); }
        .bm-modal-card.bm-mc-selected { border-color:#667eea; box-shadow:0 0 0 3px rgba(102,126,234,.25); }

        /* ---- Submenu zone ---- */
        .bm-sm-item { transition: background .15s; }
        .bm-sm-item:hover { background: #f0f6fc !important; }

        /* ══════════════════════════════════════════════════════
           LOGO PANEL
        ══════════════════════════════════════════════════════ */

        .bm-logo-slots {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .bm-logo-slot {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 14px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            background: #fafbfc;
            transition: border-color .15s;
        }
        .bm-logo-slot:hover { border-color: #c7d2fe; }
        .bm-logo-slot-label {
            width: 160px;
            flex-shrink: 0;
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            padding-top: 2px;
        }
        .bm-logo-slot-desc {
            display: block;
            font-size: 11px;
            color: #9ca3af;
            font-weight: 400;
            margin-top: 2px;
            line-height: 1.4;
        }
        .bm-logo-slot-body {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .bm-logo-preview {
            width: 90px;
            height: 48px;
            background: #f0f0f0;
            border: 1px dashed #d1d5db;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .bm-logo-section-title {
            font-size: 12px;
            font-weight: 700;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: .5px;
            margin-bottom: 12px;
        }
        .bm-logo-table {
            border-collapse: collapse;
            width: 100%;
        }
        .bm-logo-table td {
            padding: 7px 12px 7px 0;
            font-size: 13px;
            vertical-align: top;
        }
        .bm-logo-table td:first-child {
            width: 130px;
            font-weight: 500;
            color: #374151;
        }
        .bm-btn-danger-ghost {
            background: transparent;
            border: 1px solid #fca5a5;
            color: #ef4444;
        }
        .bm-btn-danger-ghost:hover {
            background: #fff5f5;
        }
        .bm-card-icon-purple { background: #f5f3ff; color: #7c3aed; }
        .bm-card-icon-indigo { background: #eef2ff; color: #4f46e5; }

        /* ══════════════════════════════════════════════════════
           MEGA MENU PANEL
        ══════════════════════════════════════════════════════ */

        .bm-mega-item-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .bm-mega-item {
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            background: #fff;
            overflow: hidden;
            transition: border-color .15s;
        }
        .bm-mega-item:has(.bm-mega-toggle-cb:checked) {
            border-color: #c7d2fe;
        }
        .bm-mega-item-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            flex-wrap: wrap;
        }
        .bm-mega-item-label {
            font-size: 13px;
            font-weight: 600;
            color: #1f2937;
            min-width: 120px;
        }
        .bm-mega-item-summary {
            padding: 8px 16px 12px;
            border-top: 1px solid #f3f4f6;
            background: #f8fafc;
        }
        .bm-mega-info {
            font-size: 12px;
            color: #6b7280;
        }
        .bm-mega-info-empty {
            color: #f59e0b;
        }
        /* Status badge ON / OFF */
        .bm-mega-badge {
            display: inline-flex;
            align-items: center;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .3px;
            flex-shrink: 0;
        }
        .bm-mega-badge-on  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
        .bm-mega-badge-off { background: #f3f4f6; color: #9ca3af; border: 1px solid #e5e7eb; }

        /* Enable call-to-action button */
        .bm-mega-enable-btn {
            border: 1.5px dashed #a5b4fc;
            color: #6366f1;
            background: transparent;
            border-radius: 6px;
            padding: 5px 14px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: background .15s, border-color .15s;
        }
        .bm-mega-enable-btn:hover { background: #eef2ff; border-color: #818cf8; }

        .bm-mega-full-label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }

        /* Toggle switch */
        .bm-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        .bm-toggle input { display: none; }
        .bm-toggle-slider {
            width: 36px;
            height: 20px;
            background: #d1d5db;
            border-radius: 10px;
            position: relative;
            transition: background .2s;
            flex-shrink: 0;
        }
        .bm-toggle-slider::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: #fff;
            border-radius: 50%;
            transition: transform .2s;
            box-shadow: 0 1px 3px rgba(0,0,0,.2);
        }
        .bm-toggle input:checked + .bm-toggle-slider { background: #4f46e5; }
        .bm-toggle input:checked + .bm-toggle-slider::after { transform: translateX(16px); }
        .bm-toggle-label { font-size: 13px; color: #374151; }

        /* Mega editor modal columns */
        .bm-mega-col-editor {
            flex: 1;
            min-width: 200px;
            border-right: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
        }
        .bm-mega-col-editor:last-child { border-right: none; }
        .bm-mega-col-header {
            padding: 12px 14px;
            background: #f8fafc;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: 12px;
            font-weight: 700;
            color: #374151;
        }
        .bm-mega-col-items {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
            min-height: 200px;
        }
        .bm-mega-col-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 8px;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            background: #fff;
            margin-bottom: 6px;
            font-size: 12px;
            cursor: grab;
        }
        .bm-mega-col-item:hover { border-color: #a5b4fc; background: #f5f3ff; }
        .bm-mega-col-item.bm-dragging { opacity: 0.35; }
        .bm-mega-col-item.bm-drag-over { border-top: 2px solid #4f46e5; border-radius: 0 0 6px 6px; background: #eef2ff; }
        .bm-mega-col-items.bm-drag-over-col { background: #eef2ff; border-radius: 6px; outline: 2px dashed #a78bfa; }
        .bm-mega-col-item-type {
            font-size: 10px;
            background: #e0e7ff;
            color: #4f46e5;
            padding: 1px 5px;
            border-radius: 4px;
            font-weight: 700;
            text-transform: uppercase;
            flex-shrink: 0;
        }
        .bm-mega-col-item-label { flex: 1; color: #374151; }
        .bm-mega-col-footer {
            padding: 10px;
            border-top: 1px solid #e5e7eb;
            background: #f8fafc;
        }
        .bm-mega-add-item-menu {
            display: none;
            position: absolute;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(0,0,0,.12);
            z-index: 9999;
            padding: 6px;
            min-width: 160px;
        }
        .bm-mega-add-item-menu button {
            display: block;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            padding: 7px 10px;
            font-size: 12px;
            color: #374151;
            cursor: pointer;
            border-radius: 5px;
        }
        .bm-mega-add-item-menu button:hover { background: #f0f4ff; color: #4f46e5; }

        /* Mega item edit form */
        .bm-mega-item-edit-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.4);
            z-index: 1000001;
            align-items: center;
            justify-content: center;
        }
        .bm-mega-item-edit-box {
            background: #fff;
            border-radius: 12px;
            padding: 24px;
            width: min(500px, 95vw);
            box-shadow: 0 16px 40px rgba(0,0,0,.2);
        }

        /* ===== Google Font Picker ===== */
        .menux-fp-wrap { position: relative; display: inline-block; width: 100%; max-width: 280px; }
        .menux-fp-trigger {
            display: flex; align-items: center; justify-content: space-between;
            width: 100%; padding: 6px 10px;
            border: 1px solid #d1d5db !important; border-radius: 7px !important;
            background: #fff; cursor: pointer; font-size: 13px; color: #374151;
            transition: border-color .15s, box-shadow .15s;
            text-align: left; min-height: 32px; box-sizing: border-box;
        }
        .menux-fp-trigger:hover { border-color: #667eea !important; }
        .menux-fp-trigger.open { border-color: #667eea !important; box-shadow: 0 0 0 2px rgba(102,126,234,.15) !important; }
        .menux-fp-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
        .menux-fp-caret { margin-left: 6px; font-size: 10px; color: #6b7280; transition: transform .15s; flex-shrink: 0; }
        .menux-fp-trigger.open .menux-fp-caret { transform: rotate(180deg); }
        .menux-fp-panel {
            display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
            background: #fff; border: 1px solid #d1d5db; border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,.13); z-index: 99999; overflow: hidden;
        }
        .menux-fp-panel.open { display: block; }
        .menux-fp-search-wrap { padding: 8px; border-bottom: 1px solid #f3f4f6; }
        .menux-fp-search {
            width: 100% !important; padding: 5px 10px !important;
            border: 1px solid #d1d5db !important; border-radius: 6px !important;
            font-size: 12px !important; box-sizing: border-box !important;
            outline: none !important;
        }
        .menux-fp-search:focus { border-color: #667eea !important; }
        .menux-fp-list { max-height: 240px; overflow-y: auto; padding: 4px 0; }
        .menux-fp-group-label {
            font-size: 10px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .5px; color: #9ca3af; padding: 6px 12px 2px;
        }
        .menux-fp-item {
            display: flex; align-items: center; padding: 6px 12px;
            font-size: 15px; cursor: pointer; color: #374151;
            transition: background .1s; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis;
        }
        .menux-fp-item:hover, .menux-fp-item.menux-fp-hover { background: #f0f4ff; color: #4f46e5; }
        .menux-fp-item.selected { background: #eef2ff; color: #4f46e5; font-weight: 600; }
        .menux-fp-clear {
            display: block; width: 100%; padding: 6px 12px;
            text-align: left; border: none; border-top: 1px solid #f3f4f6;
            background: none; font-size: 12px; color: #9ca3af;
            cursor: pointer;
        }
        .menux-fp-clear:hover { color: #ef4444; background: #fef2f2; }
