/*------------------------------------------------------------------
* Pagizz — product-specific admin styles
* (Shared design tokens come from assets/css/master.css on dashboard
* pages and assets/css/auth.css on auth pages — this file only holds
* styling that isn't generic Bootstrap theming.)
-------------------------------------------------------------------*/
#sidebarCollapse {
    border-radius: 8px;
    transition: background-color .15s ease, border-radius .15s ease, color .15s ease;
}

#sidebarCollapse.active {
    background: var(--fx-violet, #7a5fff);
    border-color: var(--fx-violet, #7a5fff);
    color: #fff;
}

#previewiframe {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    height: 95%;
    border: 0;
    border-radius: 0;
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
}
#previewiframe.bio2 { width: 600px; max-width: 600px; }

.custom-icon {
    background: var(--fx-violet, #7a5fff);
    width: 16px;
    height: 17px;
    display: inline-block;
    border-radius: 4px;
}
.custom-icon.icon-new { background: var(--fx-success, #34d399); }

.custom-icon.icon-new:before {
    content: "+";
    color: #fff;
    display: block;
    text-align: center;
    font-style: normal;
    width: 100%;
    font-weight: bolder;
    line-height: 16px;
}

.website-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.website-menu-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-menu-item i[class*="bi-eye"] {
    flex-shrink: 0;
    font-size: 11px;
}

.success { background: var(--fx-success, #34d399); }

.mh-150 { min-height: 150px !important; }
.mh-200 { min-height: 200px !important; }

.text-muted a { text-decoration: underline; }

/*------------------------------------------------------------------
[Site editor: section modals + picker]
-------------------------------------------------------------------*/
.modal.modal-section .form-control {
    font-size: 13px;
    padding: 6px 8px;
}

.modal.modal-section label { font-size: 13px; }

.modal.modal-section .field-description {
    font-size: 9px;
    display: block;
    color: var(--fx-text-dim, #70707c);
}

/* Az új, jobbról becsúszó szerkesztő panel (editor-right-panel) is ugyanezt a
   FormHelper::render()-ből jövő .field-description osztályt kapja, de a fenti
   szabály csak a régi (megszűnt) modal-section wrapperre volt skálázva - enélkül
   a leírás inline futott a mező mellett, nem saját sorban. */
.field-description {
    display: block;
    font-size: 12px;
    color: var(--fx-text-dim, #9696a3);
}

.modal h5 {
    font-weight: 600;
    font-size: 15px;
}

.section-preview-block {
    padding: 20px 16px;
    background: var(--fx-panel-2, #1b1b22);
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .08));
    border-radius: var(--fx-radius-md, 12px);
    width: 100%;
    min-height: 240px;
    line-height: 14px;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.section-preview-block:hover {
    box-shadow: var(--fx-shadow-glow, 0 10px 40px rgba(180, 76, 255, .25));
    border-color: var(--fx-violet, #7a5fff);
    transform: translateY(-2px);
}

.section-preview-footer {
    text-align: center;
    color: var(--fx-text-muted, #b4b4c0);
    margin-top: 10px;
}

.section-preview-image img {
    display: block;
    width: 100%;
    border-radius: var(--fx-radius-sm, 8px);
}

.section-preview-block b {
    font-size: 14px;
    line-height: 18px;
    color: var(--fx-text, #fff);
}

/*------------------------------------------------------------------
[Choose section: horizontal slider]
-------------------------------------------------------------------*/
.section-slider-wrap {
    position: relative;
    padding: 0 48px;
}

.section-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 4px 2px 14px;
}

.section-slider::-webkit-scrollbar { height: 6px; }
.section-slider::-webkit-scrollbar-track { background: transparent; }
.section-slider::-webkit-scrollbar-thumb {
    background: var(--fx-border-strong, rgba(255, 255, 255, .16));
    border-radius: 3px;
}

.section-card {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: start;
}

.section-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--fx-border-strong, rgba(255, 255, 255, .16));
    background: var(--fx-panel, #131318);
    color: var(--fx-text, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color .15s ease, border-color .15s ease;
}

.section-slider-nav:hover {
    background: rgba(255, 255, 255, .06);
    border-color: var(--fx-violet, #7a5fff);
}

.section-slider-prev { left: 0; }
.section-slider-next { right: 0; }

@media (max-width: 600px) {
    .section-slider-wrap { padding: 0 8px; }
    .section-slider-nav { display: none; }
}

.select-section-checkbox {
    position: relative;
    top: 2px;
    margin-right: 2px;
}

.footer-buttons {
    position: fixed;
    left: 40px;
    bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    /* A #previewiframe-et tartalmazó <main> a Protected/Unpublished szallag miatt position:relative,
       ami pozicionált elemmé teszi - DOM-sorrendben a footer-buttons előtte van, tehát z-index nélkül
       a <main> festődne fölé. Explicit z-index-szel biztosítjuk, hogy a gombok mindig felül maradjanak. */
    z-index: 1000;
}

@media (max-width: 600px) {
    .footer-buttons {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

.publish-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fx-danger, #ff5c7a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.template-change {
    text-align: center;
    padding: 8px;
    border-radius: var(--fx-radius-md, 12px);
    border: 2px solid var(--fx-border, rgba(255, 255, 255, .08));
}
.template-change img {
    max-width: 80%;
    display: block;
    margin: 0 auto 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.template-change b {
    padding-left: 4px;
    font-size: 11px;
    color: var(--fx-text, #fff);
}

.modal-body .btn.btn-primary.btn-sm {
    padding: 3px 8px;
    font-size: 11px;
}
.modal-body .item-row-title,
.item-row-title {
    font-size: 11px;
    font-weight: 400;
    color: var(--fx-text-muted, #b4b4c0);
}
.remove-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-col a {
    font-size: 13px;
    font-weight: 400;
    color: var(--fx-danger, #ff5c7a);
}

/* Field-group-items (buttons/social/list stb. szekciók soronkénti szerkesztője) -
   minden nem-fejléc sor kapjon egy enyhe keretet, hogy táblázatosnak lássódjon,
   a mezők pedig legyenek kompaktabbak, hogy egy sorban elférjenek és látszódjon,
   hogy egy egységet alkotnak. A :not() a fejléc-sorra (field-group-items-header)
   nem vonatkozik - a JS-sel (addNewRow()) hozzáadott új sorok is ide tartoznak,
   mert ugyanabba a .field-group-items konténerbe kerülnek be. */
.field-group-items .row {
    margin-bottom: 6px;
    margin-left: 0;
    margin-right: 0;
}
.field-group-items .row:not(.field-group-items-header) {
    align-items: center;
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .08));
    border-radius: var(--fx-radius-sm, 6px);
    padding: 4px 2px;
    background: var(--fx-panel-2, rgba(255, 255, 255, .02));
}
.field-group-items .row:not(.field-group-items-header) .form-control {
    padding: 4px 6px;
    height: auto;
    font-size: 12px;
}
.field-group-items-addrow {
    margin-top: 8px;
    padding: 3px 10px;
    font-size: 11px;
}

.accordion-button {
    padding: 8px 10px;
    font-size: 13px;
}
.accordion-button::after {
    height: 14px;
    width: 14px;
    background-size: 14px;
}

.modal.custom-position .modal-dialog {
    min-width: 600px;
    position: fixed;
    top: 100px;
    right: 50px;
    margin: 0;
}

@media (max-width: 700px) {
    .modal.custom-position .modal-dialog {
        min-width: 100%;
        right: inherit;
    }
}

/*------------------------------------------------------------------
[Subscription: pricing cards]
-------------------------------------------------------------------*/
.plan-card {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform .2s ease, border-color .2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    border-color: var(--fx-violet, #7a5fff);
}

.plan-card .content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.plan-card .row { flex: 1 0 auto; }

.plan-card-current {
    border-color: var(--fx-violet, #7a5fff);
    box-shadow: var(--fx-shadow-glow, 0 10px 40px rgba(180, 76, 255, .25));
}

.plan-badge-slot {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px;
    margin-top: 12px;
}

.plan-badge {
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
}

.plan-name {
    font-family: var(--fx-font-display, inherit);
    margin-bottom: .5rem;
}

.plan-price {
    line-height: 1;
    margin-bottom: .1rem;
}

.plan-price-amount {
    font-family: var(--fx-font-display, inherit);
    font-size: 2.1rem;
    font-weight: 700;
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan-price-period {
    font-size: .85rem;
    color: var(--fx-text-dim, #9696a3);
}

.plan-price-year {
    color: var(--fx-text-dim, #9696a3);
    margin-bottom: 1rem;
}

.plan-price-year-note {
    color: var(--fx-success, #34d399);
    font-weight: 600;
}

.plan-features .bi-check { color: var(--fx-success, #34d399); }
.plan-features .bi-x { color: var(--fx-text-dim, #9696a3); }
.plan-features .bi-puzzle,
.plan-features .bi-bar-chart-line,
.plan-features .bi-rss,
.plan-features .bi-star,
.plan-features .bi-globe { color: var(--fx-violet, #7a5fff); }

.plan-subscribed {
    color: var(--fx-success, #34d399);
    font-weight: 600;
    font-size: .9rem;
}

/*------------------------------------------------------------------
[Home dashboard]
-------------------------------------------------------------------*/
.dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.dash-url {
    margin-top: .25rem;
}

.dash-url a {
    color: var(--fx-text-dim, #9696a3);
    font-size: .85rem;
}

.dash-url a:hover { color: var(--fx-violet, #7a5fff); }

.dash-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.support-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.support-filter-bar select {
    max-width: 220px;
}
.support-filter-bar input[type="text"] {
    flex: 1 1 240px;
}

.kpi-card .content { padding: 18px 20px; }

.kpi-value {
    font-family: var(--fx-font-display, inherit);
    font-size: 2rem;
    font-weight: 700;
    color: var(--fx-text, #fff);
    line-height: 1.15;
    margin: .15rem 0 .3rem;
}

.kpi-trend {
    font-size: .8rem;
    font-weight: 600;
}

.kpi-trend-up { color: var(--fx-success, #34d399); }
.kpi-trend-down { color: var(--fx-danger, #ff5c7a); }
.kpi-trend-neutral { color: var(--fx-text-dim, #9696a3); }

.top-link-row {
    display: grid;
    /* A link neve/URL-je kapja a rugalmas teret - eddig fordítva volt (90px a
       névnek, 1fr a pusztán dekoratív sávnak), emiatt a link gyakorlatilag nem
       látszott, bármilyen széles is volt maga a kártya. */
    grid-template-columns: 1fr 100px 70px;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
}

.top-link-row:last-child { margin-bottom: 0; }

.top-link-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--fx-text, #fff);
}

.top-link-bar {
    height: 8px;
    background: var(--fx-panel-2, #202029);
    overflow: hidden;
}

.top-link-bar-fill {
    height: 100%;
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
}

.top-link-count {
    font-size: .78rem;
    color: var(--fx-text-dim, #9696a3);
    text-align: right;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
}

.status-row:last-of-type { border-bottom: none; }

.status-label {
    font-size: .82rem;
    color: var(--fx-text-dim, #9696a3);
}

.status-value {
    font-size: .88rem;
    font-weight: 600;
    color: var(--fx-text, #fff);
}

.badge-status {
    display: inline-block;
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.badge-status.is-published {
    background: rgba(52, 211, 153, .14);
    color: var(--fx-success, #34d399);
}

.badge-status.is-draft {
    background: rgba(150, 150, 163, .14);
    color: var(--fx-text-dim, #9696a3);
}

.badge-status.is-protected {
    background: rgba(122, 95, 255, .14);
    color: var(--fx-violet, #7a5fff);
}

.badge-status.is-missing {
    background: rgba(248, 113, 113, .14);
    color: var(--fx-danger, #f87171);
}

.badge-status.is-open {
    background: rgba(250, 204, 21, .14);
    color: var(--fx-warning, #facc15);
}

.badge-status.is-answered {
    background: rgba(52, 211, 153, .14);
    color: var(--fx-success, #34d399);
}

.badge-status.is-closed {
    background: rgba(150, 150, 163, .14);
    color: var(--fx-text-dim, #9696a3);
}

.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fx-violet, #7a5fff);
    margin-right: .4rem;
}

.ticket-message-card {
    margin-bottom: 1rem;
}

.ticket-message-card:last-child {
    margin-bottom: 0;
}

.ticket-message-card.is-staff {
    background: rgba(122, 95, 255, .06);
    border-color: var(--fx-violet, #7a5fff);
}

.ticket-message-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
    font-size: .85rem;
}

.ticket-message-body {
    white-space: pre-line;
}

.ticket-message-attachments {
    margin-top: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.attachment-link {
    font-size: .85rem;
}

.editor-ribbon-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    overflow: hidden;
    z-index: 20;
    pointer-events: none;
}

.editor-ribbon {
    position: absolute;
    top: 18px;
    left: -32px;
    width: 160px;
    padding: 5px 0;
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.editor-ribbon.is-draft {
    background: var(--fx-text-dim, #70707c);
}

.editor-ribbon.is-protected {
    background: var(--fx-violet, #7a5fff);
}

.editor-ribbon.is-inactive {
    background: var(--fx-danger, #f87171);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.qr-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-image {
    background: #fff;
    padding: 12px;
    margin-bottom: 1rem;
}

.qr-actions {
    display: flex;
    gap: .5rem;
}

.subscription-footnotes {
    margin-top: 2.5rem;
    width: 100%;
}

.subscription-footnotes p {
    margin-bottom: 2em;
    line-height: 1.7;
}

.subscription-footnotes p:last-child { margin-bottom: 0; }

.empty-state {
    padding: 3rem 1rem;
}

/*------------------------------------------------------------------
[Site editor v2: left Add/Design panel, right edit panel, mobile FABs]
Modal-alapú "Choose section" + per-szekció modalok helyett - lásd
views/website/design.php. A bal panel/FAB-ok desktop-vs-mobile
megjelenése a TÉNYLEGES viewport-szélességtől függ (media query lent),
nem kapcsolható manuálisan - azt a felhasználó kérése szerint semmilyen
gomb nem írhatja felül. A tetején, az iframe fölött középen lévő
"Desktop view" gomb egy MÁSIK dolog: az iframe-ben megjelenő publikus
oldal előnézetének szélességét váltja mobil (max-width 430px, alapértelmezett)
és asztali (max-width 1200px, .is-desktop-preview osztály) között - az ikon
és felirat nem változik kattintásra, csak egy is-active osztályt kap.
-------------------------------------------------------------------*/
.editor-shell { position: relative; }

.editor-preview-toolbar {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.editor-preview-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--fx-border-strong, rgba(255, 255, 255, .16));
    background: var(--fx-panel, #17171f);
    color: var(--fx-text-muted, #b4b4c0);
    border-radius: 50%;
    font-size: 14px;
}
.editor-preview-mode-btn:hover { border-color: var(--fx-violet, #7a5fff); color: var(--fx-text, #fff); }
.editor-preview-mode-btn.is-active {
    background: var(--fx-gradient-soft, rgba(122, 95, 255, .16));
    border-color: var(--fx-violet, #7a5fff);
    color: var(--fx-text, #fff);
}

.editor-body { display: flex; align-items: flex-start; gap: 20px; }

.editor-left-panel {
    position: relative;
    flex: 0 0 280px;
    width: 280px;
    background: var(--fx-panel, #17171f);
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    border-radius: var(--fx-radius-md, 12px);
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 14px;
}

.editor-left-panel-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--fx-panel-2, #1b1b22);
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--fx-text-muted, #b4b4c0);
    z-index: 10;
}
.editor-left-panel-close:hover { color: var(--fx-text, #fff); }

.editor-left-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.editor-tab-btn {
    flex: 1 1 0;
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    background: transparent;
    color: var(--fx-text-muted, #b4b4c0);
    border-radius: var(--fx-radius-sm, 8px);
    padding: 7px 0;
    font-size: 13px;
    font-weight: 600;
}
.editor-tab-btn.is-active { background: var(--fx-violet, #7a5fff); border-color: var(--fx-violet, #7a5fff); color: #fff; }

.editor-section-grid { display: flex; flex-direction: column; gap: 10px; }
.editor-section-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    border-radius: var(--fx-radius-sm, 8px);
    padding: 6px;
    background: var(--fx-panel-2, #1b1b22);
}
.editor-section-card.is-locked { opacity: .55; }
.editor-section-card-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--fx-bg, #0b0b0f); }
.editor-section-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-section-card-name { flex: 1 1 auto; font-size: 13px; color: var(--fx-text, #fff); }
.editor-section-add-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-section-add-btn:disabled { background: var(--fx-border-strong, rgba(255,255,255,.16)); color: var(--fx-text-dim, #70707c); }

.editor-panel-hint { font-size: 12px; color: var(--fx-text-muted, #b4b4c0); margin-bottom: 10px; }

/* Design (custom téma) panel: a bal panel csak 280px széles, ezért minden mező
   egy teljes sort kap (a config.json-ból kikerültek a col-6 értékek), és a
   tipográfia tömörebb, hogy a sok mező ne foglaljon ennyi helyet. */
#design-config-fields .accordion-body { padding: 8px 8px 2px; }
#design-config-fields .accordion-button { padding: 6px 10px; font-size: 12px; }
#design-config-fields .form-group { margin-bottom: 8px !important; }
#design-config-fields label { font-size: 11px; line-height: 1.3; margin-bottom: 2px; color: var(--fx-text-muted, #b4b4c0); }
#design-config-fields .field-description { font-size: 10px; line-height: 1.3; }
#design-config-fields .form-control,
#design-config-fields .form-select {
    font-size: 12px;
    padding: 4px 8px;
    min-height: 0;
    line-height: 1.4;
}
#design-config-fields .form-check-label { font-size: 11px; }

.editor-right-panel {
    position: fixed;
    top: 64px; /* a top navbar (min-height: 64px, master.css) alatt kezdődik */
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--fx-panel, #17171f);
    border-left: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    z-index: 1040;
    padding: 55px 20px 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
}
.editor-right-panel.is-open { transform: translateX(0); }
.editor-right-panel-resize-handle {
    position: absolute;
    top: 0;
    left: -4px;
    width: 8px;
    bottom: 0;
    cursor: ew-resize;
    z-index: 20;
}
.editor-right-panel-resize-handle:hover,
.editor-right-panel-resize-handle.is-dragging {
    background: var(--fx-violet, #7a5fff);
    opacity: .5;
}
@media (max-width: 991px) {
    .editor-right-panel-resize-handle { display: none; }
}
.editor-right-panel-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: var(--fx-panel-2, #1b1b22);
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--fx-text-muted, #b4b4c0);
    z-index: 10;
}
.editor-right-panel-close:hover { color: var(--fx-text, #fff); }
.editor-right-panel-actions { display: flex; gap: 8px; margin-top: 14px; }

.editor-fab {
    position: fixed;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    z-index: 1030;
}
.editor-fab-add { left: 24px; background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff)); }
.editor-fab-design { left: 88px; background: var(--fx-panel-2, #1b1b22); border: 1px solid var(--fx-border-strong, rgba(255,255,255,.16)); }
.editor-fab-publish {
    position: fixed;
    bottom: 24px;
    right: 24px;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    color: #fff;
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    z-index: 1030;
}

/* Design-publikálás utáni "Ready to go live?" dialog sikeres (QR-kódos) lépése,
   lásd views/website/design.php #publish-status-modal + editor.js. A .qr-image és
   .qr-actions a dashboard QR-kártyájával közös. */
.publish-status-done-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.publish-status-done-body .qr-image {
    margin-bottom: .75rem;
    border-radius: var(--fx-radius-sm, 8px);
}
.publish-status-link {
    font-size: .9rem;
    word-break: break-all;
    color: var(--fx-violet, #7a5fff);
}

/* Szekció-kártya kép hover-nagyítás (desktop) - fixed pozíciós, hogy a
   bal panel overflow-y:auto-ja ne vágja le. Mobilon nincs hover, ott a
   felhasználó ujjal nagyíthat a normál képen. */
.editor-hover-preview {
    display: none;
    position: fixed;
    width: 240px;
    border-radius: var(--fx-radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    border: 1px solid var(--fx-border-strong, rgba(255, 255, 255, .16));
    z-index: 2000;
    pointer-events: none;
}
.editor-hover-preview.is-visible { display: block; }
.editor-hover-preview img { width: 100%; display: block; }
/* A website/create sablon-választó csempéinek nagyított előnézete (400x600-as kép). */
.editor-hover-preview--template { width: 320px; }
.template-change .template-thumb { cursor: zoom-in; }

/* Admin szerkesztő-chrome (bal Add/Design panel vs. lebegő gombok): kizárólag
   a tényleges viewport-szélesség dönti el, semmilyen gomb nem írja felül. */
.editor-left-panel { display: none; }
.editor-fab { display: flex; }

@media (min-width: 992px) {
    .editor-left-panel {
        display: block;
        flex: 0 0 280px;
        width: 280px;
    }
    .editor-fab { display: none !important; }
}

@media (max-width: 991px) {
    .editor-body { display: block; }
    .editor-left-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85vw;
        max-width: 340px;
        max-height: none;
        border-radius: 0;
        z-index: 1040;
    }
    .editor-left-panel.is-open { display: block; }
    .editor-left-panel-close { display: flex; align-items: center; justify-content: center; }
    .editor-right-panel { width: 100vw; }
}


/* Az iframe (mobil nézetben csak max-width:670px, tehát ritkán tölti ki a teljes
   #editor-preview szélességet) mögötti terület világos szürke, teljes szélességű
   háttere - hogy a keskenyebb előnézet mellett ne a sötét admin-háttér lógjon ki alóla.
   Csak a canvas (ribbon+iframe) mögött van, a toolbar (mobil/desktop gombok) a
   #editor-preview saját sötét hátterén marad, mint korábban. */
.editor-preview-canvas {
    position: relative;
}
.editor-preview-backdrop {
    position: absolute;
    inset: 0;
    background: #e6e6eb;
    border-radius: inherit;
    z-index: 0;
}
#previewiframe {
    position: relative;
    z-index: 1;
}
.editor-ribbon-wrap {
    position: absolute;
    z-index: 2;
}

/* ------------------------------------------------------------------
   "Első lépések" onboarding checklist a szerkesztő tetején
   (views/website/design.php #editor-onboarding + editor.js initOnboarding).
   Egy sorban a lépések, mobilon vízszintesen görgethető.
------------------------------------------------------------------- */
.editor-onboarding {
    background: var(--fx-panel, #17171f);
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    border-radius: var(--fx-radius-md, 12px);
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    padding: 10px 14px 12px;
    margin-bottom: 12px;
    transition: opacity .3s ease, transform .3s ease;
}
.editor-onboarding.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}
.editor-onboarding.is-complete {
    border-color: var(--fx-success, #34d399);
    box-shadow: 0 0 0 1px var(--fx-success, #34d399), var(--fx-shadow-glow, 0 10px 40px rgba(52, 211, 153, .25));
}
.editor-onboarding-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.editor-onboarding-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--fx-text, #fff);
    white-space: nowrap;
}
.editor-onboarding-title i { color: var(--fx-violet, #7a5fff); margin-right: 4px; }
.editor-onboarding-progress {
    font-size: .8rem;
    color: var(--fx-text-muted, #b4b4c0);
    white-space: nowrap;
}
.editor-onboarding-bar {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 999px;
    background: var(--fx-border-strong, rgba(255, 255, 255, .16));
    overflow: hidden;
}
.editor-onboarding-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
    transition: width .4s ease;
}
.editor-onboarding-close {
    border: none;
    background: transparent;
    color: var(--fx-text-dim, #9696a3);
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}
.editor-onboarding-close:hover { color: var(--fx-text, #fff); }

.editor-onboarding-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.editor-onboarding-step {
    flex: 1 1 0;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--fx-radius-sm, 8px);
    border: 1px solid var(--fx-border, rgba(255, 255, 255, .1));
    background: var(--fx-panel-2, #1b1b22);
    color: var(--fx-text, #fff);
    font-size: .82rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.editor-onboarding-step:hover {
    border-color: var(--fx-violet, #7a5fff);
}
.editor-onboarding-check {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--fx-border-strong, rgba(255, 255, 255, .25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--fx-text-muted, #b4b4c0);
}
.editor-onboarding-check .bi-check-lg { display: none; }
.editor-onboarding-icon { color: var(--fx-text-dim, #9696a3); font-size: .95rem; }
.editor-onboarding-step.is-done {
    border-color: transparent;
    background: rgba(52, 211, 153, .08);
    color: var(--fx-text-muted, #b4b4c0);
}
.editor-onboarding-step.is-done .editor-onboarding-check {
    border-color: var(--fx-success, #34d399);
    background: var(--fx-success, #34d399);
    color: #0b1f17;
}
.editor-onboarding-step.is-done .editor-onboarding-check .bi-check-lg { display: inline; }
.editor-onboarding-step.is-done .editor-onboarding-nr { display: none; }
.editor-onboarding-step.is-done .editor-onboarding-label { text-decoration: line-through; opacity: .8; }
.editor-onboarding-step.is-done .editor-onboarding-icon { color: var(--fx-success, #34d399); }
.editor-onboarding-step.is-just-done {
    animation: onboardingPop .6s ease;
}
@keyframes onboardingPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); background: rgba(52, 211, 153, .25); }
    100% { transform: scale(1); }
}
.editor-onboarding-hint {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: var(--fx-radius-sm, 8px);
    background: rgba(122, 95, 255, .15);
    border: 1px solid var(--fx-violet, #7a5fff);
    color: var(--fx-text, #fff);
    font-size: .82rem;
}
/* A "Szekció hozzáadása" lépésre kattintva a bal panel első elérhető kártyája felvillan. */
.editor-section-card.is-highlighted {
    outline: 2px solid var(--fx-violet, #7a5fff);
    box-shadow: var(--fx-shadow-glow, 0 10px 40px rgba(180, 76, 255, .25));
}

/* Publish gomb: pulzálás, amíg van nem élesített módosítás (has-changes, lásd
   design.php + editor.js setPublishBadge). */
.editor-fab-publish { position: fixed; }
.editor-fab-publish.has-changes {
    animation: publishPulse 2s ease-in-out infinite;
}
@keyframes publishPulse {
    0%, 100% { box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45)), 0 0 0 0 rgba(180, 76, 255, .55); }
    50%      { box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45)), 0 0 0 10px rgba(180, 76, 255, 0); }
}
.editor-fab-publish.has-changes .publish-badge {
    animation: publishBadgeBlink 2s ease-in-out infinite;
}
@keyframes publishBadgeBlink {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

@media (max-width: 991px) {
    .editor-onboarding { padding: 8px 10px 10px; }
    /* Mobilon két oszlopba tördelve, nem vízszintes görgetéssel (az levágta a címkéket). */
    .editor-onboarding-steps { flex-wrap: wrap; overflow: visible; }
    .editor-onboarding-step { min-width: 0; flex: 1 1 45%; padding: 7px 8px; font-size: .78rem; }
    .editor-onboarding-icon { display: none; }
    .editor-onboarding-progress { display: none; }
}

/* Superadmin /stats: onboarding funnel táblázat (views/stats/index.php). */
.funnel-table .funnel-count { font-weight: 600; white-space: nowrap; }
.funnel-table .funnel-bar-cell { min-width: 140px; }
.funnel-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--fx-border-strong, rgba(255, 255, 255, .16));
    overflow: hidden;
    margin-bottom: 2px;
}
.funnel-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--fx-gradient, linear-gradient(90deg, #ff4fd8, #b44cff, #7a5fff));
}

/* Onboarding 2. kör: "Publikálj először" sor a checklistben, Bemutató gomb,
   sablon-szöveg jelvények a jobb panel formján, bemutató túra. */
.editor-onboarding-tour {
    border: 1px solid var(--fx-border-strong, rgba(255, 255, 255, .16));
    background: transparent;
    color: var(--fx-text-muted, #b4b4c0);
    border-radius: 999px;
    font-size: .75rem;
    padding: 2px 10px;
    white-space: nowrap;
    cursor: pointer;
}
.editor-onboarding-tour:hover { color: var(--fx-text, #fff); border-color: var(--fx-violet, #7a5fff); }
.editor-onboarding-publish-first {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: var(--fx-radius-sm, 8px);
    background: linear-gradient(90deg, rgba(255, 79, 216, .12), rgba(122, 95, 255, .12));
    border: 1px solid rgba(180, 76, 255, .4);
    font-size: .82rem;
    color: var(--fx-text, #fff);
}
.editor-onboarding-publish-first > i { color: #ff4fd8; font-size: 1.1rem; }
.editor-onboarding-publish-first > span { flex: 1 1 auto; }
.editor-onboarding-publish-first .btn { white-space: nowrap; }
@media (max-width: 991px) {
    .editor-onboarding-publish-first { flex-wrap: wrap; }
    .editor-onboarding-publish-first .btn { width: 100%; }
}

.template-placeholder-summary {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: var(--fx-radius-sm, 8px);
    background: rgba(243, 179, 47, .12);
    border: 1px solid rgba(243, 179, 47, .5);
    color: var(--fx-text, #fff);
    font-size: .8rem;
}
.template-placeholder-summary i { color: #f3b32f; }
.template-placeholder-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(243, 179, 47, .18);
    color: #f3b32f;
    font-size: .68rem;
    font-weight: 600;
    vertical-align: middle;
    cursor: help;
}

.publish-modal-footer { flex-wrap: wrap; gap: 6px; }
.publish-modal-footer .btn-link { text-decoration: underline; }

.editor-tour { position: fixed; inset: 0; z-index: 1060; }
.editor-tour-backdrop { position: absolute; inset: 0; }
.editor-tour-spot {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .65), 0 0 0 2px var(--fx-violet, #7a5fff), 0 0 24px rgba(122, 95, 255, .6);
    pointer-events: none;
    transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.editor-tour-pop {
    position: fixed;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: var(--fx-panel, #17171f);
    border: 1px solid var(--fx-border-strong, rgba(255, 255, 255, .16));
    border-radius: var(--fx-radius-md, 12px);
    box-shadow: var(--fx-shadow-md, 0 12px 32px rgba(0, 0, 0, .45));
    padding: 14px 16px;
    color: var(--fx-text, #fff);
    transition: top .25s ease, left .25s ease;
}
.editor-tour-step { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fx-text-dim, #9696a3); margin-bottom: 4px; }
.editor-tour-title { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.editor-tour-text { font-size: .84rem; color: var(--fx-text-muted, #b4b4c0); line-height: 1.45; }
.editor-tour-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
