/* =========================================================
   CAREFLIX MULTI-DEVICE UI SHOWCASE
   Add after your existing responsive/performance styles.
========================================================= */

.careflix-showcase {
    --cf-orange: #f58f3d;
    --cf-orange-deep: #e97922;
    --cf-orange-soft: #ffad6d;
    --cf-navy: #162437;
    --cf-navy-deep: #0b1725;
    --cf-bg: #f7f8fa;
    --cf-panel: rgba(13, 29, 47, 0.96);
    --cf-line: rgba(255, 255, 255, 0.11);
    --cf-text: #ffffff;
    --cf-muted: #aeb9c9;
    --cf-body: #687386;
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background:
        radial-gradient(circle at 88% 8%, rgba(245, 143, 61, 0.12), transparent 27%),
        radial-gradient(circle at 8% 86%, rgba(22, 36, 55, 0.055), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 58%, #ffffff 100%);
    color: var(--cf-navy);
    isolation: isolate;
}

.careflix-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(22, 36, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 36, 55, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 82%, transparent);
}

.careflix-showcase::after {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    right: -410px;
    top: 90px;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(245, 143, 61, 0.12);
    box-shadow:
        0 0 0 88px rgba(245, 143, 61, 0.025),
        0 0 0 176px rgba(22, 36, 55, 0.018);
}

.careflix-showcase .title-style-five span.pre,
.careflix-showcase .title-style-five .title {
    color: var(--cf-navy);
}

.careflix-showcase .title-style-five .title {
    margin-bottom: 18px;
}

.careflix-showcase .title-style-five .title span {
    color: var(--cf-orange);
}

.careflix-showcase__intro {
    max-width: 790px;
    margin: 0 auto 52px;
    text-align: center;
}

.careflix-showcase > .container {
    position: relative;
    z-index: 2;
}

.careflix-device-tab:focus-visible,
.careflix-control-btn:focus-visible,
.careflix-gallery-filter:focus-visible,
.careflix-gallery-card:focus-visible,
.careflix-gallery-nav button:focus-visible,
.careflix-lightbox button:focus-visible {
    outline: 3px solid rgba(245, 143, 61, 0.38);
    outline-offset: 3px;
}

.careflix-showcase__intro .disc {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cf-body);
    font-size: 17px;
    line-height: 1.75;
}

.careflix-showcase__shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    min-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(22, 36, 55, 0.10);
    border-radius: 34px;
    background: linear-gradient(145deg, #102338 0%, #0b1828 100%);
    box-shadow:
        0 34px 90px rgba(22, 36, 55, 0.18),
        0 8px 24px rgba(22, 36, 55, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.careflix-showcase__copy {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 48px;
    border-right: 1px solid var(--cf-line);
    background: linear-gradient(155deg, rgba(18, 40, 63, 0.98), rgba(9, 24, 40, 0.96));
}

.careflix-showcase__logo {
    width: 176px;
    max-width: 55%;
    height: auto;
    margin-bottom: 36px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
}

.careflix-device-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 38px;
}

.careflix-device-tab {
    position: relative;
    min-height: 68px;
    padding: 13px 38px 13px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: #dbe4ef;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.careflix-device-tab::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cf-orange), #ffbc73);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.careflix-device-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 145, 51, 0.42);
    color: #fff;
}

.careflix-device-tab.is-active {
    border-color: rgba(255, 145, 51, 0.55);
    background: linear-gradient(145deg, rgba(245, 143, 61, 0.22), rgba(255, 255, 255, 0.045));
    color: #fff;
}

.careflix-device-tab.is-active::before {
    transform: scaleX(1);
}

.careflix-device-tab__icon {
    display: block;
    margin-bottom: 5px;
    color: var(--cf-orange-soft);
    font-size: 17px;
}

.careflix-device-tab__icon--svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.careflix-device-tab__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.careflix-device-tab__count {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
    font-weight: 700;
}

.careflix-showcase__eyebrow {
    margin-bottom: 10px;
    color: var(--cf-orange-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.careflix-showcase__feature-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(28px, 2.2vw, 40px);
    font-weight: 700;
    line-height: 1.16;
}

.careflix-showcase__feature-copy {
    min-height: 84px;
    margin: 0;
    color: var(--cf-muted);
    font-size: 15px;
    line-height: 1.75;
}

.careflix-feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.careflix-feature-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #dbe4ef;
    font-size: 11px;
    font-weight: 600;
}

.careflix-showcase__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
}

