:root {
    --bg-color: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #10b981;
    --danger-color: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    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;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header */
.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    border-left: none;
    border-right: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.status-badge {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.status-badge.connected {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-color);
}

/* Main Area */
.call-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.1);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0;
    z-index: 1;
}

.is-speaking .pulse-1 { animation: pulse 2s infinite ease-out; }
.is-speaking .pulse-2 { animation: pulse 2s infinite ease-out 0.6s; }
.is-speaking .pulse-3 { animation: pulse 2s infinite ease-out 1.2s; }

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

.call-info {
    text-align: center;
    margin-bottom: 30px;
}

.call-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timer {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.visualizer {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
}

.transcript {
    width: 100%;
    text-align: center;
    min-height: 60px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 20px;
    font-style: italic;
}

/* Controls */
.controls {
    padding: 30px 20px 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 30px 30px 0 0;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.control-btn:not(:disabled):hover {
    background: rgba(255,255,255,0.1);
}

.control-btn.muted {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.call-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.call-btn.start {
    background-color: var(--accent-color);
}

.call-btn.start:hover {
    transform: scale(1.05);
    background-color: #0ea5e9;
}

.call-btn.end {
    background-color: var(--danger-color);
}

.call-btn.end:hover {
    transform: scale(1.05);
    background-color: #dc2626;
}

@media (min-width: 481px) {
    .app-container {
        height: 85vh;
        border-radius: 30px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--glass-border);
    }
}
