/* ============================================================
   LUNOTO PRODUCT PAGE BUILDER — Styles
   Premium dark-mode editor & page management for Marketing
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
    --pb-bg: #11120D;
    --pb-surface: #171813;
    --pb-surface-2: #1e201a;
    --pb-surface-3: #282a23;
    --pb-border: #32352c;
    --pb-border-hover: #45493e;
    --pb-text: #F9F9F9;
    --pb-text-muted: #a0a0aa;
    --pb-text-dim: #70707a;
    --pb-accent: #7c5cfc;
    --pb-accent-hover: #9178ff;
    --pb-accent-glow: rgba(124, 92, 252, 0.25);
    --pb-success: #34d399;
    --pb-success-glow: rgba(52, 211, 153, 0.2);
    --pb-warning: #fbbf24;
    --pb-danger: #f87171;
    --pb-gradient-holographic: url('assets/gradiente.jpeg');
    --pb-gradient-1: url('assets/gradiente.jpeg');
    --pb-radius: 12px;
    --pb-radius-sm: 8px;
    --pb-radius-lg: 16px;
    --pb-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --pb-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --pb-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --pb-panel-width: 380px;
}

/* ── TEMA CLARO (Bright snow #F9F9F9 & Onyx #11120D) ── */
html[data-theme="light"] {
    --pb-bg: #F9F9F9;
    --pb-surface: #FFFFFF;
    --pb-surface-2: #F0F0F3;
    --pb-surface-3: #E4E4E9;
    --pb-border: #DADBDF;
    --pb-border-hover: #B8B8C2;
    --pb-text: #11120D;
    --pb-text-muted: #555560;
    --pb-text-dim: #888894;
    --pb-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --pb-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

body.pb-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pb-bg);
    color: var(--pb-text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ── Top Header Bar ── */
.pb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 96px;
    background: var(--pb-surface);
    border-bottom: 1px solid var(--pb-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pb-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pb-header-logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, filter 0.3s ease;
    cursor: pointer;
}

html[data-theme="light"] .pb-header-logo-img {
    filter: brightness(0);
}

.pb-header-logo-img:hover {
    transform: scale(1.04);
    opacity: 0.95;
}

.pb-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pb-text-muted);
    transform: translateY(2px);
}

.pb-crumb {
    color: var(--pb-text-muted);
    cursor: pointer;
    transition: var(--pb-transition);
}

.pb-crumb:hover {
    color: var(--pb-text);
}

.pb-crumb-active {
    color: var(--pb-accent);
    font-weight: 600;
    cursor: default;
}

.pb-crumb-sep {
    color: var(--pb-text-dim);
    font-size: 12px;
}

.pb-header-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-url-input-group,
.pb-slug-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 0 12px;
    height: 42px;
    transition: var(--pb-transition);
}

.pb-url-input-group:focus-within,
.pb-slug-input-wrapper:focus-within {
    border-color: var(--pb-accent);
    box-shadow: 0 0 0 3px var(--pb-accent-glow);
    background: var(--pb-surface-3);
}

.pb-url-prefix,
.pb-slug-prefix {
    color: var(--pb-text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    white-space: nowrap;
    user-select: none;
    margin-right: 2px;
}

.pb-url-input,
.pb-slug-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--pb-text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 0 4px;
    width: 100%;
}

.pb-url-input::placeholder,
.pb-slug-input::placeholder {
    color: var(--pb-text-dim);
}

.pb-url-suffix {
    color: var(--pb-text-dim);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    white-space: nowrap;
    user-select: none;
    margin-left: 2px;
}

.pb-slug-ext {
    color: var(--pb-text-muted);
    font-size: 13px;
    font-family: 'Space Grotesk', monospace;
}

.pb-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ── */
.pb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: var(--pb-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pb-transition);
    white-space: nowrap;
}

.pb-btn-ghost {
    background: transparent;
    color: var(--pb-text-muted);
    border: 1px solid var(--pb-border);
}

.pb-btn-ghost:hover {
    background: var(--pb-surface-2);
    color: var(--pb-text);
    border-color: var(--pb-border-hover);
}

.pb-btn-primary {
    background: var(--pb-surface-3);
    color: var(--pb-text);
    border: 1px solid var(--pb-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pb-btn-primary:hover {
    background-image: url('assets/gradiente.jpeg');
    background-size: cover;
    background-position: center;
    color: #11120D;
    font-weight: 700;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Elegant Theme & Icon Toggle Buttons */
.pb-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    color: var(--pb-text);
    transition: var(--pb-transition);
}

.pb-theme-toggle-btn:hover {
    border-color: var(--pb-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    background: var(--pb-surface-3, rgba(255, 255, 255, 0.12));
}

.pb-theme-svg {
    transition: transform 0.3s ease;
}

.pb-theme-toggle-btn:hover .pb-theme-svg {
    transform: rotate(25deg);
}

.pb-btn-icon {
    padding: 8px;
    background: transparent;
    color: var(--pb-text-muted);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    cursor: pointer;
    transition: var(--pb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-btn-icon:hover {
    background: var(--pb-surface-2);
    color: var(--pb-text);
}

/* ── Page Views ── */
.pb-page-view {
    margin-top: 96px;
    min-height: calc(100vh - 96px);
}

/* ═══════════════════════════════════════════════════════════
   VIEW 1: MIS PRODUCTOS (GRID & DASHBOARD PAGE)
   ═══════════════════════════════════════════════════════════ */
#pb-view-products {
    max-width: 1440px;
    margin: 96px auto 0 auto;
    padding: 40px 32px;
}

.pb-products-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pb-border);
}

.pb-products-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--pb-text);
    letter-spacing: -0.02em;
}

