/* ============================================================
   Vexxa AI — Motion / FX layer
   Additive only. Loads AFTER theme.css and never overrides
   existing component rules — it just adds animation polish.
   Vanilla CSS, no libraries (RULES.md #4).
   ============================================================ */

/* ----------------------------------------------------------
   0. Tunables
   ---------------------------------------------------------- */
:root {
    --vxfx-tilt:        7deg;   /* max card tilt */
    --vxfx-ease:        cubic-bezier(.22, 1, .36, 1);
}

/* ----------------------------------------------------------
   1. Hero particle constellation
   A single <canvas> injected at the top of .vx-slider.
   Sits in front of the dark scrim, behind the (white) copy
   thanks to `screen` blending — bright particles vanish over
   light text but glow over the dark imagery.
   ---------------------------------------------------------- */
.vx-fx-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.vx-fx-canvas.is-on { opacity: 1; }

/* ----------------------------------------------------------
   2. Drifting aurora — slow-moving colour blobs behind the
   whole page. Complements the existing static .vx-body::before.
   ---------------------------------------------------------- */
.vx-aurora {
    position: fixed;
    inset: -20vmax;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}
.vx-aurora span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(58px);
    opacity: .72;
    will-change: transform;
}
.vx-aurora span:nth-child(1) {
    width: 46vmax; height: 46vmax;
    left: -6vmax; top: -8vmax;
    background: radial-gradient(circle at 30% 30%, rgba(var(--vx-primary-rgb), .8), transparent 64%);
    animation: vxFloatA 18s var(--vxfx-ease) infinite alternate;
}
.vx-aurora span:nth-child(2) {
    width: 40vmax; height: 40vmax;
    right: -8vmax; top: -4vmax;
    background: radial-gradient(circle at 50% 50%, rgba(var(--vx-accent-rgb), .72), transparent 64%);
    animation: vxFloatB 23s var(--vxfx-ease) infinite alternate;
}
.vx-aurora span:nth-child(3) {
    width: 52vmax; height: 52vmax;
    left: 35%; bottom: -22vmax;
    background: radial-gradient(circle at 50% 50%, rgba(18, 184, 160, .6), transparent 64%);
    animation: vxFloatC 27s var(--vxfx-ease) infinite alternate;
}
.vx-aurora span:nth-child(4) {
    width: 34vmax; height: 34vmax;
    right: 20%; bottom: -10vmax;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, .6), transparent 64%);
    animation: vxFloatD 21s var(--vxfx-ease) infinite alternate;
}
@keyframes vxFloatA { to { transform: translate3d(18vmax, 12vmax, 0) scale(1.2); } }
@keyframes vxFloatB { to { transform: translate3d(-16vmax, 14vmax, 0) scale(1.15); } }
@keyframes vxFloatC { to { transform: translate3d(10vmax, -18vmax, 0) scale(1.25); } }
@keyframes vxFloatD { to { transform: translate3d(-14vmax, -10vmax, 0) scale(1.18); } }

/* ----------------------------------------------------------
   2b. Hero 3D portfolio ring — spins / tilts with the mouse
   JS places each item in a 3D circle and animates the stage.
   ---------------------------------------------------------- */
.vx-hero-gallery {
    position: absolute;
    z-index: 3;
    top: 48%;
    inset-inline-end: clamp(.5rem, 4vw, 4.5rem);
    transform: translateY(-50%);
    width: clamp(320px, 40vw, 560px);
    height: clamp(320px, 40vw, 560px);
    perspective: 1400px;
    pointer-events: none;
}
.vx-hero-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}
.vx-hero-ring__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(190px, 21vw, 290px);
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(10, 12, 28, .5);
    box-shadow:
        0 22px 50px -18px rgba(0, 0, 0, .7),
        0 0 40px -8px rgba(var(--vx-primary-rgb), .4);
    backface-visibility: hidden;
    will-change: transform, opacity;
    /* JS sets the full transform incl. translate(-50%,-50%) */
}
.vx-hero-ring__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Subtle brand sheen over each tile */
.vx-hero-ring__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(var(--vx-primary-rgb), .28), transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Hide the ring where the hero stacks (mobile / tablet portrait) */
@media (max-width: 991.98px) {
    .vx-hero-gallery { display: none; }
}

