/* ========== Theme Vars ========== */
:root {
    --bg: #0b1220;
    --bg-2: #0d1630;
    --card: rgba(255, 255, 255, 0.08);
    --stroke: rgba(255, 255, 255, 0.15);
    --text: #e6f0ff;
    --muted: #a6bbf7;
    --primary: #2b7cff;
    --primary-600: #1f6ae6;
    --primary-100: #e6f0ff;
    --ring: rgba(43, 124, 255, 0.45);
    --warning: #ffb703;
    --danger: #ff6b6b;
    --success: #22c55e;
    --shadow: 0 20px 60px rgba(16, 42, 112, 0.35);
    --radius: 18px;

    --blue-1: rgba(0, 170, 255, 0.10);
    --blue-2: rgba(0, 170, 255, 0.18);
    --blue-3: rgba(0, 220, 255, 0.22);
    --stroke: rgba(140, 220, 255, 0.28);
    --stroke-strong: rgba(170, 240, 255, 0.55);
    --text2: rgba(235, 250, 255, 0.92);
    --muted2: rgba(220, 245, 255, 0.72);
    --shadow2: 0 18px 55px rgba(0, 170, 255, 0.22);
    --shadow2-strong: 0 22px 80px rgba(0, 220, 255, 0.28);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100vh;
}

body {
    margin: 0;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        "PingFang TC",
        "Noto Sans TC",
        "Microsoft JhengHei",
        Arial,
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, #122045, transparent 60%),
        radial-gradient(1000px 600px at 110% 0%, #0d1a3b, transparent 60%), var(--bg);
    overflow-y: auto;
}

a {
    cursor: pointer;
}

.bg-clouds {
    position: fixed;
    inset: -10% -10% -10% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 400px at 10% 5%, rgba(71, 129, 255, 0.35), transparent 65%),
        radial-gradient(700px 500px at 90% 10%, rgba(0, 179, 255, 0.25), transparent 65%),
        radial-gradient(900px 700px at 30% 100%, rgba(52, 178, 255, 0.25), transparent 65%);
    filter: blur(40px) saturate(130%);
    opacity: 0.9;
    animation: clouds 18s ease-in-out infinite alternate;
}

@keyframes clouds {
    0% {
        transform: translateY(-2%) scale(1);
    }

    100% {
        transform: translateY(2%) scale(1.02);
    }
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(13, 22, 48, 0.55), rgba(13, 22, 48, 0.25));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    /* background: radial-gradient(circle at 30% 30%, #6ba6ff, #2b7cff); */
    color: #fff;
    font-weight: 900;
}

.brand__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(5px 5px 2px rgba(255, 255, 255, 0.8));
}