.careflix-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.careflix-control-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 145, 51, 0.58);
    background: rgba(255, 122, 0, 0.16);
}

.careflix-control-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.careflix-control-btn .icon-pause,
.careflix-control-btn.is-paused .icon-play {
    display: block;
}

.careflix-control-btn .icon-play,
.careflix-control-btn.is-paused .icon-pause {
    display: none;
}

.careflix-showcase__counter {
    min-width: 76px;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.careflix-progress {
    position: relative;
    flex: 1;
    max-width: 110px;
    height: 2px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.13);
}

.careflix-progress__bar {
    position: absolute;
    inset: 0;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cf-orange), #ffbb72);
    transform: scaleX(0);
    transform-origin: left;
}

.careflix-showcase__shell.is-playing .careflix-progress__bar {
    animation: careflixProgress 5.2s linear forwards;
}

@keyframes careflixProgress {
    to { transform: scaleX(1); }
}

/* ---------------- Main visual stage ---------------- */
.careflix-stage {
    --cf-rotate-x: 0deg;
    --cf-rotate-y: 0deg;
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 680px;
    padding: 54px 42px 76px;
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 46%, rgba(245, 143, 61, 0.12), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(87, 121, 158, 0.10), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 60%);
}

.careflix-stage::before {
    content: "";
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 143, 61, 0.22), rgba(73, 104, 137, 0.07) 45%, transparent 70%);
    filter: blur(12px);
    animation: careflixPulse 7s ease-in-out infinite;
}

.careflix-stage::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 58px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.44);
    filter: blur(24px);
    transform: scaleX(0.78);
}

@keyframes careflixPulse {
    0%, 100% { transform: scale(0.94); opacity: 0.68; }
    50% { transform: scale(1.04); opacity: 1; }
}

.careflix-device-wrap {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 100%;
    transform: perspective(1300px) rotateX(var(--cf-rotate-x)) rotateY(var(--cf-rotate-y));
    transform-style: preserve-3d;
    transition: transform 0.22s ease-out;
}

.careflix-device {
    position: relative;
    width: min(790px, 94%);
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 24px;
    background: linear-gradient(145deg, #202a36, #060b11 68%);
    box-shadow:
        0 45px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    transition: width 0.55s cubic-bezier(.22,.85,.28,1), border-radius 0.55s ease, padding 0.55s ease, opacity 0.2s ease, transform 0.3s ease;
}

.careflix-device::after {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 68%, rgba(255, 255, 255, 0.04));
    mix-blend-mode: screen;
}

.careflix-device__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.careflix-device__chrome i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.careflix-device__chrome span {
    margin-left: auto;
}

.careflix-device__screen {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    aspect-ratio: 16 / 9;
    border-radius: 13px;
    background: #f2f4f8;
    cursor: zoom-in;
}

.careflix-device__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5f6f8;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.22s ease, transform 0.48s cubic-bezier(.22,.85,.28,1), filter 0.22s ease;
}

.careflix-device__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.13), transparent 23%, transparent 78%, rgba(255,255,255,.05));
}

.careflix-device-wrap.is-swapping .careflix-device__screen img {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(5px);
}

.careflix-device__notch,
.careflix-device__camera,
.careflix-device__stand {
    display: none;
}

/* Desktop / PIT / Backoffice */
.careflix-stage[data-device="desktop"] .careflix-device {
    width: min(800px, 95%);
    border-radius: 20px;
}

.careflix-stage[data-device="desktop"] .careflix-device__stand,
.careflix-stage[data-device="tv"] .careflix-device__stand {
    position: absolute;
    left: 50%;
    top: 100%;
    display: block;
    width: 28%;
    height: 62px;
    transform: translateX(-50%);
}

.careflix-stage[data-device="desktop"] .careflix-device__stand::before,
.careflix-stage[data-device="tv"] .careflix-device__stand::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 22px;
    height: 48px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #111820, #3c4652 50%, #111820);
}

.careflix-stage[data-device="desktop"] .careflix-device__stand::after,
.careflix-stage[data-device="tv"] .careflix-device__stand::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 150px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(90deg, #0a0e13, #46515f 50%, #0a0e13);
    box-shadow: 0 8px 18px rgba(0,0,0,.34);
}

