/*
 * NexScaleX Signature Luxury Identity, Licensed Open Props + Embla Showcase,
 * Multi-Channel Sales Popouts & Illustrated Editorial Formatting v8 (`1.3.86`).
 */

@view-transition {
    navigation: auto;
}

:root {
    --nxs-obsidian: #0d1117;
    --nxs-obsidian-elev: #151c26;
    --nxs-gold: #e3b94b;
    --nxs-gold-soft: #f5d376;
    --nxs-ivory: #f6f4ef;
    --nxs-ease-expo: var(--ease-out-5, cubic-bezier(0.16, 1, 0.3, 1));
    --nxs-ease-spring: var(--ease-spring-3, cubic-bezier(0.22, 1, 0.36, 1));
}

.nxs-popout-showcase,
.nxs-popout-showcase *,
.nxs-sales-popout-dialog,
.nxs-sales-popout-dialog *,
.nxs-mid-article-figure,
.nxs-mid-article-figure *,
.nxs-inline-popout-callout,
.nxs-inline-popout-callout *,
.nxs-inline-partner-callout,
.nxs-inline-partner-callout *,
.nxs-deals-grid,
.nxs-deals-grid * {
    box-sizing: border-box;
}

/* 1. Header Express Offer / Packages Quick-Open Trigger */
.nxs-header-packages-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(227, 185, 75, 0.52);
    background: linear-gradient(135deg, rgba(227, 185, 75, 0.18) 0%, rgba(227, 185, 75, 0.06) 100%);
    color: #f5d376 !important;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.22s var(--nxs-ease-expo), color 0.22s ease, transform 0.22s var(--nxs-ease-expo);
}
.nxs-header-packages-btn:hover {
    background: #e3b94b;
    color: #111418 !important;
    transform: translateY(-1px);
}

/* 2. Embla-Powered Services & $100+ Instant Offers Showcase */
.nxs-popout-showcase {
    padding: 20px 0 46px;
}
.nxs-popout-showcase--services .nxs-container {
    padding-inline: 0;
}
.nxs-popout-showcase-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 22px;
}
.nxs-popout-showcase-head > div:first-child {
    flex: 1 1 540px;
    min-width: 0;
}
.nxs-popout-showcase-title {
    margin: 4px 0 0 !important;
    font-size: clamp(21px, 2.5vw, 30px) !important;
    line-height: 1.32 !important;
}
.nxs-embla-controls {
    display: inline-flex;
    gap: 8px;
}
.nxs-embla-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(17, 20, 24, 0.2);
    background: #111418;
    color: #f5d376;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nxs-embla-btn:hover {
    background: #e3b94b;
    color: #111418;
}