.pb-products-subtitle {
    font-size: 14px;
    color: var(--pb-text-muted);
    margin-top: 4px;
}

.pb-products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pb-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 10px 16px;
    width: 380px;
    transition: var(--pb-transition);
}

.pb-search-box:focus-within {
    border-color: var(--pb-accent);
    box-shadow: 0 0 0 3px var(--pb-accent-glow);
}

.pb-search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--pb-text);
    font-size: 13px;
    width: 100%;
}

.pb-search-box input::placeholder {
    color: var(--pb-text-dim);
}

.pb-filter-tabs {
    display: flex;
    gap: 8px;
    background: var(--pb-surface);
    padding: 4px;
    border-radius: var(--pb-radius);
    border: 1px solid var(--pb-border);
}

.pb-filter-tab {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--pb-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pb-transition);
}

.pb-filter-tab:hover {
    color: var(--pb-text);
}

.pb-filter-tab.active {
    background-image: url('assets/gradiente.jpeg');
    background-size: cover;
    background-position: center;
    color: #11120D;
    font-weight: 700;
    border: none;
}

/* Products Grid */
.pb-products-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1280px) {
    .pb-products-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .pb-products-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pb-products-grid-container {
        grid-template-columns: 1fr;
    }
}

.pb-product-card-ui {
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--pb-transition);
    position: relative;
}

.pb-product-card-ui:hover {
    transform: translateY(-4px);
    border-color: var(--pb-accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.pb-product-card-thumb-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #15161c;
    overflow: hidden;
}

.pb-product-card-thumb-wrapper.pb-card-skeleton-thumb {
    background: linear-gradient(90deg, #1b1d24 25%, #2a2d39 37%, #1b1d24 63%) !important;
    background-size: 400% 100% !important;
    animation: lunotoShimmer 1.4s ease infinite !important;
}

html[data-theme="light"] .pb-product-card-thumb-wrapper.pb-card-skeleton-thumb {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%) !important;
    background-size: 400% 100% !important;
    animation: lunotoShimmer 1.4s ease infinite !important;
}

.pb-skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.18) 37%, rgba(255,255,255,0.06) 63%) !important;
    background-size: 400% 100% !important;
    animation: lunotoShimmer 1.4s ease infinite !important;
    border-radius: 6px;
    display: block;
}

html[data-theme="light"] .pb-skeleton-line {
    background: linear-gradient(90deg, #cbd5e1 25%, #e2e8f0 37%, #cbd5e1 63%) !important;
    background-size: 400% 100% !important;
    animation: lunotoShimmer 1.4s ease infinite !important;
}

.pb-product-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pb-product-card-ui:hover .pb-product-card-thumb {
    transform: scale(1.05);
}

.pb-product-card-badges-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.pb-card-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pb-product-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pb-product-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--pb-text);
    margin-bottom: 4px;
}

.pb-product-card-inspiration {
    font-size: 12px;
    color: var(--pb-text-muted);
    margin-bottom: 12px;
}

.pb-product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pb-border);
}

.pb-product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--pb-success);
}

.pb-product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.pb-card-action-btn {
    flex: 1;
    padding: 9px 14px;
    border-radius: var(--pb-radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--pb-transition);
    border: 1px solid var(--pb-border);
    background: var(--pb-surface-3);
    color: var(--pb-text);
    text-decoration: none;
}

.pb-card-action-primary {
    background-image: url('assets/gradiente.jpeg');
    background-size: cover;
    background-position: center;
    border: none;
    color: #11120D;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pb-card-action-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    filter: brightness(1.08);
}

.pb-card-action-secondary {
    background: var(--pb-surface-3);
    border: 1px solid var(--pb-border);
    color: var(--pb-text);
}

.pb-card-action-secondary:hover {
    background: var(--pb-surface-2);
    border-color: var(--pb-border-hover);
    color: #ffffff;
}

.pb-card-delete-top-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: var(--pb-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: var(--pb-transition);
    opacity: 0.85;
}

.pb-product-card-ui:hover .pb-card-delete-top-btn {
    opacity: 1;
}

