/* =========================================================================
   Furex — Independent pages (v1.1.0)
   Services / Single Service / Portfolio / Single Project / About / Contact
   + redesigned Blog index. RTL-first; mirrors the base design system
   (Liquid Glass tokens, 768px breakpoint, palette vars).
   ========================================================================= */

/* Gradient used by active chips and CTA pills (derived from the accent). */
:root {
    --fx-grad: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #ffb26b), color-mix(in srgb, var(--accent) 88%, #ff2e63));
    --fx-glass-inner-bg: rgba(255, 255, 255, 0.34);
    --fx-glass-inner-bg-soft: rgba(255, 255, 255, 0.22);
    --fx-glass-inner-border: rgba(255, 255, 255, 0.52);
}
html[data-theme="dark"] {
    --fx-glass-inner-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    --fx-glass-inner-bg-soft: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 100%);
    --fx-glass-inner-border: rgba(255, 255, 255, 0.18);
}

main.furex-subpage { padding-bottom: 56px; }

/* -------------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------------- */
.furex-breadcrumb { padding: 18px 0 14px; }
.furex-breadcrumb-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.furex-breadcrumb a { color: var(--muted); transition: color .2s ease; }
.furex-breadcrumb a:hover { color: var(--accent); }
.furex-breadcrumb .bc-sep { opacity: .55; }
.furex-breadcrumb .bc-current {
    color: var(--text);
    font-weight: 600;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Page hero slider + page head
   ------------------------------------------------------------------------- */
/* Page hero: the base .media-slider component already carries the 16/9
   ratio + radius used across the whole theme — all sub-page heroes inherit
   it untouched (slider or single image alike). */
.page-hero.media-slider { margin-top: 4px; }

.page-head {
    text-align: center;
    max-width: 760px;
    margin: 52px auto 44px;
}
.page-head--single { margin-bottom: 34px; }
.page-title { font-size: var(--h1-size); }
.page-title--start { text-align: start; }
.page-subtitle { color: var(--muted); margin-top: 12px; font-size: var(--body-size); }
.page-subtitle--wide { max-width: 560px; margin-inline: auto; }

/* -------------------------------------------------------------------------
   Filter chips
   ------------------------------------------------------------------------- */
.fx-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 42px;
}
.fx-chip {
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--icon-chip-bg);
    border: 1px solid var(--border);
    transition: all .22s ease;
    white-space: nowrap;
}
.fx-chip:hover { border-color: var(--accent); color: var(--accent); }
.fx-chip.is-active {
    background: var(--fx-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* -------------------------------------------------------------------------
   Preview grids (portfolio + blog lists)
   Every preview box is a FORCED square (1:1) that crops its real cover —
   3 columns desktop / 2 columns mobile, filled row by row (RTL: right to
   left), grid height unlimited as items grow.
   ------------------------------------------------------------------------- */
.fx-masonry {
    display: grid;
    grid-template-columns: repeat(var(--fx-grid-cols-desktop, 3), 1fr);
    gap: 24px;
}
.fx-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.prj-card { background: transparent; }
.fx-card-media { position: absolute; inset: 0; z-index: 1; }
.fx-card-media img, .fx-card-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.fx-card:hover .fx-card-media img,
.fx-card:hover .fx-card-media video { transform: scale(1.04); }
.fx-card-img-holder { position: absolute; inset: 0; }
.fx-card-img-holder img, .fx-card-img-holder video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile meta switch (Articles tab): on phones only ONE of the two pills
   (category tag OR publish date) shows — the admin picks which. The rule
   itself lives in furex-base.css because the card renders on the home page
   too (where pages.css is not enqueued). */

/* The .fx-play badge styles live in furex-base.css — the shared blog card
   renders inside the home carousel too, where pages.css is not enqueued. */

/* Glass pills on project cards (blog cards reuse the base .blog-card styles). */
.prj-card .blog-tag,
.prj-card .blog-date {
    position: absolute;
    top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--box-text-glass);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    z-index: 3;
}
.prj-card .blog-tag { right: 12px; }
.prj-card .blog-date { left: 12px; }
.prj-card .blog-title-wrap {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.prj-card .blog-title-wrap h3 {
    color: var(--box-text-glass);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    margin: 0;
    word-break: break-word;
}

/* Blog archive keeps the desktop/mobile title twins from the home cards. */

/* -------------------------------------------------------------------------
   Services page — reuses the home .service-banner component (same 21/9
   mobile / 7/2 desktop aspect, same radius, same vertical title pill and
   glass arrow). Only the page-specific media fill is added here.
   ------------------------------------------------------------------------- */
.services-page-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 4px;
}
.service-banner--page > .resp-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* v1.2.0 — unified boxes on the services page: the carousel layer and the
   full-bleed cover both span the whole banner (same look as the home
   section by construction). */
.service-banner--page .svc-box-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.service-banner--page .svc-page-arrow {
    /* Sits above the full-bleed media layer (the media is z-index 1). */
    pointer-events: none;
    z-index: 4;
}

/* -------------------------------------------------------------------------
   Single service
   ------------------------------------------------------------------------- */
.svc-single-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-top: 4px;
    background: transparent;
}
.svc-single-hero-media { position: absolute; inset: 0; }
.svc-single-hero-media img, .svc-single-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.svc-single-badge {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 5;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--glass-site_header-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.svc-single-body {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.svc-single-text { color: var(--muted); line-height: 1.95; }
.svc-single-figure { margin: 0; }
.svc-single-figure-frame {
    width: min(520px, 82%);
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}
.svc-single-figure-frame img, .svc-single-figure-frame video { width: 100%; height: 100%; object-fit: cover; }

/* FAQ accordion */
.svc-faq { max-width: 860px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 6px;
    text-align: start;
    font-weight: 600;
    font-size: var(--body-size);
    color: var(--text);
    transition: color .2s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.faq-chev { flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); }
.faq-chev svg { width: 16px; height: 16px; transition: transform .3s ease; }
.faq-item.open .faq-chev svg { transform: rotate(180deg); }
.faq-a { padding: 0 6px 22px; color: var(--muted); line-height: 1.9; }

/* v1.3.0 — smooth accordion open/close (grid-rows transition; the `hidden`
   attribute keeps the no-JS default, JS swaps to class-driven collapse). */
.fx-faq-js .faq-a {
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr;
    align-self: start;
    transition: grid-template-rows .32s ease, padding .32s ease, opacity .28s ease;
    opacity: 1;
    min-height: 0;
    padding-bottom: 22px;
}
.fx-faq-js .faq-a > * { min-height: 0; }
.fx-faq-js .faq-item.open .faq-a { padding-bottom: 22px; }
.fx-faq-js .faq-a.fx-faq-collapsed {
    grid-template-rows: 0fr;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* Gradient CTA pill */
.page-cta-wrap { text-align: center; margin: 46px 0 4px; }
.page-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--fx-grad);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent);
    transition: transform .22s ease, box-shadow .22s ease;
}
.page-cta-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 40%, transparent); }
.page-cta-pill svg { width: 16px; height: 16px; }

/* -------------------------------------------------------------------------
   Inquiry / consultation forms
   ------------------------------------------------------------------------- */