.nxs-embla-viewport {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.nxs-embla-viewport::-webkit-scrollbar {
    display: none;
}
.nxs-embla-container {
    display: flex;
    gap: 16px;
    padding-block: 4px 10px;
}
.nxs-embla-slide {
    flex: 0 0 min(350px, 84vw);
    min-width: 0;
    scroll-snap-align: start;
}
.nxs-svc-pop-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: linear-gradient(155deg, #0e131b 0%, #171f2c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f2ef;
    box-shadow: 0 16px 36px rgba(11, 15, 22, 0.14);
}
.nxs-svc-pop-card.is-featured-offer {
    border-color: rgba(227, 185, 75, 0.56);
    background:
        radial-gradient(circle at 92% 8%, rgba(227, 185, 75, 0.18), transparent 46%),
        linear-gradient(155deg, #111620 0%, #1d2534 100%);
}
.nxs-svc-pop-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.nxs-svc-pop-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(227, 185, 75, 0.15);
    color: #f5d376;
    font-size: 11px;
    font-weight: 800;
}
.nxs-svc-pop-price {
    font-size: 12.2px;
    font-weight: 700;
    color: #86efac;
}
.nxs-svc-pop-card h3 {
    margin: 0 0 9px !important;
    font-size: 18px !important;
    line-height: 1.38 !important;
    color: #ffffff !important;
}
.nxs-svc-pop-card p {
    margin: 0 0 14px !important;
    font-size: 13.4px !important;
    line-height: 1.66 !important;
    color: #cbd5e1 !important;
}
.nxs-svc-pop-proof {
    margin-top: auto;
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.8px;
    font-weight: 700;
    color: #f8fafc;
}
.nxs-svc-pop-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.nxs-svc-pop-trigger {
    flex: 1 1 auto;
    min-height: 43px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: #e3b94b;
    color: #111418;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.nxs-svc-pop-page {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* 3. Native Multi-Channel `<dialog id="nxs-sales-popout">` Modal */
body.nxs-popout-open {
    overflow: hidden;
}
.nxs-sales-popout-dialog {
    width: min(980px, calc(100vw - 24px));
    max-height: min(88vh, 840px);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(227, 185, 75, 0.45);
    border-radius: 22px;
    background: #0e131b;
    color: #f8fafc;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
    overflow: auto;
}
.nxs-sales-popout-dialog::backdrop {
    background: rgba(6, 9, 14, 0.76);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.nxs-sales-popout-dialog[open] {
    animation: nxs-dialog-spring 0.34s var(--nxs-ease-expo) both;
}
@keyframes nxs-dialog-spring {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
.nxs-sales-popout-shell {
    padding: clamp(18px, 2.8vw, 28px);
}
.nxs-sales-popout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nxs-popout-switcher-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
.nxs-popout-select {
    width: 100%;
    max-width: 480px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(227, 185, 75, 0.38);
    background: #161e2a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
}
.nxs-popout-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.nxs-sales-popout-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.98fr;
    gap: 24px;
    align-items: start;
}
.nxs-popout-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(227, 185, 75, 0.16);
    color: #f5d376;
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 8px;
}
.nxs-sales-popout-details h2 {
    margin: 0 0 10px !important;
    font-size: clamp(20px, 2.3vw, 26px) !important;
    line-height: 1.32 !important;
    color: #ffffff !important;
}
.nxs-popout-price-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(134, 239, 172, 0.34);
    color: #86efac;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}
.nxs-popout-summary {
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
}
.nxs-popout-proof-bar {
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: #f5d376;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 12px;
}
.nxs-popout-checklist {
    list-style: none;
    margin: 0 0 18px !important;
    padding: 0 !important;
    display: grid;
    gap: 7px;
    font-size: 13.3px;
    color: #e2e8f0;
}
.nxs-popout-channels-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}
.nxs-popout-channel-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.nxs-chan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 12.3px;
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
}
.nxs-chan-btn--wa {
    background: #16a34a;
    color: #ffffff !important;
}
.nxs-chan-btn--roi {
    background: rgba(227, 185, 75, 0.16);
    border: 1px solid rgba(227, 185, 75, 0.4);
    color: #f5d376 !important;
}
.nxs-chan-btn--page,
.nxs-chan-btn--mail {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0 !important;
}

.nxs-sales-popout-form-card {
    padding: 20px;
    border-radius: 16px;
    background: #151d29;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.nxs-popout-form-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #f5d376;
    margin-bottom: 4px;
}
.nxs-sales-popout-form-card h3 {
    margin: 0 0 14px !important;
    font-size: 17.5px !important;
    color: #ffffff !important;
}
.nxs-popout-field {
    display: block;
    margin-bottom: 10px;
}
.nxs-popout-field span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 4px;
}
.nxs-popout-field input,
.nxs-popout-field textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0b1017 !important;
    color: #ffffff !important;
    font-size: 13.5px;
}
.nxs-popout-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, #e3b94b 0%, #c89828 100%);
    color: #111418;
    font-size: 13.5px;
    font-weight: 900;
    cursor: pointer;
}
.nxs-popout-feedback {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}
.nxs-popout-feedback.is-success {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(134, 239, 172, 0.4);
    color: #dcfce7;
}
.nxs-popout-feedback.is-error {
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(252, 165, 165, 0.4);
    color: #fecaca;
}
.nxs-popout-wa-confirm {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #16a34a;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
}

/* 4. Magazine-Grade Article Formatting & Mid-Article Photography (`inc/editorial-formatting-engine.php`) */
.nxs-reading-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 1.35em;
}
body.nxs-ar .nxs-reading-content p {
    font-size: 17.5px;
    line-height: 1.98;
}