.pb-card-delete-top-btn:hover {
    background: var(--pb-danger);
    border-color: var(--pb-danger);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

/* Modern Unified Builder Delete Button */
.pb-card-delete-btn,
.pb-btn-danger-sm {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    outline: none;
    box-sizing: border-box;
}

.pb-card-delete-btn:hover,
.pb-btn-danger-sm:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.pb-card-delete-btn:active,
.pb-btn-danger-sm:active {
    transform: translateY(0);
    box-shadow: none;
}

.pb-card-delete-btn svg,
.pb-btn-danger-sm svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pb-card-delete-btn:hover svg,
.pb-btn-danger-sm:hover svg {
    transform: scale(1.1);
}

/* ── 2-SECOND CINEMATIC CANVAS ENTRANCE ANIMATION ── */
@keyframes pb-canvas-enter-cinematic {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(24px);
        filter: blur(12px);
    }
    35% {
        opacity: 0.5;
        transform: scale(0.98) translateY(10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.pb-canvas-animating {
    animation: pb-canvas-enter-cinematic 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

img[loading="lazy"] {
    transition: opacity 0.4s ease-in-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   VIEW 2: BUILDER CANVAS (SPLIT SCREEN EDITOR)
   ═══════════════════════════════════════════════════════════ */
#pb-view-builder {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 96px);
    margin-top: 0;
    overflow: hidden;
    z-index: 50;
}

.pb-layout {
    display: flex;
    height: 100%;
}

.pb-preview {
    flex: 1;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-preview-header {
    flex-shrink: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    box-sizing: border-box;
}

.pb-preview-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pb-success);
    animation: pb-pulse 2s infinite;
}

@keyframes pb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.pb-preview-content {
    flex: 1;
    width: 100%;
    height: calc(100% - 36px);
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#pb-live-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
    display: block;
    background: #ffffff;
}

.pb-controls {
    width: var(--pb-panel-width);
    min-width: var(--pb-panel-width);
    max-width: var(--pb-panel-width);
    background: var(--pb-surface);
    border-left: 1px solid var(--pb-border);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--pb-border-hover) var(--pb-surface-2);
}

.pb-controls::-webkit-scrollbar {
    width: 10px;
}

.pb-controls::-webkit-scrollbar-track {
    background: var(--pb-surface-2);
    border-left: 1px solid var(--pb-border);
}

.pb-controls::-webkit-scrollbar-thumb {
    background: var(--pb-border-hover);
    border-radius: 5px;
    border: 2px solid var(--pb-surface-2);
}

.pb-controls::-webkit-scrollbar-thumb:hover {
    background: var(--pb-text-dim);
}

.pb-section {
    border-bottom: 1px solid var(--pb-border);
}

.pb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: var(--pb-transition);
}

.pb-section-header:hover {
    background: var(--pb-surface-2);
}

.pb-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pb-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-section-chevron {
    transition: transform 0.25s ease;
    color: var(--pb-text-dim);
}

.pb-section.collapsed .pb-section-chevron {
    transform: rotate(-90deg);
}

.pb-section-body {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pb-section.collapsed .pb-section-body {
    display: none;
}

.pb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-field-row {
    display: flex;
    gap: 12px;
}

.pb-field-row .pb-field {
    flex: 1;
}

.pb-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pb-text-muted);
}

.pb-input,
.pb-textarea,
.pb-select {
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--pb-text);
    transition: var(--pb-transition);
    width: 100%;
}

.pb-input:focus,
.pb-textarea:focus,
.pb-select:focus {
    outline: none;
    background: var(--pb-surface-2) !important;
    color: var(--pb-text) !important;
    border-color: var(--pb-accent) !important;
    box-shadow: 0 0 0 3px var(--pb-accent-glow) !important;
}

.pb-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* ── Formatting Tools ── */
.pb-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pb-text-tools {
    display: flex;
    gap: 4px;
}

.pb-tool-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--pb-border);
    background: var(--pb-surface-3);
    color: var(--pb-text);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--pb-transition);
    padding: 0;
}

.pb-tool-btn:hover {
    background: var(--pb-surface-2);
    border-color: var(--pb-border-hover);
    color: var(--pb-accent);
}

.pb-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ── Dropzones & Gallery ── */
.pb-dropzone {
    position: relative;
    border: 2px dashed var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--pb-transition);
    background: var(--pb-surface-2);
    overflow: hidden;
}

.pb-dropzone:hover {
    border-color: var(--pb-border-hover);
    background: var(--pb-surface-3);
}

.pb-dropzone.drag-over {
    border-color: var(--pb-accent);
    background: rgba(124, 92, 252, 0.08);
}

.pb-dropzone.has-image {
    padding: 0;
    border-style: solid;
    border-color: var(--pb-border);
}

.pb-dropzone-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }
.pb-dropzone-text { font-size: 13px; color: var(--pb-text-muted); font-weight: 500; }
.pb-dropzone-hint { font-size: 11px; color: var(--pb-text-dim); margin-top: 4px; }
.pb-dropzone-preview { width: 100%; max-height: 280px; object-fit: contain; display: block; }

