:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --danger: #ef4444;
    --danger-hover: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    position: absolute;
    width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.language-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
}

.language-choice {
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-primary);
    padding: 16px 18px;
    border-radius: 16px;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.language-choice:hover,
.language-choice:has(input:checked) {
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.88);
}

.language-choice input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.start-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent);
}

/* Call Screen */
.call-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 60px 32px;
}

#agent-status {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
}

.avatar svg {
    width: 32px;
    height: 32px;
    color: white;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transform: scale(0.8);
}

.speaking .pulse-ring-1 {
    animation: pulse 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

.speaking .pulse-ring-2 {
    animation: pulse 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-delay: 1s;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.danger-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--danger);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px var(--danger);
}

.danger-btn:hover {
    background: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--danger);
}

.danger-btn svg {
    width: 24px;
    height: 24px;
}