/* Smart TV */
.careflix-stage[data-device="tv"] .careflix-device {
    width: min(820px, 96%);
    padding: 10px;
    border-radius: 16px;
}

.careflix-stage[data-device="tv"] .careflix-device__chrome {
    display: none;
}

.careflix-stage[data-device="tv"] .careflix-device__screen {
    border-radius: 8px;
}

/* Bedside tablet */
.careflix-stage[data-device="tablet"] .careflix-device {
    width: min(690px, 88%);
    padding: 14px;
    border-radius: 30px;
}

.careflix-stage[data-device="tablet"] .careflix-device__chrome {
    display: none;
}

.careflix-stage[data-device="tablet"] .careflix-device__camera {
    position: absolute;
    top: 5px;
    left: 50%;
    z-index: 3;
    display: block;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #05070a;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

/* Mobile phone */
.careflix-stage[data-device="phone"] .careflix-device {
    width: min(292px, 48%);
    padding: 9px;
    border-radius: 38px;
}

.careflix-stage[data-device="phone"] .careflix-device__chrome {
    display: none;
}

.careflix-stage[data-device="phone"] .careflix-device__screen {
    aspect-ratio: 9 / 20;
    border-radius: 30px;
}

.careflix-stage[data-device="phone"] .careflix-device__screen img {
    object-fit: cover;
}

.careflix-stage[data-device="phone"] .careflix-device__notch {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 5;
    display: block;
    width: 78px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #05070a;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}

.careflix-device__open-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(5, 12, 20, 0.78);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(10px);
}

.careflix-device__screen:hover .careflix-device__open-hint {
    opacity: 1;
    transform: translateY(0);
}

.careflix-stage[data-device="phone"] .careflix-device__open-hint {
    right: 50%;
    bottom: 18px;
    transform: translate(50%, 6px);
}

.careflix-stage[data-device="phone"] .careflix-device__screen:hover .careflix-device__open-hint {
    transform: translate(50%, 0);
}

/* Decorative secondary screens */
.careflix-ghost-device {
    position: absolute;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: #111820;
    box-shadow: 0 28px 60px rgba(0,0,0,.3);
    opacity: .38;
    filter: saturate(.8);
    pointer-events: none;
}

.careflix-ghost-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.careflix-ghost-device--phone {
    left: 5%;
    bottom: 11%;
    width: 112px;
    aspect-ratio: 9 / 20;
    padding: 5px;
    border-radius: 20px;
    transform: rotate(-7deg) translateZ(-30px);
    animation: careflixFloatLeft 6.5s ease-in-out infinite;
}

.careflix-ghost-device--phone img {
    border-radius: 15px;
}

.careflix-ghost-device--screen {
    top: 13%;
    right: 3%;
    width: 235px;
    aspect-ratio: 16 / 9;
    padding: 6px;
    border-radius: 12px;
    transform: rotate(5deg) translateZ(-35px);
    animation: careflixFloatRight 7.5s ease-in-out infinite;
}

.careflix-ghost-device--screen img {
    border-radius: 7px;
}

@keyframes careflixFloatLeft {
    0%,100% { transform: rotate(-7deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes careflixFloatRight {
    0%,100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(13px); }
}

/* ---------------- Gallery ---------------- */
.careflix-gallery-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 64px;
    margin-bottom: 24px;
}

.careflix-gallery-head h3 {
    margin: 0 0 6px;
    color: var(--cf-navy);
    font-size: clamp(25px, 2.3vw, 36px);
}

.careflix-gallery-head p {
    margin: 0;
    color: var(--cf-body);
    font-size: 14px;
}

.careflix-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.careflix-gallery-filter {
    padding: 9px 14px;
    border: 1px solid rgba(22, 36, 55, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #5f6c7e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(22, 36, 55, 0.045);
    transition: .25s ease;
}

.careflix-gallery-filter:hover,
.careflix-gallery-filter.is-active {
    border-color: rgba(245, 143, 61, 0.55);
    background: rgba(245, 143, 61, 0.12);
    color: var(--cf-orange-deep);
}

.careflix-gallery-swiper {
    overflow: visible;
}

.careflix-gallery-swiper .swiper-slide {
    width: 310px;
    height: auto;
}

.careflix-gallery-card {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(22, 36, 55, 0.09);
    border-radius: 20px;
    background: #ffffff;
    color: var(--cf-navy);
    text-align: left;
    cursor: zoom-in;
    box-shadow: 0 12px 34px rgba(22, 36, 55, 0.075);
    transition: transform .35s cubic-bezier(.22,.85,.28,1), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.careflix-gallery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 143, 61, 0.42);
    background: #ffffff;
    box-shadow: 0 24px 52px rgba(22, 36, 55, 0.14);
}

.careflix-gallery-card__visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 210px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(245, 143, 61, 0.12), transparent 54%),
        #0d1d2e;
}

