.voice-main {
    gap: 48px;
}

.voice-orb {
    position: relative;
    width: min(50vh, 380px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    --scale: 1;
    transition: --scale .08s ease-out;
}

.orb-core {
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a5f3fc, #22d3ee 30%, #7c5cff 70%, #3730a3 100%);
    box-shadow:
        0 0 40px rgba(34, 211, 238, .6),
        inset 0 0 20px rgba(255, 255, 255, .1);
    transform: scale(var(--scale, 1));
    transition: transform .12s ease-out;
    z-index: 3;
}

.orb-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .35), rgba(124, 92, 255, .2) 40%, transparent 70%);
    filter: blur(30px);
    transform: scale(calc(0.9 + (var(--scale, 1) - 1) * 2));
    transition: transform .15s ease-out;
    z-index: 0;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 92, 255, .2);
    pointer-events: none;
}

.orb-ring-1 {
    inset: 22%;
    border-color: rgba(34, 211, 238, .3);
    animation: ringBreathe 3s ease-in-out infinite;
}

.orb-ring-2 {
    inset: 12%;
    border-color: rgba(124, 92, 255, .25);
    animation: ringBreathe 3s ease-in-out infinite;
    animation-delay: -1s;
}

.orb-ring-3 {
    inset: 2%;
    border-color: rgba(124, 92, 255, .15);
    animation: ringBreathe 3s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes ringBreathe {
    0%, 100% { transform: scale(1); opacity: .4; }
    50% { transform: scale(1.05); opacity: .8; }
}

/* AI speaking: strong pulse */
.stage[data-speaking="true"] .orb-core {
    animation: speakPulse .45s ease-in-out infinite alternate;
    box-shadow:
        0 0 80px rgba(34, 211, 238, .9),
        0 0 120px rgba(124, 92, 255, .4),
        inset 0 0 30px rgba(255, 255, 255, .15);
}

.stage[data-speaking="true"] .orb-halo {
    animation: haloPulse .6s ease-in-out infinite alternate;
}

.stage[data-speaking="true"] .orb-ring {
    animation-duration: 1.2s;
}

@keyframes speakPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes haloPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: .7; }
}

/* User speaking: subtle cyan tint */
.stage[data-user-speaking="true"] .orb-core {
    background: radial-gradient(circle at 30% 30%, #86efac, #22d3ee 40%, #3730a3 100%);
}

.stage[data-user-speaking="true"] .orb-ring {
    border-color: rgba(134, 239, 172, .4);
}

/* Thinking: amber pulse, slower */
.stage[data-thinking="true"] .orb-core {
    background: radial-gradient(circle at 30% 30%, #fed7aa, #fb923c 40%, #9a3412 100%);
    animation: thinkingPulse 1.5s ease-in-out infinite;
}

.stage[data-thinking="true"] .orb-halo {
    background: radial-gradient(circle, rgba(251, 146, 60, .4), transparent 70%);
    animation: thinkingPulse 1.5s ease-in-out infinite;
}

.stage[data-thinking="true"] .orb-ring {
    border-color: rgba(251, 146, 60, .3);
    animation-duration: 2s;
}

@keyframes thinkingPulse {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Mobil responsive */
@media (max-width: 640px) {
    .voice-main {
        gap: 28px;
        padding: 16px;
    }
    .voice-orb {
        width: min(60vw, 280px);
    }
    .meta h1 {
        font-size: 20px;
    }
    .meta p {
        font-size: 13px;
    }
    .speaking-hint {
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (max-width: 380px) {
    .voice-orb {
        width: 65vw;
    }
}

@media (max-height: 680px) and (min-width: 641px) {
    .voice-orb {
        width: min(40vh, 300px);
    }
    .voice-main { gap: 24px; }
}