/* ----------------------------------------------------------
   3. Scroll progress bar (top of viewport)
   ---------------------------------------------------------- */
.vx-scrollbar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--vx-gradient-text);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(var(--vx-primary-rgb), .6);
}
html[dir="rtl"] .vx-scrollbar { transform-origin: right center; }

/* ----------------------------------------------------------
   4. 3D tilt + spotlight cards (ASTRA-style floating glass)
   JS adds .vx-fx-tilt and drives the custom props.
   ---------------------------------------------------------- */
.vx-fx-tilt {
    position: relative;
    isolation: isolate;                 /* local stacking ctx so the glow sits under content */
    transform-style: preserve-3d;
    transition: transform .4s var(--vxfx-ease), box-shadow .4s var(--vxfx-ease);
    will-change: transform;
    --vxfx-mx: 50%;
    --vxfx-my: 50%;
}
.vx-fx-tilt.is-tilting {
    transition: box-shadow .4s var(--vxfx-ease);
    box-shadow:
        0 40px 90px -28px rgba(18, 21, 48, .38),
        0 0 50px -6px rgba(var(--vx-primary-rgb), .45);
    border-color: rgba(var(--vx-primary-rgb), .55) !important;
}
/* Moving highlight that follows the cursor */
.vx-fx-tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px 320px at var(--vxfx-mx) var(--vxfx-my),
        rgba(var(--vx-primary-rgb), .30),
        rgba(var(--vx-accent-rgb), .12) 38%,
        transparent 62%);
    opacity: 0;
    transition: opacity .35s var(--vxfx-ease);
    pointer-events: none;
    /* Sit just above the card background but UNDER its content, so we
       never need to re-position children (that used to break the
       absolutely-positioned feature avatar / plan badge). */
    z-index: -1;
}
.vx-fx-tilt.is-tilting::after { opacity: 1; }

/* ----------------------------------------------------------
   5. Magnetic buttons
   ---------------------------------------------------------- */
.vx-fx-magnet {
    transition: transform .25s var(--vxfx-ease);
    will-change: transform;
}

/* ----------------------------------------------------------
   5b. Feature avatars — float + glowing pulse (staggered)
   The avatar keeps its translateX(-50%) centering inside the
   keyframes so it stays centred while bobbing.
   ---------------------------------------------------------- */
.vx-feature-photo {
    animation:
        vxPhotoFloat 4.6s var(--vxfx-ease) infinite,
        vxPhotoGlow  3.6s ease-in-out infinite;
}
@keyframes vxPhotoFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-9px); }
}
@keyframes vxPhotoGlow {
    0%, 100% { box-shadow: var(--vx-shadow), 0 0 0 0 rgba(var(--vx-primary-rgb), 0); }
    50%      { box-shadow: var(--vx-shadow), 0 0 34px 3px rgba(var(--vx-primary-rgb), .5); }
}
/* Stagger so the four avatars bob out of sync */
.vx-features-row > [class*="col"]:nth-child(2) .vx-feature-photo { animation-delay: .3s, .3s; }
.vx-features-row > [class*="col"]:nth-child(3) .vx-feature-photo { animation-delay: .6s, .6s; }
.vx-features-row > [class*="col"]:nth-child(4) .vx-feature-photo { animation-delay: .9s, .9s; }
/* Grow slightly on card hover for a lively touch */
.vx-feature-card:hover .vx-feature-photo { transform: translateX(-50%) translateY(-9px) scale(1.06); }

/* ----------------------------------------------------------
   6. Reveal upgrades — works with the existing [data-reveal]
   class. We add direction + a soft blur for a richer entrance.
   The base theme already toggles .is-visible via app.js.
   ---------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(52px) scale(.96);
    filter: blur(10px);
    transition:
        opacity .9s var(--vxfx-ease),
        transform .9s var(--vxfx-ease),
        filter .9s var(--vxfx-ease);
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"]  { transform: scale(.92); }

/* ----------------------------------------------------------
   7. Animated gradient text shimmer (hero highlight)
   ---------------------------------------------------------- */
.vx-text-gradient-light {
    background-size: 220% auto;
    animation: vxShimmer 6s linear infinite;
}
@keyframes vxShimmer {
    to { background-position: 220% center; }
}

