body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f3f6fa;
    color:#1d2939;
}
.page{
    max-width:900px;
    margin:30px auto;
    padding:20px;
}
.card{
    background:white;
    border-radius:16px;
    padding:22px;
    margin-bottom:20px;
    box-shadow:0 2px 14px #0001;
}
.hero{text-align:center}
.voip-floating{
    position:fixed;
    top:12px;
    right:12px;
    width:300px;
    background:white;
    border-radius:18px;
    box-shadow:0 12px 40px #0003;
    z-index:9999;
    overflow:hidden;
}

.voip-head{
    background:#145da0;
    color:white;
    padding:10px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#dialerBody{
    padding:12px;
}

.voip-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:8px;
}

.keys{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    margin-top:8px;
}

.keys button{
    padding:10px;
    font-size:17px;
}

.blue{
    background:#145da0;
    color:white;
    width:100%;
    margin-bottom:8px;
}

.green,.red{
    width:100%;
}

.debug-box{
    display:none;
}

@media(max-width:600px){
    .voip-floating{
        left:8px;
        right:8px;
        top:8px;
        width:auto;
        max-height:calc(100vh - 24px);
        overflow:auto;
    }

    input{
        padding:11px;
        font-size:18px;
        margin-bottom:8px;
    }

    button{
        padding:10px;
    }
}
.keys button{
    background:#eef4ff;
    color:#145da0;
    font-size:18px;
}
.voip-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:8px;
}

.voip-actions button{
    width:100%;
    min-height:44px;
}

#answerArea{
    display:none;
    margin-bottom:8px;
}

#answerArea button{
    width:100%;
    min-height:48px;
    font-size:17px;
}
.green{background:#18864b;color:white;margin-top:8px;width:100%}
.blue{background:#145da0;color:white;margin-top:8px;width:100%}
.red{background:#b3261e;color:white;margin-top:8px;width:100%}
.public-call-btn{
    background:#145da0;
    color:white;
    padding:18px 30px;
    font-size:22px;
    border-radius:14px;
}
.debug-box{
    margin-top:10px;
    padding:8px;
    background:#f7f7f7;
    border-radius:10px;
    font-size:11px;
    color:#555;
    max-height:80px;
    overflow:auto;
}
@media(max-width:600px){
    .voip-floating{
        left:10px;
        right:10px;
        top:10px;
        width:auto;
    }
}
.voip-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    align-items:stretch;
}

.voip-actions button{
    width:100%;
    height:46px;
    margin:0 !important;
    display:flex;
    align-items:center;
    justify-content:center;
}
.public-phone{
    width:280px;
    margin:20px auto;
    background:#111827;
    border-radius:28px;
    padding:16px;
    box-shadow:0 14px 40px #0003;
    color:white;
}
.public-phone-screen{
    background:#1f2937;
    border-radius:20px;
    padding:18px;
    text-align:center;
}
.public-phone-title{
    font-size:18px;
    font-weight:800;
}
.public-phone-status{
    margin-top:8px;
    font-size:13px;
    color:#cbd5e1;
}
.public-phone-actions{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:14px;
}

.public-phone-actions button{
    height:48px;
    border-radius:16px;
    font-size:16px;
    width:120px;
}
.public-green{
    background:#16a34a;
    color:white;
}
.public-red{
    background:#dc2626;
    color:white;
}
.sound-bars{
    height:36px;
    display:flex;
    justify-content:center;
    align-items:end;
    gap:5px;
    margin-top:16px;
}
.sound-bars span{
    width:6px;
    height:8px;
    background:#22c55e;
    border-radius:4px;
    opacity:.35;
}
.sound-bars.active span{
    animation:soundbar .8s infinite ease-in-out;
}
.sound-bars.active span:nth-child(2){animation-delay:.1s}
.sound-bars.active span:nth-child(3){animation-delay:.2s}
.sound-bars.active span:nth-child(4){animation-delay:.3s}
.sound-bars.active span:nth-child(5){animation-delay:.4s}

@keyframes soundbar{
    0%,100%{height:8px;opacity:.35}
    50%{height:30px;opacity:1}
}
.call-progress{
    height:6px;
    background:#374151;
    border-radius:20px;
    overflow:hidden;
    margin-top:14px;
}
#publicProgressBar{
    height:100%;
    width:0%;
    background:#22c55e;
    transition:width .3s;
}