.nxs-reading-content h2.nxs-chapter-h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 2.1em !important;
    margin-bottom: 0.75em !important;
    padding-top: 0.75em;
    border-top: 1px solid rgba(17, 20, 24, 0.11);
    font-size: clamp(22px, 2.5vw, 29px) !important;
    line-height: 1.35 !important;
}
.nxs-ch-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    background: #111418;
    color: #f5d376;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.nxs-mid-article-figure {
    margin: 32px 0 !important;
    border-radius: 16px;
    overflow: hidden;
    background: #111418;
    border: 1px solid rgba(17, 20, 24, 0.14);
    box-shadow: 0 16px 36px rgba(17, 20, 24, 0.1);
}
.nxs-mid-figure-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #161b22;
}
.nxs-mid-figure-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nxs-mid-figure-badge {
    position: absolute;
    inset-inline-start: 14px;
    bottom: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.84);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(227, 185, 75, 0.4);
    color: #f5d376;
    font-size: 11px;
    font-weight: 700;
}
.nxs-mid-article-figure figcaption {
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    background: #111418;
}

.nxs-inline-popout-callout {
    margin: 28px 0;
    padding: 20px 22px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 15%, rgba(227, 185, 75, 0.16), transparent 48%),
        linear-gradient(145deg, #0f141d 0%, #192230 100%);
    border: 1px solid rgba(227, 185, 75, 0.42);
    color: #f8fafc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}
.nxs-inline-pop-copy {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nxs-inline-pop-kicker {
    font-size: 11.5px;
    font-weight: 800;
    color: #f5d376;
}
.nxs-inline-pop-copy strong {
    font-size: 17px;
    line-height: 1.38;
    color: #ffffff;
}
.nxs-inline-pop-meta {
    font-size: 12.5px;
    color: #cbd5e1;
}
.nxs-inline-pop-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nxs-inline-pop-btns button {
    cursor: pointer;
}

.nxs-inline-partner-callout {
    margin: 28px 0;
    padding: 18px 20px;
    border-radius: 15px;
    background: #f8f6f1;
    border: 1px solid rgba(17, 20, 24, 0.14);
    border-inline-start: 4px solid #e3b94b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}
.nxs-inline-partner-body {
    flex: 1 1 360px;
    min-width: 0;
}
.nxs-inline-partner-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #7c5d10;
    margin-bottom: 4px;
}
.nxs-inline-partner-body strong {
    display: block;
    font-size: 16.5px;
    color: #111418;
    margin-bottom: 4px;
}
.nxs-inline-partner-body p {
    margin: 0 !important;
    font-size: 13.8px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}
.nxs-inline-partner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.nxs-inline-deals-link {
    font-size: 12px;
    font-weight: 700;
    color: #111418 !important;
}

/* 5. Partner Deals Hub (`/deals/` & `/ar/deals-ar/`) + Blog Hub Subscribe Strip */
.nxs-hub-alert-strip {
    margin: 18px 0 22px;
}
.nxs-deals-disclosure {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f6f4ef;
    border: 1px solid rgba(17, 20, 24, 0.1);
    font-size: 13px;
    color: #334155;
}
.nxs-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.nxs-deal-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    border-radius: 16px;
    background: #11161f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}
.nxs-deal-card h2 {
    margin: 10px 0 8px !important;
    font-size: 20px !important;
    color: #ffffff !important;
}
.nxs-deal-card p {
    margin: 0 0 18px !important;
    font-size: 13.6px !important;
    line-height: 1.65 !important;
    color: #cbd5e1 !important;
}
.nxs-deal-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nxs-deal-setup-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(227, 185, 75, 0.36);
    background: transparent;
    color: #f5d376;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 960px) {
    .nxs-sales-popout-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nxs-deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .nxs-deals-grid,
    .nxs-popout-channel-btns {
        grid-template-columns: minmax(0, 1fr);
    }
    .nxs-inline-partner-actions,
    .nxs-inline-pop-btns,
    .nxs-inline-pop-btns > button {
        width: 100%;
        align-items: stretch;
        text-align: center;
        justify-content: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nxs-sales-popout-dialog[open] {
        animation: none !important;
    }
}