/* ----------------------------------------------------------
   8. Domain search — full redesign (dark neon glass panel)
   Overrides the light theme card. Loads after theme.css so
   same-specificity rules win; .vx-domain-search.vx-glass beats
   the .vx-glass background.
   ---------------------------------------------------------- */
.vx-domain-search.vx-glass {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(26, 22, 58, .88), rgba(10, 11, 28, .92));
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 36px 90px -34px rgba(0, 0, 0, .8),
        0 0 70px -22px rgba(var(--vx-primary-rgb), .55);
    overflow: hidden;
}
/* Glowing gradient border ring */
.vx-domain-search.vx-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(125deg,
        rgba(var(--vx-primary-rgb), .9), transparent 38%,
        transparent 62%, rgba(var(--vx-accent-rgb), .85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}
/* Keep content above the border ring */
.vx-domain-search.vx-glass > * { position: relative; z-index: 1; }

/* Header — glowing icon badge + bright text */
.vx-domain-search-head { gap: .9rem; margin-bottom: 1.5rem; }
.vx-domain-search-head > .bi {
    width: 3.1rem; height: 3.1rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--vx-gradient);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 12px 32px -8px rgba(var(--vx-primary-rgb), .75);
}
.vx-domain-search-head span { color: #fff; font-size: 1.22rem; }
.vx-domain-search-head small { color: rgba(255, 255, 255, .58); font-size: .9rem; }

/* Unified search bar — field + button inside one glowing pill */
.vx-domain-form {
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--vx-radius-pill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: border-color .25s, box-shadow .25s;
    align-items: center;
}
.vx-domain-form:focus-within {
    border-color: rgba(var(--vx-primary-rgb), .75);
    box-shadow:
        0 0 0 4px rgba(var(--vx-primary-rgb), .18),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}
.vx-domain-field {
    background: transparent;
    border: 0;
    padding-inline: 1.2rem 0;
    flex: 1 1 240px;
}
.vx-domain-field:focus-within { border: 0; box-shadow: none; }
.vx-domain-field .bi { color: rgba(255, 255, 255, .5); font-size: 1.15rem; }
.vx-domain-field input { color: #fff; font-size: 1.02rem; padding: .85rem 0; }
.vx-domain-field input::placeholder { color: rgba(255, 255, 255, .42); }

.vx-domain-form .vx-btn--primary {
    border-radius: var(--vx-radius-pill);
    padding: .92rem 1.7rem;
    font-size: 1rem;
}

/* TLD chips — glass pills */
.vx-domain-tlds {
    gap: .6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.vx-domain-tlds span {
    padding: .42rem .9rem;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--vx-radius-pill);
    color: rgba(255, 255, 255, .82);
    font-size: .84rem;
    transition: border-color .2s, background .2s, transform .2s;
}
.vx-domain-tlds span:hover {
    background: rgba(var(--vx-primary-rgb), .16);
    border-color: rgba(var(--vx-primary-rgb), .5);
    transform: translateY(-2px);
}
.vx-domain-tlds .bi { color: var(--vx-accent); }
.vx-domain-tlds b { color: #fff; }

/* Result panels — adapt to the dark glass */
.vx-domain-result { border-color: rgba(255, 255, 255, .12); }
.vx-domain-result__header { background: rgba(255, 255, 255, .05); }
.vx-domain-result__name { color: #fff; }
.vx-domain-result__body {
    background: rgba(255, 255, 255, .03);
    border-top-color: rgba(255, 255, 255, .1);
}
.vx-domain-result__price-value { color: #fff; }
.vx-domain-result__price-label { color: rgba(255, 255, 255, .55); }
.vx-domain-results__title { color: rgba(255, 255, 255, .72); }
.vx-domain-result-item { border-bottom-color: rgba(255, 255, 255, .08); }
.vx-domain-result-item:hover { background: rgba(255, 255, 255, .05); }
.vx-domain-result-item__domain { color: #fff; }
.vx-domain-result-item__price { color: rgba(255, 255, 255, .72); }

/* Mobile — un-merge the search bar so stacked controls look right */
@media (max-width: 575.98px) {
    .vx-domain-form {
        flex-direction: column;
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
        gap: .6rem;
    }
    .vx-domain-field {
        /* Reset the flex-basis: in a column the 240px basis becomes HEIGHT,
           which turned the pill into a giant round blob. */
        flex: 0 0 auto;
        width: 100%;
        padding-inline: 1.15rem;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .14);
        /* Softer card radius — a full pill on a full-width control reads as round/messy. */
        border-radius: var(--vx-radius);
    }
    .vx-domain-form .vx-btn--primary { width: 100%; border-radius: var(--vx-radius); justify-content: center; }
}

/* ----------------------------------------------------------
   8b. Our Story — animated journey timeline
   ---------------------------------------------------------- */
.vx-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
/* Connecting line behind the node row */
.vx-tl-line {
    position: absolute;
    top: 83px;
    left: 8%;
    right: 8%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .12);
    z-index: 0;
    overflow: hidden;
}
.vx-tl-line-fill {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--vx-gradient-text);
    box-shadow: 0 0 14px rgba(var(--vx-primary-rgb), .8);
    transition: transform 1.5s var(--vxfx-ease) .15s;
}
html[dir="rtl"] .vx-tl-line-fill { transform-origin: right center; }
.vx-timeline.is-in .vx-tl-line-fill { transform: scaleX(1); }

.vx-tl-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.vx-tl-year {
    height: 56px;
    display: flex;
    align-items: center;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -.02em;
}
.vx-tl-node {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #fff;
    background: rgba(10, 12, 28, .92);
    border: 2px solid rgba(var(--vx-primary-rgb), .6);
    box-shadow:
        0 0 0 6px rgba(var(--vx-primary-rgb), .12),
        0 14px 30px -10px rgba(var(--vx-primary-rgb), .85);
    transition: transform .4s var(--vxfx-ease), box-shadow .4s;
}
.vx-tl-item:hover .vx-tl-node {
    transform: scale(1.12) translateY(-3px);
    box-shadow:
        0 0 0 8px rgba(var(--vx-primary-rgb), .2),
        0 18px 42px -10px rgba(var(--vx-primary-rgb), 1);
}
.vx-tl-card {
    width: 100%;
    padding: 1.4rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .4s var(--vxfx-ease), border-color .4s, background .4s;
}
.vx-tl-item:hover .vx-tl-card {
    transform: translateY(-5px);
    border-color: rgba(var(--vx-primary-rgb), .45);
    background: rgba(255, 255, 255, .07);
}
.vx-tl-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.vx-tl-card p { color: rgba(255, 255, 255, .7); font-size: .92rem; line-height: 1.6; margin: 0; }

/* 2-up on tablets, single column on phones — drop the horizontal line */
@media (max-width: 991.98px) {
    .vx-timeline { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1.5rem; }
    .vx-tl-line { display: none; }
    .vx-tl-node { margin-bottom: 1.1rem; }
}
@media (max-width: 575.98px) {
    .vx-timeline { grid-template-columns: 1fr; gap: 2rem; }
}

/* ----------------------------------------------------------
   8c. Service cards — ThemeForest list-view items (horizontal)
   ---------------------------------------------------------- */
.vx-tf-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.vx-tf-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: clamp(1.1rem, 2vw, 2rem);
    padding: 1.25rem;
    background: var(--vx-surface-solid);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    transition: transform .35s var(--vxfx-ease), box-shadow .35s var(--vxfx-ease), border-color .35s;
}
.vx-tf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vx-shadow);
    border-color: rgba(var(--vx-primary-rgb), .35);
}