.pb-dropzone-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; opacity: 0; transition: var(--pb-transition);
}

.pb-dropzone:hover .pb-dropzone-remove { opacity: 1; }

.pb-gallery-zone {
    border: 2px dashed var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 16px;
    min-height: 120px;
    background: var(--pb-surface-2);
}

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

.pb-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--pb-radius-sm);
    overflow: hidden;
    border: 1px solid var(--pb-border);
    cursor: grab;
}

.pb-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.pb-gallery-item-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; opacity: 0; transition: var(--pb-transition);
}

.pb-gallery-item:hover .pb-gallery-item-remove { opacity: 1; }

.pb-gallery-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 20px; color: var(--pb-text-dim); font-size: 12px;
}

/* ── Tags & Tables ── */
.pb-tags-container {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 8px;
    background: var(--pb-surface-2); border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm); min-height: 42px; cursor: text;
}

.pb-tag-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: var(--pb-surface-3);
    border: 1px solid var(--pb-border); border-radius: 20px;
    font-size: 12px; color: var(--pb-text); font-weight: 500;
}

.pb-tag-remove {
    width: 16px; height: 16px; border-radius: 50%; background: transparent;
    color: var(--pb-text-muted); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.pb-tags-input {
    border: none; background: none; outline: none;
    font-family: 'Inter', sans-serif; font-size: 13px; color: var(--pb-text);
    flex: 1; min-width: 80px; padding: 2px 4px;
}

.pb-sizes-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border-radius: var(--pb-radius-sm); overflow: hidden; border: 1px solid var(--pb-border);
}

.pb-sizes-table th {
    background: var(--pb-surface-3); padding: 8px 12px; font-size: 11px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--pb-text-muted); text-align: left; border-bottom: 1px solid var(--pb-border);
}

.pb-sizes-table td { padding: 6px 8px; border-bottom: 1px solid var(--pb-border); }
.pb-sizes-table input {
    background: var(--pb-surface-2); border: 1px solid var(--pb-border);
    border-radius: 6px; padding: 6px 8px; font-size: 12px; color: var(--pb-text); width: 100%;
}

.pb-size-row-remove { background: transparent; border: none; color: var(--pb-text-dim); cursor: pointer; font-size: 16px; }
.pb-size-row-remove:hover { color: var(--pb-danger); }

.pb-add-row-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    padding: 8px; margin-top: 6px; background: transparent; border: 1px dashed var(--pb-border);
    border-radius: var(--pb-radius-sm); color: var(--pb-text-muted); font-size: 12px; cursor: pointer;
}

.pb-family-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-family-chip {
    padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
    border: 1px solid var(--pb-border); background: var(--pb-surface-2); color: var(--pb-text-muted); cursor: pointer;
}

.pb-family-chip.active { background: var(--pb-accent); border-color: var(--pb-accent); color: #fff; }

/* ── Toast & Modals ── */
.pb-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
    padding: 12px 24px; border-radius: var(--pb-radius); font-size: 13px; font-weight: 600;
    z-index: 9999; display: flex; align-items: center; gap: 8px;
    box-shadow: var(--pb-shadow-lg); transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0; pointer-events: none;
}

.pb-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.pb-toast.success { background: #065f46; color: #d1fae5; border: 1px solid #34d399; }
.pb-toast.error { background: #7f1d1d; color: #fecaca; border: 1px solid #f87171; }
.pb-toast.info { background: var(--pb-surface-2); color: var(--pb-text); border: 1px solid var(--pb-border); }

.pb-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    z-index: 200; display: none; align-items: center; justify-content: center;
}

.pb-modal-overlay.active { display: flex; }
.pb-modal {
    background: var(--pb-surface); border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg); padding: 32px; max-width: 480px; width: 90%;
    box-shadow: var(--pb-shadow-lg);
}

.pb-modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pb-modal-desc { font-size: 13px; color: var(--pb-text-muted); line-height: 1.6; margin-bottom: 24px; }
.pb-modal-link { display: block; margin-top: 12px; padding: 10px 16px; background: var(--pb-surface-2); border: 1px solid var(--pb-border); border-radius: var(--pb-radius-sm); font-family: 'Space Grotesk', monospace; font-size: 13px; color: var(--pb-accent); word-break: break-all; }

.pb-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%;
    animation: pb-spin 0.7s linear infinite;
}

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

.pb-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.pb-toggle-label { font-size: 13px; color: var(--pb-text); }
.pb-toggle {
    position: relative; width: 40px; height: 22px; border-radius: 11px;
    background: var(--pb-surface-3); border: 1px solid var(--pb-border); cursor: pointer;
    appearance: none; -webkit-appearance: none; transition: var(--pb-transition);
}

.pb-toggle:checked { background: var(--pb-accent); border-color: var(--pb-accent); }
.pb-toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--pb-text); transition: var(--pb-transition);
}