.inquiry-card {
    max-width: 780px;
    margin: 64px auto 0;
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 44px);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.inquiry-title { text-align: center; margin-bottom: 8px; }
.inquiry-desc { text-align: center; color: var(--muted); margin-bottom: 26px; }

.fx-form { position: relative; }
main.furex-subpage { overflow-x: clip; }
.fx-field { margin-bottom: 16px; }
.fx-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.fx-field input,
.fx-field textarea {
    width: 100%;
    background: var(--fx-glass-inner-bg);
    -webkit-backdrop-filter: blur(10px) saturate(205%) brightness(1.06);
    backdrop-filter: blur(10px) saturate(205%) brightness(1.06);
    border: 0;
    box-shadow: inset 0 2px 7px rgba(255, 255, 255, 0.26), inset 0 -1px 4px rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--text);
    font-size: var(--body-size);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: vertical;
}
.fx-field input::placeholder,
.fx-field textarea::placeholder { color: var(--muted); opacity: .75; }
.fx-field input:focus,
.fx-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.fx-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: var(--box-text-colored);
    font-weight: 700;
    font-size: var(--body-size);
    margin-top: 6px;
    transition: opacity .2s ease, transform .2s ease;
}
.fx-submit:hover { opacity: .92; }
.fx-submit:disabled { opacity: .65; cursor: default; }
.fx-form-msg { margin-top: 12px; font-size: 13.5px; min-height: 20px; text-align: center; }
.fx-form-msg.success { color: var(--primary); }
.fx-form-msg.error { color: color-mix(in srgb, var(--accent) 78%, #d64545 22%); }

/* -------------------------------------------------------------------------
   Contact page
   ------------------------------------------------------------------------- */
/* v1.2.0 — Contact tab spacing controls. */
.furex-page-contact .contact-grid {
    margin-top: var(--fx-ctsp-head-grid, 0px);
}
.furex-page-contact .cinfo-row {
    margin-bottom: var(--fx-ctsp-row, 22px);
}
@media (max-width: 767px) {
    .furex-page-contact .contact-grid { margin-top: var(--fx-ctsp-head-grid-m, 0px); }
    .furex-page-contact .cinfo-row { margin-bottom: var(--fx-ctsp-row-m, 18px); }
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
    margin-top: clamp(40px, 9vw, 130px);
}
.inquiry-card--contact { margin: 0; }

.cinfo-row { display: flex; gap: 16px; margin-bottom: 28px; }
.cinfo-icon {
    width: 46px; height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: var(--icon-chip-bg);
    display: grid;
    place-items: center;
    color: var(--text);
}
.cinfo-icon svg { width: 20px; height: 20px; }
.cinfo-title { display: block; font-weight: 700; margin-bottom: 6px; font-size: var(--body-size); }
.cinfo-text { color: var(--muted); line-height: 1.85; }
.cinfo-text[dir="ltr"] { text-align: right; }

.contact-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0 28px; }
.contact-social-title { font-size: var(--h4-size); margin-bottom: 18px; }
.contact-social-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-social-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--glass-footer_social-bg, var(--glass-bg));
    display: grid;
    place-items: center;
    color: var(--text);
    transition: all .2s ease;
}
.contact-social-icon:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.contact-social-icon svg { width: 20px; height: 20px; }
.contact-social-icon img { width: 20px; height: 20px; object-fit: contain; }

/* -------------------------------------------------------------------------
   Single project
   ------------------------------------------------------------------------- */
.prj-single-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
    margin-top: 4px;
}
.prj-single-text { padding-top: 10px; }
.prj-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.prj-meta-label { color: var(--muted); font-size: 13px; }
.prj-meta-value { font-weight: 700; font-size: 15px; }
.prj-desc { margin-top: 20px; color: var(--muted); line-height: 1.9; }
.prj-divider { border: none; border-top: 1px solid var(--border); margin: 26px 0 6px; }
/* v1.2.0 — fullscreen popup media keeps its natural ratio (free-crop fullscreen image). */
.fx-lightbox-stage img, .fx-lightbox-stage video {
    max-width: min(92vw, 1400px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.prj-gallery {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: transparent;
}
.prj-gallery-media { position: absolute; inset: 0; }
.prj-gallery-media img, .prj-gallery-media video { width: 100%; height: 100%; object-fit: cover; }

.prj-share {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 6;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--box-text-glass);
    display: grid;
    place-items: center;
    transition: transform .2s ease, background .2s ease;
}
.prj-share:hover { background: var(--glass-bg-strong); }
.prj-share.shared { color: var(--primary); }
.prj-share.shared svg { stroke: var(--primary); }
.prj-share svg { width: 17px; height: 17px; }
/* v1.20.0 — the project's category tag pill rides ON the gallery box,
   top corner OPPOSITE the share button (reference image). Absolutely
   positioned + pointer-events none: the 16:9 box, its media, the bottom
   bar and the fullscreen popup geometry are untouched, and the pill
   never blocks gallery clicks. inset-inline-end mirrors the pill next
   to the share automatically in RTL and LTR. */
.prj-gallery-tag {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 6;
    pointer-events: none;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--box-text-glass);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
}

/* Gallery bottom bar — mirrors the reference exactly: a wide rounded-rect
   glass strip inset from the gallery edges, circular OUTLINE arrow buttons
   at both ends, labels beside them, fullscreen popup button centered. */
.prj-gallerybar {
    position: absolute;
    left: 14px; right: 14px;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    padding: 9px 12px;
    min-height: 64px;
}
.prj-gnav {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--box-text-glass);
    font-size: 13px;
    font-weight: 600;
}
.prj-gnav:hover .prj-gnav-arrow { background: rgba(255, 255, 255, .14); }
.prj-gnav--off { visibility: hidden; }
.prj-gnav-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    display: grid;
    place-items: center;
    transition: background .2s ease;
}
.prj-gnav-arrow svg { width: 17px; height: 17px; }
.prj-fullscreen {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    color: var(--box-text-glass);
    display: grid;
    place-items: center;
    transition: background .2s ease;
}
.prj-fullscreen:hover { background: rgba(255, 255, 255, .14); }
.prj-fullscreen svg { width: 15px; height: 15px; }

.prj-related { margin-top: 96px; }
.prj-related-head { margin-bottom: 30px; }
.prj-related-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; text-align: start; }
.prj-related-title { text-align: start; }
.prj-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prj-related-grid .fx-card { aspect-ratio: 3 / 2; }

/* -------------------------------------------------------------------------
   About page
   ------------------------------------------------------------------------- */
.about-story {
    max-width: 940px;
    margin: 56px auto 0;
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    text-align: center;
}
/* v1.2.0 — About tab spacing controls (desktop/mobile per segment). */
.furex-page-about .about-story {
    margin-top: var(--fx-absp-top, 56px);
}
.furex-page-about .about-team {
    margin-top: var(--fx-absp-top, 64px);
}
@media (max-width: 767px) {
    .furex-page-about .about-story { margin-top: var(--fx-absp-top-m, 36px); }
    .furex-page-about .about-team { margin-top: var(--fx-absp-top-m, 44px); }
}
.about-story-title { margin-bottom: 18px; }
.about-story-text { color: var(--muted); line-height: 1.95; }
.about-story-quote {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.about-quote-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 56px;
    line-height: .55;
    color: var(--primary);
    opacity: .92;
    flex: 0 0 auto;
}
.about-quote-mark--open { transform: translateY(10px); }
.about-quote-mark--close { transform: translateY(10px); }
.about-quote-text {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.9;
    max-width: 560px;
    font-size: var(--body-size);
}