.brand__title {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.header-link {
    color: var(--primary-100);
    text-decoration: none;
    opacity: 0.9;
}

.header-link:hover {
    text-decoration: underline;
}

.wrap {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    padding: clamp(20px, 3.5vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .wrap {
        grid-template-columns: 1.05fr 1fr;
        align-items: stretch;
        min-height: calc(100vh - 72px);
    }
}

.panel-container {
    overflow: hidden;
    display: grid;
}

/* Panels */
.panel {
    /* background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04)); */
    /* border: 1px solid var(--stroke); */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.panel--form {
    padding: 26px;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .panel--form {
        padding: 34px;
    }
}

.panel__title {
    margin: 6px 0 25px;
    font-size: clamp(22px, 2.4vw, 30px);
}

.panel__subtitle {
    margin: 0 0 60px;
    color: var(--muted);
}

/* Showcase Panel */
.panel--showcase {
    display: grid;
    place-items: center;
    padding: 24px;
    isolation: isolate;
}

.tilt {
    position: relative;
    width: min(560px, 90%);
    aspect-ratio: 16/10;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt__glow {
    position: absolute;
    inset: -25%;
    z-index: 0;
    border-radius: 28px;
    filter: blur(52px);
    background: conic-gradient(from 0deg,
            rgba(43, 124, 255, 0.4),
            rgba(0, 204, 255, 0.4),
            rgba(174, 198, 255, 0.25),
            rgba(43, 124, 255, 0.4));
    opacity: 0.6;
    animation: rotate 12s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.glass-card {
    position: relative;
    z-index: 1;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 115, 255, 0.25);
    transform: translateZ(40px) rotateX(0) rotateY(0);
    transition: transform 0.2s ease;
    backdrop-filter: blur(10px);
}

.glass-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card__header .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff, #8fb5ff);
    box-shadow: 0 0 16px rgba(143, 181, 255, 0.9);
}

.glass-card__body {
    display: grid;
    gap: 16px;
    padding: 14px;
}

.product {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    background: rgba(12, 20, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px;
}

.product__img {
    border-radius: 10px;
    background: linear-gradient(135deg, #7ab3ff, #2b7cff 60%, #00c6ff);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.4);
}

.product__meta {
    display: grid;
    align-content: center;
    gap: 8px;
}

.skeleton {
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 6px;
}

.skeleton--title {
    height: 16px;
    width: 70%;
}

.skeleton--line {
    width: 90%;
}

.skeleton--line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.chip {
    align-self: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-100);
    cursor: default;
}

/* 聊天泡泡 */
.chat {
    display: grid;
    gap: 10px;
}

.bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
}

.bubble.ai {
    background: linear-gradient(180deg, rgba(43, 124, 255, 0.25), rgba(255, 255, 255, 0.05));
    border-color: rgba(43, 124, 255, 0.45);
}

.bubble.user {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
}

.bubble.agent {
    background: linear-gradient(180deg, rgba(0, 204, 255, 0.22), rgba(255, 255, 255, 0.05));
    border-color: rgba(0, 204, 255, 0.45);
}

/* 功能徽章 */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(43, 124, 255, 0.26), rgba(0, 204, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 表單 */
.form {
    margin-top: 6px;
}

.grid-2 {
    display: grid;
    gap: 12px;
}

@media (min-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s;
    font-size: 16px;
}

.field input::placeholder {
    color: #93a6d5;
}

.field input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 6px var(--ring),
        inset 0 0 24px rgba(43, 124, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.field__hint {
    margin: 8px 0 0;
    color: #b8c7ff;
    font-size: 0.9rem;
}

.field__error {
    margin: 6px 0 0;
    color: var(--danger);
    min-height: 1.25em;
    font-size: 0.9rem;
}

.password-wrapper {
    position: relative;
}

.icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary-100);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.strength {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.strength__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff8080, #ffcf4d, #64d36e, #22c55e);
    transition: width 0.25s ease;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition:
        transform 0.05s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    color: #07122a;
    background: linear-gradient(135deg, #7ab3ff, #2b7cff 60%, #00c6ff);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 14px 28px rgba(43, 124, 255, 0.35);
    margin-top: 30px;
}

.btn--primary:hover {
    filter: brightness(1.03);
}

.btn--primary:focus {
    box-shadow: 0 0 0 6px var(--ring);
}

.btn--glow {
    position: relative;
    overflow: hidden;
}

.btn__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
    transform: translateX(-120%);
}

.btn--glow:hover .btn__shine {
    animation: shine 0.9s ease;
}

@keyframes shine {
    to {
        transform: translateX(120%);
    }
}

.btn--neutral {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
    color: var(--primary-100);
    margin-top: 30px;
}

.btn--neutral svg {
    height: 22px;
    width: 22px;
}

.btn--neutral:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn__spinner {
    --size: 16px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    display: none;
    animation: spin 1s linear infinite;
}

.btn.loading .btn__spinner {
    display: inline-block;
}

.btn.loading .btn__text {
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
    color: #b1c5ff;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.muted {
    color: #b8c7ff;
    font-size: 0.95rem;
}

.muted a {
    color: #dbe7ff;
    text-decoration: none;
}

.muted a:hover {
    text-decoration: underline;
}

.mt-16 {
    margin-top: 106px;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(30px);
    background: #0b1220;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: calc(100% - 40px);
    z-index: 10;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.modal .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 38, .45);
    backdrop-filter: blur(10px) saturate(120%)
}

.modal .dialog {
    position: relative;
    margin: max(10vh, 80px) auto 0;
    width: min(520px, 92vw);
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: var(--shadow)
}

.modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800
}

.modal__msg {
    margin: 6px 0 18px;
    color: var(--primary-100)
}

.modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--primary-100);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer
}

.modal__close:hover {
    background: rgba(255, 255, 255, .12)
}