.careflix-gallery-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,12,20,.42), transparent 44%);
    pointer-events: none;
}

.careflix-gallery-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.22,.85,.28,1);
}

.careflix-gallery-card[data-device="phone"] .careflix-gallery-card__visual img {
    width: auto;
    max-width: 50%;
    padding: 12px 0;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.35));
}

.careflix-gallery-card:hover .careflix-gallery-card__visual img {
    transform: scale(1.035);
}

.careflix-gallery-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(5,12,20,.70);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.careflix-gallery-card__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cf-orange);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: scale(.8);
    transition: .25s ease;
}

.careflix-gallery-card:hover .careflix-gallery-card__zoom {
    opacity: 1;
    transform: scale(1);
}

.careflix-gallery-card__body {
    padding: 16px 17px 18px;
}

.careflix-gallery-card__body strong {
    display: block;
    overflow: hidden;
    color: var(--cf-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.careflix-gallery-card__body span {
    display: block;
    margin-top: 5px;
    color: #7c8797;
    font-size: 11px;
}

.careflix-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.careflix-gallery-nav button {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(22, 36, 55, 0.12);
    border-radius: 50%;
    background: #ffffff;
    color: var(--cf-navy);
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(22, 36, 55, 0.07);
    transition: .25s ease;
}

.careflix-gallery-nav button:hover {
    border-color: var(--cf-orange);
    background: var(--cf-orange);
    color: #ffffff;
}

.careflix-gallery-nav button.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

/* ---------------- Custom lightbox ---------------- */
.careflix-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 24px;
    visibility: hidden;
    background: rgba(2, 7, 12, .92);
    opacity: 0;
    transition: opacity .28s ease, visibility .28s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.careflix-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.careflix-lightbox__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1500px, 100%);
    margin: 0 auto 14px;
}

.careflix-lightbox__brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.careflix-lightbox__brand img {
    width: 112px;
    height: auto;
    filter: brightness(0) invert(1);
}

.careflix-lightbox__close,
.careflix-lightbox__arrow {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.careflix-lightbox__close {
    width: 46px;
    height: 46px;
    font-size: 24px;
}

.careflix-lightbox__close:hover,
.careflix-lightbox__arrow:hover {
    border-color: var(--cf-orange);
    background: var(--cf-orange);
}

.careflix-lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    width: min(1500px, 100%);
    margin: 0 auto;
}

.careflix-lightbox__image-wrap {
    display: grid;
    place-items: center;
    width: calc(100% - 130px);
    height: 100%;
    min-height: 0;
}

.careflix-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
    opacity: 1;
    transform: scale(1);
    transition: opacity .18s ease, transform .25s ease;
}

.careflix-lightbox.is-changing .careflix-lightbox__image {
    opacity: 0;
    transform: scale(.985);
}

.careflix-lightbox__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    font-size: 18px;
}

.careflix-lightbox__arrow--prev { left: 0; }
.careflix-lightbox__arrow--next { right: 0; }

.careflix-lightbox__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1360px, calc(100% - 130px));
    margin: 18px auto 0;
    color: #fff;
}

.careflix-lightbox__caption strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.careflix-lightbox__caption span {
    color: #9eabba;
    font-size: 12px;
}

.careflix-lightbox__count {
    flex: 0 0 auto;
    color: #c6d0dc !important;
    font-weight: 700;
    letter-spacing: .08em;
}

body.careflix-lightbox-open {
    overflow: hidden;
}