.about-team {
    display: grid;
    grid-template-columns: repeat(var(--fx-grid-cols-desktop, 3), 1fr);
    gap: 18px;
    margin-top: 64px;
}
.team-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--glass-feature_card-bg, var(--glass-bg));
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, .06);
}
.team-photo { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .88); }
.team-photo svg { width: 58%; height: 58%; }
.team-photo img, .team-photo video { width: 100%; height: 100%; object-fit: cover; }
.team-name {
    position: absolute;
    left: 10px; right: 10px;
    bottom: 10px;
    z-index: 2;
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--glass-team_meta-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}
.team-name, .team-meta {
    position: absolute;
    left: 10px; right: 10px;
    bottom: 10px;
    z-index: 2;
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--glass-team_meta-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}
.team-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.team-role {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    opacity: .78;
}

/* -------------------------------------------------------------------------
   Load more + archive pagination + empty state
   ------------------------------------------------------------------------- */
.fx-loadmore-wrap { text-align: center; margin: 44px 0 8px; }
.fx-loadmore {
    display: inline-block;
    padding: 11px 30px;
    border-radius: 999px;
    border: 0;
    background: var(--glass-blog_viewall-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(8px) saturate(205%);
    backdrop-filter: blur(8px) saturate(205%);
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s ease;
}
.fx-loadmore:hover { border-color: var(--accent); color: var(--accent); }
.fx-loadmore.is-busy { opacity: .6; pointer-events: none; }

.furex-archive-pagination { margin-top: 44px; text-align: center; }
.furex-archive-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.furex-archive-pagination .page-numbers {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 0;
    background: var(--glass-blog_control-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(8px) saturate(205%);
    backdrop-filter: blur(8px) saturate(205%);
    color: var(--text);
    font-size: 13.5px;
    text-decoration: none;
}
.furex-archive-pagination .page-numbers.current {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

.furex-empty {
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

/* -------------------------------------------------------------------------
   Lightbox (fullscreen popup)
   ------------------------------------------------------------------------- */
.fx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(12, 16, 26, 0.28);
    -webkit-backdrop-filter: blur(18px) saturate(195%);
    backdrop-filter: blur(18px) saturate(195%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.fx-lightbox.open { display: flex; }
.fx-lightbox-stage {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fx-lightbox-stage img, .fx-lightbox-stage video {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.fx-lightbox-btn {
    position: absolute;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .2s ease;
}
.fx-lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.fx-lightbox-btn svg { width: 18px; height: 18px; }
.fx-lightbox-close { top: 22px; inset-inline-start: 22px; }
.fx-lightbox-prev { top: 50%; transform: translateY(-50%); inset-inline-start: 26px; }
.fx-lightbox-next { top: 50%; transform: translateY(-50%); inset-inline-end: 26px; }

/* -------------------------------------------------------------------------
   Responsive (≤767px — same breakpoint as the base theme)
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .furex-breadcrumb { padding: 12px 0 10px; }
    .furex-breadcrumb-inner { font-size: 11.5px; padding: 0 16px; }
    .furex-breadcrumb .bc-current { max-width: 180px; }

    /* Heroes keep the theme-wide 16/9 ratio at every width. */

    .page-head { margin: 38px auto 34px; }

    .fx-masonry { grid-template-columns: repeat(var(--fx-grid-cols-mobile, 2), 1fr); gap: 16px; }

    .fx-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 2px 8px;
        margin-bottom: 30px;
        scrollbar-width: none;
    }
    .fx-chips::-webkit-scrollbar { display: none; }
    .fx-chip { flex: 0 0 auto; }

    /* Services cards follow the home section's own mobile rules (21/9). */

    .svc-single-hero { border-radius: var(--radius-lg); }
    .svc-single-badge { top: 10px; left: 10px; padding: 6px 12px; font-size: 11px; }
    .svc-single-figure-frame { width: 100%; border-radius: 14px; }

    .inquiry-card { margin-top: 40px; padding: 22px 18px; border-radius: var(--radius-lg); }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }

    .prj-single-top { grid-template-columns: 1fr; gap: 30px; }
    .prj-gallery { order: -1; border-radius: var(--radius-lg); }
    .prj-single-text { text-align: center; padding-top: 0; }
    .prj-single-text .page-title { font-size: var(--h2-size); }
    .prj-meta { align-items: center; text-align: center; }
    .prj-gallerybar { left: 8px; right: 8px; bottom: 8px; padding: 7px 9px; min-height: 52px; border-radius: 14px; }
    .prj-gnav { font-size: 11px; gap: 7px; }
    .prj-gnav-arrow { width: 34px; height: 34px; }
    .prj-gnav-arrow svg { width: 13px; height: 13px; }
    .prj-fullscreen { width: 31px; height: 31px; }
    .prj-fullscreen svg { width: 12px; height: 12px; }
    .prj-share { top: 10px; right: 10px; width: 34px; height: 34px; }
    .prj-gallery-tag { top: 10px; inset-inline-end: 10px; padding: 7px 16px; font-size: 12px; }

    .prj-related { margin-top: 64px; }
    .prj-related-grid { grid-template-columns: 1fr; gap: 14px; }
    .prj-related-head { text-align: center; }
    .prj-related-label, .prj-related-title { text-align: center; }

    .about-story { margin-top: 36px; padding: 24px 18px; border-radius: var(--radius-lg); }
    .about-quote-mark { font-size: 34px; }
    .about-story-quote { gap: 10px; margin-top: 20px; }
    .about-team { grid-template-columns: repeat(var(--fx-grid-cols-mobile, 3), 1fr); gap: 10px; margin-top: 44px; }
    .team-card { border-radius: 12px; }
    .team-name { font-size: 10.5px; padding: 6px 6px; left: 6px; right: 6px; bottom: 6px; }

    .fx-lightbox { padding: 14px; }
    .fx-lightbox-btn { width: 38px; height: 38px; }
    .fx-lightbox-close { top: 12px; inset-inline-start: 12px; }
    .fx-lightbox-prev { inset-inline-start: 10px; }
    .fx-lightbox-next { inset-inline-end: 10px; }
}

@media (max-width: 400px) {
    .about-team { grid-template-columns: repeat(var(--fx-grid-cols-mobile, 3), 1fr); }
    .prj-gnav-label { display: none; }
}

/* ================= v1.5.0 — frontend detail polish ======================= */
/* FAQ: subtle hover lift + question transition so pointer feedback matches
   the rest of the theme's interactive elements. */
.faq-item {
    transition: background-color .18s ease;
    border-radius: 10px;
}
.faq-item:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.faq-q {
    transition: color .16s ease, padding-inline-start .18s ease;
}
.faq-item:hover .faq-q { padding-inline-start: 12px; }
.faq-a p { max-width: 68ch; }

/* Consult/CTA pill on single service pages: arrow slides on hover — mirrors
   the global link-arrow language of the theme. */
.page-cta-pill svg {
    transition: transform .18s ease;
}
.page-cta-pill:hover svg {
    transform: translate(2px, -2px);
}
.page-cta-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item, .faq-q, .page-cta-pill svg { transition: none; }
}

/* ================= v1.8.0 — FAQ deep-link detail ========================= */
/* Service answers carry stable anchors (#faq-N). scroll-margin keeps the
   opened question clear of the sticky header on hash jumps, and the focused
   item (tabindex="-1" from the template) shows a quiet accent outline so
   keyboard/AT users can see where the deep link landed. */
.faq-item {
    scroll-margin-top: 90px;
}
.faq-item:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
    outline-offset: 3px;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    .faq-item { scroll-margin-top: 90px; }
}

/* v1.12.0 — team label: the .team-meta capsule is the single glass surface
   (group "team_meta"); the nested name no longer draws a second pill. */
.team-meta .team-name {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* Hover feedback survives the group background override. */
.prj-share.glass-group-project_share:hover { filter: brightness(1.08); }

/* GAP-15 — Interactive map frame on Contact page */
.contact-map-wrap {
    margin-top: 28px;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 0;
    background: var(--glass-feature_card-bg, var(--glass-bg));
}
.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* =========================================================================
   v1.31.0 — Redesigned Contact Page (Working Hours, Branches & Map Showcase)
   Built strictly on Furex design tokens (--surface, --border, --accent,
   --icon-chip-bg, --radius-xl) and borderless 3D Liquid Glass (.glass).
   ========================================================================= */

.cinfo-body--full {
    flex: 1;
    min-width: 0;
}

.fx-contact-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.fx-contact-hour-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    border-radius: 14px;
    background: var(--fx-glass-inner-bg-soft);
    border: 1px solid var(--fx-glass-inner-border);
    transition: transform .2s ease, background .2s ease;
}

.fx-contact-hour-item:hover {
    transform: translateX(-2px);
}

.fx-contact-hour-day {
    font-weight: 600;
    color: var(--text);
}

.fx-contact-hour-val {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.fx-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    display: inline-block;
}

.fx-contact-hour-item.is-closed .fx-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.fx-contact-hour-item.is-closed .fx-contact-hour-val {
    color: var(--muted);
}

.fx-contact-branches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.fx-contact-branch-card {
    padding: 16px 18px;
    border-radius: 18px;
    transition: transform .22s ease;
}

.fx-contact-branch-card:hover {
    transform: translateY(-2px);
}

.fx-contact-branch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.fx-contact-branch-name {
    font-size: var(--body-size);
    font-weight: 800;
    color: var(--text);
}

.fx-contact-branch-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--icon-chip-bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.fx-contact-branch-phone:hover {
    color: var(--accent);
}

.fx-contact-branch-phone svg {
    width: 14px;
    height: 14px;
}

.fx-contact-branch-addr {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 13.5px;
}

.fx-contact-branch-maplink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: opacity .2s ease;
}

.fx-contact-branch-maplink:hover {
    opacity: .8;
}

.fx-contact-branch-maplink svg {
    width: 15px;
    height: 15px;
}

/* Interactive Map & Routing Showcase */
.fx-contact-map-showcase {
    margin-top: clamp(36px, 5vw, 64px);
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius-xl);
}