.pb-toggle:checked::after { left: 20px; background: #fff; }

/* ── Fullscreen Preview Mode ── */
.pb-layout.preview-fullscreen .pb-controls { display: none !important; }
.pb-layout.preview-fullscreen .pb-preview { width: 100%; flex: 1; }

/* ── Panel Collapsed (Hide Right Panel) ── */
.pb-layout.panel-collapsed .pb-controls {
    width: 0;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    border-left-width: 0;
    padding: 0;
    overflow: hidden;
}
.pb-layout.panel-collapsed .pb-preview {
    flex: 1;
    width: 100%;
}

/* ── Card Mode (Compact Panel for Miniature Tab) ── */
.pb-layout.card-mode .pb-controls {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
}
.pb-layout.card-mode .pb-preview {
    flex: 1;
}

.pb-preview-header {
    background: var(--pb-surface-2);
    border-bottom: 1px solid var(--pb-border);
    color: var(--pb-text-muted);
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
    user-select: none;
}

/* ── Panel Toggle Button ── */
.pb-panel-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--pb-border);
    background: var(--pb-surface-2);
    color: var(--pb-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.7;
}
.pb-panel-toggle:hover {
    opacity: 1;
    background: var(--pb-surface-3);
    color: var(--pb-text);
    border-color: var(--pb-border-hover);
}
.pb-panel-toggle svg {
    transition: transform 0.3s ease;
}
.pb-layout.panel-collapsed .pb-panel-toggle svg {
    transform: rotate(180deg);
}

/* Light mode overrides for panel toggle */
html[data-theme="light"] .pb-panel-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: #DADBDF;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pb-file-input-hidden { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

/* ── Auto-save Draft Banner ── */
.pb-draft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0369a1; /* Sky blue */
    color: #e0f2fe;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #0284c7;
    z-index: 100;
    gap: 16px;
}
.pb-draft-banner-text {
    flex: 1;
}
.pb-draft-banner-actions {
    display: flex;
    gap: 8px;
}
.pb-draft-banner-actions button {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}
.pb-draft-banner-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════════════════════════════════
   Toast Notification
   ══════════════════════════════════════════════════════════ */
.pb-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', 'Outfit', sans-serif;
    color: #fff;
    background: #18181b;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    white-space: nowrap;
}
.pb-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.pb-toast.success { background: #166534; }
.pb-toast.error   { background: #991b1b; }
.pb-toast.info    { background: #1e3a5f; }

/* ══════════════════════════════════════════════════════════
   Publish Success Modal Overlay
   ══════════════════════════════════════════════════════════ */
.pb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 90000;
    display: none;
    align-items: center;
    justify-content: center;
}
.pb-modal-overlay.active {
    display: flex;
}
.pb-modal {
    position: relative;
    background: var(--pb-surface, #1e1e2e);
    border: 1px solid var(--pb-border, #333);
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    color: var(--pb-text, #e4e4e7);
}
.pb-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--pb-text-dim, #a1a1aa);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.pb-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pb-text, #ffffff);
}
.pb-modal-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.pb-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}
.pb-modal-desc {
    font-size: 14px;
    color: var(--pb-text-dim, #a1a1aa);
    margin-bottom: 12px;
    line-height: 1.5;
}
.pb-modal-link {
    font-size: 13px;
    color: var(--pb-accent, #38bdf8);
    word-break: break-all;
    background: var(--pb-surface-2, #27272a);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--pb-border, #333);
    font-family: 'Space Grotesk', monospace;
}
.pb-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════
   Publish Button Spinner
   ══════════════════════════════════════════════════════════ */
.pb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pb-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes pb-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   MODE SELECTOR — Premium Pill Toggle
   ══════════════════════════════════════════════════════════ */
.pb-header-mode-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    border-left: 1px solid var(--pb-border);
    padding-left: 20px;
    background: var(--pb-surface-2);
    border-radius: 10px;
    padding: 4px;
}

.pb-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--pb-text-dim);
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
    position: relative;
}

.pb-mode-btn:hover {
    color: var(--pb-text-muted);
    background: var(--pb-surface-3);
}

.pb-mode-btn.active {
    background: var(--pb-accent);
    color: #ffffff;
    box-shadow: 0 2px 12px var(--pb-accent-glow);
}

.pb-mode-btn.active svg {
    stroke: #ffffff;
}

.pb-mode-btn svg {
    flex-shrink: 0;
    stroke: var(--pb-text-dim);
    transition: stroke 0.2s ease;
}

.pb-mode-btn:hover svg {
    stroke: var(--pb-text-muted);
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE CONTROLS WRAPPER — Polished Panel
   ══════════════════════════════════════════════════════════ */
#pb-homepage-controls-wrapper .pb-section {
    border-bottom: 1px solid var(--pb-border);
}

#pb-homepage-controls-wrapper .pb-section:last-child {
    border-bottom: none;
}

#pb-homepage-controls-wrapper .pb-section-body {
    padding-bottom: 24px;
}

/* Homepage dropzone refinements */
#pb-homepage-controls-wrapper .pb-dropzone {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

#pb-homepage-controls-wrapper .pb-dropzone.has-image {
    padding: 6px;
    min-height: 60px;
}

