.vip-booking-assistant-shell {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
}

.vip-booking-assistant-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100vw - 24px));
    max-height: min(74vh, 680px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(74, 173, 255, 0.28);
    background:
        radial-gradient(130% 120% at 100% 0%, rgba(84, 178, 255, 0.2), transparent 52%),
        radial-gradient(100% 90% at 0% 100%, rgba(219, 173, 78, 0.16), transparent 50%),
        linear-gradient(160deg, rgba(7, 12, 26, 0.86), rgba(8, 18, 38, 0.76));
    backdrop-filter: blur(16px) saturate(118%);
    -webkit-backdrop-filter: blur(16px) saturate(118%);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.48),
        0 0 42px rgba(86, 173, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.95);
    transform-origin: calc(100% - 22px) calc(100% - 22px);
    transition: opacity 0.45s ease, transform 0.62s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.vip-booking-assistant-shell.is-visible {
    pointer-events: auto;
}

.vip-booking-assistant-shell.is-open .vip-booking-assistant-panel {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.vip-booking-assistant-panel.is-contracting {
    opacity: 0;
    transform: translate3d(12px, 12px, 0) scale(0.12);
    border-radius: 999px;
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), border-radius 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.vip-booking-assistant-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(124, 198, 255, 0.32);
    background: rgba(13, 28, 54, 0.6);
    color: #eef6ff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 5;
}

.vip-booking-assistant-close:hover {
    background: rgba(24, 48, 86, 0.9);
    transform: scale(1.04);
}

.vip-booking-assistant-head,
.vip-booking-assistant-actions,
.vip-booking-assistant-body {
    position: relative;
    z-index: 1;
}

.vip-booking-assistant-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(100, 179, 255, 0.35);
    background: rgba(22, 40, 74, 0.55);
    color: #9fd8ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vip-booking-assistant-head h3 {
    margin: 10px 0 8px;
    color: #f5f9ff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.06;
}

