/* --- ALAPVETŐ SZERKESZTŐ DOBOZ ÁLLAPOTOK --- */
.editable-box {
    position: relative;
    outline: 1px solid transparent;
    transition: outline-color 0.15s ease;
}

/* HOVER: Folytonos (solid) 1px-es kék keret (csak ha még nem aktív) */
body:not(.preview-mode) .editable-box.is-hovered:not(.is-active),
body:not(.preview-mode) .editable-box:hover:not(.is-active):not(:has(.editable-box:hover)) {
    outline: 1px solid var(--primary-color) !important;
    outline-offset: -1px;
}

/* AKTÍV ÁLLAPOT: Független, tiszta 1 px-es kék keret (hover esetén is 1px marad) */
body:not(.preview-mode) .editable-box.is-active,
body:not(.preview-mode) .editable-box.is-active:hover {
    outline: 1px solid var(--primary-color) !important;
    outline-offset: -1px !important;
    z-index: 50 !important;
}

/* SZERKESZTŐ MÓD: Finom kék szaggatott segédkeret minden elemnek a szekciókon kívül */
body:not(.preview-mode) .editable-box:not(.builder-section):not(.is-active):not(.is-hovered) {
    outline: 1px dashed var(--primary-dashed, rgba(52, 106, 243, 0.28)) !important;
    outline-offset: -1px;
}

/* Ha egy blokkon vagy oszlopon belül van aktív elem, emeljük meg a szülő z-indexét is, hogy a lebegő menü ne csússzon szomszédos elemek alá */
body:not(.preview-mode) .builder-block:has(.editable-box.is-active),
body:not(.preview-mode) .builder-column:has(.editable-box.is-active) {
    z-index: 25;
}

/* --- 0. SZINTŰ SZAKASZ: SZEKCIÓ (SECTION / MESTER TÁROLÓ) --- */
/* A szekció MINDEN ESETBEN teljes szélességű (100%), alapértelmezetten 40px alsó-felső belső margóval */
.builder-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    background-color: #f8fafc;
    padding: 40px 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0 !important;
}