.fx-contact-map-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.fx-contact-map-bar__title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fx-contact-map-heading {
    margin: 0 0 3px;
    font-size: var(--h4-size);
    font-weight: 800;
    color: var(--text);
}

.fx-contact-map-sub {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.fx-contact-route-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fx-route-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease;
}

.fx-route-pill:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

.fx-route-pill svg {
    width: 16px;
    height: 16px;
}

.fx-contact-map-frame {
    margin-top: 20px;
    border-radius: calc(var(--radius-xl) - 8px);
    overflow: hidden;
    background: var(--glass-feature_card-bg, var(--glass-bg));
    line-height: 0;
}

.fx-contact-map-frame iframe {
    width: 100% !important;
    min-height: 360px;
    border: 0 !important;
    display: block;
}

/* =========================================================================
   v1.31.0 — Header Portal Trigger, Passwordless Auth Modal & User Portal
   ========================================================================= */

.fx-portal-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s ease, color .2s ease;
}

.fx-portal-header-btn:hover {
    transform: translateY(-1px);
    color: var(--accent);
}

.fx-portal-header-btn svg {
    width: 18px;
    height: 18px;
}

.fx-portal-header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--box-text-colored, #fff);
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
}

.fx-portal-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fx-portal-drawer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.fx-portal-drawer-btn svg {
    width: 18px;
    height: 18px;
}

/* Auth Modal & Portal Modal Backdrops */
.fx-auth-backdrop,
.fx-portal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99995;
    /* Crystal-clear non-backdrop-root dim so .fx-auth-dialog and .fx-portal-dialog refract the real page behind them */
    background: rgba(12, 16, 26, 0.12);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.fx-auth-backdrop[hidden],
.fx-portal-backdrop[hidden] {
    display: none !important;
}

.fx-auth-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: clamp(26px, 4vw, 36px);
    border-radius: var(--radius-xl, 28px);
    color: var(--text);
    margin: auto;
}

.fx-auth-close,
.fx-portal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--icon-chip-bg);
    border: none;
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .2s ease;
}

.fx-auth-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
}

.fx-auth-close:hover,
.fx-portal-close:hover {
    transform: scale(1.06);
}

.fx-auth-close svg,
.fx-portal-close svg {
    width: 18px;
    height: 18px;
}

.fx-auth-head {
    text-align: center;
    margin-bottom: 22px;
}

.fx-auth-logo-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--icon-chip-bg);
    color: var(--accent);
    display: grid;
    place-items: center;
}

.fx-auth-logo-badge svg {
    width: 26px;
    height: 26px;
}

.fx-auth-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.fx-auth-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
}

.fx-auth-google-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.fx-google-quick-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    background: var(--fx-glass-inner-bg);
    border: 1px solid var(--fx-glass-inner-border);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.fx-google-quick-btn:hover {
    transform: translateY(-1px);
    opacity: .94;
}

.fx-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 12px;
}

.fx-auth-divider::before,
.fx-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.fx-auth-channel-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border-radius: 14px;
    background: var(--fx-glass-inner-bg-soft);
    border: 1px solid var(--fx-glass-inner-border);
    margin-bottom: 18px;
}

.fx-auth-ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.fx-auth-ch-btn svg {
    width: 16px;
    height: 16px;
}

.fx-auth-ch-btn.is-active {
    background: var(--primary);
    color: var(--box-text-colored, #fff);
}

.fx-auth-bale-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.fx-auth-bale-hint a {
    color: var(--accent);
    font-weight: 700;
}

/* 6-Digit OTP Input Boxes */
.fx-otp-digit-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.fx-otp-digit {
    width: 100%;
    height: 50px;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    background: var(--fx-glass-inner-bg);
    border: 1px solid var(--fx-glass-inner-border);
    color: var(--text);
}

.fx-auth-step2-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12.5px;
}