/* ---------------- Responsive ---------------- */
@media only screen and (max-width: 1199px) {
    .careflix-showcase {
        padding: 94px 0;
    }

    .careflix-showcase__shell {
        grid-template-columns: minmax(285px, .78fr) minmax(0, 1.22fr);
        min-height: 620px;
    }

    .careflix-showcase__copy {
        padding: 42px 32px;
    }

    .careflix-stage {
        min-height: 620px;
        padding-inline: 26px;
    }

    .careflix-device-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .careflix-device-tab {
        min-height: 56px;
    }

    .careflix-device-tab__icon {
        display: inline-block;
        width: 24px;
        margin: 0 4px 0 0;
    }

    .careflix-device-tab__label {
        display: inline;
    }

    .careflix-ghost-device--screen {
        width: 170px;
    }
}

@media only screen and (max-width: 991px) {
    .careflix-showcase__shell {
        grid-template-columns: 1fr;
    }

    .careflix-showcase__copy {
        border-right: 0;
        border-bottom: 1px solid var(--cf-line);
    }

    .careflix-device-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 30px;
    }

    .careflix-device-tab {
        min-height: 68px;
        padding: 13px 30px 13px 12px;
    }

    .careflix-device-tab__icon {
        display: block;
        width: auto;
        margin: 0 0 5px;
    }

    .careflix-device-tab__label {
        display: block;
    }

    .careflix-showcase__feature-copy {
        min-height: auto;
    }

    .careflix-stage {
        min-height: 610px;
    }

    .careflix-gallery-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .careflix-gallery-filters {
        justify-content: flex-start;
    }
}

