/* ── Frontend page output ── */
.pb-page { width: 100%; }
.pb-section { width: 100%; }
.pb-section--full-width .pb-section__inner { max-width: none; }
.pb-cols-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}
.pb-cols-row--gutter {
    gap: 1.5rem;
}
.pb-cols-row--multi {
    flex-wrap: nowrap;
    align-items: stretch;
}
.pb-col--flex {
    flex: 0 0 var(--pb-col-width, 100%);
    max-width: var(--pb-col-width, 100%);
    min-width: 0;
    width: var(--pb-col-width, 100%);
}
.pb-page .pb-col {
    box-sizing: border-box;
}
.pb-page .pb-widget {
    max-width: 100%;
    min-width: 0;
}
.pb-page .pb-widget img,
.pb-page .pb-image img,
.pb-page .pb-embed iframe,
.pb-page .pb-video iframe,
.pb-page .pb-video .ratio {
    max-width: 100%;
}
.pb-page .pb-image--full,
.pb-page .pb-image--full .pb-image__img {
    width: 100%;
    max-width: 100%;
}
.pb-page .pb-image.text-left .pb-image__link,
.pb-page .pb-image.text-left .pb-image__img { margin-left: 0; margin-right: auto; }
.pb-page .pb-image.text-right .pb-image__link,
.pb-page .pb-image.text-right .pb-image__img { margin-left: auto; margin-right: 0; }
.pb-page .pb-image.text-center .pb-image__link,
.pb-page .pb-image.text-center .pb-image__img { margin-left: auto; margin-right: auto; }
.pb-dynamic-card--bordered { border: 1px solid rgba(128, 128, 128, 0.25); }
.pb-dynamic-card--shadow { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.pb-dynamic-card--minimal { background: transparent; border: none; box-shadow: none; }
.pb-dynamic-card__img { display: block; }
.pb-page--edit .pb-widget-drag {
    opacity: 0.85;
    pointer-events: auto;
}
.pb-page .pb-cta,
.pb-page .pb-icon-box,
.pb-page .pb-feature-grid {
    width: 100%;
}
.pb-page .pb-form,
.pb-page .pb-search form {
    max-width: 100%;
}
@media (max-width: 767.98px) {
    .pb-cols-row--multi {
        flex-wrap: wrap;
    }
    .pb-page .pb-col.pb-col--stack {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .pb-page .pb-heading {
        font-size: clamp(1.25rem, 5vw, 2.5rem);
        word-wrap: break-word;
    }
    .pb-page .pb-text {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    .pb-page .btn,
    .pb-page .pb-button .btn {
        white-space: normal;
    }
}
.pb-heading { margin-bottom: 1rem; }
.pb-text { margin-bottom: 1rem; line-height: 1.7; }
.pb-text p:last-child { margin-bottom: 0; }
.pb-button { margin: 0.5rem 0 1rem; }
.pb-image img { max-width: 100%; height: auto; }
.pb-divider { border-color: var(--border-color, rgba(128,128,128,.25)); }
.sn-form-widget { max-width: 720px; margin: 0 auto 2rem; }
.sn-form-title { margin-bottom: 0.35rem; }
.sn-form-subtitle { margin-bottom: 1rem; }

.pb-page-wrap {
    width: 100%;
}
.pb-page-wrap:not(.pb-page-wrap--full) {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}
.pb-page-wrap--full {
    padding: 0;
    max-width: none;
}
.pb-page-wrap--full .pb-page {
    max-width: none;
    width: 100%;
}
.pb-page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1.5rem;
    padding: 0 0.75rem;
}
.pb-page-wrap--full .pb-page-title {
    padding-left: max(1rem, calc((100vw - 1140px) / 2 + 0.75rem));
    padding-right: 1rem;
    padding-top: 1.5rem;
}

/* ── Hub cards ── */
.site-hub-card {
    display: block;
    padding: 1.25rem;
    transition: transform 0.15s, border-color 0.15s;
}
.site-hub-card:hover {
    transform: translateY(-2px);
    border-color: var(--admin-primary);
}
.site-hub-card__icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }

/* ── Full-screen studio shell ── */
.pb-studio-body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
}

.pb-studio {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
}

.pb-studio__header {
    flex-shrink: 0;
    background: var(--admin-card);
    border-bottom: 1px solid var(--admin-border);
    position: relative;
    z-index: 20;
}

.pb-studio__accent {
    height: 3px;
    background: var(--admin-gradient);
}

.pb-studio__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
}