.fx-auth-back-link {
    background: none;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.fx-auth-timer {
    color: var(--muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* User Portal Dashboard Modal & Standalone Page */
.fx-portal-dialog {
    width: 100%;
    max-width: 1040px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl, 28px);
    padding: clamp(18px, 3vw, 28px);
    color: var(--text);
    overflow: hidden;
}

.fx-portal-standalone-card {
    border-radius: var(--radius-xl, 28px);
    padding: clamp(20px, 3.5vw, 34px);
    margin-bottom: 60px;
}

.fx-portal-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.fx-portal-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fx-portal-modal-title strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.fx-portal-modal-title span {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
}

.fx-portal-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    min-height: 460px;
    overflow: hidden;
}

.fx-portal-dialog .fx-portal-main {
    max-height: calc(100vh - 175px);
    overflow-y: auto;
    padding-inline-end: 6px;
}

.fx-portal-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    background: var(--fx-glass-inner-bg-soft);
    border: 1px solid var(--fx-glass-inner-border);
}

.fx-portal-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.fx-portal-user-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--box-text-colored, #fff);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
}

.fx-portal-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fx-portal-user-info {
    min-width: 0;
}

.fx-portal-user-name {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-portal-user-email {
    display: block;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-portal-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-portal-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 13px;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.fx-portal-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fx-portal-tab:hover {
    background: var(--icon-chip-bg);
}

.fx-portal-tab.is-active {
    background: var(--primary);
    color: var(--box-text-colored, #fff);
    font-weight: 700;
}

.fx-portal-badge {
    margin-inline-start: auto;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--icon-chip-bg);
    color: var(--text);
}

.fx-portal-tab.is-active .fx-portal-badge {
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
}

.fx-portal-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.fx-portal-fullpage-link,
.fx-portal-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: var(--icon-chip-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

.fx-portal-logout-btn {
    color: #ef4444;
}

.fx-portal-fullpage-link svg,
.fx-portal-logout-btn svg {
    width: 16px;
    height: 16px;
}

.fx-portal-pane-head {
    margin-bottom: 20px;
}

.fx-portal-pane-head h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.fx-portal-pane-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
}

.fx-portal-type-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.fx-portal-type-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--fx-glass-inner-bg-soft);
    border: 1px solid var(--fx-glass-inner-border);
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.fx-portal-type-pill input {
    display: none;
}

.fx-portal-type-pill svg {
    width: 20px;
    height: 20px;
}

.fx-portal-type-pill.is-selected {
    background: var(--primary);
    color: var(--box-text-colored, #fff);
}

.fx-portal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fx-portal-form select {
    width: 100%;
    background: var(--fx-glass-inner-bg);
    border: 1px solid var(--fx-glass-inner-border);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: var(--body-size);
    outline: none;
}
.fx-portal-form select option {
    background: var(--surface);
    color: var(--text);
}

.fx-portal-req-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-portal-req-card {
    padding: 18px 20px;
    border-radius: 18px;
}

.fx-portal-req-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fx-portal-req-id {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--icon-chip-bg);
    font-size: 12px;
    font-weight: 800;
    margin-inline-end: 8px;
}

.fx-portal-req-brand {
    font-size: 15px;
    font-weight: 800;
}

.fx-portal-req-date {
    display: inline-block;
    margin-inline-start: 10px;
    font-size: 12px;
    color: var(--muted);
}

.fx-portal-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--icon-chip-bg);
    color: var(--text);
}

.fx-portal-status-pill.is-new {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
}

.fx-portal-status-pill.is-progress {
    background: rgba(99, 102, 241, 0.16);
    color: #6366f1;
}

.fx-portal-status-pill.is-done {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}

.fx-portal-req-body {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--muted);
    background: var(--fx-glass-inner-bg-soft);
    border: 1px solid var(--fx-glass-inner-border);
    padding: 12px 16px;
    border-radius: 12px;
}

.fx-portal-admin-reply {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}

.fx-portal-admin-reply strong {
    display: block;
    font-size: 12.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.fx-portal-admin-reply p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
}

.fx-portal-sublist {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.fx-portal-sublist-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
}

.fx-portal-art-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 16px;
}

.fx-portal-view-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.fx-portal-empty {
    text-align: center;
    padding: 44px 20px;
    border-radius: 18px;
    background: var(--fx-glass-inner-bg-soft);
    border: 1px solid var(--fx-glass-inner-border);
    color: var(--muted);
}

.fx-portal-switch-tab-btn {
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: var(--box-text-colored, #fff);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 860px) {
    .fx-portal-shell {
        grid-template-columns: 1fr;
    }
    .fx-portal-dialog .fx-portal-main {
        max-height: none;
    }
    .fx-portal-dialog {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
    .fx-portal-form-grid,
    .fx-portal-type-pills {
        grid-template-columns: 1fr;
    }
    .fx-portal-header-label {
        display: none;
    }
    .fx-portal-header-btn {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
}


/* ==========================================================================
   Furex v1.32.0 — User Portal v2.0, Dynamic Form Fields & Bookmark Button
   ========================================================================== */
.fx-dyn-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 12px 0;
}
.fx-dyn-field-wrap.is-full {
    grid-column: 1 / -1;
}
.fx-dyn-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.fx-dyn-choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
    cursor: pointer;
}
@media (max-width: 640px) {
    .fx-dyn-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* User Portal v2.0 Drag & Drop Upload Zone */
.fx-portal-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border: 1.5px dashed rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.fx-portal-dropzone:hover,
.fx-portal-dropzone.is-dragover {
    border-color: var(--accent, #4f5bd5);
    background: rgba(79, 91, 213, 0.08);
}
.fx-portal-dropzone strong {
    font-size: 0.86rem;
}
.fx-portal-dropzone span {
    font-size: 0.76rem;
    color: var(--muted);
}
.fx-portal-upload-progress {
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}
.fx-portal-upload-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent, #4f5bd5), #10b981);
    transition: width 0.15s ease;
}

/* 5-Step Project Milestone Progress Bar */
.fx-milestone-bar-wrap {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.16);
}
.fx-milestone-track {
    height: 7px;
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.fx-milestone-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #4f5bd5), #10b981);
    border-radius: 999px;
    transition: width 0.35s ease;
}
.fx-milestone-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
@media (max-width: 640px) {
    .fx-milestone-steps {
        grid-template-columns: 1fr 1fr;
    }
}
.fx-milestone-step {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    color: var(--muted);
    opacity: 0.65;
}
.fx-milestone-step.is-done,
.fx-milestone-step.is-current {
    opacity: 1;
    color: var(--text);
    font-weight: 700;
}
.fx-ms-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(148, 163, 184, 0.2);
}
.fx-milestone-step.is-done .fx-ms-dot {
    background: rgba(16, 185, 129, 0.22);
    color: #10b981;
}
.fx-milestone-step.is-current .fx-ms-dot {
    background: var(--accent, #4f5bd5);
    color: #fff;
}

.fx-portal-deal-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.26);
    font-size: 0.82rem;
}
.fx-portal-invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
}

/* Two-Way Conversation Thread inside User Portal */
.fx-ticket-stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    margin: 10px 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.12);
}
.fx-ticket-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.83rem;
    line-height: 1.65;
    max-width: 90%;
}
.fx-ticket-bubble.is-user {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.fx-ticket-bubble.is-admin {
    align-self: flex-end;
    background: rgba(79, 91, 213, 0.16);
    border: 1px solid rgba(79, 91, 213, 0.35);
}
.fx-tb-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 4px;
}
.fx-tb-atts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.fx-tb-att-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(79, 91, 213, 0.18);
    color: var(--text);
    text-decoration: none;
    font-size: 0.74rem;
}
.fx-portal-reply-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.fx-portal-reply-form input[type="text"] {
    flex: 1;
}