.vip-booking-assistant-head p {
    margin: 0;
    color: rgba(233, 244, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
}

.vip-booking-assistant-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.vip-booking-assistant-action {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(100, 180, 255, 0.26);
    background: rgba(11, 28, 56, 0.62);
    color: #ecf5ff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.vip-booking-assistant-action:hover {
    transform: translateY(-1px);
    border-color: rgba(221, 176, 79, 0.55);
    background: rgba(18, 40, 76, 0.85);
    box-shadow: 0 10px 24px rgba(5, 18, 36, 0.4);
}

.vip-booking-assistant-action:disabled {
    cursor: wait;
    opacity: 0.72;
}

.vip-booking-assistant-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.vip-booking-assistant-block {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(104, 178, 255, 0.2);
    background: rgba(8, 22, 44, 0.56);
}

.vip-booking-assistant-label {
    margin-bottom: 8px;
    color: rgba(166, 216, 255, 0.84);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.vip-booking-assistant-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vip-booking-assistant-pill {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(100, 180, 255, 0.24);
    background: rgba(13, 32, 62, 0.62);
    color: #d9ecff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.vip-booking-assistant-pill.is-ready {
    border-color: rgba(74, 225, 164, 0.42);
    background: rgba(22, 74, 60, 0.48);
    color: #c9ffe9;
}

.vip-booking-assistant-thread {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 120px;
}

.vip-booking-assistant-thread::-webkit-scrollbar {
    width: 6px;
}

.vip-booking-assistant-thread::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(108, 180, 255, 0.42);
}

.vip-booking-assistant-bubble {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(101, 179, 255, 0.2);
    background: rgba(12, 31, 61, 0.56);
    color: #dff0ff;
    font-size: 12px;
    line-height: 1.45;
}

.vip-booking-assistant-bubble.is-system {
    border-color: rgba(102, 179, 255, 0.3);
    background: rgba(14, 36, 68, 0.65);
}

.vip-booking-assistant-bubble.is-user {
    align-self: flex-end;
    max-width: 92%;
    border-color: rgba(224, 179, 93, 0.36);
    background: rgba(46, 33, 17, 0.72);
    color: #ffedc8;
}

.vip-booking-assistant-bubble.is-warning {
    border-color: rgba(255, 198, 95, 0.45);
    background: rgba(54, 39, 18, 0.65);
    color: #ffe8b8;
}

.vip-booking-assistant-bubble.is-error {
    border-color: rgba(255, 116, 116, 0.5);
    background: rgba(69, 22, 24, 0.7);
    color: #ffd0d0;
}

.vip-booking-assistant-bubble.is-success {
    border-color: rgba(84, 227, 170, 0.45);
    background: rgba(22, 68, 54, 0.68);
    color: #cbffe8;
}

.vip-booking-assistant-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.vip-booking-assistant-composer input {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(102, 182, 255, 0.28);
    background: rgba(10, 26, 52, 0.68);
    color: #eff7ff;
    font-size: 12px;
    padding: 0 12px;
    outline: none;
}

.vip-booking-assistant-composer input::placeholder {
    color: rgba(201, 224, 249, 0.66);
}

.vip-booking-assistant-send {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(220, 179, 84, 0.46);
    background: linear-gradient(135deg, rgba(28, 58, 98, 0.95), rgba(12, 32, 60, 0.9));
    color: #f4f9ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.vip-booking-assistant-send:hover {
    transform: translateY(-1px);
    border-color: rgba(241, 203, 116, 0.62);
    background: linear-gradient(135deg, rgba(38, 73, 118, 0.98), rgba(14, 39, 74, 0.96));
}

.vip-booking-assistant-energy {
    position: fixed;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #c9efff, #56b9ff 55%, #1a5b96 100%);
    box-shadow:
        0 0 0 1px rgba(173, 223, 255, 0.85),
        0 0 16px rgba(88, 182, 255, 0.95),
        0 0 34px rgba(93, 189, 255, 0.7),
        0 0 58px rgba(217, 170, 80, 0.35);
    pointer-events: none;
    z-index: 12020;
    animation: nexusEnergyPulse 0.42s ease-in-out infinite alternate;
}

.vip-booking-assistant-tooltip {
    position: fixed;
    transform: translate(-50%, 8px);
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(100, 180, 255, 0.34);
    background: rgba(7, 18, 36, 0.9);
    color: #edf6ff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 12010;
}

.vip-booking-assistant-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.nexus-assistant-logo-anchor {
    cursor: pointer;
    position: relative;
}

.nexus-assistant-logo-anchor::after {
    content: "";
    position: absolute;
    inset: -5px -10px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.nexus-assistant-logo-anchor:hover::after {
    border-color: rgba(112, 190, 255, 0.45);
    box-shadow: 0 0 18px rgba(100, 184, 255, 0.34);
}

.nexus-assistant-logo-anchor.nexus-logo-ai-idle::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ecfbff, #65c1ff 70%);
    box-shadow: 0 0 10px rgba(101, 193, 255, 0.88), 0 0 18px rgba(81, 169, 255, 0.52);
    animation: nexusLogoIdlePulse 2.4s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.nexus-assistant-logo-anchor.nexus-logo-glow {
    color: #d5ecff;
    text-shadow: 0 0 20px rgba(104, 188, 255, 0.9), 0 0 34px rgba(224, 177, 84, 0.5);
}

.nexus-assistant-logo-anchor.nexus-logo-glow::after {
    border-color: rgba(103, 186, 255, 0.62);
    box-shadow: 0 0 22px rgba(101, 184, 255, 0.45);
}

@keyframes nexusEnergyPulse {
    0% {
        filter: saturate(1);
    }
    100% {
        filter: saturate(1.24) brightness(1.1);
    }
}

@keyframes nexusLogoIdlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.45);
        opacity: 0.38;
    }
}

@media (max-width: 920px) {
    .vip-booking-assistant-panel {
        right: 10px;
        bottom: 12px;
        left: 10px;
        width: auto;
        max-height: min(76vh, 640px);
        padding: 16px;
        border-radius: 20px;
    }

    .vip-booking-assistant-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .vip-booking-assistant-head h3 {
        font-size: 1.4rem;
    }

    .vip-booking-assistant-composer {
        grid-template-columns: minmax(0, 1fr);
    }

    .vip-booking-assistant-send {
        width: 100%;
    }

    .vip-booking-assistant-tooltip {
        max-width: calc(100vw - 24px);
        white-space: normal;
        text-align: center;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vip-booking-assistant-panel,
    .vip-booking-assistant-close,
    .vip-booking-assistant-action,
    .vip-booking-assistant-tooltip,
    .nexus-assistant-logo-anchor::after {
        transition: none !important;
    }
}
