.vume-anim *, .vume-anim *::before, .vume-anim *::after { box-sizing: border-box; margin: 0; padding: 0; }
.vume-anim { font-family: inherit; }
.vume-anim .va-scene { display: flex; justify-content: center; align-items: center; padding: 2rem 0; }

/* ── Phone shell ── */
.vume-anim .va-phone {
    width: 320px; height: 640px;
    background: #1e1e1e;
    border-radius: 44px;
    border: 2.5px solid #2e2e2e;
    box-shadow: 0 0 0 1px #111, 0 32px 80px rgba(0,0,0,0.22), 0 8px 24px rgba(253,88,18,0.08);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.vume-anim .va-phone-notch {
    width: 100px; height: 28px;
    background: #1e1e1e;
    border-radius: 0 0 18px 18px;
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); z-index: 10;
}

/* ── Screen (light) ── */
.vume-anim .va-phone-screen {
    flex: 1;
    background: #fff;
    border-radius: 42px;
    overflow: hidden; position: relative;
    display: flex; flex-direction: column;
}
.vume-anim .va-view {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease;
}
.vume-anim .va-view.va-active { opacity: 1; pointer-events: all; }

/* ── Chat view ── */
.vume-anim .va-chat-topbar {
    padding: 44px 16px 10px;
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border-bottom: 1px solid #f0e8e3;
}
.vume-anim .va-chat-logo {
    width: 28px; height: 28px;
    background: #10a37f;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.vume-anim .va-chat-logo svg { width: 16px; height: 16px; }
.vume-anim .va-chat-title { font-size: 15px; font-weight: 600; color: #23272E; }

.vume-anim .va-chat-messages {
    flex: 1; overflow: hidden;
    padding: 16px 14px;
    display: flex; flex-direction: column; gap: 16px;
}
.vume-anim .va-msg-user {
    align-self: flex-end;
    background: #fff7f3;
    color: #23272E;
    font-size: 13.5px; line-height: 1.5;
    padding: 9px 13px;
    border-radius: 18px 18px 4px 18px;
    max-width: 80%;
    border: 1px solid #f0e8e3;
}
.vume-anim .va-msg-assistant {
    align-self: flex-start;
    color: #4a5568;
    font-size: 13px; line-height: 1.6; max-width: 92%;
}
.vume-anim .va-msg-assistant .va-thinking {
    display: flex; align-items: center; gap: 6px;
    color: #9ca3af; font-size: 12px; margin-bottom: 6px;
}

.vume-anim .va-chat-input-bar {
    padding: 10px 14px 24px;
    background: #fff;
    border-top: 1px solid #f0e8e3;
    display: flex; align-items: center; gap: 8px;
}
.vume-anim .va-chat-input-fake {
    flex: 1;
    background: #faf7f5;
    border-radius: 22px;
    border: 1px solid #f0e8e3;
    padding: 9px 14px;
    font-size: 13px; color: #9ca3af;
    min-height: 38px;
    display: flex; align-items: center;
}
.vume-anim .va-cursor-blink {
    display: inline-block; width: 1.5px; height: 14px;
    background: #FD5812; margin-left: 1px;
    animation: va-blink 1s step-end infinite;
    vertical-align: middle;
}
@keyframes va-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Search view ── */
.vume-anim .va-search-topbar {
    padding: 44px 16px 12px;
    background: #faf7f5;
    border-bottom: 1px solid #f0e8e3;
}
.vume-anim .va-search-label {
    font-size: 11px; color: #9ca3af;
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.vume-anim .va-search-bar {
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px; color: #23272E;
    display: flex; align-items: center; gap: 8px;
    overflow: hidden;
    border: 1.5px solid #f0e8e3;
    transition: border-color 0.3s;
}
.vume-anim .va-search-bar.va-active { border-color: #FD581255; }
.vume-anim .va-search-icon { color: #9ca3af; font-size: 13px; flex-shrink: 0; }
.vume-anim .va-search-query-text { flex: 1; overflow: hidden; white-space: nowrap; }

.vume-anim .va-scan-line {
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #FD581866, transparent);
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.vume-anim .va-scan-line.va-active { opacity: 1; animation: va-scandown 1.2s ease-in-out; }
@keyframes va-scandown { 0%{top:0} 100%{top:calc(100% - 4px)} }

.vume-anim .va-search-results {
    flex: 1; overflow: hidden;
    padding: 10px 14px;
    display: flex; flex-direction: column; gap: 9px;
    position: relative;
    background: #fff;
}
.vume-anim .va-result-card {
    background: #faf7f5;
    border-radius: 10px;
    padding: 10px 12px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s, background 0.3s;
    border-left: 3px solid transparent;
    border: 1.5px solid #f0e8e3;
    border-left: 3px solid transparent;
    position: relative; overflow: hidden;
}
.vume-anim .va-result-card.va-show { opacity: 1; transform: translateY(0); }
.vume-anim .va-result-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(253,88,18,0.04) 50%, transparent 100%);
    transform: translateX(-100%); pointer-events: none;
}
.vume-anim .va-result-card.va-shimmer::after { animation: va-shimmer-slide 0.6s ease forwards; }
@keyframes va-shimmer-slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

.vume-anim .va-result-source {
    font-size: 10.5px; color: #9ca3af;
    margin-bottom: 3px;
    display: flex; align-items: center; gap: 5px;
}
.vume-anim .va-source-dot { width: 6px; height: 6px; border-radius: 50%; background: #e0d6d0; }
.vume-anim .va-result-title { font-size: 12.5px; color: #23272E; line-height: 1.4; margin-bottom: 4px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vume-anim .va-result-snippet { font-size: 11px; color: #9ca3af; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vume-anim .va-vume-tag {
    display: inline-block; color: #FD5812;
    font-weight: 600; position: relative; padding: 0 2px;
}
.vume-anim .va-vume-tag::before {
    content: ''; position: absolute; inset: -1px -3px;
    background: rgba(253,88,18,0.10); border-radius: 4px;
    transform: scaleX(0); transform-origin: left; transition: transform 0s;
}
.vume-anim .va-vume-tag.va-pop::before { transform: scaleX(1); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.vume-anim .va-vume-tag.va-pop { animation: va-tag-pulse 0.5s ease forwards; }
@keyframes va-tag-pulse { 0%{color:#FD5812} 30%{color:#EE3E08} 60%{color:#ff8c60} 100%{color:#FD5812} }

.vume-anim .va-vume-counter {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: #FD5812; color: #fff;
    font-size: 10px; font-weight: 600;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 0 0 0 rgba(253,88,18,0.4);
}
.vume-anim .va-vume-counter.va-show { opacity: 1; animation: va-ripple-out 0.5s ease forwards; }
@keyframes va-ripple-out { 0%{transform:translateY(-50%) scale(0.5);box-shadow:0 0 0 0 rgba(253,88,18,0.4)} 60%{transform:translateY(-50%) scale(1.2);box-shadow:0 0 0 6px transparent} 100%{transform:translateY(-50%) scale(1)} }

.vume-anim .va-citations-bar {
    padding: 8px 14px;
    background: #faf7f5;
    border-top: 1px solid #f0e8e3;
    display: flex; align-items: center; gap: 8px;
}
.vume-anim .va-cite-bubble {
    background: rgba(253,88,18,0.08);
    border: 1px solid rgba(253,88,18,0.22);
    border-radius: 20px; padding: 4px 10px;
    font-size: 11px; color: #FD5812;
    opacity: 0; transition: opacity 0.4s ease;
}
.vume-anim .va-cite-bubble.va-show { opacity: 1; }

/* ── Recommendation box ── */
.vume-anim .va-rec-box {
    background: #fff7f3;
    border: 1.5px solid rgba(253,88,18,0.25);
    border-radius: 10px; padding: 12px;
    opacity: 0; transition: opacity 0.5s ease;
}
.vume-anim .va-rec-box.va-show { opacity: 1; }
.vume-anim .va-rec-title {
    font-size: 13px; color: #FD5812;
    font-weight: 600; margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
}
.vume-anim .va-rec-body { font-size: 12px; color: #6b7280; line-height: 1.55; }
.vume-anim .va-rec-body strong { color: #23272E; font-weight: 600; }
.vume-anim .va-rec-badge {
    display: inline-block;
    background: #FD5812; color: #fff;
    font-size: 10px; font-weight: 500;
    padding: 2px 8px; border-radius: 20px; margin-bottom: 6px;
}

/* ── Spinner ── */
.vume-anim .va-spin {
    width: 12px; height: 12px;
    border: 2px solid #f0e8e3;
    border-top-color: #FD5812;
    border-radius: 50%;
    animation: va-spin 0.8s linear infinite;
    display: inline-block; flex-shrink: 0;
}
@keyframes va-spin { to { transform: rotate(360deg); } }