#pb-homepage-controls-wrapper .pb-dropzone.has-image .pb-dropzone-preview {
    max-height: 120px;
    width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Lifestyle card groups */
#pb-homepage-controls-wrapper .pb-section-body > div[style*="border:"] {
    transition: var(--pb-transition);
}

#pb-homepage-controls-wrapper .pb-section-body > div[style*="border:"]:hover {
    border-color: var(--pb-border-hover) !important;
}

/* Benefit cards in homepage editor */
#pb-hp-benefits-container > div {
    transition: var(--pb-transition);
}

#pb-hp-benefits-container > div:hover {
    border-color: var(--pb-border-hover) !important;
}

/* Slide list card animation */
#pb-hp-slides-list > div {
    transition: var(--pb-transition);
}

#pb-hp-slides-list > div:hover {
    border-color: var(--pb-border-hover) !important;
    transform: translateX(2px);
}

/* ── Homepage preview header indicator ── */
.pb-preview-header[data-mode="homepage"]::after {
    content: '🏠 Página de Inicio';
    margin-left: 6px;
    font-weight: 600;
    color: var(--pb-accent);
}

/* ══════════════════════════════════════════════════════════
   PILL TAB NAVIGATION — Product Builder Controls Panel
   ══════════════════════════════════════════════════════════ */