/* RWD 加強 */
@media (max-width: 1023.98px) {
    .panel--showcase {
        order: 2;
    }

    .panel--form {
        order: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bg-clouds,
    .tilt__glow,
    .skeleton {
        animation: none !important;
    }
}

.panel.view {
    opacity: 1;
    transform: translateX(0);
    max-height: 5000px;
    overflow: hidden;
    transition: opacity .28s ease, transform .28s ease, max-height .34s ease, visibility 0s linear 0s;
    visibility: visible;
    pointer-events: auto;
}

.panel.view.is-hidden {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, max-height .30s ease, visibility 0s linear .22s;
}


main[data-dir="forward"] .panel.view.is-hidden {
    transform: translateX(18px);
}

main[data-dir="back"] .panel.view.is-hidden {
    transform: translateX(-18px);
}

@media (prefers-reduced-motion: reduce) {
    .panel.view {
        transition: none !important;
    }
}

/* ------------------Service Card--------------------------- */
/* ✅ 重要：拿掉 overflow hidden（popover 才不會被裁切） */
.service-picker {
    position: relative;
    overflow: visible;
    isolation: isolate;

    padding: 24px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--stroke);

    background:
        linear-gradient(135deg, rgba(0, 170, 255, 0.08), rgba(0, 0, 0, 0) 55%),
        radial-gradient(1200px 700px at 15% 10%, rgba(0, 220, 255, 0.16), transparent 55%),
        rgba(10, 20, 30, 0.22);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow2);
    color: var(--text2);
}

.service-picker__glow {
    position: absolute;
    inset: -120px;
    z-index: 0;

    background:
        radial-gradient(600px 380px at 20% 18%, rgba(0, 220, 255, 0.22), transparent 60%),
        radial-gradient(520px 340px at 85% 25%, rgba(0, 170, 255, 0.18), transparent 60%),
        radial-gradient(520px 420px at 45% 100%, rgba(0, 190, 255, 0.16), transparent 62%);

    filter: blur(18px);
    opacity: 0.9;
    pointer-events: none;
    animation: glowFloat 6s ease-in-out infinite;
}

@keyframes glowFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translate3d(10px, -8px, 0) scale(1.02);
        opacity: 0.98;
    }
}

.service-picker__header,
.service-grid,
.service-picker__footer {
    position: relative;
    /* z-index: 1; */
}

.service-picker__header {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.service-picker__title {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.service-picker__subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted2);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .service-picker {
        padding: 18px;
    }

    .service-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.service-card {
    position: relative;
    z-index: 1;
    border-radius: var(--radius);
    border: 1px solid rgba(140, 220, 255, 0.18);

    background:
        linear-gradient(135deg, rgba(0, 170, 255, 0.10), rgba(0, 0, 0, 0) 70%),
        rgba(0, 0, 0, 0.18);

    box-shadow: 0 10px 28px rgba(0, 170, 255, 0.14);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;

    min-height: 86px;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(170, 240, 255, 0.38);
    box-shadow: var(--shadow2-strong);
    z-index: 8;
}

.service-card.is-open {
    z-index: 9;
}

/* Selected State */
.service-card.is-selected {
    border-color: var(--stroke-strong);
    box-shadow: 0 0 0 2px rgba(0, 220, 255, 0.16), var(--shadow2-strong);
    background:
        radial-gradient(680px 220px at 30% 15%, rgba(0, 220, 255, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(0, 170, 255, 0.12), rgba(0, 0, 0, 0) 70%),
        rgba(0, 0, 0, 0.18);
}

.service-main {
    appearance: none;
    border: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 14px;
    cursor: pointer;
    border-radius: var(--radius);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-left: 9%;
}

.service-name {
    font-weight: 680;
    font-size: 14px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;

    background:
        radial-gradient(circle at 35% 30%, rgba(0, 220, 255, 0.22), rgba(0, 0, 0, 0) 62%),
        rgba(0, 170, 255, 0.10);

    border: 1px solid rgba(140, 220, 255, 0.22);
    box-shadow: 0 10px 26px rgba(0, 170, 255, 0.18);
}

.service-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* product tag */
.service-badge {
    font-size: 12px;
    color: rgba(235, 250, 255, 0.88);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(140, 220, 255, 0.22);
    background: rgba(0, 170, 255, 0.08);
    flex: 0 0 auto;
}

.service-badge.is-sale {
    border-color: rgba(255, 200, 120, 0.35);
    background: rgba(255, 170, 0, 0.10);
}

/* Selected Check */
.service-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: grid;
    place-items: center;

    opacity: 0;
    transform: scale(0.92);
    transition: opacity .16s ease, transform .16s ease;

    border: 1px solid rgba(170, 240, 255, 0.40);
    background: rgb(5, 113, 207);
    box-shadow: 0 12px 30px rgba(0, 128, 255, 0.18);
    pointer-events: none;
}

.service-card.is-selected .service-check {
    opacity: 1;
    transform: scale(1);
}

/* Info Icon */
.service-info {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid rgba(140, 220, 255, 0.26);
    background: #d47661;
    color: rgba(235, 250, 255, 0.92);
    display: none;
    place-items: center;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
    z-index: 2;
    font-size: 10px;
}

.service-info:active {
    transform: scale(0.98);
}

.service-info:hover {
    border-color: rgba(170, 240, 255, 0.42);
}

/* Popover */
.service-popover {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    width: min(280px, 74vw);
    transform: translateY(-50%) translateX(-6px);
    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    border-radius: 16px;
    border: 1px solid rgba(170, 240, 255, 0.30);
    background:
        linear-gradient(135deg, rgba(0, 220, 255, 0.16), rgba(0, 0, 0, 0) 70%),
        rgba(5, 14, 22, 0.78);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 60px rgba(0, 170, 255, 0.25);
    padding: 12px 12px 10px;
    transition: opacity .16s ease, transform .16s ease;
}

.service-popover::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(5, 14, 22, 0.78);
    border-left: 1px solid rgba(170, 240, 255, 0.22);
    border-bottom: 1px solid rgba(170, 240, 255, 0.22);
    filter: drop-shadow(0 10px 20px rgba(0, 170, 255, 0.12));
}