/* Gutenberg Launchpad & Editor Note */
.fx-gutenberg-launchpad {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(79, 91, 213, 0.14), rgba(16, 185, 129, 0.08));
}
.fx-gutenberg-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.fx-portal-editor-note-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border-right: 3px solid #f59e0b;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Profile Avatar Uploader & Notification Preferences */
.fx-portal-avatar-uploader {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
}
.fx-portal-avatar-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: rgba(79, 91, 213, 0.2);
    color: #fff;
    flex-shrink: 0;
}
.fx-portal-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fx-portal-notify-prefs {
    padding: 14px;
    border-radius: 16px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fx-portal-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    cursor: pointer;
}

/* ==========================================================================
   Hybrid Solution 2 — Frontend Sandboxed Furex Block Studio (User Portal)
   ========================================================================== */
.fx-studio-card {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.fx-studio-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.fx-studio-top-bar strong {
    font-size: 0.96rem;
}
.fx-studio-reset-btn {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-studio-cover-box {
    border: 1.5px dashed rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.fx-studio-cover-box:hover {
    border-color: var(--accent, #4f5bd5);
    background: rgba(79, 91, 213, 0.06);
}
.fx-studio-cover-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.fx-studio-cover-prompt strong {
    font-size: 0.85rem;
}
.fx-studio-cover-prompt span {
    font-size: 0.75rem;
    color: var(--muted);
}
.fx-studio-cover-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.fx-studio-cover-preview img {
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.fx-studio-cover-remove {
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    border: none;
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-studio-blocks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.fx-studio-live-metrics {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(79, 91, 213, 0.15);
    color: var(--accent, #4f5bd5);
}
.fx-studio-Blocks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.fx-studio-block-card {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
.fx-studio-block-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.fx-studio-block-badge {
    font-size: 0.78rem;
    color: var(--accent, #4f5bd5);
}
.fx-studio-block-actions {
    display: flex;
    gap: 4px;
}
.fx-studio-block-actions button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}
.fx-studio-block-actions button.fx-b-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
.fx-studio-mini-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.fx-studio-mini-toolbar button {
    padding: 3px 9px;
    border-radius: 7px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}
.fx-studio-add-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
}
.fx-studio-add-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79, 91, 213, 0.35);
    background: rgba(79, 91, 213, 0.12);
    color: var(--text);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fx-studio-add-btn:hover {
    background: var(--accent, #4f5bd5);
    color: #fff;
    transform: translateY(-1px);
}
.fx-studio-submit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.fx-studio-draft-btn {
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-portal-load-studio-btn,
.fx-portal-del-art-btn,
.fx-portal-edit-cm-btn,
.fx-portal-del-cm-btn {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-portal-load-studio-btn:hover {
    border-color: var(--accent, #4f5bd5);
    color: var(--accent, #4f5bd5);
}
.fx-portal-del-art-btn:hover,
.fx-portal-del-cm-btn:hover {
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

/* ==========================================================================
   Furex Mature User Portal, Header Glass Popover & Master-Detail Ticketing
   ========================================================================== */
.fx-header-portal-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.fx-portal-header-avatar {
    position: relative;
}
.fx-header-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--bg, #0f172a);
}
.fx-popover-caret {
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.fx-portal-header-btn[aria-expanded="true"] .fx-popover-caret {
    transform: rotate(180deg);
}
.fx-header-user-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 310px;
    padding: 16px;
    border-radius: 22px;
    z-index: 1200;
    background: var(--glass-site_header-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(var(--glass-site_header-blur, 12px)) saturate(var(--glass-site_header-saturation, 205%));
    backdrop-filter: blur(var(--glass-site_header-blur, 12px)) saturate(var(--glass-site_header-saturation, 205%));
    box-shadow: var(--glass-site_header-shadow, var(--glass-shadow));
    color: var(--box-text-glass, var(--text));
    text-align: right;
    animation: fxPopFadeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fxPopFadeIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.fx-upop-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.fx-upop-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent, #4f5bd5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.fx-upop-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fx-upop-user {
    min-width: 0;
    flex: 1;
}
.fx-upop-user strong {
    display: block;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fx-upop-user span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fx-upop-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
}
.fx-upop-alert__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}
.fx-upop-alert small {
    color: #f59e0b;
    font-weight: 800;
    white-space: nowrap;
}
.fx-upop-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 12px 0;
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
    text-align: center;
}
.fx-upop-stats strong {
    display: block;
    font-size: 0.95rem;
    color: var(--accent, #4f5bd5);
}
.fx-upop-stats span {
    font-size: 0.7rem;
    color: var(--muted);
}
.fx-upop-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.fx-upop-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}
.fx-upop-link:hover {
    background: rgba(79, 91, 213, 0.12);
    color: var(--accent, #4f5bd5);
}
.fx-upop-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.85;
}
.fx-upop-badge {
    margin-inline-start: auto;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}
.fx-upop-badge.is-alert,
.fx-portal-badge.is-alert {
    background: #ef4444;
    color: #fff;
}
.fx-upop-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.fx-upop-primary-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 11px;
    background: var(--primary, #4f5bd5);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}
.fx-upop-logout-btn {
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

/* Overview Tab & KPI Cards */
.fx-portal-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 22px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.fx-portal-welcome-banner h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 800;
}
.fx-portal-welcome-banner p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}
.fx-portal-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 960px) {
    .fx-portal-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .fx-portal-overview-grid {
        grid-template-columns: 1fr;
    }
}
.fx-portal-kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 0;
    color: var(--text);
    font-family: inherit;
    text-align: right;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.fx-portal-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent, #4f5bd5);
}
.fx-pkpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fx-pkpi-icon svg {
    width: 22px;
    height: 22px;
}
.fx-pkpi-icon.is-blue { background: rgba(59, 130, 246, 0.16); color: #3b82f6; }
.fx-pkpi-icon.is-emerald { background: rgba(16, 185, 129, 0.16); color: #10b981; }
.fx-pkpi-icon.is-purple { background: rgba(139, 92, 246, 0.16); color: #8b5cf6; }
.fx-pkpi-icon.is-amber { background: rgba(245, 158, 11, 0.16); color: #f59e0b; }
.fx-pkpi-info strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}
.fx-pkpi-info span {
    font-size: 0.76rem;
    color: var(--muted);
}
.fx-pkpi-tag.is-unread {
    display: inline-block;
    margin-top: 4px;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
}
.fx-portal-overview-sec {
    margin-top: 22px;
}
.fx-portal-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.fx-portal-sec-head h4 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
}
.fx-portal-link-btn {
    background: none;
    border: none;
    color: var(--accent, #4f5bd5);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-overview-project-card {
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 12px;
}
.fx-ov-prj-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* 3-Column Form Grid & Type Pills */
.fx-portal-type-pills--3 {
    grid-template-columns: repeat(3, 1fr);
}
.fx-portal-form-grid--3 {
    grid-template-columns: 1.4fr 1fr 0.8fr;
}
@media (max-width: 860px) {
    .fx-portal-type-pills--3,
    .fx-portal-form-grid--3 {
        grid-template-columns: 1fr;
    }
}
.fx-portal-pane-head--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* 2-Step Master-Detail Ticketing System */
.fx-tickets-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.fx-ticket-filter-btn {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fx-ticket-filter-btn.is-active {
    background: var(--primary, #4f5bd5);
    border-color: var(--primary, #4f5bd5);
    color: #fff;
}
.fx-ticket-master-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fx-ticket-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 15px 18px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.fx-ticket-row-card:hover {
    transform: translateY(-2px);
}
.fx-ticket-row-card.has-unread {
    box-shadow: inset -4px 0 0 #f59e0b, var(--fx-lg-cushion-shadow) !important;
}
.fx-trow-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 240px;
}
.fx-trow-subject {
    font-size: 0.94rem;
    font-weight: 800;
}
.fx-trow-dept {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
}
.fx-ticket-unread-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}
.fx-priority-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}
.fx-priority-pill.is-prio-normal { background: rgba(148, 163, 184, 0.14); color: var(--muted); }
.fx-priority-pill.is-prio-high { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.fx-priority-pill.is-prio-urgent { background: rgba(239, 68, 68, 0.18); color: #ef4444; }
.fx-active-prj-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}
.fx-trow-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fx-trow-msg-cnt {
    font-size: 0.76rem;
    color: var(--muted);
}
.fx-portal-open-ticket-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(79, 91, 213, 0.35);
    background: rgba(79, 91, 213, 0.12);
    color: var(--text);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.fx-portal-open-ticket-btn:hover {
    background: var(--primary, #4f5bd5);
    color: #fff;
}

/* Detail Conversation Room */
.fx-ticket-detail-pane {
    padding: 22px;
    border-radius: 22px;
}
.fx-ticket-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.fx-ticket-back-btn {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-ticket-detail-topbar__end {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fx-ticket-close-btn {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-ticket-detail-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.fx-ticket-detail-title-row h4 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}
.fx-ticket-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.fx-ticket-meta-chip {
    font-size: 0.76rem;
    padding: 5px 11px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
}
.fx-ticket-meta-chip strong {
    color: var(--text);
}

/* Fixed & Unified Milestone Bar + Chat Stream */
.fx-milestone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 0.83rem;
}
.fx-milestone-pct {
    font-weight: 800;
    color: var(--accent, #4f5bd5);
    font-size: 0.9rem;
}
.fx-milestone-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(148, 163, 184, 0.2);
    flex-shrink: 0;
}
.fx-milestone-step.is-done .fx-milestone-dot {
    background: rgba(16, 185, 129, 0.22);
    color: #10b981;
}
.fx-milestone-step.is-current .fx-milestone-dot {
    background: var(--accent, #4f5bd5);
    color: #fff;
}
.fx-portal-deal-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.fx-ticket-stream {
    max-height: 420px;
    padding: 14px;
    gap: 12px;
}
.fx-ticket-bubble__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.76rem;
}
.fx-ticket-bubble__sender {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fx-ticket-bubble__av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(79, 91, 213, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}
.fx-ticket-admin-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent, #4f5bd5);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}
.fx-ticket-bubble__head time {
    font-size: 0.72rem;
    color: var(--muted);
}
.fx-ticket-bubble__body {
    font-size: 0.86rem;
    line-height: 1.8;
}
.fx-ticket-bubble__atts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.fx-ticket-att-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(79, 91, 213, 0.16);
    color: var(--text);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
}
.fx-ticket-composer {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.fx-ticket-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.fx-ticket-attach-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.fx-ticket-closed-notice {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

/* Avatar Overlay Selectors */
.fx-portal-avatar-circle {
    position: relative;
    cursor: pointer;
}
.fx-portal-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.68rem;
    font-weight: 700;
}
.fx-portal-avatar-overlay svg {
    width: 20px;
    height: 20px;
}
.fx-portal-avatar-circle:hover .fx-portal-avatar-overlay {
    opacity: 1;
}
.fx-portal-notify-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

/* ==========================================================================
   Furex Editorial Studio Pro (2-Step Master-Detail, 2-Column Workspace,
   WYSIWYG RTE, 9 Block Types, SEO/TOC Inspector & Frontend Block Rendering)
   ========================================================================== */
.fx-studio-master-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.fx-studio-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fx-studio-art-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: transform .18s ease, border-color .18s ease;
}
.fx-studio-art-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent, #4f5bd5);
}
.fx-studio-art-card__main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.fx-studio-art-card__thumb {
    width: 84px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(79, 91, 213, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fx-studio-art-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fx-studio-art-card__noimg {
    font-size: 1.4rem;
}
.fx-studio-art-card__info {
    flex: 1;
    min-width: 220px;
}
.fx-studio-art-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.fx-studio-art-card__title {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 800;
}
.fx-studio-art-card__excerpt {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}
.fx-studio-art-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Sticky Top Studio Bar */
.fx-studio-action-bar {
    position: sticky;
    top: 14px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.fx-studio-action-bar__right,
.fx-studio-action-bar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fx-studio-doc-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fx-studio-doc-status strong {
    font-size: 0.94rem;
}
.fx-studio-autosave-chip {
    font-size: 0.74rem;
    color: #10b981;
}
.fx-studio-tool-btn {
    padding: 8px 13px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--glass-bg);
    color: var(--fg);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}
.fx-studio-tool-btn:hover {
    border-color: var(--accent, #4f5bd5);
    color: var(--accent, #4f5bd5);
}

/* 2-Column Editorial Workspace Grid */
.fx-studio-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}
.fx-articles-studio-view.is-zen-mode {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(12, 16, 26, 0.32);
    -webkit-backdrop-filter: blur(22px) saturate(200%);
    backdrop-filter: blur(22px) saturate(200%);
    overflow-y: auto;
    padding: 20px 28px 60px;
}
.fx-articles-studio-view.is-zen-mode .fx-studio-workspace-grid {
    max-width: 1380px;
    margin: 0 auto;
}
.fx-studio-doc-header-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.fx-studio-h1-input {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    padding: 12px 16px !important;
}
.fx-studio-stream-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 10px;
    flex-wrap: wrap;
}
.fx-studio-stream-bar strong {
    display: block;
    font-size: 0.95rem;
}
.fx-studio-stream-bar span {
    font-size: 0.78rem;
    color: var(--muted);
}
.fx-studio-stream-bar__actions {
    display: flex;
    gap: 6px;
}
.fx-studio-mini-act {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(128, 128, 128, 0.08);
    color: var(--fg);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.fx-studio-mini-act:hover {
    border-color: var(--accent, #4f5bd5);
    color: var(--accent, #4f5bd5);
}

/* Block Cards & WYSIWYG RTE */
.fx-studio-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}
.fx-studio-block-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: border-color .18s ease;
}
.fx-studio-block-card:focus-within {
    border-color: var(--accent, #4f5bd5);
}
.fx-studio-block-card.is-collapsed .fx-studio-block-card__body {
    display: none;
}
.fx-studio-block-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fx-studio-block-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    border-radius: 7px;
    background: rgba(79, 91, 213, 0.14);
    color: var(--accent, #4f5bd5);
    font-size: 0.76rem;
    font-weight: 800;
}
.fx-b-insert-after {
    font-size: 0.72rem !important;
    padding: 0 8px !important;
    width: auto !important;
}
.fx-studio-rte-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 8px;
    border-radius: 10px 10px 0 0;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--border);
    border-bottom: none;
}
.fx-studio-rte-toolbar button,
.fx-rte-color-lbl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--glass-bg);
    color: var(--fg);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}
.fx-studio-rte-toolbar button:hover {
    border-color: var(--accent, #4f5bd5);
    color: var(--accent, #4f5bd5);
}
.fx-rte-color-inp {
    width: 18px;
    height: 18px;
    border: none;
    padding: 0;
    margin-right: 4px;
    background: transparent;
    cursor: pointer;
}
.fx-rte-size-inp {
    width: 58px !important;
    height: 28px !important;
    padding: 2px 6px !important;
    font-size: 0.76rem !important;
    border-radius: 7px !important;
}
.fx-studio-rte {
    min-height: 92px;
    padding: 12px 14px;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border);
    background: rgba(128, 128, 128, 0.03);
    color: var(--fg);
    font-size: 0.94rem;
    line-height: 1.85;
    outline: none;
}
.fx-b-heading-rte {
    min-height: 52px;
    font-size: 1.08rem;
    font-weight: 800;
}
.fx-studio-rte:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    opacity: 0.65;
    pointer-events: none;
}
.fx-b-mob-twin-details,
.fx-b-img-style-details {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    font-size: 0.8rem;
}
.fx-b-mob-twin-details summary,
.fx-b-img-style-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--muted);
}
.fx-b-img-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.fx-b-img-live-frame {
    overflow: hidden;
    margin-top: 10px;
    transition: all .2s ease;
}
.fx-b-img-live-frame img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

/* List & Table Builders inside Studio */
.fx-b-list-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fx-b-list-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.fx-b-list-del-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: #ef4444;
    cursor: pointer;
}
.fx-b-tbl-editor-wrap {
    overflow-x: auto;
}
.fx-b-tbl-editor {
    width: 100%;
    border-collapse: collapse;
}
.fx-b-tbl-editor th,
.fx-b-tbl-editor td {
    padding: 4px;
    border: 1px solid var(--border);
}
.fx-b-tbl-editor input {
    border: none !important;
    background: transparent !important;
    padding: 6px 8px !important;
    font-size: 0.82rem !important;
}

/* 9-Block Palette Dock */
.fx-studio-palette-dock {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed var(--border);
}
.fx-studio-palette-dock__title {
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.fx-studio-palette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.fx-studio-palette-grid .fx-studio-add-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass-bg);
}
.fx-sadd-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(79, 91, 213, 0.12);
    color: var(--accent, #4f5bd5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.fx-studio-palette-grid .fx-studio-add-btn strong {
    display: block;
    font-size: 0.82rem;
}
.fx-studio-palette-grid .fx-studio-add-btn small {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
}

/* Inspector Sidebar Cards */
.fx-studio-inspector-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 76px;
}
.fx-studio-side-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.fx-studio-side-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.fx-studio-side-card__head h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
}
.fx-studio-score-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(79, 91, 213, 0.14);
    color: var(--accent, #4f5bd5);
    font-size: 0.76rem;
    font-weight: 800;
}
.fx-studio-score-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(128, 128, 128, 0.18);
    overflow: hidden;
    margin-bottom: 12px;
}
.fx-studio-score-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease, background .3s ease;
}
.fx-studio-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.06);
}
.fx-studio-metrics-grid strong {
    display: block;
    font-size: 0.92rem;
    color: var(--accent, #4f5bd5);
}
.fx-studio-metrics-grid span {
    font-size: 0.68rem;
    color: var(--muted);
}
.fx-studio-seo-checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--muted);
}
.fx-studio-seo-checklist li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fx-studio-seo-checklist li.is-pass {
    color: #10b981;
    font-weight: 600;
}
.fx-studio-toc-preview {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
}
.fx-studio-toc-preview li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.06);
    cursor: pointer;
}
.fx-studio-toc-preview li:hover {
    color: var(--accent, #4f5bd5);
}
.fx-studio-toc-preview li.is-empty {
    color: var(--muted);
    cursor: default;
    font-size: 0.76rem;
}
.fx-stoc-num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(79, 91, 213, 0.15);
    color: var(--accent, #4f5bd5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}
.fx-studio-serp-box {
    padding: 12px;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid var(--border);
}
.fx-studio-serp-site {
    font-size: 0.72rem;
    color: var(--muted);
    direction: ltr;
    text-align: right;
}
.fx-studio-serp-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #3b82f6;
    margin: 3px 0;
}
.fx-studio-serp-desc {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Live Article Preview Modal */
.fx-studio-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fx-studio-preview-modal[hidden] {
    display: none !important;
}
.fx-studio-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 26, 0.14);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.fx-studio-preview-dialog {
    position: relative;
    z-index: 2;
    width: min(920px, 96vw);
    max-height: 88vh;
    border-radius: 22px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--glass-inquiry_card-bg, var(--glass-bg));
    -webkit-backdrop-filter: blur(16px) saturate(205%);
    backdrop-filter: blur(16px) saturate(205%);
}
.fx-studio-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.fx-studio-preview-body {
    padding: 28px;
    overflow-y: auto;
}