.pb-pill-tabs-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--pb-border, rgba(255,255,255,0.08));
    background: var(--pb-surface-1, #121214);
    display: flex;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.pb-pill-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--pb-surface-2, #1d1d21);
    border: 1px solid var(--pb-border, rgba(255,255,255,0.1));
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--pb-text-dim, #94a3b8);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pb-pill-tab:hover {
    color: var(--pb-text, #f8fafc);
    border-color: var(--pb-accent, #6366f1);
}

.pb-pill-tab.active {
    background: var(--pb-accent, #6366f1);
    color: #ffffff;
    border-color: var(--pb-accent, #6366f1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.pb-pill-tab svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE BUILDER — LIGHT THEME OVERRIDES
   ══════════════════════════════════════════════════════════ */
html[data-theme="light"] .pb-hp-canvas-panel {
    background: #e2e8f0;
}

html[data-theme="light"] .pb-hp-canvas-toolbar {
    background: var(--pb-surface);
    border-bottom-color: var(--pb-border);
    color: var(--pb-text);
}

html[data-theme="light"] .pb-canvas-badge {
    color: var(--pb-text-muted);
}

html[data-theme="light"] .pb-hp-controls-panel {
    background: var(--pb-surface);
    border-left-color: var(--pb-border);
    color: var(--pb-text);
}

html[data-theme="light"] .pb-btn-hide-panel {
    background: var(--pb-surface-2);
    border-color: var(--pb-border);
    color: var(--pb-text);
}

html[data-theme="light"] .pb-btn-hide-panel:hover {
    background: var(--pb-surface-3);
    border-color: var(--pb-border-hover);
    color: var(--pb-text);
}

html[data-theme="light"] .pb-hp-panel-top-bar {
    border-bottom-color: var(--pb-border);
}

html[data-theme="light"] .pb-hp-panel-title-text {
    color: var(--pb-text);
}

/* ══════════════════════════════════════════════════════════
   FOCAL POINT & IMAGE CROP EDITOR STYLES
   ══════════════════════════════════════════════════════════ */
.pb-btn-preset {
    padding: 6px 4px;
    background: var(--pb-surface-2, #1e1e24);
    border: 1px solid var(--pb-border, #333);
    color: var(--pb-text, #eee);
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.pb-btn-preset:hover {
    background: var(--pb-accent, #6366f1);
    color: #ffffff;
    border-color: var(--pb-accent, #6366f1);
}

.pb-dropzone-focal {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pb-dropzone-focal:hover {
    background: var(--pb-accent, #6366f1);
    border-color: var(--pb-accent, #6366f1);
}

.pb-toolbar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pb-surface-2, #1e1e24);
    border: 1px solid var(--pb-border, #333);
    color: var(--pb-text, #fff);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pb-toolbar-action-btn:hover:not(:disabled) {
    background: var(--pb-accent, #6366f1);
    color: #ffffff;
    border-color: var(--pb-accent, #6366f1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pb-toolbar-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--pb-border, #333);
}

/* ══════════════════════════════════════════════════════════
   BUILDER WORKSPACE SPLIT-SCREEN LAYOUT
   ══════════════════════════════════════════════════════════ */
.pb-hp-workspace-container,
.pb-workspace-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    height: calc(100vh - 50px);
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.pb-hp-canvas-panel,
.pb-canvas-panel {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--pb-bg, #09090d);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-hp-canvas-header,
.pb-hp-canvas-toolbar,
.pb-canvas-header {
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--pb-surface-2, #16161f);
    border-bottom: 1px solid var(--pb-border, #2a2a38);
    z-index: 10;
}

.pb-hp-canvas-title,
.pb-canvas-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pb-text, #ffffff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-hp-canvas-actions,
.pb-canvas-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-hp-iframe-wrapper,
.pb-iframe-wrapper {
    width: 100%;
    height: calc(100% - 44px);
    flex: 1;
    position: relative;
    background: #000;
}

.pb-hp-iframe,
.pb-hp-preview-iframe,
.pb-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    display: block;
}

.pb-hp-controls-panel,
.pb-controls-panel {
    width: 440px;
    min-width: 440px;
    height: 100%;
    overflow-y: auto;
    background: var(--pb-surface, #13131a);
    border-left: 1px solid var(--pb-border, #2a2a38);
    color: var(--pb-text, #ffffff);
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    padding: 20px 20px 140px 20px !important;
    scroll-behavior: smooth;
}

.pb-hp-controls-panel.collapsed,
.pb-controls-panel.collapsed {
    margin-right: -440px;
}

.pb-btn-preset {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pb-border, #3a3a4c);
    color: var(--pb-text, #e4e4e7);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pb-btn-preset:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.pb-hp-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pb-border, #2a2a38);
}

.pb-hp-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pb-text, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════════════════════════
   UNIFIED PAGE BUILDER WORKSPACE & CONTROL PANELS
   (Homepage, About Us, FAQ, Products)
   ══════════════════════════════════════════════════════════ */
.pb-hp-workspace {
    display: flex;
    flex-direction: row;
    flex: 1;
    height: calc(100vh - 50px);
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.pb-hp-canvas-panel {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--pb-bg, #09090d);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-hp-canvas-toolbar {
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--pb-surface-2, #16161f);
    border-bottom: 1px solid var(--pb-border, #2a2a38);
    z-index: 10;
}

.pb-hp-preview-iframe {
    width: 100%;
    height: calc(100% - 44px);
    border: none;
    background: #ffffff;
    flex: 1;
}

.pb-hp-controls-panel {
    width: 420px;
    min-width: 420px;
    height: 100%;
    overflow-y: auto;
    background: var(--pb-surface, #13131a);
    border-left: 1px solid var(--pb-border, #2a2a38);
    color: var(--pb-text, #ffffff);
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    padding: 20px 20px 140px 20px !important;
    scroll-behavior: smooth;
}

.pb-hp-controls-panel.collapsed {
    margin-right: -420px;
}

.pb-hp-panel-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pb-border, #2a2a38);
}

.pb-hp-panel-title-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--pb-text, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-btn-hide-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pb-border, #3a3a4c);
    color: var(--pb-text, #e4e4e7);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pb-btn-hide-panel:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.pb-btn-show-panel {
    background: var(--pb-accent, #6366f1);
    border: none;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.pb-btn-show-panel:hover {
    background: #4f46e5;
}

/* ══════════════════════════════════════════════════════════
   FAQ BUILDER — Dynamic Category & QA Card Component Styles
   ══════════════════════════════════════════════════════════ */
.pb-faq-category-card {
    background: var(--pb-surface-2, #181822);
    border: 1px solid var(--pb-border, #272738);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    transition: var(--pb-transition, all 0.2s ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pb-faq-category-card:hover {
    border-color: var(--pb-border-hover, #3a3a52);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.pb-faq-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.pb-faq-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.pb-faq-cat-chevron {
    transition: transform 0.25s ease;
    color: var(--pb-text-dim, #a1a1aa);
    flex-shrink: 0;
}

.pb-faq-category-card.collapsed .pb-faq-cat-chevron {
    transform: rotate(-90deg);
}

.pb-faq-category-card.collapsed .pb-faq-cat-body {
    display: none;
}

.pb-faq-cat-body {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pb-faq-qa-card {
    background: var(--pb-surface-2, #1e201a);
    border: 1px solid var(--pb-border, #32352c);
    border-radius: 8px;
    padding: 12px;
    transition: var(--pb-transition, all 0.2s ease);
}

.pb-faq-qa-card:hover {
    border-color: var(--pb-border-hover, #45493e);
}

.pb-btn-icon-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--pb-surface-3, #282a23);
    border: 1px solid var(--pb-border, #32352c);
    color: var(--pb-text-dim, #70707a);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pb-btn-icon-small:hover:not(:disabled) {
    color: var(--pb-text, #F9F9F9);
    border-color: var(--pb-border-hover, #45493e);
    background: var(--pb-surface, #171813);
}

/* ── Formatting Toolbar Stepper Fix ── */
.builder-formatting-toolbar .bft-stepper {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    background: #f8fafc !important;
    padding: 2px 6px !important;
}
.builder-formatting-toolbar .bft-stepper button {
    background: transparent !important;
    border: none !important;
    width: 22px !important;
    height: 22px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #334155 !important;
    font-size: 14px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.builder-formatting-toolbar .bft-stepper input::-webkit-outer-spin-button,
.builder-formatting-toolbar .bft-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.builder-formatting-toolbar .bft-stepper input {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    width: 44px !important;
    min-width: 44px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   LIVE CANVAS VIEWPORT SWITCHER & DEVICE FRAMES (Desktop / Tablet / Mobile)
   ========================================================================== */

.pb-device-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--pb-border, rgba(255, 255, 255, 0.12));
    border-radius: 24px;
    padding: 2px 4px;
    margin: 0 8px;
}

.pb-device-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    height: 26px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: var(--pb-text-dim, #94a3b8);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pb-device-btn svg {
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.pb-device-btn:hover {
    color: var(--pb-text, #ffffff);
    background: rgba(255, 255, 255, 0.06);
}

.pb-device-btn:hover svg {
    opacity: 1;
}

.pb-device-btn.active {
    background: var(--pb-primary, #6366f1);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.pb-device-btn.active svg {
    opacity: 1;
    transform: scale(1.05);
}

/* Live Canvas Stage: Homepage Builder & Complementary Builders */
.pb-hp-canvas-panel.device-mobile,
.pb-hp-canvas-panel.device-tablet {
    background: radial-gradient(circle at center, #161722 0%, #08090d 100%) !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.pb-hp-canvas-panel.device-mobile .pb-hp-canvas-frame-wrap,
.pb-hp-canvas-panel.device-tablet .pb-hp-canvas-frame-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    width: 100% !important;
    height: calc(100% - 44px) !important;
}

.pb-hp-canvas-panel.device-mobile .pb-hp-preview-iframe,
.pb-hp-canvas-panel.device-mobile .pb-hp-canvas-frame-wrap iframe,
.pb-hp-canvas-panel.device-mobile #pb-policy-preview-iframe {
    width: 390px !important;
    max-width: 390px !important;
    height: calc(100% - 28px) !important;
    max-height: 844px !important;
    margin: 14px auto !important;
    border-radius: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        0 0 0 10px #181924,
        0 0 0 11px rgba(255, 255, 255, 0.08),
        0 20px 50px -10px rgba(0, 0, 0, 0.8),
        0 30px 70px -15px rgba(0, 0, 0, 0.6) !important;
    flex: none !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease, 
                box-shadow 0.35s ease !important;
}

.pb-hp-canvas-panel.device-tablet .pb-hp-preview-iframe,
.pb-hp-canvas-panel.device-tablet .pb-hp-canvas-frame-wrap iframe,
.pb-hp-canvas-panel.device-tablet #pb-policy-preview-iframe {
    width: 768px !important;
    max-width: 768px !important;
    height: calc(100% - 28px) !important;
    margin: 14px auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        0 0 0 8px #181924,
        0 0 0 9px rgba(255, 255, 255, 0.08),
        0 20px 45px -10px rgba(0, 0, 0, 0.7) !important;
    flex: none !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease, 
                box-shadow 0.35s ease !important;
}

.pb-hp-canvas-panel.device-desktop .pb-hp-preview-iframe,
.pb-hp-canvas-panel.device-desktop .pb-hp-canvas-frame-wrap iframe,
.pb-hp-canvas-panel.device-desktop #pb-policy-preview-iframe {
    width: 100% !important;
    height: calc(100% - 44px) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease, 
                box-shadow 0.35s ease !important;
}

/* Live Canvas Stage: Product Builder */
.pb-preview.device-mobile,
.pb-preview.device-tablet {
    background: radial-gradient(circle at center, #161722 0%, #08090d 100%) !important;
}

.pb-preview.device-mobile .pb-preview-content {
    align-items: center !important;
    justify-content: flex-start !important;
}

.pb-preview.device-mobile #pb-live-iframe {
    width: 390px !important;
    max-width: 390px !important;
    height: calc(100% - 28px) !important;
    max-height: 844px !important;
    margin: 14px auto !important;
    border-radius: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        0 0 0 10px #181924,
        0 0 0 11px rgba(255, 255, 255, 0.08),
        0 20px 50px -10px rgba(0, 0, 0, 0.8),
        0 30px 70px -15px rgba(0, 0, 0, 0.6) !important;
    flex: none !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease, 
                box-shadow 0.35s ease !important;
}

.pb-preview.device-tablet .pb-preview-content {
    align-items: center !important;
    justify-content: flex-start !important;
}

.pb-preview.device-tablet #pb-live-iframe {
    width: 768px !important;
    max-width: 768px !important;
    height: calc(100% - 28px) !important;
    margin: 14px auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        0 0 0 8px #181924,
        0 0 0 9px rgba(255, 255, 255, 0.08),
        0 20px 45px -10px rgba(0, 0, 0, 0.7) !important;
    flex: none !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease, 
                box-shadow 0.35s ease !important;
}

.pb-preview.device-desktop #pb-live-iframe {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.35s ease, 
                box-shadow 0.35s ease !important;
}