/* Thumbnail */
.vx-tf-thumb {
    position: relative;
    flex: 0 0 clamp(240px, 34%, 400px);
    align-self: stretch;
    min-height: clamp(200px, 18vw, 280px);
    border-radius: var(--vx-radius-sm);
    overflow: hidden;
    background: var(--vx-surface-2);
}
.vx-tf-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--vxfx-ease);
}
.vx-tf-card:hover .vx-tf-thumb img { transform: scale(1.06); }
/* Folded corner ribbon */
.vx-tf-ribbon {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 56px;
    height: 56px;
    z-index: 2;
    color: #fff;
    background: linear-gradient(135deg, var(--vx-accent-2) 0%, var(--vx-primary) 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px 0 0 6px;
    font-size: .8rem;
}
html[dir="rtl"] .vx-tf-ribbon { clip-path: polygon(0 0, 100% 0, 100% 100%); padding: 6px 6px 0 0; justify-content: flex-end; }

/* Main info */
.vx-tf-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .35rem 0;
}
.vx-tf-title { display: block; }
.vx-tf-title h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    margin: 0;
    transition: color .25s var(--vxfx-ease);
}
.vx-tf-title:hover h3 { color: var(--vx-primary); }
.vx-tf-by {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: var(--vx-muted);
    font-size: .88rem;
}
.vx-tf-by b { color: var(--vx-heading); font-weight: 700; }
.vx-tf-icon {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    background: rgba(var(--vx-primary-rgb), .1);
    color: var(--vx-primary);
    font-size: .9rem;
}
.vx-tf-points {
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.vx-tf-points li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--vx-text);
    font-size: .9rem;
}
.vx-tf-points li .bi { color: var(--vx-accent-2); font-size: .85rem; flex-shrink: 0; }
.vx-tf-desc { color: var(--vx-muted); font-size: .92rem; line-height: 1.6; margin: .25rem 0 0; }

