/* =============================================================
   ZERONIQ HEADER BUILDER V3 — Admin CSS
   Pixel-accurate Pixfort/Conseil aesthetic
   ============================================================= */

/* ── Reset & Base ── */
.zvhb, .zvhb * { box-sizing: border-box; }
.zvhb button, .zvhb input, .zvhb select, .zvhb textarea { font-family: inherit; }

/* Hide WP chrome */
#zv-header-builder .postbox-header { display: none !important; }
#zv-header-builder .inside { padding: 0 !important; margin: 0 !important; }
#zv-header-builder { border: none !important; box-shadow: none !important; background: transparent !important; }
#poststuff #zv-header-builder { margin-top: 0; }

/* ── Root ── */
.zvhb {
    background: #1a1d24;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 8px;
    overflow: visible;
}

/* =============================================================
   TOPBAR
   ============================================================= */

.zvhb-topbar {
    height: 56px;
    background: #13151a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.zvhb-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.zvhb-topbar__logo-mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 22px;
    height: 22px;
}
.zvhb-topbar__logo-mark span {
    border-radius: 2px;
    background: #B4ED5F;
}
.zvhb-topbar__logo-mark span:nth-child(2) { background: #d4f7a0; }
.zvhb-topbar__logo-mark span:nth-child(3) { background: #6AA329; }
.zvhb-topbar__logo-mark span:nth-child(4) { background: #8B84EE; }

.zvhb-topbar__title strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.01em;
}
.zvhb-topbar__help {
    display: block;
    font-size: 0.72rem;
    color: #B4ED5F;
    text-decoration: none;
    margin-top: 1px;
}
.zvhb-topbar__help:hover { text-decoration: underline; color: #d4f7a0; }

/* Device tabs */
.zvhb-topbar__devices {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 4px;
}

.zvhb-device-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #8b949e;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s;
}
.zvhb-device-btn:hover { color: #e6edf3; background: rgba(255,255,255,0.05); }
.zvhb-device-btn.active { background: #21262d; color: #e6edf3; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* Right */
.zvhb-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.zvhb-topbar__preview {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #8b949e;
    cursor: pointer;
}

.zvhb-badge {
    background: #2ea043;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.zvhb-topbar__icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    color: #8b949e;
    transition: all 0.15s;
}
.zvhb-topbar__icon-btn:hover { color: #e6edf3; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }

/* =============================================================
   CANVAS  (areas)
   ============================================================= */

.zvhb-canvas {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Area ── */
.zvhb-area {
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: visible;
}

.zvhb-area__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
}

.zvhb-area__label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.zvhb-area__cols {
    display: flex;
    align-items: stretch;
    min-height: 72px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}

/* ── Column ── */
.zvhb-col {
    flex: 1 1 0;
    position: relative;
    min-height: 72px;
    border-right: 1px dashed rgba(255,255,255,0.06);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.zvhb-col:last-of-type { border-right: none; }

.zvhb-col__hover-actions {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    gap: 4px;
    z-index: 5;
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 3px;
}
.zvhb-col:hover .zvhb-col__hover-actions { display: flex; }

.zvhb-dropzone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}
.zvhb-dropzone.drag-over {
    background: rgba(108,99,255,0.08);
    outline: 2px dashed rgba(108,99,255,0.4);
    outline-offset: -2px;
}

/* Add column button */
.zvhb-add-col {
    width: 32px;
    flex-shrink: 0;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.1);
    border-left: none;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zvhb-add-col:hover {
    background: rgba(108,99,255,0.1);
    color: #d4f7a0;
    border-color: rgba(108,99,255,0.3);
}

/* ── Gear Buttons ── */
.zvhb-gear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    cursor: pointer;
    color: #8b949e;
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.15s;
}
.zvhb-gear-btn:hover { color: #e6edf3; background: rgba(255,255,255,0.08); }
.zvhb-gear-btn--sm { padding: 3px 7px; font-size: 0.7rem; }
.zvhb-gear-btn--danger:hover { color: #f85149; background: rgba(248,81,73,0.1); border-color: rgba(248,81,73,0.3); }
.zvhb-area-gear { padding: 4px 8px; }

/* ── Trash ── */
.zvhb-trash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1.5px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 0.78rem;
    margin-top: 4px;
    transition: all 0.15s;
    cursor: default;
}
.zvhb-trash.drag-over {
    border-color: #f85149;
    background: rgba(248,81,73,0.06);
    color: #f85149;
}

/* =============================================================
   PALETTE
   ============================================================= */

.zvhb-palette {
    padding: 16px;
    background: #13151a;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.zvhb-palette__group { margin-bottom: 14px; }

.zvhb-palette__group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 8px;
}

.zvhb-palette__items { display: flex; flex-wrap: wrap; gap: 6px; }

.zvhb-palette__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 5px;
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px;
    cursor: grab;
    color: #c9d1d9;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.15s;
    user-select: none;
}
.zvhb-palette__item:hover {
    background: #2d333b;
    border-color: rgba(255,255,255,0.12);
    color: #fff;
    transform: translateY(-1px);
}
.zvhb-palette__item:active { cursor: grabbing; opacity: 0.7; }

.zvhb-palette__footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 4px;
}

/* =============================================================
   PILLS (in dropzones)
   ============================================================= */

.zvhb-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: grab;
    transition: all 0.15s;
    position: relative;
}
.zvhb-pill:hover {
    background: #2d333b;
    border-color: rgba(108,99,255,0.3);
}
.zvhb-pill:active { cursor: grabbing; opacity: 0.6; }
.zvhb-pill.dragging { opacity: 0.3; }

.zvhb-pill__icon {
    width: 22px; height: 22px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
    color: #fff; flex-shrink: 0;
    font-family: monospace;
}

.zvhb-pill__label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #c9d1d9;
    white-space: nowrap;
}

.zvhb-pill__gear {
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    color: #6b7280; border-radius: 3px; padding: 0;
    opacity: 0; transition: all 0.1s;
}
.zvhb-pill:hover .zvhb-pill__gear { opacity: 1; }
.zvhb-pill__gear:hover { color: #d4f7a0; background: rgba(108,99,255,0.15); }

/* =============================================================
   GLOBAL SETTINGS SECTION
   ============================================================= */

.zvhb-global-section {
    padding: 20px 20px 4px;
    background: #1a1d24;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.zvhb-gs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 20px;
}
.zvhb-gs-row:last-child { border-bottom: none; }

.zvhb-gs-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #c9d1d9;
    line-height: 1.4;
}
.zvhb-gs-label small { display: block; color: #6b7280; font-weight: 400; font-size: 0.77rem; margin-top: 2px; }

.zvhb-gs-row--cards { align-items: flex-start; padding: 16px 0; }

/* Radio cards */
.zvhb-radio-cards { display: flex; gap: 10px; }

.zvhb-radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #8b949e;
}
.zvhb-radio-card input { display: none; }
.zvhb-radio-card__box {
    width: 72px; height: 48px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: #21262d;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.zvhb-radio-card__box--default { position: relative; }
.zvhb-radio-card__box--default::after {
    content: '';
    position: absolute;
    width: 44px; height: 100%;
    background: rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.08);
}
.zvhb-radio-card__box--default span {
    position: absolute;
    width: 2px; height: 70%;
    background: rgba(255,255,255,0.2);
}
.zvhb-radio-card__box--full {
    background: linear-gradient(90deg, rgba(108,99,255,0.15) 0%, rgba(168,156,255,0.1) 100%);
}

.zvhb-radio-card input:checked ~ .zvhb-radio-card__box {
    border-color: #B4ED5F;
    box-shadow: 0 0 0 2px rgba(108,99,255,0.25);
}

.zvhb-select-wrap { position: relative; }
.zvhb-select-wrap::after {
    content: '';
    position: absolute; right: 12px; top: 50%;
    width: 7px; height: 7px;
    border-right: 1.5px solid #6b7280;
    border-bottom: 1.5px solid #6b7280;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.zvhb-select {
    appearance: none;
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    color: #c9d1d9;
    font-size: 0.82rem;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    min-width: 200px;
}
.zvhb-select:focus { border-color: #B4ED5F; }

/* Toggle */
.zvhb-toggle { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.zvhb-toggle input { display: none; }
.zvhb-toggle__track {
    width: 40px; height: 22px;
    background: #30363d;
    border-radius: 11px;
    position: relative;
    transition: background 0.2s;
}
.zvhb-toggle__thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: #8b949e;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}
.zvhb-toggle input:checked + .zvhb-toggle__track { background: #B4ED5F; }
.zvhb-toggle input:checked + .zvhb-toggle__track .zvhb-toggle__thumb { transform: translateX(18px); background: #fff; }

/* =============================================================
   MODAL
   ============================================================= */

.zvhb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
}

.zvhb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    max-width: 95vw;
    max-height: 90vh;
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.zvhb-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: #1c2128;
    flex-shrink: 0;
}
.zvhb-modal__head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #e6edf3; }

.zvhb-modal__close {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: #8b949e;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.15s;
}
.zvhb-modal__close:hover { color: #e6edf3; background: rgba(255,255,255,0.1); }

/* Modal tabs */
.zvhb-modal__tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: #161b22;
    flex-shrink: 0;
}
.zvhb-modal-tab {
    height: 40px;
    padding: 0 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #8b949e;
    margin-bottom: -1px;
    transition: all 0.15s;
    font-family: inherit;
}
.zvhb-modal-tab:hover { color: #e6edf3; }
.zvhb-modal-tab.active { color: #d4f7a0; border-bottom-color: #B4ED5F; }

/* Modal body */
.zvhb-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}
.zvhb-modal__body::-webkit-scrollbar { width: 4px; }
.zvhb-modal__body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }

/* Modal footer */
.zvhb-modal__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #1c2128;
    flex-shrink: 0;
}

/* Modal form rows */
.zvhb-mf-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.zvhb-mf-row:last-child { border-bottom: none; }

.zvhb-mf-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    padding: 16px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 4px;
}

.zvhb-mf-label {
    font-size: 0.82rem;
    color: #8b949e;
    font-weight: 500;
    line-height: 1.4;
}
.zvhb-mf-label small { display: block; font-size: 0.72rem; color: #6b7280; margin-top: 2px; }

.zvhb-mf-row--full { grid-template-columns: 1fr; gap: 6px; }
.zvhb-mf-row--toggle { grid-template-columns: 1fr auto; }

/* Form inputs */
.zvhb-input, .zvhb-select-m, .zvhb-textarea {
    width: 100%;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e6edf3;
    font-size: 0.82rem;
    padding: 7px 10px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}
.zvhb-input:focus, .zvhb-select-m:focus, .zvhb-textarea:focus { border-color: #B4ED5F; box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.zvhb-textarea { min-height: 80px; resize: vertical; font-family: monospace; }

.zvhb-input-group {
    display: flex;
    align-items: stretch;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.zvhb-input-group:focus-within { border-color: #B4ED5F; }
.zvhb-input-group .zvhb-input { border: none; border-radius: 0; }
.zvhb-input-group__suffix {
    padding: 0 10px;
    display: flex; align-items: center;
    font-size: 0.72rem; color: #6b7280;
    background: rgba(255,255,255,0.03);
    border-left: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

/* Select in modal */
.zvhb-mf-select-wrap { position: relative; }
.zvhb-mf-select-wrap::after {
    content: '';
    position: absolute; right: 10px; top: 50%;
    width: 6px; height: 6px;
    border-right: 1.5px solid #6b7280; border-bottom: 1.5px solid #6b7280;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.zvhb-select-m { appearance: none; padding-right: 28px; cursor: pointer; }

/* Color picker in modal */
.zvhb-modal__body .wp-picker-container { display: flex; align-items: center; gap: 8px; }
.zvhb-modal__body .wp-color-result {
    border-radius: 6px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: #0d1117 !important;
    box-shadow: none !important;
    height: 32px !important;
}
.zvhb-modal__body .wp-color-result-text { color: #8b949e !important; font-size: 0.78rem !important; }
.zvhb-modal__body .wp-color-result:hover { border-color: #B4ED5F !important; }

/* Alignment selector */
.zvhb-align-btns { display: flex; gap: 4px; }
.zvhb-align-btn {
    width: 36px; height: 32px;
    display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 3px;
    background: #21262d;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0 6px;
    box-sizing: border-box;
}
.zvhb-align-btn span {
    display: block; height: 2px; background: #6b7280; border-radius: 1px; transition: background 0.1s;
}
/* start / left */
.zvhb-align-btn[data-val="start"] span:nth-child(1) { width: 100%; }
.zvhb-align-btn[data-val="start"] span:nth-child(2) { width: 55%; }
.zvhb-align-btn[data-val="start"] span:nth-child(3) { width: 75%; }
/* center */
.zvhb-align-btn[data-val="center"] span:nth-child(1) { width: 100%; }
.zvhb-align-btn[data-val="center"] span:nth-child(2) { width: 55%; margin: 0 auto; }
.zvhb-align-btn[data-val="center"] span:nth-child(3) { width: 75%; margin: 0 auto; }
/* end / right */
.zvhb-align-btn[data-val="end"] span:nth-child(1) { width: 100%; margin-left: auto; }
.zvhb-align-btn[data-val="end"] span:nth-child(2) { width: 55%; margin-left: auto; }
.zvhb-align-btn[data-val="end"] span:nth-child(3) { width: 75%; margin-left: auto; }
/* between / justify */
.zvhb-align-btn[data-val="between"] span:nth-child(1) { width: 100%; }
.zvhb-align-btn[data-val="between"] span:nth-child(2) { width: 40%; }
.zvhb-align-btn[data-val="between"] span:nth-child(3) { width: 40%; margin-left: auto; }
.zvhb-align-btn:hover, .zvhb-align-btn.active { border-color: #B4ED5F; background: rgba(108,99,255,0.1); }
.zvhb-align-btn:hover span, .zvhb-align-btn.active span { background: #d4f7a0; }

/* Size selector */
.zvhb-size-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.zvhb-size-btn {
    height: 28px; padding: 0 12px;
    background: #21262d;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #8b949e;
    transition: all 0.15s;
    font-family: inherit;
}
.zvhb-size-btn:hover, .zvhb-size-btn.active { border-color: #B4ED5F; color: #d4f7a0; background: rgba(108,99,255,0.1); }

/* Media picker in modal */
.zvhb-media-picker { display: flex; flex-direction: column; gap: 8px; }
.zvhb-media-preview { border-radius: 8px; overflow: hidden; max-width: 200px; }
.zvhb-media-preview img { display: block; max-width: 100%; height: auto; }
.zvhb-media-preview:empty { display: none; }
.zvhb-media-btn-row { display: flex; gap: 6px; }

/* Buttons */
.zvhb-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 16px;
    border-radius: 7px; border: 1px solid transparent;
    cursor: pointer; font-size: 0.82rem; font-weight: 600;
    transition: all 0.15s; font-family: inherit;
}
.zvhb-btn--primary { background: #B4ED5F; color: #fff; border-color: #B4ED5F; }
.zvhb-btn--primary:hover { background: #5850e0; }
.zvhb-btn--ghost { background: #21262d; color: #c9d1d9; border-color: rgba(255,255,255,0.1); }
.zvhb-btn--ghost:hover { border-color: rgba(255,255,255,0.2); color: #e6edf3; }
.zvhb-btn--sm { height: 28px; padding: 0 10px; font-size: 0.75rem; border-radius: 5px; }

/* =============================================================
   FRONTEND HEADER
   ============================================================= */

.zvhb-fe {
    position: relative;
    width: 100%;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.zvhb-fe a, .zvhb-fe button { cursor: pointer; }
.zvhb-fe--sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.zvhb-fe--shadow { box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.15); }
.zvhb-fe--scrolled { background: var(--zvhb-sticky-bg) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Transparent header — sits over hero, becomes solid on scroll */
.zvhb-fe--transparent { background: transparent !important; }
.zvhb-fe--transparent.zvhb-fe--scrolled { background: var(--zvhb-sticky-bg) !important; }
.zvhb-fe--scrolled.zvhb-fe--shadow { box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.08); }
.zvhb-fe--hidden { transform: translateY(-100%); }

.zvhb-fe-area { width: 100%; }
.zvhb-fe-inner { margin: 0 auto; display: flex; align-items: center; }

.zvhb-fe-logo { display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; flex: 0 0 auto; width: auto; }
.zvhb-fe-logo .zvhb-fe-logo__img { height: var(--lh, 40px); width: auto; display: block; flex-shrink: 0; max-width: none; }
.zvhb-fe-logo__text { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.04em; color: inherit; display: flex; align-items: center; }
.zvhb-logo-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg,#B4ED5F,#d4f7a0); margin-left: 3px; }






.zvhb-fe-btn { display: inline-flex; align-items: center; text-decoration: none; transition: all 0.25s ease; font-family: inherit; line-height: 1.2; }
.zvhb-fe-btn:hover { background: var(--hbg) !important; color: var(--htc) !important; transform: translateY(-1px); }

.zvhb-fe-search { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; border-radius: 50%; color: rgba(255,255,255,0.7); transition: color 0.18s, background 0.18s; }
.zvhb-fe-search:hover { color: var(--zv-search-hover, #fff); background: rgba(255,255,255,0.1); }

/* ── Inline / Expand Search ───────────────────────────────── */
.zvhb-fe-search-expand { position: relative; }
.zvhb-fe-search-expand__btn { border-radius: 50%; transition: color 0.18s, background 0.18s, opacity 0.25s; }
.zvhb-fe-search-expand__btn:hover { color: var(--zv-search-hover, #fff) !important; background: rgba(255,255,255,0.1); }
/* When expanded: hide the trigger icon, field lupe takes over visually */
.zvhb-fe-search-expand.is-open .zvhb-fe-search-expand__btn { opacity: 0; pointer-events: none; width: 0; padding: 0; }
.zvhb-fe-search-expand__field { display: flex; align-items: center; }
.zvhb-fe-search-expand__field form input::placeholder { opacity: 0.4; }
.zvhb-fe-search-expand__field form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.zvhb-fe-search-bar form { box-sizing: border-box; }
.zvhb-fe-search-bar form:focus-within { border-color: var(--zv-search-accent, #B4ED5F) !important; }
.zvhb-fe-search-bar form input::placeholder { opacity: 0.4; }
.zvhb-fe-search-bar form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.zvhb-fe-phone { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 0.85rem; transition: opacity 0.2s; }
.zvhb-fe-phone:hover { opacity: 0.8; }
.zvhb-fe-link { text-decoration: none; font-size: 0.875rem; transition: opacity 0.2s; }
.zvhb-fe-link:hover { opacity: 0.75; }

.zvhb-fe-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.zvhb-fe-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.3s ease; }
@media (max-width: 1024px) { .zvhb-fe-menu { display: none; } .zvhb-fe-toggle { display: flex; } }

body.zvhb-has-sticky { padding-top: var(--zvhb-h, 80px); }
/* ══════════════════════════════════════════════════════════
   COMPLETE FIX: Admin builder layout
   ══════════════════════════════════════════════════════════ */

/* Remove ALL WP chrome overflow restrictions on zv_header pages */
body.post-type-zv_header,
body.post-type-zv_header #wpbody,
body.post-type-zv_header #wpbody-content,
body.post-type-zv_header #wpcontent,
body.post-type-zv_header #poststuff,
body.post-type-zv_header #post-body,
body.post-type-zv_header #post-body-content,
body.post-type-zv_header .metabox-holder,
body.post-type-zv_header #postdivrich,
body.post-type-zv_header #zv-header-builder,
body.post-type-zv_header .postbox,
body.post-type-zv_header .postbox .inside {
    overflow: visible !important;
}

/* Kill WP's default poststuff padding */
body.post-type-zv_header #poststuff {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove WP title/header above our builder */
body.post-type-zv_header #titlediv,
body.post-type-zv_header #titlewrap {
    display: none !important;
}

/* Make sure no double gap from postbox chrome */
body.post-type-zv_header #zv-header-builder,
body.post-type-zv_header .postbox {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}

body.post-type-zv_header #zv-header-builder .postbox-header {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.post-type-zv_header #zv-header-builder .inside {
    padding: 0 !important;
    margin: 0 !important;
}

/* Topbar sticky: always top:0 — WP #wpcontent starts below admin bar */
.zvhb-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

/* Remove left padding WP adds on post edit pages */
body.post-type-zv_header #wpcontent {
    padding-left: 0 !important;
}

body.post-type-zv_header .wrap,
body.post-type-zv_header h1.wp-heading-inline {
    margin-left: 0;
}

/* ══════════════════════════════════════════════════════════
   FIX: Frontend header — remove double spacing
   ══════════════════════════════════════════════════════════ */

/* No gap before the header */
.zvhb-fe {
    margin: 0 !important;
    padding: 0 !important;
}

.zvhb-fe-area {
    margin: 0 !important;
}

/* body padding-top only when header is sticky */
body.zvhb-has-sticky {
    padding-top: var(--zvhb-h, 80px) !important;
}

/* When WP admin bar present, account for 32px */
.admin-bar .zvhb-fe--sticky {
    top: 32px !important;
}

/* ══════════════════════════════════════════════════════════
   Modal and overlay z-index (above WP)
   ══════════════════════════════════════════════════════════ */
.zvhb-overlay { z-index: 100100 !important; }
.zvhb-modal   { z-index: 100101 !important; }

.zvhb-fe {
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

.zvhb-fe-area {
    line-height: 1 !important;
    font-size: 0 !important; /* Collapse whitespace */
}

.zvhb-fe-inner {
    font-size: 14px !important; /* Restore for content */
}

/* Flex items must be allowed to shrink below their intrinsic content width,
   otherwise a wide menu forces the inner container to overflow its max-width
   and horizontal centering visibly breaks (logo drifts off-centre). min-width:0
   is the canonical fix. Columns still respect their configured flex sizing. */
.zvhb-fe-col {
    min-width: 0;
}

/* ── Mobile logo switching ── */
.zvhb-fe-logo { --lh: 40px; --lh-m: 40px; }
.zvhb-fe-logo .zvhb-fe-logo__img { height: var(--lh); width: auto; flex-shrink: 0; max-width: none; }
/* Dark/Light logo visibility is handled centrally by the dark-mode CSS in
   zeroniq-core (.zvhb-logo--default vs .zvhb-logo--light on html[data-theme]).
   Here we only size them; the light logo is hidden by default via that system. */
.zvhb-fe-logo .zvhb-logo--light { display: none; }

@media (max-width: 1024px) {
    .zvhb-fe-logo .zvhb-fe-logo__img { height: var(--lh-m); }
}

/* ══════════════════════════════════════════════════════════
   BUG 2 FIX: Button animations
   ══════════════════════════════════════════════════════════ */

@keyframes zvhb-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108,99,255,0.4); }
    50%       { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(108,99,255,0); }
}

@keyframes zvhb-glow {
    0%, 100% { box-shadow: 0 0 8px 2px rgba(108,99,255,0.5); }
    50%       { box-shadow: 0 0 20px 6px rgba(108,99,255,0.8); }
}

@keyframes zvhb-shake {
    0%,100%  { transform: translateX(0); }
    20%,60%  { transform: translateX(-3px); }
    40%,80%  { transform: translateX(3px); }
}

/* Applied via PHP class on the <a> element */
.zvhb-fe-btn.zvhb-anim-pulse  { animation: zvhb-pulse 2s ease-in-out infinite; }
.zvhb-fe-btn.zvhb-anim-glow   { animation: zvhb-glow  2s ease-in-out infinite; }
.zvhb-fe-btn:hover.zvhb-anim-shake { animation: zvhb-shake 0.4s ease; }
.zvhb-fe-btn.zvhb-anim-fade   { opacity: 0; animation: fadeIn 0.6s ease forwards 0.3s; }

@keyframes fadeIn { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════
   MOBILE DRAWER  — slide-in from right
   ══════════════════════════════════════════════════════════ */

/* Drawer panel */
#zvhb-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 90vw);
    height: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 40px rgba(0,0,0,0.18);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#zvhb-mobile-drawer.is-open {
    right: 0;
}

/* Overlay */
.zvhb-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.zvhb-mobile-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

/* Body lock when drawer open */
body.zvhb-drawer-open {
    overflow: hidden;
}

/* Drawer header */
.zvhb-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f5;
    flex-shrink: 0;
    min-height: 72px;
}

.zvhb-drawer__logo img {
    height: 36px;
    width: auto;
    display: block;
}
.zvhb-drawer__logo .zvhb-fe-logo__text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1A1A2E;
}

.zvhb-drawer__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #1A1A2E;
    flex-shrink: 0;
    transition: background 0.15s;
}
.zvhb-drawer__close:hover { background: #ebebf2; }

/* Drawer nav */
.zvhb-drawer__nav {
    padding: 12px 0 40px;
    flex: 1;
}

/* Menu items */
.zvhb-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zvhb-drawer-menu li {
    border-bottom: 1px solid #f0f0f5;
    margin: 0;
    padding: 0;
}

.zvhb-drawer-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A2E;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.zvhb-drawer-menu > li > a:hover { color: #B4ED5F; background: #fafaff; }
.zvhb-drawer-menu > li.current-menu-item > a { color: #B4ED5F; }

/* Dropdown indicator */
.zvhb-drawer-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9999BB;
    border-bottom: 2px solid #9999BB;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.zvhb-drawer-menu .menu-item-has-children.is-open > a::after {
    transform: rotate(225deg) translateY(-2px);
}

/* Sub-menu accordion */
.zvhb-drawer-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafaff;
}

.zvhb-drawer-menu .sub-menu li { border-bottom: none; }
.zvhb-drawer-menu .sub-menu li:last-child { border-bottom: 1px solid #f0f0f5; }

.zvhb-drawer-menu .sub-menu a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}
.zvhb-drawer-menu .sub-menu a:hover { color: #B4ED5F; }

/* ── Hamburger button (in header) ── */
.zvhb-fe-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}
.zvhb-fe-toggle:hover { background: rgba(255,255,255,0.08); }
.zvhb-fe-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

@media (max-width: 1024px) {
    .zvhb-fe-menu   { display: none !important; }
    .zvhb-fe-toggle { display: flex !important; }
}

/* ── Mobile Builder Panel ── */
#zvhb-mobile-panel {
    background: #0D1117;
    min-height: 500px;
}

.zvhb-mobile-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
}
.zvhb-mobile-panel__title {
    font-size: .875rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 2px;
}
.zvhb-mobile-panel__sub {
    font-size: .75rem;
    color: #6b7280;
}

.zvhb-mobile-areas { padding: 12px 16px 4px; }
.zvhb-mobile-area  { margin-bottom: 8px; }

/* Mobile palette sits below areas */
.zvhb-mob-palette {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}

/* Mobile dropzone same as desktop */
.zvhb-mob-dropzone { min-height: 50px; }

/* Mobile settings section */
.zvhb-mob-settings {
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Mobile column del button */
.zvhb-mob-col-del { color: #f85149 !important; }

/* ── Color picker: swatch div + text input ── */
.zvhb-color-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.zvhb-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.15);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.1s;
    background: #000;
}
.zvhb-color-swatch:hover {
    border-color: #B4ED5F;
    transform: scale(1.08);
}

.zvhb-color-text {
    flex: 1;
    font-family: 'Monaco', 'Menlo', monospace !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Desktop/Mobile column switching ── */
.zvhb-fe-inner.zvhb-mobile-only  { display: none; }
.zvhb-fe-inner.zvhb-desktop-only { display: flex; }

@media (max-width: 1024px) {
    .zvhb-fe-inner.zvhb-desktop-only { display: none !important; }
    .zvhb-fe-inner.zvhb-mobile-only  { display: flex !important; }
}

/* Area-level hide classes */
.zvhb-fe-area.zvhb-hide-tablet { display: block; }
.zvhb-fe-area.zvhb-hide-mobile { display: block; }

@media (max-width: 1024px) {
    .zvhb-fe-area.zvhb-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .zvhb-fe-area.zvhb-hide-mobile { display: none !important; }
}

/* ── Builder info notice ── */
.zvhb-notice {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .78rem;
    line-height: 1.5;
    margin: 4px 0 8px;
}
.zvhb-notice--info {
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.25);
    color: #d4f7a0;
}
.zvhb-notice--info strong { color: #c4bbff; }

/* ── Social icons hover ── */
.zvhb-fe-social__link:hover { color: var(--social-h, #ffffff) !important; }

/* ── Search overlay ── */
/* ── Search Overlay ── */
#zvhb-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(.16,1,.3,1);
    /* bg/blur set via JS from element settings */
}
#zvhb-search-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
#zvhb-search-overlay .zvhb-search-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.zvhb-search-box {
    position: relative;
    z-index: 1;
    width: min(700px, 92vw);
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}
#zvhb-search-overlay.is-open .zvhb-search-box {
    transform: translateY(0);
}
.zvhb-search-hint {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    font-size: .78rem;
    opacity: 0.4;
    transition: opacity 0.3s;
    font-family: inherit;
}
.zvhb-search-box form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 6px 6px 6px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.zvhb-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1.5rem;
    padding: 12px 0;
    font-family: inherit;
    /* color set via JS */
}
.zvhb-search-submit {
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    transition: background 0.15s;
    color: inherit;
    flex-shrink: 0;
}
.zvhb-search-submit:hover { background: rgba(255,255,255,0.2); }
.zvhb-search-close {
    position: absolute;
    top: -52px;
    right: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    color: rgba(255,255,255,0.7);
}
.zvhb-search-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Mega Bar Template ─────────────────────────────────────────── */
/* Top meta strip — mono uppercase, dim */
.zvhb-fe--mega-bar .zvhb-fe-area:first-child {
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
/* Main bar nav — bottom-border active indicator */
/* Mega panel — full-width drop */
.zvhb-mega-panel {
    position: fixed; left: 0; right: 0;
    background: var(--mega-bg, #0A0B0F);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
    z-index: 999;
    opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
    overflow: visible;
}
.zvhb-mega-panel.is-open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
/* Content-width variant — left/right set entirely by JS */
.zvhb-mega-panel--content {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
}
.zvhb-mega-panel--content .zvhb-mega-panel__inner {
    max-width: none;
    padding: 10px;
}
.zvhb-mega-panel__inner {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    max-width: 1280px; margin: 0 auto;
    padding: 16px 24px 20px;
    overflow: visible;
    position: relative;
}
.zvhb-mega-col {
    overflow: visible;
    position: relative;
    flex: 0 0 auto;          /* don't stretch — natural width only */
    min-width: 160px;
    max-width: 220px;
}
/* Column label */
.zvhb-mega-col__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
/* Mega item links */
.zvhb-mega-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    text-decoration: none;
    color: var(--mega-item-c, rgba(255,255,255,.82));
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s, padding-left .15s;
    cursor: pointer;
    width: 100%;
    min-width: 140px;
    border-left: 2px solid transparent;
}
.zvhb-mega-item:hover {
    background: var(--mega-item-hbg, rgba(255,255,255,.07));
    color: var(--mega-item-hc, #ffffff);
    border-left-color: var(--mega-accent, #B4ED5F);
    padding-left: 14px;
}
.zvhb-mega-item-arrow {
    opacity: 0.3;
    transform: translateX(0);
    transition: opacity .15s, transform .15s;
    color: var(--mega-accent, #B4ED5F);
    flex-shrink: 0;
    margin-left: auto;
}
.zvhb-mega-item:hover .zvhb-mega-item-arrow {
    opacity: 1;
    transform: translateX(3px);
}
/* Highlight tile (4th column) */
.zvhb-mega-highlight {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 22px;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 160px; text-decoration: none; color: var(--paper, #F7F5F0);
    transition: background .25s, border-color .25s, transform .25s;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}
.zvhb-mega-highlight:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
    transform: translateY(-2px);
}
.zvhb-mega-highlight__badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--mega-accent, #B4ED5F);
}
.zvhb-mega-highlight__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 20px;
    line-height: 1.15; letter-spacing: -.02em;
    color: #F7F5F0;
}

/* ── Mega Panel Sub-Panel (3rd level) ─────────────────────────── */
.zvhb-mega-item-wrap {
    position: relative;
    display: block;
    overflow: visible;
}

.zvhb-mega-item--has-sub .zvhb-mega-item-arrow {
    margin-left: auto; opacity: 1;
    transition: transform .2s ease;
}
.zvhb-mega-item-wrap.zvhb-mega-item--has-sub:hover > .zvhb-mega-item .zvhb-mega-item-arrow {
    transform: rotate(90deg);
}
.zvhb-mega-subpanel {
    position: absolute;
    left: 0; top: 100%;   /* opens below the parent item */
    min-width: 180px;
    background: var(--mega-subpanel-bg, color-mix(in srgb, var(--mega-bg, #0A0B0F) 60%, black));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 32px -10px rgba(0,0,0,.7);
    opacity: 0; pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 1001;
    white-space: nowrap;
}
.zvhb-mega-item-wrap:hover .zvhb-mega-subpanel,
.zvhb-mega-subpanel.is-open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.zvhb-mega-subpanel a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 7px;
    text-decoration: none; color: var(--mega-item-c, rgba(255,255,255,.75));
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    transition: background .15s, color .15s; cursor: pointer;
}
.zvhb-mega-subpanel a:hover {
    background: var(--mega-item-hbg, rgba(255,255,255,.07)); color: var(--mega-item-hc, #fff);
}
.zvhb-mega-subpanel a .zvhb-mega-item-arrow {
    opacity: 0; transform: translateX(-3px);
    transition: opacity .15s, transform .15s;
    color: var(--mega-accent, #B4ED5F); flex-shrink: 0; margin-left: auto;
}
.zvhb-mega-subpanel a:hover .zvhb-mega-item-arrow {
    opacity: 1; transform: translateX(0);
}



/* ════════════════════════════════════════════════════════════════
   ZERONIQ HEADER NAV — single source of truth, no !important needed
   ════════════════════════════════════════════════════════════════ */

/* ── Hard reset: prevent theme styles bleeding in ── */
.zvhb-fe-nav-wrap, .zvhb-fe-nav-wrap nav, .zvhb-fe-nav {
    background: none; border: none; margin: 0; padding: 0; box-shadow: none;
}
.zvhb-fe-nav        { display: flex; align-items: center; gap: 2px; list-style: none; }
.zvhb-fe-nav li     { border: none; margin: 0; padding: 0; list-style: none; background: none; }

/* ── Top-level items ── */
.zvhb-fe-nav > li { position: relative; }
.zvhb-fe-nav > li > a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0 18px;
    height: 100%; min-height: 52px; /* fills area height in mega-bar */
    color: var(--nav-c, rgba(255,255,255,0.85));
    font-size: var(--nav-fs, 0.9rem); font-weight: var(--nav-fw, 500);
    white-space: nowrap; text-decoration: none; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    border-radius: 0;
    background: transparent;
}
.zvhb-fe-nav > li > a:hover,
.zvhb-fe-nav > li:hover > a {
    color: var(--nav-hc, #fff);
    border-bottom-color: var(--mega-accent, #B4ED5F);
    background: var(--nav-hbg, transparent);
}

/* ── Caret ── */
.zvhb-nc { opacity: .5; flex-shrink: 0; transition: transform .2s, opacity .2s, margin-left .2s; }
.zvhb-fe-nav > li:hover > a .zvhb-nc { opacity: .9; margin-left: 4px; }
.zvhb-fe-nav > li.is-open > a .zvhb-nc { opacity: 1; color: var(--mega-accent, #B4ED5F); margin-left: 4px; }
.zvhb-dd a .zvhb-nc { transform: none; opacity: .5; }

/* ── Dropdown base — shared by both levels ── */
.zvhb-dd {
    position: absolute;
    min-width: 210px;
    background: var(--dd-bg, #0F1117);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 8px;
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
    z-index: 9999;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,.85);
}

/* ── Level 1: below top nav item ── */
.zvhb-fe-nav > li > .zvhb-dd {
    top: calc(100% + 6px);   /* 6px visual gap */
    left: 50%;
    transform: translateX(-50%);
}
/* Transparent pseudo-element bridges the 6px gap so hover never breaks */
.zvhb-fe-nav > li > .zvhb-dd::before {
    content: '';
    position: absolute;
    bottom: 100%; left: 0; right: 0;
    height: 8px;             /* covers the gap + a little extra */
}
.zvhb-fe-nav > li:hover > .zvhb-dd,
.zvhb-fe-nav > li:focus-within > .zvhb-dd {
    opacity: 1; visibility: visible; pointer-events: all;
}
/* Right-edge items: flip dropdown to align right instead of center */
.zvhb-fe-nav > li:last-child > .zvhb-dd,
.zvhb-fe-nav > li:nth-last-child(2) > .zvhb-dd {
    left: auto;
    right: 0;
    transform: none;
}
.zvhb-fe-nav > li:last-child > .zvhb-dd::before,
.zvhb-fe-nav > li:nth-last-child(2) > .zvhb-dd::before {
    right: 0; left: auto; width: 100%;  /* reset bridge for right-aligned */
}

/* ── Dropdown items ── */
.zvhb-dd li { position: relative; }
.zvhb-dd a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 12px;
    color: var(--dd-c, rgba(255,255,255,.75));
    font-size: 13.5px; font-weight: 500; font-family: 'Inter', sans-serif;
    border-radius: 7px; white-space: nowrap; text-decoration: none;
    transition: background .15s, color .15s;
}
.zvhb-dd a:hover { background: var(--dd-hbg, rgba(255,255,255,.07)); color: var(--dd-hc, #fff); }

/* ── Level 2: to the right of a nested item ── */
.zvhb-dd > li > .zvhb-dd {
    top: -8px;
    left: calc(100% + 6px);  /* 6px visual gap */
    transform: none;
    background: color-mix(in srgb, var(--dd-bg, #0F1117) 80%, black);
    border-color: rgba(255,255,255,.08);
}
/* Transparent pseudo-element bridges the 6px gap */
.zvhb-dd > li > .zvhb-dd::before {
    content: '';
    position: absolute;
    right: 100%; top: 0; bottom: 0;
    width: 8px;
}
.zvhb-dd > li:hover > .zvhb-dd,
.zvhb-dd > li:focus-within > .zvhb-dd {
    opacity: 1; visibility: visible; pointer-events: all;
}

/* ── Suppress mega-trigger's own dropdown ── */
.zvhb-fe--mega-bar .zvhb-fe-nav > li.zvhb-mega-trigger > .zvhb-dd { display: none; }

/* ── Suppress theme caret ── */
.zvhb-fe-nav li > a::before { display: none; }


/* ── Color Picker Popup ─────────────────────────────────── */
.zvhb-color-popup {
    position: fixed;
    background: #1a1d24;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 12px;
    width: 240px;
    box-shadow: 0 16px 40px -8px rgba(0,0,0,.8);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 99999;
}
.zvhb-cp-row {
    display: flex; align-items: center; gap: 6px;
}
.zvhb-cp-row label {
    font-size: 10px; opacity: .5;
    letter-spacing: .06em; text-transform: uppercase;
    min-width: 30px; color: #fff;
}
.zvhb-cp-native {
    width: 32px; height: 28px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px; padding: 2px;
    background: none; cursor: pointer; flex-shrink: 0;
}
.zvhb-cp-native::-webkit-color-swatch-wrapper { padding: 0; }
.zvhb-cp-native::-webkit-color-swatch { border-radius: 4px; border: none; }
.zvhb-cp-alpha {
    -webkit-appearance: none; appearance: none;
    flex: 1; height: 4px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(128,128,128,.3), #fff);
    outline: none; cursor: pointer;
}
.zvhb-cp-alpha::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid #1a1d24;
    box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: pointer;
}
/* ── Mobile Bar ──────────────────────────────────────────── */
.zv-mob-bar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    align-items: center; justify-content: space-between;
    padding: 0 16px;
    height: 60px;
    background: var(--ink-2, #15171D);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.zv-mob-bar__logo { display: flex; align-items: center; }
.zv-mob-bar__logo img { height: 32px; width: auto; display: block; }
.zv-mob-bar__logo .zvhb-fe-logo__text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 17px; color: var(--paper, #F7F5F0); text-decoration: none; }
.zv-mob-bar__right { display: flex; align-items: center; gap: 8px; }
.zv-mob-bar__cta { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-btn, 999px); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.zv-mob-bar__toggle { color: var(--paper, #F7F5F0); }

/* ── Fullscreen close button ─────────────────────────────── */
.zv-mnav-fs__close {
    position: static;
    color: var(--zv-mnav-fg, #F7F5F0);
    align-self: center;
    flex-shrink: 0;
    width: 40px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mobile Top Bar ──────────────────────────────────────── */
.zv-mob-topbar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 10001;
    box-sizing: border-box;
}
/* Show mob-topbar only on mobile AND only when no desktop header row covers the same area */
@media (max-width: 1024px) {
    .zv-mob-topbar { display: flex !important; }
    /* Push mobile bar below top bar */
    .zv-mob-bar { top: var(--zv-mob-topbar-h, 0px); }
    body { padding-top: calc(60px + var(--zv-mob-topbar-h, 0px)); }
    /* On mobile the desktop header is hidden and the 60px mobile bar takes over.
       body.zvhb-has-sticky forces padding-top:var(--zvhb-h) (the DESKTOP header
       height, ~120px) with !important, which wins over the rule above and
       reserves too much space — the top of the page looks clipped/offset.
       Override it here with the actual mobile-bar height. */
    body.zvhb-has-sticky {
        padding-top: calc(60px + var(--zv-mob-topbar-h, 0px)) !important;
    }
    /* Header hidden on this page → no mobile bar reservation either. */
    body.zvhb-no-header.zvhb-has-sticky,
    body.zvhb-no-header {
        padding-top: var(--zv-mob-topbar-h, 0px) !important;
    }
}
/* Hide mob-topbar on desktop regardless — extra safety for edge-case viewports */
@media (min-width: 1025px) {
    .zv-mob-topbar { display: none !important; }
}

/* ── WC Account + Cart hover ─────────────────────────────── */
.zvhb-fe-wc-account:hover,
.zvhb-fe-wc-cart:hover,
.zvhb-fe-search-expand__btn:hover {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}
.zvhb-fe-search-expand__btn {
    border-radius: 8px !important;
    transition: background .15s, color .15s, transform .15s !important;
}

/* ── 4-side spacing control (margin/padding top·right·bottom·left) ── */
.zvhb-mf-row--spacing { align-items: flex-start; }
.zvhb-spacing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.zvhb-spacing__cell { position: relative; }
.zvhb-spacing__input {
    width: 100%;
    text-align: center;
    padding-right: 4px !important;
    padding-left: 4px !important;
}
.zvhb-spacing__lbl {
    display: block;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(255,255,255,0.35);
    margin-top: 3px;
    text-transform: uppercase;
    user-select: none;
}