.content-canvas.view-xl .builder-section,
.content-canvas.view-desktop .builder-section,
.content-canvas.view-tablet .builder-section,
.content-canvas.view-mobile .builder-section {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.section-inner-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

body:not(.preview-mode) .section-inner-content:empty {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 106, 243, 0.03);
    border-radius: 6px;
    border: 1px dashed rgba(52, 106, 243, 0.25);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
body:not(.preview-mode) .section-inner-content:empty:hover {
    background: rgba(52, 106, 243, 0.08);
    border-color: var(--primary-color);
}
body:not(.preview-mode) .section-inner-content:empty::after {
    content: '+ Üres szekció (kattints blokk hozzáadásához)';
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    pointer-events: none;
}
body.preview-mode .section-inner-content:empty {
    display: none !important;
}

/* --- TÉRKÖZÖK ALAPBEÁLLÍTÁSAI (20px ALSÓ-FELSŐ PADDING, ÁRNYÉK ÉS KERET NÉLKÜL) --- */
.builder-block {
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    padding: 20px 0;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0 !important;
}

/* --- 1. SZINTŰ SZAKASZOK SZÉLESSÉGE (DOBOZOS / KIFUTÓ HÁTTÉR / TELJES SZÉLESSÉG) --- */
/* 1. Dobozos: A háttér és a tartalom is középre zárt 1680px-es (Desktopon 1140px-es) doboz */
.builder-block:not(.header-block).block-width-boxed,
.builder-block:not(.header-block):not(.block-width-full):not(.block-width-full-bg) {
    max-width: 1680px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.content-canvas.view-xl .builder-block:not(.header-block).block-width-boxed,
.content-canvas.view-xl .builder-block:not(.header-block):not(.block-width-full):not(.block-width-full-bg) {
    max-width: 1680px !important;
}
.content-canvas.view-desktop .builder-block:not(.header-block).block-width-boxed,
.content-canvas.view-desktop .builder-block:not(.header-block):not(.block-width-full):not(.block-width-full-bg) {
    max-width: 1140px !important;
}
.content-canvas.view-tablet .builder-block:not(.header-block).block-width-boxed,
.content-canvas.view-mobile .builder-block:not(.header-block).block-width-boxed,
.content-canvas.view-tablet .builder-block:not(.header-block):not(.block-width-full):not(.block-width-full-bg),
.content-canvas.view-mobile .builder-block:not(.header-block):not(.block-width-full):not(.block-width-full-bg) {
    max-width: 100% !important;
}
.builder-block:not(.header-block).block-width-boxed > .columns-grid,
.builder-block:not(.header-block):not(.block-width-full):not(.block-width-full-bg) > .columns-grid {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Kifutó háttér: A háttér 100% kifut a szélekig, a belső oszlop rács középre zárt 1680px-es (Desktopon 1140px-es) */
.builder-block:not(.header-block).block-width-full-bg {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.builder-block:not(.header-block).block-width-full-bg > .columns-grid {
    max-width: 1680px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.content-canvas.view-xl .builder-block:not(.header-block).block-width-full-bg > .columns-grid {
    max-width: 1680px !important;
}
.content-canvas.view-desktop .builder-block:not(.header-block).block-width-full-bg > .columns-grid {
    max-width: 1140px !important;
}
.content-canvas.view-tablet .builder-block:not(.header-block).block-width-full-bg > .columns-grid,
.content-canvas.view-mobile .builder-block:not(.header-block).block-width-full-bg > .columns-grid {
    max-width: 100% !important;
}

/* 3. Teljes szélesség: A háttér és a tartalom is 100%-ban kitölti a teret */
.builder-block:not(.header-block).block-width-full {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.builder-block:not(.header-block).block-width-full > .columns-grid {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.columns-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 0px;
    position: relative;
}
.columns-grid:not(.auto-grid-container) {
    grid-template-columns: repeat(12, 1fr);
}

.builder-column {
    background-color: #fbfbfb;
    padding: 20px;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
    min-width: 0;
    box-sizing: border-box;
}

body:not(.preview-mode) .builder-column {
    min-height: 80px;
}

body:not(.preview-mode) .column-inner-content:empty,
body:not(.preview-mode) .flex-inner-content:empty,
body:not(.preview-mode) .card-inner-content:empty,
body:not(.preview-mode) .floating-inner-content:empty,
body:not(.preview-mode) .sticky-inner-content:empty,
body:not(.preview-mode) .overlap-inner-content:empty,
body:not(.preview-mode) .section-inner-content:empty {
    min-height: 56px;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
    align-self: center !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(52, 106, 243, 0.04);
    border-radius: 6px;
    border: 1px dashed rgba(52, 106, 243, 0.3);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

body:not(.preview-mode) .column-inner-content:empty:hover,
body:not(.preview-mode) .flex-inner-content:empty:hover,
body:not(.preview-mode) .card-inner-content:empty:hover,
body:not(.preview-mode) .floating-inner-content:empty:hover,
body:not(.preview-mode) .sticky-inner-content:empty:hover,
body:not(.preview-mode) .overlap-inner-content:empty:hover,
body:not(.preview-mode) .section-inner-content:empty:hover {
    background: rgba(52, 106, 243, 0.09);
    border-color: var(--primary-color, #346af3);
}

body:not(.preview-mode) .column-inner-content:empty::after,
body:not(.preview-mode) .flex-inner-content:empty::after,
body:not(.preview-mode) .card-inner-content:empty::after,
body:not(.preview-mode) .floating-inner-content:empty::after,
body:not(.preview-mode) .sticky-inner-content:empty::after,
body:not(.preview-mode) .overlap-inner-content:empty::after {
    content: '+ Elem hozzáadása (kattints ide)';
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    pointer-events: none;
    text-align: center;
}

body:not(.preview-mode) .builder-column > .column-inner-content:empty::after {
    content: '+ Üres oszlop (kattints elem hozzáadásához)';
}

body:not(.preview-mode) .card-item > .column-inner-content:empty::after,
body:not(.preview-mode) .scroll-row-card > .column-inner-content:empty::after {
    content: '+ Üres kártya (kattints elem hozzáadásához)';
}

body:not(.preview-mode) .flex-container-item > .column-inner-content:empty::after {
    content: '+ Üres flex tároló (kattints elem hozzáadásához)';
}

body:not(.preview-mode) .sticky-container > .column-inner-content:empty::after {
    content: '+ Üres sticky tároló (kattints elem hozzáadásához)';
}

body:not(.preview-mode) .overlap-box > .column-inner-content:empty::after {
    content: '+ Üres átfedő doboz (kattints elem hozzáadásához)';
}

body:not(.preview-mode) .floating-box > .column-inner-content:empty::after {
    content: '+ Üres lebegő doboz (kattints elem hozzáadásához)';
}

body:not(.preview-mode) .builder-section > .section-inner-content:empty::after {
    content: '+ Üres szekció (kattints blokk hozzáadásához)';
}

body.preview-mode .builder-column {
    border: none !important;
}

body.preview-mode .column-inner-content:empty,
body.preview-mode .flex-inner-content:empty,
body.preview-mode .card-inner-content:empty,
body.preview-mode .floating-inner-content:empty,
body.preview-mode .sticky-inner-content:empty,
body.preview-mode .overlap-inner-content:empty,
body.preview-mode .section-inner-content:empty {
    display: none !important;
}

.column-inner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 50px;
    flex-shrink: 0;
}
.builder-column > .column-inner-content {
    flex: 1 1 auto;
}

.content-item {
    background-color: transparent;
    padding: 20px;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    flex-shrink: 0;
}
.content-item.button-item {
    padding: 4px 0;
}

/* A teljes elem átlátszósága (Opacity) a tartalomra és a háttérre együtt hat, miközben a lebegő szerkesztő eszköztárak (toolbar) 100%-osak maradnak */
.builder-section > :not(.element-toolbar):not(.box-spacing-handles):not(.evergo-parallax-bg-layer) {
    opacity: var(--section-opacity, 1);
    transition: opacity 0.15s ease;
}
.builder-block > :not(.element-toolbar):not(.box-spacing-handles):not(.evergo-parallax-bg-layer) {
    opacity: var(--block-opacity, 1);
    transition: opacity 0.15s ease;
}
.builder-column > :not(.element-toolbar):not(.box-spacing-handles):not(.evergo-parallax-bg-layer) {
    opacity: var(--col-opacity, 1);
    transition: opacity 0.15s ease;
}
.content-item > :not(.element-toolbar):not(.text-format-toolbar):not(.box-spacing-handles):not(.evergo-parallax-bg-layer) {
    opacity: var(--item-opacity, 1);
    transition: opacity 0.15s ease;
}

.drag-handle-column, .drag-handle-item, .drag-handle-block { cursor: grab !important; }
.drag-handle-column:active, .drag-handle-item:active, .drag-handle-block:active { cursor: grabbing !important; }

/* --- OPCIÓ A: NATÍV DRAG & DROP ÉLŐ HELYKITÖLTŐVEL (ARRÉBB TOLJA AZ ELEMEKET, PONTVONALAS KERET) --- */
.drop-placeholder {
    border: 2px dashed var(--primary-color) !important;
    background: rgba(52, 106, 243, 0.05) !important;
    border-radius: 4px;
    pointer-events: none !important;
    box-sizing: border-box;
    transition: height 0.12s ease, width 0.12s ease;
    min-height: 44px;
    position: relative;
}

.editable-box.is-dragging {
    opacity: 0.28 !important;
    outline: 2px dashed var(--primary-color) !important;
    outline-offset: -2px;
}

/* --- SZÖVEG ELEM --- */
.text-content-box {
    outline: none;
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    pointer-events: auto !important;
}
.text-content-box * {
    user-select: text !important;
    -webkit-user-select: text !important;
}
.text-content-box h2 { font-size: 24px; font-weight: 700; color: #111; margin-bottom: 10px; }
.text-content-box p { font-size: 14px; color: #555; line-height: 1.5; }

/* --- GOMB ELEM --- */
.button-element-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    transition: justify-content 0.2s ease;
}
.button-element-wrapper.align-left { justify-content: flex-start; }
.button-element-wrapper.align-center { justify-content: center; }
.button-element-wrapper.align-right { justify-content: flex-end; }
.button-element-wrapper.align-stretch .editor-btn { width: 100%; text-align: center; }

.editor-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}
.editor-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.editor-btn.size-sm { padding: 8px 18px; font-size: 13px; }
.editor-btn.size-md { padding: 12px 28px; font-size: 15px; }
.editor-btn.size-lg { padding: 16px 36px; font-size: 17px; }

.editor-btn.style-solid {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid transparent;
}
.editor-btn.style-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.editor-btn.style-pill {
    border-radius: 50px;
}

/* --- VIDEÓ ELEM --- */
.video-element-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #111111;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
}
.video-element-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

/* --- ELVÁLASZTÓ ELEM --- */
.divider-element-wrapper {
    padding: 14px 0;
    width: 100%;
}
.editor-divider {
    border: none;
    height: 2px;
    background-color: #e5e5e5;
    width: 100%;
    margin: 0;
}

/* --- KÉP ELEM --- */
.image-element-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.image-element-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.image-placeholder {
    width: 100%;
    min-height: 180px;
    background: #f3f3f3;
    border: 2px dashed #cccccc;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    padding: 20px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.image-placeholder:hover {
    background: #ececec;
    border-color: var(--primary-color);
}
.image-action-bar {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.image-action-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    color: #444;
}
.image-action-btn:hover {
    background: #f0f0f0;
    color: #111;
}

/* ==========================================================================
   FEJLÉC ELEM / BLOKK (EVERGO HEADER)
   ========================================================================== */
.header-block {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Felső információs sáv (Top bar) */
.header-top-bar {
    background-color: #f7f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #555555;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #444444;
}

.header-top-info-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.header-top-info-item a:hover {
    color: var(--primary-color, #0070f3);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top-link {
    color: #666666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.15s ease;
}

.header-top-link:hover {
    color: var(--primary-color, #0070f3);
}

/* Fő fejléc navigáció (Main Navigation bar) */
.header-main-nav {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 25px 0;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

/* Belső tartalmi konténerek: a háttér kifut, a tartalom pedig a nézet széléhez igazodik */
.header-announcement-inner,
.header-main-nav-inner,
.header-breadcrumbs-inner,
.header-mobile-drawer-inner {
    width: 100%;
    max-width: 1280px; /* Normál nézet: 1280px-es doboz széléhez igazítva */
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
}

.header-main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Navigációs bal oldali csoport (Logó + Elválasztó + Menüpontok) */
.header-nav-left-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-svg {
    height: 25.6px; /* 20%-kal kisebb (32px -> 25.6px) */
    width: auto;
    display: block;
}

.header-nav-divider {
    width: 1px;
    height: 20px;
    background-color: #e2e8f0;
    flex-shrink: 0;
}

/* Navigációs linkek listája */
.header-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 4px;
    display: inline-block;
    transition: color 0.15s ease;
    outline: none;
}

.header-nav-link:hover {
    color: #f6201c;
}

/* Aktív menüpont aláhúzás (piros vonal) */
.header-nav-link.active {
    color: #0f172a;
    font-weight: 600;
    position: relative;
}

.header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f6201c;
    border-radius: 2px 2px 0 0;
}

/* Fejléc jobb oldali akciógombok */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-cta-btn {
    background-color: #f6201c;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
}

.header-cta-btn:hover {
    background-color: #d61815;
}

/* Ügyfélportál lekerekített kapszula (pill) gomb */
.header-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.header-portal-btn:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
    color: #0f172a !important;
}

/* Kerek ikonos akciógombok (Keresés, Fiók) */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.header-icon-btn:hover {
    background-color: #f1f5f9;
    color: #f6201c;
}

/* Felső fekete promóciós / értesítési sáv (Full-bleed háttér) */
.header-announcement-bar {
    width: 100%;
    box-sizing: border-box;
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
}

.header-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.header-announcement-text {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.header-announcement-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    padding: 4px 18px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.header-announcement-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.header-announcement-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.header-announcement-close:hover {
    color: #ffffff;
}

/* Kenyérmorzsa (Breadcrumbs) útvonalsáv (Full-bleed háttér) */
.header-breadcrumbs {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 10px 0 12px 0;
    border-top: 1px solid #f8fafc;
}

.header-breadcrumbs-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    overflow-x: auto;
    white-space: nowrap;
}

/* XL szélesvásznú nézetben a fejléc tartalma 1680px (összhangban a szekciók 1680px tartalom szélességével) */
.content-canvas.view-xl .header-announcement-inner,
.content-canvas.view-xl .header-main-nav-inner,
.content-canvas.view-xl .header-breadcrumbs-inner,
.content-canvas.view-xl .header-mobile-drawer-inner {
    max-width: 1680px;
}

/* Teljes szélességű (.block-width-full) beállítás esetén a tartalom a teljes nézet széléhez simul */
.header-block.block-width-full .header-announcement-inner,
.header-block.block-width-full .header-main-nav-inner,
.header-block.block-width-full .header-breadcrumbs-inner,
.header-block.block-width-full .header-mobile-drawer-inner {
    max-width: 100%;
    padding: 0 clamp(20px, 3.5vw, 48px);
}

.header-breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.header-breadcrumb-item:hover {
    color: #f6201c;
}

.header-breadcrumb-item.current {
    color: #0f172a;
    font-weight: 600;
}

.header-breadcrumb-separator {
    color: #cbd5e1;
    font-size: 10px;
}

/* Hamburger gomb mobil nézethez */
.header-hamburger-btn {
    display: none;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 18px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.header-hamburger-btn:hover {
    background-color: #f1f5f9;
}

/* Mobil menü lenyíló panel */
.header-mobile-drawer {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 16px 24px;
    gap: 12px;
}

.header-mobile-drawer.open {
    display: flex !important;
}

.header-mobile-drawer .header-nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 16px;
}

.header-mobile-drawer .header-cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 12px;
}

/* Mobil nézet szabályok (.view-mobile nézetben és kisebb képernyőkön) */
.view-mobile .header-top-bar,
@media (max-width: 768px) {
    .header-top-bar {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        padding: 8px 16px;
    }
    .header-top-right {
        display: none;
    }
}

.view-mobile .header-nav-list,
.view-mobile .header-nav-divider,
.view-mobile .header-portal-btn,
.view-mobile .header-actions .header-cta-btn,
.view-tablet .header-nav-list,
.view-tablet .header-nav-divider,
.view-tablet .header-portal-btn,
.view-tablet .header-actions .header-cta-btn,
@media (max-width: 992px) {
    .header-nav-list {
        display: none;
    }
    .header-nav-divider {
        display: none;
    }
    .header-portal-btn {
        display: none;
    }
    .header-actions .header-cta-btn {
        display: none;
    }
    .header-hamburger-btn {
        display: inline-flex;
    }
}

.view-tablet .header-hamburger-btn,
.view-mobile .header-hamburger-btn {
    display: inline-flex !important;
}
.view-tablet .header-nav-list,
.view-mobile .header-nav-list {
    display: none !important;
}
.view-tablet .header-nav-divider,
.view-mobile .header-nav-divider {
    display: none !important;
}
.view-tablet .header-portal-btn,
.view-mobile .header-portal-btn {
    display: none !important;
}
.view-tablet .header-actions .header-cta-btn,
.view-mobile .header-actions .header-cta-btn {
    display: none !important;
}
.view-mobile .header-announcement-close {
    display: none;
}

/* Mobil verzióban a pozíciójelölő sáv (kenyérmorzsa) nem szükséges és semmilyen körülmények között nem jelenik meg */
.desktop-only-breadcrumbs,
.header-breadcrumbs {
    display: flex;
}

.view-mobile .header-breadcrumbs,
.view-mobile .desktop-only-breadcrumbs,
.content-canvas.view-mobile .header-breadcrumbs,
.content-canvas.view-mobile .desktop-only-breadcrumbs,
.sandbox-container.view-mobile .header-breadcrumbs,
.sandbox-container.view-mobile .desktop-only-breadcrumbs,
body.preview-mode .content-canvas.view-mobile .header-breadcrumbs,
[data-device="mobil"] .header-breadcrumbs,
@media (max-width: 992px) {
    .header-breadcrumbs,
    .desktop-only-breadcrumbs {
        display: none !important;
    }
}

/* Mobilon a tartalmi rész a mobil nézet széléhez simul */
.view-mobile .header-announcement-inner,
.view-mobile .header-main-nav-inner,
.content-canvas.view-mobile .header-announcement-inner,
.content-canvas.view-mobile .header-main-nav-inner,
@media (max-width: 768px) {
    .header-announcement-inner,
    .header-main-nav-inner {
        max-width: 100%;
        padding: 0 14px;
    }
}

/* A CRM telefonkeretben a fejléc háttere kifut a telefonkeret széléig */
.content-canvas.view-mobile .header-block {
    margin-left: -8px !important;
    margin-right: -8px !important;
    margin-top: -16px !important;
    width: calc(100% + 16px) !important;
    max-width: calc(100% + 16px) !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
}

/* Fejléc Sablonválasztó gyors legördülő (Dropdown selector) az eszköztárban */
.header-template-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #475569;
}

.header-template-picker label {
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-template-select {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    padding: 2px 4px;
}

.header-template-select:focus {
    color: var(--primary-color, #0070f3);
}

/* Felső menüsor Fejléc Sablonválasztó lenyíló kártyái */
.header-template-list-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
}

.header-template-item-card {
    padding: 10px 12px;
    border-radius: 6px;
    background: #252525;
    border: 1px solid #424242;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.header-template-item-card:hover {
    background: #333333;
    border-color: #555555;
}

.header-template-item-card.active {
    background: rgba(52, 106, 243, 0.15);
    border-color: var(--primary-color, #0070f3);
}

.template-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.template-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.template-card-badge {
    font-size: 10px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.template-card-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ==========================================================================
   RÁCS BLOKK (AUTO GRID GALÉRIA / TERMÉKHÁLÓ)
   ========================================================================== */
.columns-grid.auto-grid-container {
    display: grid !important;
    grid-template-columns: repeat(var(--auto-grid-cols, 3), minmax(0, 1fr)) !important;
    gap: 20px;
}

.columns-grid.auto-grid-container > .builder-column {
    grid-column: auto !important;
    width: 100% !important;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   FLEX KONTÉNER (FLEXBOX CSOPORT / DIV BLOCK)
   ========================================================================== */
.content-item.flex-container-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
    position: relative;
    min-width: 48px;
    min-height: 48px;
    box-sizing: border-box;
    transition: background-color 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

/* Szerkesztő módban a Flex konténer az egységes .editable-box szaggatott segédkeretet használja */
body:not(.preview-mode) .content-item.flex-container-item::after {
    display: none;
}

.flex-inner-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    min-width: 48px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.flex-inner-content > .content-item {
    padding: 8px 12px;
    width: auto;
    max-width: 100%;
}

.flex-inner-content > .content-item.icon-item {
    align-self: var(--icon-align-self, auto) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.flex-inner-content > .content-item.icon-item .icon-element-wrapper {
    width: auto !important;
}

.flex-inner-content > .content-item .button-element-wrapper {
    width: auto;
}

/* ==========================================================================
   KÁRTYA ELEM (CARD / BOX WRAPPER)
   ========================================================================== */
.content-item.card-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    box-sizing: border-box;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.content-item.card-item.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12) !important;
}

.content-item.card-item.card-hover-glow:hover {
    border-color: var(--primary-color, #346af3) !important;
    box-shadow: 0 8px 24px rgba(52, 106, 243, 0.22) !important;
}

.card-inner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 48px;
    width: 100%;
    position: relative;
}

.card-inner-content > .content-item {
    padding: 6px 0;
}

/* ==========================================================================
   LEBEGŐ TÁROLÓ (FLOATING PIN BOX - ABSZOLÚT POZÍCIONÁLT JELVÉNY / DOBOZ)
   ========================================================================== */
.content-item.floating-box,
.floating-box {
    position: absolute !important;
    z-index: var(--floating-z, 20) !important;
    background-color: transparent;
    padding: 0;
    box-sizing: border-box !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-width: 40px;
    width: var(--floating-width, auto);
    min-height: var(--floating-height, 40px);
    max-width: calc(100% - 24px) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.floating-box > .column-inner-content {
    min-height: 40px;
    min-width: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Lebegő doboz belső elemeinek reszponzív védelme (automatikus tördelés és kép-igazítás) */
.floating-box img,
.floating-box .image-element-wrapper,
.floating-box .image-element-wrapper img {
    max-width: 100% !important;
    height: auto !important;
}

.floating-box .text-content-box,
.floating-box p,
.floating-box h1,
.floating-box h2,
.floating-box h3,
.floating-box h4,
.floating-box h5,
.floating-box h6 {
    overflow-wrap: break-word;
    word-break: break-word;
}

.floating-box .flex-container-item > .column-inner-content {
    flex-wrap: wrap !important;
}

body:not(.preview-mode) .floating-box > .column-inner-content:empty {
    min-height: 48px;
    min-width: 48px;
}

body:not(.preview-mode) .floating-box > .column-inner-content:empty::after {
    content: '+ Üres lebegő doboz';
}

/* Kompakt Ikon Jelvény / Lebegő Akciógomb (FAB) stílus */
.content-item.floating-box.floating-icon-badge,
.floating-box.floating-icon-badge {
    padding: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    width: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
}
.floating-box.floating-icon-badge > .column-inner-content {
    min-height: 0 !important;
    min-width: 0 !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}
.floating-box.floating-icon-badge .content-item.icon-item {
    padding: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    align-self: center !important;
}

/* ==========================================================================
   IKON ELEM (SVG IKON BEÁGYAZÁS, SZÍNEZÉS & HÁTTÉR)
   ========================================================================== */
.content-item.icon-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 14px;
    background-color: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    align-self: var(--icon-align-self, flex-start);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.icon-element-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.icon-element-wrapper a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.svg-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size, 40px);
    height: var(--icon-size, 40px);
    font-size: var(--icon-size, 40px);
    color: var(--icon-color, #346af3);
    transition: color 0.15s ease, width 0.15s ease, height 0.15s ease, font-size 0.15s ease;
    line-height: 1;
}

.svg-icon-container svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    fill: currentColor;
}

.svg-icon-container svg[stroke]:not([stroke="none"]) {
    stroke: currentColor;
}

.svg-icon-container i {
    font-size: inherit;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: currentColor;
    font-style: normal;
}

/* Lebegő akció sáv az ikon alatt */
.icon-action-bar {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 3px 6px;
    display: none;
    align-items: center;
    gap: 4px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

body:not(.preview-mode) .content-item.icon-item.is-active .icon-action-bar,
body:not(.preview-mode) .content-item.icon-item:hover .icon-action-bar {
    display: flex;
    align-items: center;
}

.icon-action-bar .image-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.icon-action-bar .image-action-btn:hover {
    background: rgba(52, 106, 243, 0.25);
    border-color: #346af3;
    color: #ffffff;
}

/* Rögzítési pontok (Anchor Pins) */
.floating-box.pin-top-left {
    top: var(--floating-y, 24px) !important;
    left: var(--floating-x, 24px) !important;
    bottom: auto !important;
    right: auto !important;
}
.floating-box.pin-top-right {
    top: var(--floating-y, 24px) !important;
    right: var(--floating-x, 24px) !important;
    bottom: auto !important;
    left: auto !important;
}
.floating-box.pin-bottom-left {
    bottom: var(--floating-y, 24px) !important;
    left: var(--floating-x, 24px) !important;
    top: auto !important;
    right: auto !important;
}
.floating-box.pin-bottom-right {
    bottom: var(--floating-y, 24px) !important;
    right: var(--floating-x, 24px) !important;
    top: auto !important;
    left: auto !important;
}
.floating-box.pin-center {
    top: calc(50% + var(--floating-y, 0px)) !important;
    left: calc(50% + var(--floating-x, 0px)) !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    right: auto !important;
}

/* ==========================================================================
   KORSZERŰ HÁTTÉR EFFEKTEK, RÉTEGZETT DINAMIKUS PARALLAX & GÖRGETÉSI ANIMÁCIÓK
   ========================================================================== */

/* Gradiens gyorsválasztó gombok a Háttér panelen */
.bg-grad-swatch-btn {
    width: 26px;
    height: 22px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    padding: 0;
}
.bg-grad-swatch-btn:hover {
    transform: scale(1.12);
    border-color: #ffffff;
}

/* --- 1. RÉTEGZETT DINAMIKUS PARALLAX MOTOR --- */
.has-dynamic-parallax {
    position: relative;
    isolation: isolate;
    flex-shrink: 0 !important;
}
.builder-block.has-dynamic-parallax {
    overflow: hidden;
    flex-shrink: 0 !important;
    min-height: max-content;
}

/* Tartalmi elemek (kártyák, dobozok, gombok, szöveg) önálló lebegő parallax mozgása */
.has-dynamic-parallax.parallax-mode-element,
.content-item.has-dynamic-parallax,
.card-item.has-dynamic-parallax {
    transform: translate3d(var(--parallax-mx, 0px), var(--parallax-y, 0px), 0);
    will-change: transform;
    transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1);
}

.evergo-parallax-bg-layer {
    position: absolute;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
    z-index: 0;
    pointer-events: none !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    will-change: transform;
    transform: translate3d(calc(var(--parallax-x, 0px) + var(--parallax-mx, 0px)), calc(var(--parallax-y, 0px) + var(--parallax-my, 0px)), 0);
    transition: transform 0.08s cubic-bezier(0.2, 0, 0.2, 1);
}

.evergo-parallax-mid-layer {
    position: absolute;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
    z-index: 0;
    pointer-events: none !important;
    overflow: hidden;
    background: radial-gradient(circle at 28% 32%, var(--parallax-glow-1, rgba(52, 106, 243, 0.32)) 0%, transparent 48%),
                radial-gradient(circle at 74% 68%, var(--parallax-glow-2, rgba(168, 85, 247, 0.28)) 0%, transparent 52%);
    filter: blur(28px);
    will-change: transform;
    transform: translate3d(calc(var(--parallax-mid-x, 0px) + var(--parallax-mx, 0px) * 0.6), calc(var(--parallax-y, 0px) * 0.6 + var(--parallax-my, 0px) * 0.6), 0);
    transition: transform 0.12s cubic-bezier(0.2, 0, 0.2, 1);
}

.has-dynamic-parallax > :not(.evergo-parallax-bg-layer):not(.evergo-parallax-mid-layer):not(.evergo-shape-divider-layer):not(.element-toolbar):not(.box-spacing-handles) {
    position: relative;
    z-index: 2;
}

/* --- 2. VIZUÁLIS HÁTTÉR EFFEKTEK (GLOW, NOISE, BEAM, TILT) --- */
/* Hangulatfény (Ambient Glow) - Testreszabható színekkel és elmosással */
.evergo-effect-glow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.evergo-effect-glow::before {
    content: '';
    position: absolute;
    top: -25%;
    left: 15%;
    width: 70%;
    height: 85%;
    background: radial-gradient(circle, var(--glow-c1, rgba(52, 106, 243, 0.32)) 0%, var(--glow-c2, rgba(168, 85, 247, 0.22)) 45%, transparent 72%);
    filter: blur(var(--glow-blur, 42px));
    opacity: var(--glow-opacity, 1);
    pointer-events: none !important;
    z-index: 0;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.evergo-effect-glow > :not(.element-toolbar):not(.box-spacing-handles):not(.evergo-parallax-bg-layer):not(.evergo-parallax-mid-layer) {
    position: relative;
    z-index: 2;
}

/* Prémium Zaj / Textúra (Noise Overlay) */
.evergo-effect-noise {
    position: relative;
    isolation: isolate;
}
.evergo-effect-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none !important;
    z-index: 1;
    opacity: 0.055;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.evergo-effect-noise > :not(.element-toolbar):not(.box-spacing-handles):not(.evergo-parallax-bg-layer) {
    position: relative;
    z-index: 2;
}

/* Élfény (Border Beam & Inner Spotlight) - Testreszabható élszínekkel */
.evergo-effect-beam {
    position: relative;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), 0 0 28px -6px var(--beam-glow-color, rgba(52, 106, 243, 0.35)) !important;
}
.evergo-effect-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--beam-c1, #38bdf8), var(--beam-c2, #ec4899), transparent);
    border-radius: 2px;
    pointer-events: none !important;
    z-index: 3;
    opacity: var(--beam-opacity, 1);
}

/* 3D Interaktív Lebegés (3D Hover Tilt) */
.evergo-effect-tilt {
    will-change: transform;
    transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateZ(0);
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
}

/* --- 3. SZEKCIÓ ELVÁLASZTÓ ALAKZATOK (SHAPE DIVIDERS) --- */
.evergo-shape-divider-layer {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 54px;
    pointer-events: none !important;
    z-index: 3;
    overflow: hidden;
    line-height: 0;
}
.evergo-shape-divider-layer svg {
    display: block;
    width: calc(100% + 2px);
    height: 100%;
}
.evergo-shape-divider-layer.shape-fade {
    height: 72px;
    background: linear-gradient(to bottom, transparent 0%, var(--shape-fill, #ffffff) 100%);
}

/* --- 4. GPU HARDVERESEN GYORSÍTOTT GÖRGETÉSI ANIMÁCIÓK --- */
[data-scroll-anim]:not([data-scroll-anim="none"]) {
    --evergo-anim-dur: 0.7s;
    --evergo-anim-del: 0ms;
    will-change: transform, opacity;
}

/* Kezdőállapot: mielőtt a látótérbe érne az elem */
[data-scroll-anim]:not([data-scroll-anim="none"]):not([data-scroll-anim="scroll-scrub"]):not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim].is-anim-testing {
    opacity: 0 !important;
}
[data-scroll-anim="fade-up"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="fade-up"].is-anim-testing {
    transform: translate3d(0, var(--anim-distance, 42px), 0) !important;
}
[data-scroll-anim="fade-down"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="fade-down"].is-anim-testing {
    transform: translate3d(0, calc(-1 * var(--anim-distance, 42px)), 0) !important;
}
[data-scroll-anim="fade-left"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="fade-left"].is-anim-testing {
    transform: translate3d(calc(-1 * var(--anim-distance, 48px)), 0, 0) !important;
}
[data-scroll-anim="fade-right"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="fade-right"].is-anim-testing {
    transform: translate3d(var(--anim-distance, 48px), 0, 0) !important;
}
[data-scroll-anim="scale-up"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="scale-up"].is-anim-testing {
    transform: scale3d(calc(1 - (var(--anim-distance-num, 42) * 0.003)), calc(1 - (var(--anim-distance-num, 42) * 0.003)), 1) translate3d(0, calc(var(--anim-distance, 42px) * 0.4), 0) !important;
}
[data-scroll-anim="blur-in"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="blur-in"].is-anim-testing {
    filter: blur(14px) !important;
    transform: translate3d(0, calc(var(--anim-distance, 42px) * 0.5), 0) scale(0.96) !important;
}
[data-scroll-anim="flip-up"]:not(.scroll-anim-visible):not(.evergo-anim-active),
[data-scroll-anim="flip-up"].is-anim-testing {
    transform: perspective(900px) rotateX(-24deg) translate3d(0, var(--anim-distance, 32px), 0) !important;
}

/* Aktív / Megjelent állapot (Látótérbe érve vagy lejátszáskor) */
[data-scroll-anim]:not([data-scroll-anim="none"]):not([data-scroll-anim="scroll-scrub"]).scroll-anim-visible:not(.is-anim-testing),
[data-scroll-anim]:not([data-scroll-anim="none"]):not([data-scroll-anim="scroll-scrub"]).evergo-anim-active:not(.is-anim-testing) {
    opacity: 1 !important;
    filter: blur(0px) !important;
    transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translate3d(0, 0, 0) scale3d(1, 1, 1) !important;
    transition: opacity var(--evergo-anim-dur, 0.7s) cubic-bezier(0.16, 1, 0.3, 1) var(--evergo-anim-del, 0ms),
                transform var(--evergo-anim-dur, 0.7s) cubic-bezier(0.16, 1, 0.3, 1) var(--evergo-anim-del, 0ms),
                filter var(--evergo-anim-dur, 0.7s) cubic-bezier(0.16, 1, 0.3, 1) var(--evergo-anim-del, 0ms) !important;
}

/* Folytonos Görgetés-kötött (Scroll-Driven Scrub) animáció */
[data-scroll-anim="scroll-scrub"] {
    transform: translate3d(0, calc((1 - var(--scroll-progress, 1)) * var(--anim-distance, 46px)), 0) scale(calc(0.92 + var(--scroll-progress, 1) * 0.08));
    opacity: calc(0.25 + var(--scroll-progress, 1) * 0.75);
    transition: transform 0.06s linear, opacity 0.06s linear;
}

/* ==========================================================================
   5. SZERKESZTŐ MÓD: STABIL, ELMOZDULÁSMENTES ÉS FLICKER-MENTES MUNKATERÜLET
   A parallax elemek és görgetési animációk alapértelmezetten csak előnézeti
   (preview-mode) és élesített/renderelt módban futnak.
   Szerkesztő módban (body.editor-mode:not(.preview-mode)) minden elem 
   tökéletesen a helyén marad (transform: none, opacity: 1), biztosítva a 
   precíz kijelölést, méretezést, fogantyúkat és szövegszerkesztést.
   Közvetlen animációs teszteléskor (.is-anim-testing / .evergo-anim-active)
   viszont a szerkesztőben is lefut a teszt.
   ========================================================================== */

/* 1. Görgetési animációk inaktiválása szerkesztés közben (kivéve teszteléskor) */
body.editor-mode:not(.preview-mode) [data-scroll-anim]:not([data-scroll-anim="none"]):not(.is-anim-testing):not(.evergo-anim-active) {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* 2. Parallax önálló elemek mozgásának rögzítése szerkesztés közben */
body.editor-mode:not(.preview-mode) .has-dynamic-parallax.parallax-mode-element,
body.editor-mode:not(.preview-mode) .content-item.has-dynamic-parallax,
body.editor-mode:not(.preview-mode) .card-item.has-dynamic-parallax {
    transform: none !important;
    transition: none !important;
}

/* 3. Parallax háttérrétegek elmozdulásának rögzítése szerkesztés közben */
body.editor-mode:not(.preview-mode) .evergo-parallax-bg-layer {
    transform: translate3d(0, 0, 0) scale(1) !important;
    transition: none !important;
}

body.editor-mode:not(.preview-mode) .evergo-parallax-mid-layer {
    transform: translate3d(0, 0, 0) scale(1) !important;
    transition: none !important;
}

/* 4. 3D Tilt inaktiválása szerkesztés közben (ne dőljön el az elem szerkesztés/kattintás közben) */
body.editor-mode:not(.preview-mode) .evergo-effect-tilt:not(.is-anim-testing):not(.evergo-anim-active) {
    transform: none !important;
    transition: none !important;
}

/* 5. Scroll-scrub folyamatos animáció rögzítése szerkesztés közben */
body.editor-mode:not(.preview-mode) [data-scroll-anim="scroll-scrub"]:not(.is-anim-testing):not(.evergo-anim-active) {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

/* 6. Szerkesztő módban a kijelölt vagy fókuszban lévő elem sosem rejtőzik el (kivéve közvetlen teszteléskor) */
body.editor-mode:not(.preview-mode) .editable-box.is-active:not(.is-anim-testing):not(.evergo-anim-active),
body.editor-mode:not(.preview-mode) .editable-box:focus-within:not(.is-anim-testing):not(.evergo-anim-active) {
    opacity: 1 !important;
    transform: none !important;
    filter: blur(0px) !important;
}

/* ==========================================================================
   KREATÍV TÁROLÓK: BENTO RÁCS, RAGADÓS DOBOZ, VÍZSZINTES KÁRTYASOR, ÁTFEDŐ DOBOZ
   ========================================================================== */

/* 1. BENTO RÁCS (APPLE / LINEAR STÍLUSÚ MOZAIK RÁCS) */
.builder-block.bento-block {
    background-color: transparent;
    padding: 0;
}
.bento-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--bento-cols, 3), minmax(0, 1fr)) !important;
    grid-auto-rows: var(--bento-height, 220px) !important;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}
.bento-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: var(--bento-height, 220px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.bento-card.bento-card-large {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    min-height: calc(var(--bento-height, 220px) * 2 + 16px);
}
.bento-card.bento-card-wide {
    grid-column: span var(--bento-cols, 3) !important;
    grid-row: span 1 !important;
}
.content-canvas.view-tablet .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.content-canvas.view-tablet .bento-card.bento-card-large {
    grid-column: span 2 !important;
    grid-row: auto !important;
}
.content-canvas.view-tablet .bento-card.bento-card-wide {
    grid-column: span 2 !important;
}
.content-canvas.view-mobile .bento-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
}
.content-canvas.view-mobile .bento-card {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 180px;
}

/* 2. RAGADÓS DOBOZ (STICKY CONTAINER) */
.content-item.sticky-container {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    will-change: transform, opacity;
}

/* Előnézetben és Renderelt weboldalon: RÖGZÍTVE AZ OLDALHOZ (VIEWPORT-HOZ) */
body.preview-mode .content-item.sticky-container,
body:not(.editor-mode) .content-item.sticky-container {
    position: fixed !important;
    z-index: 1000 !important;
    left: 50% !important;
    right: auto !important;
    width: min(calc(100% - 40px), 820px) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* Tetejéhez ragadó */
body.preview-mode .content-item.sticky-container:not(.sticky-side-bottom),
body.preview-mode .content-item.sticky-container.sticky-side-top,
body:not(.editor-mode) .content-item.sticky-container:not(.sticky-side-bottom),
body:not(.editor-mode) .content-item.sticky-container.sticky-side-top {
    top: var(--sticky-offset, 24px) !important;
    bottom: auto !important;
}

/* Aljához ragadó */
body.preview-mode .content-item.sticky-container.sticky-side-bottom,
body:not(.editor-mode) .content-item.sticky-container.sticky-side-bottom {
    bottom: var(--sticky-offset, 24px) !important;
    top: auto !important;
}

/* Késleltetett bekúszás állapotok (Előnézetben / Renderelt oldalon) */
/* Azonnali megjelenés (delay: none) */
body.preview-mode .content-item.sticky-container:not([data-sticky-delay]),
body.preview-mode .content-item.sticky-container[data-sticky-delay="none"],
body:not(.editor-mode) .content-item.sticky-container:not([data-sticky-delay]),
body:not(.editor-mode) .content-item.sticky-container[data-sticky-delay="none"] {
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Késleltetett: Inaktív kezdőállapot a görgetési küszöb előtt */
body.preview-mode .content-item.sticky-container[data-sticky-delay="early"]:not(.sticky-active),
body.preview-mode .content-item.sticky-container[data-sticky-delay="late"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container[data-sticky-delay="early"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container[data-sticky-delay="late"]:not(.sticky-active) {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Tetejéhez ragadó inaktív eltolása (felülről kúszik be) */
body.preview-mode .content-item.sticky-container.sticky-side-top[data-sticky-delay="early"]:not(.sticky-active),
body.preview-mode .content-item.sticky-container.sticky-side-top[data-sticky-delay="late"]:not(.sticky-active),
body.preview-mode .content-item.sticky-container:not(.sticky-side-bottom)[data-sticky-delay="early"]:not(.sticky-active),
body.preview-mode .content-item.sticky-container:not(.sticky-side-bottom)[data-sticky-delay="late"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container.sticky-side-top[data-sticky-delay="early"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container.sticky-side-top[data-sticky-delay="late"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container:not(.sticky-side-bottom)[data-sticky-delay="early"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container:not(.sticky-side-bottom)[data-sticky-delay="late"]:not(.sticky-active) {
    transform: translate(-50%, -70px) scale(0.96) !important;
}

/* Aljához ragadó inaktív eltolása (alulról kúszik be) */
body.preview-mode .content-item.sticky-container.sticky-side-bottom[data-sticky-delay="early"]:not(.sticky-active),
body.preview-mode .content-item.sticky-container.sticky-side-bottom[data-sticky-delay="late"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container.sticky-side-bottom[data-sticky-delay="early"]:not(.sticky-active),
body:not(.editor-mode) .content-item.sticky-container.sticky-side-bottom[data-sticky-delay="late"]:not(.sticky-active) {
    transform: translate(-50%, 70px) scale(0.96) !important;
}

/* Aktív állapot (küszöbérték elérése után elegánsan bekúszik a helyére) */
body.preview-mode .content-item.sticky-container.sticky-active,
body:not(.editor-mode) .content-item.sticky-container.sticky-active {
    transform: translate(-50%, 0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
}

/* Szerkesztő módban stabilan a helyén marad és közvetlenül szerkeszthető */
body:not(.preview-mode) .content-item.sticky-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body:not(.preview-mode) .content-item.sticky-container::after {
    content: '📌 RAGADÓS (TETŐ)';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    background: rgba(52, 106, 243, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}
body:not(.preview-mode) .content-item.sticky-container.sticky-side-bottom::after {
    content: '📌 RAGADÓS (ALUL)';
}
body:not(.preview-mode) .content-item.sticky-container[data-sticky-delay="early"]::after {
    content: '📌 RAGADÓS (ELŐBB KÚSZIK)';
}
body:not(.preview-mode) .content-item.sticky-container[data-sticky-delay="late"]::after {
    content: '📌 RAGADÓS (KÉSŐBB KÚSZIK)';
}

/* 3. VÍZSZINTES KÁRTYASOR (HORIZONTAL SCROLL / CAROUSEL ROW) */
.content-item.scroll-row-container {
    width: 100%;
    padding: 8px 0 16px 0;
    box-sizing: border-box;
    background: transparent;
    position: relative;
}
.scroll-row-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: var(--row-gap, 16px);
    padding: 10px 4px 16px 4px;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.scroll-row-inner::-webkit-scrollbar {
    height: 6px;
}
.scroll-row-inner::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-row-inner::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.35);
    border-radius: 999px;
}
.scroll-row-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 80, 80, 0.6);
}
.scroll-row-card {
    flex: 0 0 var(--card-width, 280px);
    min-width: var(--card-width, 280px);
    max-width: var(--card-width, 280px);
    background-color: #ffffff;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* 4. ÁTFEDŐ DOBOZ (OVERLAP BOX) - Margók, átnyúlások és méretezések szigorúan külön kezelve */
.content-item.overlap-box {
    margin-top: calc(var(--box-margin-top, 0px) + var(--overlap-top, var(--overlap-offset, 0px))) !important;
    margin-bottom: calc(var(--box-margin-bottom, 0px) - var(--overlap-bottom, 0px)) !important;
    margin-left: calc(var(--box-margin-left, 0px) - var(--overlap-left, 0px)) !important;
    margin-right: calc(var(--box-margin-right, 0px) - var(--overlap-right, 0px)) !important;
    position: relative;
    z-index: 40 !important;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
    transition: box-shadow 0.2s ease;
}

/* Átfedő dobozt tartalmazó szekció, blokk és oszlop mindig kiemelt rétegen (z-index: 35) fusson előnézetben és szerkesztőben is */
.builder-section:has(.overlap-box),
.builder-block:has(.overlap-box),
.builder-column:has(.overlap-box) {
    position: relative;
    z-index: 35 !important;
}

/* Húzás közben azonnali, hardveres 60fps követés késleltetés nélkül */
body.is-scrubbing .content-item.overlap-box {
    transition: none !important;
}

/* Mobilon az oldalirányú átfedés szigorúan tiltva (0px), hogy a tartalom soha ne lógjon ki a telefonkeretből */
.content-canvas.view-mobile .content-item.overlap-box,
.content-canvas.view-mobil .content-item.overlap-box,
.view-mobile .content-item.overlap-box {
    --overlap-left: 0px !important;
    --overlap-right: 0px !important;
    --overlap-bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 16px !important;
}

@media (max-width: 768px) {
    .content-item.overlap-box,
    .overlap-box {
        --overlap-left: 0px !important;
        --overlap-right: 0px !important;
        --overlap-bottom: 0px !important;
        left: 0px !important;
        right: 0px !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        padding: 20px 16px !important;
    }
}

/* ==========================================================================
   5. FONTAWESOME IKON KERESŐ ÉS VÁLASZTÓ MODÁLIS ABLAK (VILÁGOS & SZELLŐS TÉMA)
   ========================================================================== */
.fa-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fa-picker-modal {
    max-width: 1040px;
    width: 94vw;
    height: 86vh;
    max-height: 880px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    color: #0f172a;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.fa-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.fa-picker-title {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}
.fa-picker-title i {
    font-size: 20px;
    color: #346af3;
}

.fa-picker-badge {
    font-size: 11.5px;
    font-weight: 600;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 2px 10px;
    letter-spacing: 0.2px;
}

.fa-picker-close-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.fa-picker-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Lenyíló vezérlősáv (Kereső + Kategória lenyíló + Stílus lenyíló) */
.fa-picker-controls-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fa-picker-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1.4;
}
.fa-picker-search-bar i.search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.fa-picker-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 40px 10px 38px;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.fa-picker-search-input::placeholder {
    color: #94a3b8;
}
.fa-picker-search-input:focus {
    background: #ffffff;
    border-color: #346af3;
    box-shadow: 0 0 0 3px rgba(52, 106, 243, 0.12);
}
.fa-picker-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    display: none;
}
.fa-picker-search-clear:hover {
    color: #0f172a;
}

.fa-picker-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 170px;
}
.fa-picker-select-wrapper.category-wrapper {
    flex: 1.1;
    max-width: 250px;
}
.fa-picker-select-wrapper.style-wrapper {
    flex: 0.9;
    max-width: 200px;
}
.fa-picker-select {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 34px 10px 12px;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: all 0.15s ease;
}
.fa-picker-select:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}
.fa-picker-select:focus {
    background: #ffffff;
    border-color: #346af3;
    box-shadow: 0 0 0 3px rgba(52, 106, 243, 0.12);
}
.fa-picker-select-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: #64748b;
    font-size: 11px;
}

/* Szellős ikongrid (Világos téma) */
.fa-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.fa-icon-grid::-webkit-scrollbar {
    width: 6px;
}
.fa-icon-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.fa-icon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.fa-icon-card:hover {
    background: #ffffff;
    border-color: #346af3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(52, 106, 243, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.fa-icon-card.is-active-icon {
    background: #eff6ff;
    border-color: #346af3;
    box-shadow: 0 0 0 2px rgba(52, 106, 243, 0.35);
}

.fa-icon-card i {
    font-size: 26px;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    transition: transform 0.14s ease, color 0.14s ease;
}
.fa-icon-card:hover i {
    transform: scale(1.15);
    color: #346af3;
}
.fa-icon-card.is-active-icon i {
    color: #2563eb;
}

.fa-icon-card-label {
    font-size: 10.5px;
    color: #475569;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
}
.fa-icon-card:hover .fa-icon-card-label {
    color: #0f172a;
    font-weight: 600;
}

.fa-icon-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 13.5px;
}

.fa-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
.fa-picker-footer-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.fa-picker-custom-input {
    flex: 1;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    color: #0f172a;
    font-size: 12px;
    font-family: monospace;
    outline: none;
    transition: all 0.15s ease;
}
.fa-picker-custom-input:focus {
    background: #ffffff;
    border-color: #346af3;
    box-shadow: 0 0 0 3px rgba(52, 106, 243, 0.12);
}
.fa-picker-apply-btn {
    background: var(--primary-color, #346af3);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}
.fa-picker-apply-btn:hover {
    background: #2563eb;
}

/* UNIFIED IKON GALÉRIA TABS & EXTRA VIEWS */
.fa-picker-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 2px;
}
.fa-picker-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    margin-bottom: -2px;
    border-radius: 8px 8px 0 0;
}
.fa-picker-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}
.fa-picker-tab-btn.active {
    color: #346af3;
    border-bottom-color: #346af3;
    background: #eff6ff;
}
.fa-picker-tab-btn .tab-badge {
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 1px 7px;
    border-radius: 999px;
    transition: all 0.15s ease;
}
.fa-picker-tab-btn.active .tab-badge {
    background: #dbeafe;
    color: #2563eb;
}

.fa-picker-tab-pane {
    display: none;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
}
.fa-picker-tab-pane.active {
    display: flex;
}

/* Tab 2: Feltöltött ikonok */
.fa-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.fa-upload-dropzone:hover, .fa-upload-dropzone.dragover {
    border-color: #346af3;
    background: #eff6ff;
}
.fa-upload-dropzone i {
    font-size: 26px;
    color: #346af3;
}
.fa-upload-dropzone-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}
.fa-upload-dropzone-hint {
    font-size: 11.5px;
    color: #64748b;
}

/* Tab 3: Linkelt ikonok vezérlősáv */
.fa-link-input-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
}
.fa-link-input-bar input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #0f172a;
    outline: none;
}
.fa-link-input-bar input:focus {
    border-color: #346af3;
    box-shadow: 0 0 0 3px rgba(52, 106, 243, 0.12);
}

/* Kártya stílus feltöltött és linkelt elemekhez */
.fa-custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.fa-custom-grid::-webkit-scrollbar {
    width: 6px;
}
.fa-custom-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.fa-custom-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    min-height: 110px;
}
.fa-custom-card:hover {
    border-color: #346af3;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(52, 106, 243, 0.15);
}
.fa-custom-card-preview {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #346af3;
}
.fa-custom-card-preview svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}
.fa-custom-card-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.fa-custom-card-label {
    font-size: 11px;
    color: #334155;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
}
.fa-custom-card-sub {
    font-size: 9.5px;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.fa-card-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fee2e2;
    border: none;
    color: #ef4444;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fa-custom-card:hover .fa-card-delete-btn {
    display: flex;
}
.fa-card-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
}