/* Right rail */
.vx-tf-rail {
    flex: 0 0 clamp(190px, 22%, 240px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
    padding-inline-start: clamp(1rem, 2vw, 1.5rem);
    border-inline-start: 1px solid var(--vx-border);
}
.vx-tf-price {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 900;
    color: var(--vx-heading);
    line-height: 1.1;
}
.vx-tf-from {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--vx-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.vx-tf-meta { color: var(--vx-faint); font-size: .8rem; }

.vx-tf-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .35rem;
}

/* Packages dropdown (native <details>) */
.vx-tf-cart { position: relative; }
.vx-tf-cart > summary {
    list-style: none;
    cursor: pointer;
}
.vx-tf-cart > summary::-webkit-details-marker { display: none; }
.vx-tf-ibtn {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: var(--vx-radius-sm);
    border: 1px solid var(--vx-border);
    background: var(--vx-surface-2);
    color: var(--vx-heading);
    font-size: 1.05rem;
    transition: background .25s, color .25s, border-color .25s;
}
.vx-tf-cart[open] > summary .vx-tf-ibtn,
.vx-tf-ibtn:hover {
    background: var(--vx-gradient);
    color: #fff;
    border-color: transparent;
}
.vx-tf-pkgs {
    position: absolute;
    bottom: calc(100% + .6rem);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: max-content;
    min-width: 230px;
    max-width: 290px;
    padding: .6rem;
    background: var(--vx-surface-solid);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-sm);
    box-shadow: var(--vx-shadow);
    text-align: start;
    animation: vxTfPop .2s var(--vxfx-ease);
}
html[dir="rtl"] .vx-tf-pkgs { inset-inline-start: auto; inset-inline-end: 50%; transform: translateX(50%); }
@keyframes vxTfPop { from { opacity: 0; transform: translate(-50%, 6px); } }
.vx-tf-pkgs-head {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--vx-muted);
    padding: .2rem .55rem .5rem;
}
.vx-tf-pkg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .6rem .55rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background .2s;
}
.vx-tf-pkg-form { margin: 0; width: 100%; }
.vx-tf-pkg:hover { background: var(--vx-surface-2); }
.vx-tf-pkg-name { font-weight: 700; color: var(--vx-heading); font-size: .9rem; }
.vx-tf-pkg-price { font-weight: 800; color: var(--vx-primary); font-size: .9rem; white-space: nowrap; }
.vx-tf-pkg-price small { color: var(--vx-muted); font-weight: 600; font-size: .72rem; }

.vx-tf-live {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .72rem 1.1rem;
    border-radius: var(--vx-radius-sm);
    border: 1.5px solid var(--vx-primary);
    color: var(--vx-primary);
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    transition: background .25s, color .25s;
}
.vx-tf-live:hover { background: var(--vx-primary); color: #fff; }

/* Stack vertically on small screens */
@media (max-width: 767.98px) {
    .vx-tf-card { flex-direction: column; gap: 1rem; }
    .vx-tf-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .vx-tf-rail {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: start;
        padding-inline-start: 0;
        padding-top: 1rem;
        border-inline-start: 0;
        border-top: 1px solid var(--vx-border);
    }
    .vx-tf-actions { margin-top: 0; }
}

/* ----------------------------------------------------------
   8d. Portfolio cards — browser-mockup style
   ---------------------------------------------------------- */
.vx-pf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--vx-surface-solid);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    overflow: hidden;
    transition: transform .35s var(--vxfx-ease), box-shadow .35s var(--vxfx-ease), border-color .35s;
}
.vx-pf-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--vx-shadow-lg);
    border-color: rgba(var(--vx-primary-rgb), .4);
}