/* Frontend Rendering of Rich Editorial Studio Blocks in single.php */
.fx-article-subhead {
    margin: 24px 0 10px;
    font-weight: 800;
    line-height: 1.5;
}
.fx-article-callout {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    border-right: 4px solid var(--accent, #4f5bd5);
}
.fx-article-callout.is-tip { border-right-color: #3b82f6; background: rgba(59, 130, 246, 0.07); }
.fx-article-callout.is-success { border-right-color: #10b981; background: rgba(16, 185, 129, 0.07); }
.fx-article-callout.is-warning { border-right-color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
.fx-article-callout.is-summary { border-right-color: #8b5cf6; background: rgba(139, 92, 246, 0.08); }
.fx-article-callout__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.96rem;
}
.fx-article-callout__body {
    font-size: 0.92rem;
    line-height: 1.85;
}
.fx-article-list {
    margin: 16px 0;
    padding-right: 22px;
    line-height: 1.9;
}
.fx-article-list.is-check {
    list-style: none;
    padding-right: 4px;
}
.fx-article-check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    font-weight: 800;
    font-size: 0.75rem;
    margin-left: 6px;
}
.fx-article-table-wrap {
    margin: 22px 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.fx-article-table-scroll {
    overflow-x: auto;
}
.fx-article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.fx-article-table th,
.fx-article-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}
.fx-article-table th {
    background: rgba(79, 91, 213, 0.1);
    font-weight: 800;
}
.fx-article-table-cap {
    padding: 8px 14px;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}
.fx-article-code-block {
    margin: 20px 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.28);
    -webkit-backdrop-filter: blur(12px) saturate(190%);
    backdrop-filter: blur(12px) saturate(190%);
    color: #e2e8f0;
    overflow: hidden;
}
.fx-article-code-head {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-family: monospace;
    color: #94a3b8;
}
.fx-article-code-block pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font-size: 0.86rem;
    line-height: 1.65;
}

@media (max-width: 1024px) {
    .fx-studio-workspace-grid {
        grid-template-columns: 1fr;
    }
    .fx-studio-inspector-sidebar {
        position: static;
    }
    .fx-studio-palette-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .fx-studio-palette-grid,
    .fx-b-img-style-grid {
        grid-template-columns: 1fr;
    }
}