.pb-studio__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.pb-studio__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--admin-border);
    color: var(--admin-muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pb-studio__back:hover {
    color: var(--admin-text);
    border-color: var(--admin-primary);
    background: var(--admin-primary-glow);
}

.pb-studio__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pb-studio__eyebrow {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--admin-muted);
    font-weight: 600;
}

.pb-studio__title {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.pb-studio__path {
    font-size: 0.7rem;
    color: var(--admin-muted);
    background: transparent;
}

.pb-studio__devices {
    display: flex;
    gap: 0.35rem;
    padding: 0.2rem;
    background: var(--admin-card-alt);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
}

.pb-device-btn {
    border: none;
    background: transparent;
    color: var(--admin-muted);
    width: 34px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pb-device-btn:hover { color: var(--admin-text); }
.pb-device-btn.active {
    background: var(--admin-primary-glow);
    color: var(--admin-primary);
}

.pb-studio__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pb-studio__save-status.is-dirty { color: var(--admin-primary) !important; }
.pb-studio__save-status.is-ok { color: #22c55e !important; }

.pb-studio__body {
    flex: 1;
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}

.pb-studio__panel {
    overflow-y: auto;
    border-right: 1px solid var(--admin-border);
    background: var(--admin-sidebar);
    padding: 0.75rem;
}
.pb-studio__panel--right {
    border-right: none;
    border-left: 1px solid var(--admin-border);
}

.pb-panel-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 1rem;
}

.pb-panel-card__head { margin-bottom: 0.75rem; }
.pb-panel-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.pb-panel-card__hint { font-size: 0.75rem; }

.pb-widget-group { margin-bottom: 0.75rem; }
.pb-widget-group__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.pb-widget-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: 1px solid var(--admin-border);
    background: var(--admin-card-alt);
    color: var(--admin-text);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.pb-widget-btn:hover {
    border-color: var(--admin-primary);
    transform: translateX(2px);
}
.pb-widget-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--admin-primary-glow);
    color: var(--admin-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Canvas ── */
.pb-studio__canvas-wrap {
    overflow: auto;
    padding: 1rem;
    background:
        radial-gradient(ellipse at top, color-mix(in srgb, var(--admin-accent) 8%, transparent), transparent 55%),
        var(--admin-bg);
}

.pb-canvas-frame {
    max-width: 100%;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}
.pb-canvas-frame[data-device="desktop"] { max-width: 100%; }
.pb-canvas-frame[data-device="tablet"] { max-width: 768px; }
.pb-canvas-frame[data-device="mobile"] { max-width: 390px; }

.pb-canvas-frame__label {
    text-align: center;
    margin-bottom: 0.5rem;
}

.pb-canvas {
    min-height: calc(100vh - 140px);
    background: #fff;
    border-radius: calc(var(--admin-radius) * 0.75);
    border: 1px solid var(--admin-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 1rem;
    color: #1a1a1f;
}

.pb-section-block {
    border: 2px dashed rgba(77, 139, 255, 0.35);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(77, 139, 255, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.pb-section-block.is-selected {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px var(--admin-primary-glow);
}
.pb-section-block__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    gap: 0.5rem;
}
.pb-section-block__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.pb-cols-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pb-col-block {
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0.65rem;
    min-height: 72px;
    background: rgba(255, 255, 255, 0.85);
    flex: 1 1 100%;
}
.pb-col-block[data-width="50"] { flex: 1 1 calc(50% - 0.35rem); }
.pb-col-block[data-width="33"] { flex: 1 1 calc(33.333% - 0.45rem); }

.pb-widget-block {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.pb-widget-block:hover { border-color: var(--admin-accent); }
.pb-widget-block.is-selected {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--admin-primary) 30%, transparent);
}
.pb-widget-block__type {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 600;
}
.pb-widget-block__preview { pointer-events: none; }
.pb-widget-block__preview h1,
.pb-widget-block__preview h2,
.pb-widget-block__preview h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.pb-widget-block__preview p { margin: 0; font-size: 0.9rem; color: #475569; }
.pb-widget-block__preview .pb-preview-btn {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    background: #FF4D4D;
    color: #fff;
    font-size: 0.85rem;
}
.pb-widget-block__preview .pb-preview-form {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}
.pb-widget-block__preview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
}

.pb-empty-canvas {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #94a3b8;
}
.pb-empty-canvas i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.5; }

/* ── Inspector ── */
.pb-inspector-tabs .nav-link {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--admin-muted);
}
.pb-inspector-tabs .nav-link.active {
    background: var(--admin-primary-glow);
    color: var(--admin-text);
}

.pb-tips {
    background: color-mix(in srgb, var(--admin-accent) 6%, var(--admin-card));
}

/* ── Toast ── */
.pb-toast-host {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.pb-toast {
    pointer-events: auto;
    min-width: 220px;
    max-width: 360px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    background: var(--admin-card);
    color: var(--admin-text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    animation: pbToastIn 0.25s ease;
}
.pb-toast.is-success { border-color: rgba(34, 197, 94, 0.5); }
.pb-toast.is-error { border-color: rgba(239, 68, 68, 0.5); }
@keyframes pbToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .pb-studio__body {
        grid-template-columns: 200px 1fr 260px;
    }
}
@media (max-width: 992px) {
    .pb-studio__body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    .pb-studio__panel--left,
    .pb-studio__panel--right {
        border: none;
        border-bottom: 1px solid var(--admin-border);
        max-height: 220px;
    }
}

/* ── Real iframe preview ── */
.pb-preview-iframe {
    width: 100%;
    min-height: calc(100vh - 150px);
    border: 1px solid var(--admin-border);
    border-radius: calc(var(--admin-radius) * 0.75);
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pb-page-select { max-width: 280px; font-weight: 600; }
.pb-studio__scope .form-select { min-width: 130px; }
.pb-left-tabs .nav-link { font-size: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 999px; }

.pb-section-list-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border: 1px dashed var(--admin-border);
    border-radius: 8px;
    margin-bottom: 0.35rem;
    cursor: pointer;
    font-size: 0.82rem;
    background: var(--admin-card-alt);
}
.pb-section-list-item.is-active { border-color: var(--admin-primary); background: var(--admin-primary-glow); }
.pb-drag-handle { cursor: grab; opacity: 0.5; }

.pb-library-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid var(--admin-border);
    background: var(--admin-card-alt);
    color: var(--admin-text);
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    cursor: pointer;
}
.pb-library-item:hover { border-color: var(--admin-primary); }

.pb-section-drag {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    border-radius: 6px;
    padding: 2px 6px;
    cursor: grab;
    line-height: 1;
}
.pb-section-drag:active { cursor: grabbing; }
.pb-page--edit .pb-section.pb-section--ghost { opacity: 0.45; }
.pb-page--edit .pb-section.pb-section--chosen { outline: 2px solid #6366f1; }
.pb-page--edit .pb-section-drag { color: #6366f1; background: rgba(99, 102, 241, 0.12); }

.pb-style-group { border-top: 1px solid var(--admin-border); padding-top: 0.65rem; }

.pb-style-panel { display: flex; flex-direction: column; gap: 0.35rem; }
.pb-style-block {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-card-alt, #f8fafc);
    overflow: hidden;
}
.pb-style-block__title {
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--admin-muted, #64748b);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.pb-style-block__title::-webkit-details-marker { display: none; }
.pb-style-block__body {
    padding: 0.5rem 0.65rem 0.65rem;
    border-top: 1px solid var(--admin-border);
    background: #fff;
}
.pb-preview-scope-hint {
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--pb-primary, #6366f1);
}
.pb-studio--chrome-scope .pb-sidebar-tab[data-panel="sections"],
.pb-studio--chrome-scope .pb-sidebar-tab[data-panel="widgets"],
.pb-studio--chrome-scope .pb-sidebar-tab[data-panel="add"] {
    opacity: 0.55;
}
.pb-studio--chrome-scope .pb-preview-iframe {
    border-color: var(--pb-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

[data-chrome-zone][data-chrome-editable] {
    position: relative;
    transition: outline-color 0.15s, box-shadow 0.15s;
}
[data-chrome-zone].pb-chrome-is-hover {
    outline: 2px dashed rgba(99, 102, 241, 0.55);
    outline-offset: 4px;
}
[data-chrome-zone].pb-chrome-is-selected {
    outline: 2px solid #6366f1;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.pb-chrome-zone-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.pb-chrome-zone-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--pb-border, rgba(255,255,255,.12));
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.pb-chrome-zone-item:hover,
.pb-chrome-zone-item.is-active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
}

/* Edit overlays in real preview iframe */
.pb-page--edit { position: relative; }

.pb-page--edit .pb-section {
    position: relative;
    outline: 2px dashed rgba(99, 102, 241, 0.55);
    outline-offset: 2px;
    margin-bottom: 4px;
    overflow: visible;
}
.pb-page--edit .pb-section.pb-is-hover {
    outline-color: rgba(99, 102, 241, 0.85);
    outline-width: 2px;
}
.pb-page--edit .pb-section.pb-is-selected {
    outline: 2px dashed #6366f1;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.pb-section-chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 6px 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.pb-page--edit .pb-section.pb-is-hover .pb-section-chrome,
.pb-page--edit .pb-section.pb-is-selected .pb-section-chrome,
.pb-page--edit .pb-section.pb-is-active-scope .pb-section-chrome {
    opacity: 1;
    pointer-events: auto;
}
.pb-section-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.pb-section-actions {
    display: flex;
    gap: 0.35rem;
    pointer-events: auto;
}

.pb-page--edit .pb-col {
    position: relative;
    outline: 1px dashed rgba(148, 163, 184, 0.65);
    outline-offset: 3px;
    border-radius: 8px;
    min-height: 56px;
    overflow: visible;
    transition: outline-color 0.15s, background 0.15s;
}
.pb-page--edit .pb-col-body {
    min-height: 48px;
    position: relative;
}
.pb-page--edit .pb-col.pb-is-hover,
.pb-page--edit .pb-col.pb-is-selected {
    outline: 2px dashed #22c55e;
    outline-offset: 3px;
}

.pb-page--edit .pb-widget {
    position: relative;
    outline: 1px dashed rgba(77, 139, 255, 0.5);
    outline-offset: 2px;
    min-height: 1.5rem;
    overflow: visible;
    border-radius: 4px;
}
.pb-page--edit .pb-widget.pb-is-hover {
    outline-color: rgba(77, 139, 255, 0.85);
    outline-width: 2px;
}
.pb-page--edit .pb-widget.pb-is-selected {
    outline: 2px dashed #4D8BFF;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(77, 139, 255, 0.18);
}

.pb-pin-edit,
.pb-pin-grid {
    border: none;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}
.pb-pin-edit {
    background: #FF4D4D;
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}
.pb-pin-edit--widget {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 14;
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.pb-pin-edit--col {
    position: absolute;
    top: 4px;
    left: 4px;
    right: auto;
    z-index: 13;
    width: 22px;
    height: 22px;
    font-size: 0.58rem;
    background: #22c55e;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.pb-widget-drag {
    position: absolute;
    top: 4px;
    left: 28px;
    z-index: 15;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.pb-widget-drag:active { cursor: grabbing; }
.pb-pin-grid {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #4D8BFF;
    font-size: 0.72rem;
}

/* Show pins only on direct hover or selection — avoids overlap with section chrome */
.pb-page--edit .pb-section.pb-is-selected .pb-section-chrome .pb-pin-edit,
.pb-page--edit .pb-section.pb-is-selected .pb-section-chrome .pb-pin-grid,
.pb-page--edit .pb-section.pb-is-hover .pb-section-chrome .pb-pin-edit,
.pb-page--edit .pb-section.pb-is-hover .pb-section-chrome .pb-pin-grid,
.pb-page--edit .pb-col.pb-is-selected .pb-pin-edit--col,
.pb-page--edit .pb-col.pb-is-hover > .pb-pin-edit--col,
.pb-page--edit .pb-widget.pb-is-selected .pb-pin-edit--widget,
.pb-page--edit .pb-widget.pb-is-selected .pb-widget-drag,
.pb-page--edit .pb-widget.pb-is-hover > .pb-pin-edit--widget,
.pb-page--edit .pb-widget.pb-is-hover > .pb-widget-drag {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.05);
}
.pb-page--edit .pb-widget.pb-is-selected .pb-widget-drag,
.pb-page--edit .pb-widget.pb-is-hover > .pb-widget-drag {
    transform: none;
}
.pb-page--edit .pb-widget--ghost {
    opacity: 0.45;
    outline: 2px dashed #6366f1;
}
.pb-page--edit .pb-widget--chosen,
.pb-page--edit .pb-widget--dragging {
    outline: 2px solid #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    z-index: 30;
}

.pb-section__inner {
    position: relative;
    width: 100%;
}

.pb-live-region {
    outline: 3px dashed #FF4D4D !important;
    outline-offset: 6px;
}
.pb-studio-preview #pageLoader { display: none !important; }

/* Ensure builder content is never clipped or hidden */
.pb-page .pb-section,
.pb-page .pb-section__inner,
.pb-page .pb-col,
.pb-page .pb-widget,
.pb-page .pb-text,
.pb-page .pb-heading {
    overflow: visible;
    max-height: none;
}
.pb-page .pb-text img,
.pb-page .pb-image img {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════════════════════════════
   BlogNexa-style light studio
   ══════════════════════════════════════════════════════════════ */
.pb-studio--blognexa {
    --pb-bg: #eef1f6;
    --pb-sidebar: #ffffff;
    --pb-border: #e2e8f0;
    --pb-text: #1e293b;
    --pb-muted: #64748b;
    --pb-primary: #6366f1;
    --pb-primary-soft: rgba(99, 102, 241, 0.12);
    background: var(--pb-bg);
    color: var(--pb-text);
    height: 100vh;
}

.pb-studio--blognexa .pb-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--pb-border);
    flex-shrink: 0;
}
.pb-topbar__left {
    grid-column: 1;
    min-width: 0;
}
.pb-topbar__center {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-shrink: 0;
}
.pb-topbar__right {
    grid-column: 3;
    justify-self: end;
}
.pb-topbar__left,
.pb-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pb-topbar__admin-link {
    font-size: 0.8rem;
    color: var(--pb-muted);
    text-decoration: none;
}
.pb-topbar__admin-link:hover { color: var(--pb-primary); }
.pb-topbar__sep { color: #cbd5e1; }
.pb-topbar__brand { font-weight: 700; font-size: 0.9rem; }
.pb-topbar__badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--pb-primary);
    background: var(--pb-primary-soft);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}
.pb-topbar__page-select {
    min-width: 160px;
    max-width: 220px;
    font-weight: 600;
    border-color: var(--pb-border);
}
.pb-topbar__devices {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    background: #f8fafc;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    flex-shrink: 0;
}
.pb-studio--blognexa .pb-device-btn {
    border: none;
    background: transparent;
    color: var(--pb-muted);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
    min-width: 0;
}
.pb-studio--blognexa .pb-device-btn.active {
    background: var(--pb-primary);
    color: #fff;
}
.pb-topbar__prefs {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    background: #f8fafc;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    flex-shrink: 0;
}
.pb-topbar__pref-btn {
    border: none;
    background: transparent;
    color: var(--pb-muted);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
}
.pb-topbar__pref-btn:hover,
.pb-topbar__pref-btn:focus {
    background: #fff;
    color: var(--pb-text);
}
.pb-topbar__lang-flag { font-size: 0.95rem; line-height: 1; }
.pb-topbar__lang-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-topbar__lang-code {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.pb-topbar__save-status { font-size: 0.75rem; color: var(--pb-muted); white-space: nowrap; }
.pb-topbar__save-status.is-dirty::before { content: '●'; color: var(--pb-primary); font-weight: 700; }
.pb-topbar__save-status.is-dirty { font-size: 0; }
.pb-topbar__save-status.is-ok { display: none; }
.pb-panel__status {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pb-text);
    margin-bottom: 0.5rem;
}
.pb-info-box {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.75rem;
}
.pb-page-settings {
    border: 1px solid var(--pb-border, #e2e8f0);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
}
.pb-page-settings__title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-muted, #64748b);
    margin-bottom: 0.45rem;
}
.pb-page-settings .form-check-label {
    font-size: 0.8rem;
}
.pb-section-list-item.is-locked {
    border-color: #bae6fd;
    background: #f0f9ff;
}
.pb-section-list-item.is-locked .pb-section-list-item__actions [data-del] {
    display: none;
}

.pb-studio--blognexa .pb-studio__body {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.pb-sidebar {
    background: var(--pb-sidebar);
    border-right: 1px solid var(--pb-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 340px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.pb-sidebar__stack {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.pb-sidebar__body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.pb-sidebar__main {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
}

.pb-sidebar__main.is-dimmed {
    opacity: 0.35;
    pointer-events: none;
}

.pb-props-panel {
    position: absolute;
    inset: 0;
    background: var(--pb-sidebar);
    transform: translateX(110%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    z-index: 12;
    border-right: 1px solid var(--pb-border);
}

.pb-props-panel.open {
    transform: translateX(0);
}

.pb-props-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--pb-border);
    background: #f8fafc;
}

.pb-props-head__title {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--pb-primary);
}

.pb-props-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
}

.pb-props-close,
.pb-props-back {
    color: var(--pb-muted);
}
.pb-sidebar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0.5rem 0.5rem 0;
    border-bottom: 1px solid var(--pb-border);
    flex-shrink: 0;
}
.pb-sidebar-tab {
    border: none;
    background: transparent;
    color: var(--pb-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.55rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    text-transform: uppercase;
}
.pb-sidebar-tab:hover { color: var(--pb-text); background: #f8fafc; }
.pb-sidebar-tab.active {
    color: var(--pb-primary);
    background: var(--pb-primary-soft);
}
.pb-sidebar-tab--accent { color: var(--pb-primary); }

.pb-sidebar__panels {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}
.pb-panel__hint {
    font-size: 0.75rem;
    color: var(--pb-muted);
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

/* Theme settings panel */
.pb-theme-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 4rem;
}
.pb-theme-section {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--pb-border);
}
.pb-theme-section:last-of-type { border-bottom: 0; }
.pb-theme-section__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-muted);
    margin: 0 0 0.55rem;
}
.pb-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}
.pb-brand-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pb-brand-preview {
    min-height: 52px;
    border: 1px dashed var(--pb-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f17;
    overflow: hidden;
    padding: 0.35rem;
}
.pb-brand-preview img {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
}
.pb-brand-preview--icon {
    width: 56px;
    height: 56px;
    min-height: 56px;
    background: #111827;
}
.pb-theme-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(transparent, var(--pb-panel, #fff) 28%);
    padding-top: 0.75rem;
    z-index: 2;
}
.pb-panel__status { color: var(--pb-muted); }
.pb-panel__status.is-ok { color: #059669; }
.pb-panel__status.is-err { color: #dc2626; }

.pb-page-list__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--pb-text);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    cursor: pointer;
    text-align: left;
}
.pb-page-list__item:hover { background: #f8fafc; border-color: var(--pb-border); }
.pb-page-list__item.is-active {
    background: var(--pb-primary-soft);
    border-color: rgba(99, 102, 241, 0.35);
    color: var(--pb-primary);
    font-weight: 600;
}

/* Theme tags */
.pb-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #fff;
    line-height: 1.3;
    border: none;
    cursor: default;
}
.pb-tag--all { background: #22c55e; }
.pb-tag--snl { background: #FF4D4D; }
.pb-tag--av  { background: #4D8BFF; }
.pb-tag--au  { background: #6366F1; }
.pb-theme-legend {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    color: var(--pb-muted);
}
.pb-theme-legend--compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.pb-theme-legend__item { display: flex; align-items: center; gap: 0.35rem; }
.pb-tag-filter { cursor: pointer; opacity: 0.55; }
.pb-tag-filter.is-active,
.pb-tag-filter:hover { opacity: 1; outline: 2px solid var(--pb-text); outline-offset: 1px; }

.pb-section-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    margin-bottom: 0.4rem;
    cursor: pointer;
    font-size: 0.82rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pb-section-list-item.is-active {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 2px var(--pb-primary-soft);
}
.pb-section-list-item__meta { min-width: 0; }
.pb-section-list-item__meta strong {
    display: block;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pb-section-list-item__meta small {
    display: block;
    font-size: 0.68rem;
    color: var(--pb-muted);
}
.pb-section-list-item__actions {
    display: flex;
    gap: 0.15rem;
}
.pb-section-list-item__actions button {
    border: none;
    background: transparent;
    color: var(--pb-muted);
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    cursor: pointer;
}
.pb-section-list-item__actions button:hover { color: var(--pb-primary); background: #f1f5f9; }

.pb-widget-grid,
.pb-library-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.pb-widget-card,
.pb-library-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.65rem;
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    min-height: 88px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pb-widget-card:hover,
.pb-library-card:hover {
    border-color: var(--pb-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}
.pb-widget-card .pb-tag,
.pb-library-card .pb-tag {
    position: absolute;
    top: 6px;
    right: 6px;
}
.pb-widget-card i,
.pb-library-card i {
    font-size: 1.1rem;
    color: var(--pb-primary);
}
.pb-widget-card strong,
.pb-library-card strong {
    font-size: 0.78rem;
    line-height: 1.2;
}
.pb-widget-card small,
.pb-library-card small {
    font-size: 0.65rem;
    color: var(--pb-muted);
}

.pb-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    margin-bottom: 0.35rem;
    background: #fff;
}
.pb-menu-item__fields {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}
.pb-menu-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.62rem;
    color: var(--pb-muted);
    margin: 0;
    flex-shrink: 0;
}
.pb-menu-visible__text { white-space: nowrap; }
.pb-menu-del {
    border: none;
    background: transparent;
    color: #dc2626;
    padding: 0.2rem;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
}
.pb-menu-del:hover { background: #fef2f2; }
.pb-menu-zone {
    border: 1px solid var(--pb-border);
    border-radius: 10px;
    padding: 0.65rem;
    margin-bottom: 0.75rem;
    background: #fafbfc;
}
.pb-menu-zone__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.pb-menu-zone__title {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
}
.pb-menu-zone__foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.pb-menu-save-status {
    font-size: 0.72rem;
    color: var(--pb-muted);
}
.pb-menu-save-status.is-ok { color: #16a34a; }
.pb-menu-save-status.is-err { color: #dc2626; }
.pb-menu-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.pb-widget-card[draggable="true"],
.pb-library-card[draggable="true"] {
    cursor: grab;
}
.pb-widget-card[draggable="true"]:active,
.pb-library-card[draggable="true"]:active {
    cursor: grabbing;
    opacity: 0.85;
}

.pb-canvas-frame {
    position: relative;
}
.pb-drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border: 2px dashed var(--pb-primary);
    border-radius: 8px;
    pointer-events: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pb-primary);
}
.pb-canvas-frame.is-drag-over .pb-drop-overlay {
    display: flex !important;
}
.pb-canvas-frame.is-drag-over .pb-preview-iframe {
    pointer-events: auto;
}

.pb-menu-add-panel {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: var(--pb-sidebar, #fff);
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--pb-border);
}
.pb-menu-add-panel[hidden] { display: none !important; }
.pb-menu-add-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--pb-border);
}
.pb-menu-add-panel__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}
.pb-menu-add-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}
#pbPanelMenus { position: relative; }
.pb-menu-item__body strong { display: block; font-size: 0.82rem; }
.pb-menu-item__body small { display: block; font-size: 0.68rem; color: var(--pb-muted); word-break: break-all; }

.pb-inspector-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.pb-inspector-head__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}
.pb-studio--blognexa .pb-inspector-tabs .nav-link {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pb-muted);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
}
.pb-studio--blognexa .pb-inspector-tabs .nav-link.active {
    background: var(--pb-primary-soft);
    color: var(--pb-primary);
}

.pb-preview-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    padding: 0.75rem 1rem 1rem;
}
.pb-preview-hint {
    flex-shrink: 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--pb-muted);
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
}
.pb-studio--blognexa .pb-preview-iframe {
    flex: 1;
    min-height: 400px;
    width: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    overflow: auto;
}
.pb-studio--blognexa .pb-canvas-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0 auto;
    width: 100%;
    transition: max-width 0.3s ease;
}
.pb-studio--blognexa .pb-canvas-frame[data-device="tablet"] { max-width: 768px; }
.pb-studio--blognexa .pb-canvas-frame[data-device="mobile"] { max-width: 390px; }

.pb-theme-tag {
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #fff;
    margin-right: 0.25rem;
}
.pb-theme-tag--all { background: #22c55e; }
.pb-theme-tag--snl { background: #FF4D4D; }
.pb-theme-tag--av  { background: #4D8BFF; }
.pb-theme-tag--au  { background: #6366F1; }
.pb-section-label__text { font-weight: 700; }

@media (max-width: 1200px) {
    .pb-device-label { display: none; }
    .pb-studio--blognexa .pb-device-btn { padding: 0.35rem 0.5rem; }
    .pb-topbar__lang-code { display: none; }
}

@media (max-width: 992px) {
    .pb-studio--blognexa .pb-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "center"
            "right";
    }
    .pb-topbar__left { grid-column: 1; grid-area: left; }
    .pb-topbar__center {
        grid-column: 1;
        grid-area: center;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .pb-topbar__right {
        grid-column: 1;
        grid-area: right;
        justify-self: stretch;
    }
    .pb-studio--blognexa .pb-studio__body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .pb-sidebar { max-height: 40vh; }
}

@media (max-width: 768px) {
    .pb-topbar__brand { display: none; }
    .pb-topbar__page-select { min-width: 120px; max-width: 160px; }
}

/* Template zone sections (homepage hero, services, etc.) */
.pb-page--edit .pb-section--template-zone {
    outline: 2px dashed rgba(99, 102, 241, 0.55);
    outline-offset: 2px;
}
.pb-page--edit .pb-section--template-zone.pb-is-hover {
    outline-color: rgba(99, 102, 241, 0.95);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}
.pb-page--edit .pb-section--template-zone.pb-is-selected {
    outline: 2px dashed #6366f1;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.pb-page--edit .pb-section.pb-section--hidden {
    opacity: 0.5;
    outline-style: dotted;
}
.pb-section-label__hidden {
    font-size: 0.58rem;
    color: #dc2626;
    font-weight: 700;
    margin-left: 0.25rem;
}
.pb-template-zone-host { position: relative; }
.pb-zone-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    margin: 0.5rem;
}

/* Elementor-style drop zones between sections */
.pb-page--dropping { position: relative; }
.pb-drop-zone {
    height: 28px;
    margin: 4px 0;
    border: 2px dashed transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, height 0.15s;
}
.pb-drop-zone span {
    font-size: 0.72rem;
    font-weight: 700;
    color: transparent;
    letter-spacing: 0.03em;
}
.pb-page--dropping .pb-drop-zone {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.06);
}
.pb-page--dropping .pb-drop-zone span { color: #6366f1; }

.pb-drop-zone--section {
    margin: 6px 0;
    min-height: 36px;
    background: rgba(99, 102, 241, 0.08);
}
.pb-drop-zone--col {
    min-height: 48px;
    margin: 4px 0;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.08);
}
.pb-page--dropping .pb-col-body > .pb-drop-zone--col {
    min-height: 56px;
    margin: 0 0 6px;
}
.pb-page--dropping .pb-col-body:empty > .pb-drop-zone--col,
.pb-page--dropping .pb-col-body:not(:has(.pb-widget)) > .pb-drop-zone--col:last-child {
    min-height: 72px;
}

.pb-col-inspector .pb-col-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
}

.pb-col-widget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
}

.pb-col-widget-item.is-active {
    border-color: rgba(99, 102, 241, 0.65);
    background: rgba(99, 102, 241, 0.12);
}

.pb-col-widget-item__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-col-widget-item__actions {
    display: flex;
    gap: 0.15rem;
    flex-shrink: 0;
}

.pb-col-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    max-height: 280px;
    overflow-y: auto;
}

.pb-col-add-grid .btn {
    justify-content: flex-start;
    text-align: left;
    font-size: 0.72rem;
    padding: 0.35rem 0.45rem;
}

.pb-page--edit .pb-col.pb-is-selected {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.pb-icon-box__icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; color: var(--admin-accent, #6366f1); }
.pb-quote { border-left: 4px solid rgba(99, 102, 241, 0.45); padding-left: 1rem; }

.pb-drop-zone.is-active {
    height: 42px;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.14);
}

/* Right-click section menu in preview */
.pb-context-menu {
    position: fixed;
    z-index: 9999;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pb-context-menu button {
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: #1e293b;
}
.pb-context-menu button:hover { background: #f1f5f9; }
.pb-context-menu button.is-danger { color: #dc2626; }
.pb-context-menu button.is-danger:hover { background: #fef2f2; }
.pb-pin-more {
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.pb-section-list-item.is-hidden-sec { opacity: 0.65; }
.pb-section-toolbar .btn { flex: 0 0 auto; }

#pbPanelMenus {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#pbMenuZones {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.15rem;
}
.pb-menu-sticky-save {
    flex-shrink: 0;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--pb-border);
    background: var(--pb-sidebar);
    position: sticky;
    bottom: 0;
}

/* Menu component */
.pb-menu-wrap { width: 100%; }
.pb-menu--horizontal .pb-menu__list:not(.pb-menu__list--vertical) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pb-menu--horizontal .pb-menu__item {
    flex: 0 0 auto;
}
.pb-menu--vertical .pb-menu__list--vertical,
.pb-menu__list--vertical {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pb-menu__link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.pb-menu__item--has-children { position: relative; }
.pb-menu--horizontal .pb-menu__item--has-children:hover > .pb-menu__sub--dropdown,
.pb-menu--horizontal .pb-menu__item--has-children:focus-within > .pb-menu__sub--dropdown,
.pb-menu--dropdown .pb-menu__item--has-children:hover > .pb-menu__sub--dropdown,
.pb-menu--dropdown .pb-menu__item--has-children:focus-within > .pb-menu__sub--dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.pb-menu__sub--dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.25rem 0 0;
    list-style: none;
    border-radius: 8px;
    background: var(--sn-surface, #141416);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 40;
}
.pb-menu__sub--dropdown .pb-menu__link {
    display: block;
    padding: 0.45rem 0.85rem;
    width: 100%;
}
.pb-menu__sub--dropdown .pb-menu__sub--dropdown {
    top: 0;
    left: 100%;
    margin: 0 0 0 0.25rem;
}
.pb-menu--align-center .pb-menu__list:not(.pb-menu__list--vertical) { justify-content: center; }
.pb-menu--align-right .pb-menu__list:not(.pb-menu__list--vertical) { justify-content: flex-end; }
.pb-menu--align-left .pb-menu__list:not(.pb-menu__list--vertical) { justify-content: flex-start; }

.pb-dm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(77, 139, 255, 0.14), rgba(77, 139, 255, 0.06));
    border: 1px dashed rgba(77, 139, 255, 0.45);
}
.pb-dm-toolbar__label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 0.25rem;
    color: #2c5282;
}
.pb-dm-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(77, 139, 255, 0.35);
    color: #1a4fb5;
    text-decoration: none;
}
.pb-dm-toolbar__btn:hover {
    background: #4d8bff;
    border-color: #4d8bff;
    color: #fff;
}
.pb-dm-edit-panel .btn { font-size: 0.8rem; }