.service-popover__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
}

.service-popover__body {
    margin: 0;
    font-size: 12px;
    color: rgba(235, 250, 255, 0.78);
    line-height: 1.45;
}

/* .service-card:hover .service-popover,
        .service-card:focus-within .service-popover {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
            pointer-events: auto;
        } */
/* Desktop Hover */
.service-card:hover .service-popover {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* only active state */
.service-main:active~.service-popover {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(-6px) !important;
}


/* Flip State */
.service-card.is-flip .service-popover {
    left: auto;
    right: calc(100% + 12px);
    transform: translateY(-50%) translateX(6px);
}

.service-card.is-flip:hover .service-popover,
.service-card.is-flip:focus-within .service-popover,
.service-card.is-flip.is-open .service-popover {
    transform: translateY(-50%) translateX(0);
}

.service-card.is-flip .service-popover::before {
    left: auto;
    right: -7px;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(170, 240, 255, 0.22);
    border-top: 1px solid rgba(170, 240, 255, 0.22);
}

/* flip state hide  */
.service-card.is-flip .service-main:active~.service-popover {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(6px) !important;
}

/* Bottom state */
.service-card.is-bottom .service-popover {
    top: calc(100% + 12px);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(6px);
}

.service-card.is-bottom:hover .service-popover,
.service-card.is-bottom:focus-within .service-popover,
.service-card.is-bottom.is-open .service-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.service-card.is-bottom .service-popover::before {
    top: -7px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid rgba(170, 240, 255, 0.22);
    border-top: 1px solid rgba(170, 240, 255, 0.22);
}

/* bottom state hide */
.service-card.is-bottom .service-main:active ~ .service-popover {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(6px) !important;
}

/* Mobile Hover */
@media (hover: none) and (pointer: coarse) {
    .service-info {
        display: grid;
    }

    .service-card:hover .service-popover {
        opacity: 0;
        pointer-events: none;
    }

    .service-card.is-open .service-popover {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(-50%) translateX(0);
    }
}

.service-picker__footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(140, 220, 255, 0.18);
    display: grid;
    gap: 10px;
}

.service-selected {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(235, 250, 255, 0.85);
    font-size: 13px;
}

.service-selected__label {
    color: rgba(235, 250, 255, 0.68);
}

.service-selected__value {
    font-weight: 650;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    border: 1px solid rgba(140, 220, 255, 0.22);
    background: rgba(0, 170, 255, 0.08);
    color: rgba(235, 250, 255, 0.88);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chip button {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(235, 250, 255, 0.75);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 14px;
}

.chip button:active {
    transform: scale(0.98);
}

.highlight{
    color: var(--warning);
    font-weight: 650;
}

.warning {
    color: var(--bg);
    background-color: var(--warning);
    font-weight: 650;
}
.error {
    background-color: var(--danger);
    font-weight: 650;
}

.disnone {
    display: none !important;
}