@media only screen and (max-width: 767px) {
    .careflix-showcase {
        padding: 72px 0;
    }

    .careflix-showcase__intro {
        margin-bottom: 34px;
    }

    .careflix-showcase__intro .disc {
        font-size: 15px;
    }

    .careflix-showcase__shell {
        border-radius: 24px;
    }

    .careflix-showcase__copy {
        padding: 32px 22px;
    }

    .careflix-showcase__logo {
        width: 145px;
        margin-bottom: 26px;
    }

    .careflix-device-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .careflix-device-tab:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .careflix-device-tab {
        min-height: 62px;
    }

    .careflix-showcase__feature-title {
        font-size: 28px;
    }

    .careflix-showcase__feature-copy {
        font-size: 14px;
    }

    .careflix-stage {
        min-height: 470px;
        padding: 42px 12px 68px;
    }

    .careflix-stage[data-device="phone"] .careflix-device {
        width: min(224px, 55%);
    }

    .careflix-stage[data-device="tablet"] .careflix-device,
    .careflix-stage[data-device="desktop"] .careflix-device,
    .careflix-stage[data-device="tv"] .careflix-device {
        width: 94%;
    }

    .careflix-stage[data-device="desktop"] .careflix-device__stand,
    .careflix-stage[data-device="tv"] .careflix-device__stand {
        height: 50px;
    }

    .careflix-stage[data-device="desktop"] .careflix-device__stand::before,
    .careflix-stage[data-device="tv"] .careflix-device__stand::before {
        height: 38px;
    }

    .careflix-ghost-device--phone {
        left: 5%;
        width: 60px;
    }

    .careflix-ghost-device--screen {
        top: 10%;
        right: -3%;
        width: 130px;
    }

    .careflix-gallery-head {
        margin-top: 48px;
    }

    .careflix-gallery-filters {
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .careflix-gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .careflix-gallery-filter {
        flex: 0 0 auto;
    }

    .careflix-gallery-swiper .swiper-slide {
        width: 270px;
    }

    .careflix-gallery-card__visual {
        height: 185px;
    }

    .careflix-lightbox {
        padding: 14px;
    }

    .careflix-lightbox__brand span {
        display: none;
    }

    .careflix-lightbox__image-wrap,
    .careflix-lightbox__caption {
        width: 100%;
    }

    .careflix-lightbox__arrow {
        top: auto;
        bottom: 2px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .careflix-lightbox__arrow--prev { left: 0; }
    .careflix-lightbox__arrow--next { right: 0; }

    .careflix-lightbox__caption {
        min-height: 52px;
        padding: 0 56px;
        text-align: center;
    }

    .careflix-lightbox__caption {
        justify-content: center;
    }

    .careflix-lightbox__count {
        display: none;
    }

    .careflix-lightbox__image {
        max-height: 70vh;
        border-radius: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .careflix-showcase *,
    .careflix-showcase *::before,
    .careflix-showcase *::after,
    .careflix-lightbox * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   WHITE / LIGHT THEME OVERRIDES
   Main Careflix showcase + gallery
========================================================= */

/* Entire Careflix area */
.careflix-showcase {
    --cf-panel-text: #142238;
    --cf-panel-muted: #667388;
    background:
        radial-gradient(circle at 90% 7%, rgba(245, 143, 61, 0.10), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 58%, #ffffff 100%);
    color: #142238;
}

/* Main interactive showcase shell */
.careflix-showcase__shell {
    border: 1px solid rgba(20, 34, 56, 0.10);
    background: #ffffff;
    box-shadow:
        0 30px 75px rgba(20, 34, 56, 0.12),
        0 8px 24px rgba(20, 34, 56, 0.06);
}

/* Left content panel */
.careflix-showcase__copy {
    border-right: 1px solid rgba(20, 34, 56, 0.10);
    background:
        radial-gradient(circle at 4% 5%, rgba(245, 143, 61, 0.09), transparent 31%),
        linear-gradient(155deg, #ffffff 0%, #f7f8fa 100%);
}

.careflix-showcase__logo {
    filter: none;
}

/* Device tabs */
.careflix-device-tab {
    border-color: rgba(20, 34, 56, 0.12);
    background: #ffffff;
    color: #243249;
    box-shadow: 0 7px 18px rgba(20, 34, 56, 0.045);
}

.careflix-device-tab:hover {
    border-color: rgba(245, 143, 61, 0.55);
    background: #fffaf6;
    color: #142238;
}

.careflix-device-tab.is-active {
    border-color: rgba(245, 143, 61, 0.72);
    background: linear-gradient(145deg, rgba(245, 143, 61, 0.14), #ffffff);
    color: #142238;
    box-shadow: 0 10px 24px rgba(245, 143, 61, 0.10);
}

.careflix-device-tab__icon {
    color: var(--cf-orange);
}

.careflix-device-tab__count {
    color: #778397;
}

/* Main text */
.careflix-showcase__eyebrow {
    color: var(--cf-orange-deep);
}

.careflix-showcase__feature-title {
    color: #142238;
}

.careflix-showcase__feature-copy {
    color: #667388;
}

.careflix-feature-meta span {
    border-color: rgba(20, 34, 56, 0.11);
    background: #ffffff;
    color: #4f5c70;
    box-shadow: 0 4px 12px rgba(20, 34, 56, 0.04);
}

/* Slider controls */
.careflix-control-btn {
    border-color: rgba(20, 34, 56, 0.13);
    background: #ffffff;
    color: #142238;
    box-shadow: 0 6px 16px rgba(20, 34, 56, 0.06);
}

.careflix-control-btn:hover {
    border-color: var(--cf-orange);
    background: var(--cf-orange);
    color: #ffffff;
}

.careflix-showcase__counter {
    color: #657287;
}

.careflix-progress {
    background: rgba(20, 34, 56, 0.13);
}

/* Right visual stage */
.careflix-stage {
    background:
        radial-gradient(circle at 52% 45%, rgba(245, 143, 61, 0.12), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(20, 34, 56, 0.045), transparent 30%),
        linear-gradient(145deg, #fbfbfc 0%, #f0f3f7 100%);
}

.careflix-stage::before {
    background: radial-gradient(circle, rgba(245, 143, 61, 0.17), rgba(123, 141, 164, 0.05) 46%, transparent 72%);
}

.careflix-stage::after {
    background: rgba(20, 34, 56, 0.15);
    opacity: 0.7;
}

/* Keep actual device frame dark for realistic contrast */
.careflix-device {
    border-color: rgba(20, 34, 56, 0.24);
    box-shadow:
        0 38px 68px rgba(20, 34, 56, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

/* Decorative screens should remain subtle on light background */
.careflix-ghost-device {
    border-color: rgba(20, 34, 56, 0.15);
    box-shadow: 0 22px 48px rgba(20, 34, 56, 0.18);
    opacity: 0.23;
}

/* Gallery area */
.careflix-gallery-head h3 {
    color: #142238;
}

.careflix-gallery-head p {
    color: #667388;
}

.careflix-gallery-filter {
    border-color: rgba(20, 34, 56, 0.12);
    background: #ffffff;
    color: #556277;
}

.careflix-gallery-filter:hover,
.careflix-gallery-filter.is-active {
    border-color: rgba(245, 143, 61, 0.62);
    background: #fff7f0;
    color: #d96d1e;
}

/* Gallery cards */
.careflix-gallery-card {
    border-color: rgba(20, 34, 56, 0.10);
    background: #ffffff;
    color: #142238;
    box-shadow: 0 14px 34px rgba(20, 34, 56, 0.08);
}

.careflix-gallery-card:hover {
    border-color: rgba(245, 143, 61, 0.48);
    background: #ffffff;
    box-shadow: 0 24px 52px rgba(20, 34, 56, 0.14);
}

/* Light image area instead of navy/purple-style panel */
.careflix-gallery-card__visual {
    height: 230px;
    padding: 18px 18px 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(245, 143, 61, 0.08), transparent 58%),
        linear-gradient(145deg, #f7f8fa 0%, #eef1f5 100%);
}

.careflix-gallery-card__visual::after {
    background: linear-gradient(to top, rgba(20, 34, 56, 0.06), transparent 45%);
}

.careflix-gallery-card__visual img {
    border-radius: 10px 10px 0 0;
    filter: drop-shadow(0 14px 24px rgba(20, 34, 56, 0.13));
}

.careflix-gallery-card[data-device="phone"] .careflix-gallery-card__visual img {
    max-width: 48%;
    padding: 2px 0 0;
    border-radius: 14px 14px 0 0;
    filter: drop-shadow(0 14px 24px rgba(20, 34, 56, 0.16));
}

.careflix-gallery-card__badge {
    top: 14px;
    left: 14px;
    border-color: rgba(20, 34, 56, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #142238;
    box-shadow: 0 5px 14px rgba(20, 34, 56, 0.08);
}

/* More padding for card text */
.careflix-gallery-card__body {
    padding: 22px 24px 24px;
    background: #ffffff;
}

.careflix-gallery-card__body strong {
    color: #142238;
    font-size: 15px;
    line-height: 1.4;
}

.careflix-gallery-card__body span {
    margin-top: 7px;
    color: #778397;
    font-size: 12px;
    line-height: 1.5;
}

.careflix-gallery-nav button {
    border-color: rgba(20, 34, 56, 0.13);
    background: #ffffff;
    color: #142238;
}

.careflix-gallery-nav button:hover {
    border-color: var(--cf-orange);
    background: var(--cf-orange);
    color: #ffffff;
}

/* Mobile refinements */
@media (max-width: 767px) {
    .careflix-showcase__copy {
        border-right: 0;
        border-bottom: 1px solid rgba(20, 34, 56, 0.10);
    }

    .careflix-device-tab {
        box-shadow: none;
    }

    .careflix-gallery-card__visual {
        height: 210px;
        padding: 14px 14px 0;
    }

    .careflix-gallery-card__body {
        padding: 18px 19px 21px;
    }
}

/* =========================================================
   FINAL GALLERY REFINEMENTS
   Compact segmented filters + perfectly aligned card text
========================================================= */

/* Keep the gallery heading and filters in one clean vertical group */
.careflix-gallery-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    gap: 22px;
    margin-top: 70px;
    margin-bottom: 30px;
}

.careflix-gallery-head > div:first-child {
    max-width: 680px;
}

.careflix-gallery-head h3 {
    margin: 0 0 8px;
}

.careflix-gallery-head p {
    margin: 0;
}

/* Compact segmented filter instead of large individual pills */
.careflix-gallery-filters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    gap: 5px;
    padding: 6px;
    border: 1px solid rgba(20, 34, 56, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 12px 30px rgba(20, 34, 56, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.careflix-gallery-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #5d697c;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.careflix-gallery-filter::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c0c7d1;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.careflix-gallery-filter:hover {
    border-color: transparent;
    background: #f5f6f8;
    color: #142238;
    transform: translateY(-1px);
}

.careflix-gallery-filter:hover::before {
    background: var(--cf-orange);
}

.careflix-gallery-filter.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--cf-orange), #ff7d25);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(245, 143, 61, 0.24);
}

.careflix-gallery-filter.is-active::before {
    background: #ffffff;
    transform: scale(1.12);
}

/* Ensure the card copy has one consistent inset */
.careflix-gallery-card__body {
    display: block;
    width: 100%;
    padding: 22px 24px 24px !important;
    text-align: left !important;
    background: #ffffff;
    box-sizing: border-box;
}

.careflix-gallery-card__body > strong,
.careflix-gallery-card__body > span {
    position: static !important;
    left: auto !important;
    right: auto !important;
    display: block;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
    transform: none !important;
    box-sizing: border-box;
}

.careflix-gallery-card__body > strong {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.careflix-gallery-card__body > span {
    margin-top: 7px !important;
    margin-bottom: 0 !important;
}

/* Tablet */
@media (max-width: 991px) {
    .careflix-gallery-head {
        gap: 18px;
        margin-top: 58px;
    }

    .careflix-gallery-filters {
        width: 100%;
    }

    .careflix-gallery-filter {
        flex: 1 1 auto;
    }
}

/* Mobile: horizontally scrollable compact filters */
@media (max-width: 767px) {
    .careflix-gallery-head {
        gap: 16px;
        margin-top: 48px;
        margin-bottom: 24px;
    }

    .careflix-gallery-filters {
        display: flex;
        flex-wrap: nowrap;
        width: calc(100% + 30px);
        max-width: none;
        margin-left: -15px;
        padding: 6px 15px;
        overflow-x: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .careflix-gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .careflix-gallery-filter {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 14px;
        border: 1px solid rgba(20, 34, 56, 0.10);
        border-radius: 999px;
        background: #ffffff;
        box-shadow: 0 5px 14px rgba(20, 34, 56, 0.05);
        scroll-snap-align: start;
    }

    .careflix-gallery-filter.is-active {
        border-color: transparent;
    }

    .careflix-gallery-card__body {
        padding: 19px 20px 22px !important;
    }
}

/* =========================================================
   GALLERY HEADER V3
   Title left + horizontal filters right on desktop
========================================================= */

.careflix-gallery-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    justify-items: stretch !important;
    gap: 32px !important;
    margin-top: 70px;
    margin-bottom: 34px;
}

.careflix-gallery-head > div:first-child {
    max-width: 680px;
}

.careflix-gallery-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 5px !important;
    padding: 6px !important;
    margin: 0 !important;
    border: 1px solid rgba(20, 34, 56, 0.10) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow:
        0 12px 30px rgba(20, 34, 56, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.careflix-gallery-filter {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 0 !important;
    border-radius: 11px !important;
    white-space: nowrap !important;
}

/* Slightly reduce type so all five filters stay neat */
.careflix-gallery-filter {
    font-size: 11px !important;
    letter-spacing: 0;
}

/* Medium desktop: keep horizontal, but place below heading */
@media (max-width: 1199px) {
    .careflix-gallery-head {
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 20px !important;
    }

    .careflix-gallery-filters {
        justify-self: start !important;
        justify-content: flex-start !important;
        max-width: 100% !important;
    }
}

/* Tablet: full-width horizontal segmented control */
@media (max-width: 991px) {
    .careflix-gallery-filters {
        width: 100% !important;
    }

    .careflix-gallery-filter {
        flex: 1 1 auto !important;
        text-align: center !important;
    }
}

/* Mobile: one clean scrollable row */
/* Mobile: balanced 3 + 2 filter layout */
@media (max-width: 767px) {

    .careflix-gallery-head {
        gap: 16px !important;
        margin-top: 48px;
        margin-bottom: 24px;
    }

    .careflix-gallery-filters {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 8px !important;

        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 6px !important;

        overflow: visible !important;
        justify-self: stretch !important;

        border: 1px solid rgba(20, 34, 56, 0.08) !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 25px rgba(20, 34, 56, 0.06) !important;
    }

    .careflix-gallery-filter {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;

        margin: 0 !important;
        padding: 10px 6px !important;

        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        box-shadow: none !important;

        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* First row: All, Mobile, Tablet */
    .careflix-gallery-filter:nth-child(1),
    .careflix-gallery-filter:nth-child(2),
    .careflix-gallery-filter:nth-child(3) {
        grid-column: span 2;
    }

    /* Second row: TV / PIT, Dashboard */
    .careflix-gallery-filter:nth-child(4),
    .careflix-gallery-filter:nth-child(5) {
        grid-column: span 3;
    }

    .careflix-gallery-filter.is-active {
        border-color: transparent !important;
        background: linear-gradient(
            135deg,
            var(--cf-orange),
            #ff7d25
        ) !important;
        color: #ffffff !important;
        box-shadow: 0 7px 16px rgba(245, 143, 61, 0.22) !important;
    }
}