:root {
    --bg1: #0f1226;
    --bg2: #1b1f3d;
    --glass: rgba(255, 255, 255, .08);
    --stroke: rgba(255, 255, 255, .14);
    --text: #eef1ff;
    --muted: #aeb4d6;
    --brand: #7c5cff;
    --accent: #00e6a7;
    --warn: #ff7b54;
}

.voice-assistant * {
    box-sizing: border-box
}

.voice-assistant {
    min-height: 100vh;
}

.voice-assistant {
    margin: 0;
    font-family: Poppins, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(80vw 80vh at 15% 15%, #232956 0%, var(--bg1) 50%),
        radial-gradient(60vw 60vh at 90% 90%, #202652 0%, var(--bg2) 55%);
    color: var(--text);
    display: grid;
    place-items: center;
    padding: 24px
}

.voice-assistant .card {
    width: min(960px, 94vw);
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    padding: 24px
}

.voice-assistant .header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px
}

.voice-assistant .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 18px var(--brand)
}

.voice-assistant h1 {
    font-size: 26px;
    line-height: 1.15;
    margin: 0
}

.voice-assistant p.sub {
    margin: 4px 0 14px;
    color: var(--muted)
}

.voice-assistant .display {
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed var(--stroke);
    background: rgba(255, 255, 255, .04);
    color: #ffec99
}

.voice-assistant .row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px
}

.voice-assistant button {
    appearance: none;
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer
}

.voice-assistant .btn {
    background: linear-gradient(135deg, var(--brand), #5b38ff);
    color: white;
    box-shadow: 0 8px 20px rgba(124, 92, 255, .35)
}

.voice-assistant .btn.ghost {
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    border: 1px solid var(--stroke)
}

.voice-assistant .btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.voice-assistant .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}


.voice-assistant .btn.danger {
    background: #e63946;
    color: #fff;
    border: 1px solid #b91c1c;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
}

.voice-assistant .btn.danger:hover {
    background: #d62828;
    border-color: #a31616;
    transform: translateY(-2px);
}

.voice-assistant .btn.danger:active {
    background: #b91c1c;
    /* darkest red on click */
    border-color: #7f1010;
    transform: translateY(0);
}

.voice-assistant .status {
    margin-top: 8px;
    min-height: 22px;
    color: var(--muted);
    font-size: 14px
}

.voice-assistant .wave {
    height: 42px;
    margin: 14px 0 6px;
    display: flex;
    align-items: flex-end;
    gap: 6px
}

.voice-assistant .bar {
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
    height: 10px;
    opacity: .85;
    animation: wave 1.05s ease-in-out infinite
}

.voice-assistant .bar:nth-child(2) {
    animation-delay: .08s
}

.voice-assistant .bar:nth-child(3) {
    animation-delay: .16s
}

.voice-assistant .bar:nth-child(4) {
    animation-delay: .24s
}

.voice-assistant .bar:nth-child(5) {
    animation-delay: .32s
}

@keyframes wave {
    0% {
        height: 8px
    }

    50% {
        height: 36px
    }

    100% {
        height: 8px
    }
}

/* Autoplay gate overlay */
.voice-assistant .gate {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(11, 13, 28, .72);
    backdrop-filter: blur(4px);
}

.voice-assistant .gate .panel {
    background: var(--glass);
    border: 1px solid var(--stroke);
    padding: 22px;
    border-radius: 20px;
    text-align: center;
    max-width: 520px
}

.voice-assistant .hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px
}

.voice-assistant .pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid var(--stroke);
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px
}




/* Floating AI Button */
.ai-float-btn {
    position: fixed;
    top: 140px;
    right: 20px;
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--stroke);
    border-radius: 30px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.ai-float-btn i {
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.ai-float-btn:hover {
    background: linear-gradient(135deg, var(--brand), #5b38ff);
    color: #fff;
}

.ai-float-btn:hover i {
    color: #fff;
    transform: translateY(2px);
}

.ai-float-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Arrow styling */
.ai-float-btn .arrow {
    font-size: 20px;
    color: var(--muted);
}