/* Browser chrome */
.vx-pf-browser { display: block; }
.vx-pf-bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem;
    background: var(--vx-surface-2);
    border-bottom: 1px solid var(--vx-border);
}
.vx-pf-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.vx-pf-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--vx-faint); }
.vx-pf-dots i:nth-child(1) { background: #ff5f57; }
.vx-pf-dots i:nth-child(2) { background: #febc2e; }
.vx-pf-dots i:nth-child(3) { background: #28c840; }
.vx-pf-url {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .8rem;
    border-radius: var(--vx-radius-pill);
    background: var(--vx-surface-solid);
    border: 1px solid var(--vx-border);
    color: var(--vx-muted);
    font-size: .78rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.vx-pf-url .bi { color: var(--vx-accent-2); font-size: .72rem; flex-shrink: 0; }

/* Screenshot — pans down on hover (works for tall screenshots) */
.vx-pf-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--vx-surface-2);
}
.vx-pf-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    transition: object-position 2.6s var(--vxfx-ease);
}
.vx-pf-card:hover .vx-pf-shot img { object-position: 50% 100%; }
.vx-pf-open {
    position: absolute;
    top: .7rem;
    inset-inline-end: .7rem;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--vx-heading);
    box-shadow: var(--vx-shadow-sm);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s var(--vxfx-ease), transform .3s var(--vxfx-ease);
}
.vx-pf-card:hover .vx-pf-open { opacity: 1; transform: none; }
html[dir="rtl"] .vx-pf-open .bi { transform: scaleX(-1); }

/* Body */
.vx-pf-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.1rem 1.2rem 1.2rem;
    flex: 1;
}
.vx-pf-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
}
.vx-pf-title { display: block; min-width: 0; }
.vx-pf-title h3 {
    font-size: 1.12rem;
    margin: 0;
    transition: color .25s var(--vxfx-ease);
}
.vx-pf-title:hover h3 { color: var(--vx-primary); }
.vx-pf-cat {
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 700;
    padding: .26rem .7rem;
    border-radius: var(--vx-radius-pill);
    background: rgba(var(--vx-primary-rgb), .1);
    color: var(--vx-primary);
    white-space: nowrap;
}

/* Preview buttons */
.vx-pf-actions {
    display: flex;
    gap: .5rem;
    margin-top: auto;
}
.vx-pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    height: 2.7rem;
    padding: 0 1rem;
    border-radius: var(--vx-radius-sm);
    border: 1px solid var(--vx-border);
    background: var(--vx-surface-2);
    color: var(--vx-heading);
    font-weight: 700;
    font-size: .86rem;
    transition: transform .25s var(--vxfx-ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.vx-pf-btn--web {
    flex: 1;
    background: var(--vx-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 26px -10px rgba(var(--vx-primary-rgb), .75);
}
.vx-pf-btn--web:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px rgba(var(--vx-primary-rgb), .9);
}
.vx-pf-btn--ic { width: 2.7rem; padding: 0; flex-shrink: 0; font-size: 1.05rem; }
.vx-pf-btn--ic:hover { background: var(--vx-primary); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ----------------------------------------------------------
   9. Respect reduced-motion — disable all the heavy stuff
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .vx-fx-canvas { display: none !important; }
    .vx-aurora span { animation: none !important; }
    .vx-scrollbar { display: none !important; }
    .vx-fx-tilt { transform: none !important; }
    .vx-fx-tilt::after { display: none !important; }
    .vx-fx-magnet { transform: none !important; }
    .vx-feature-photo { animation: none !important; transform: translateX(-50%) !important; }
    .vx-tl-line-fill { transition: none !important; transform: none !important; }
    .vx-pf-shot img { transition: none !important; object-position: 50% 0% !important; }
    .vx-text-gradient-light { animation: none !important; }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
