.phone-launcher {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1060;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #4f7cff, #6259e8);
    box-shadow: 0 14px 32px rgba(79, 124, 255, .4);
    font-size: 27px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.phone-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(79, 124, 255, .5);
}

.phone-panel {
    position: fixed;
    right: 28px;
    bottom: 104px;
    z-index: 1055;
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    border: 1px solid rgba(86, 101, 140, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(35, 43, 72, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.phone-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.phone-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 14px;
}

.phone-title-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: #536dfe;
    background: #eef1ff;
    font-size: 21px;
}

.phone-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    color: #6b7280;
    background: #f3f5f9;
    font-size: 20px;
}

.phone-panel-body {
    padding: 0 22px 22px;
}

.phone-status-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #f7f8fc;
}

.phone-status-item small {
    display: block;
    margin-bottom: 3px;
    color: #8a91a3;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.phone-number-wrap {
    position: relative;
    margin-bottom: 14px;
}

.phone-number-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a91a3;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.phone-number-input {
    height: 52px;
    padding: 0 16px 0 56px !important;
    border: 1px solid #e3e7f0;
    border-radius: 15px;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .04em;
}

.phone-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 16px;
}

.phone-key {
    height: 48px;
    border: 1px solid #e8ebf2;
    border-radius: 14px;
    color: #252b3b;
    background: #f8f9fc;
    font-size: 19px;
    font-weight: 600;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}

.phone-key:hover:not(:disabled) {
    color: #536dfe;
    background: #eef1ff;
    transform: translateY(-1px);
}

.phone-key:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.phone-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.phone-actions .btn {
    min-height: 43px;
    border: 0;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
}

.phone-actions .phone-action-wide {
    grid-column: span 3;
}

.phone-panel .alert {
    margin-top: 14px;
    margin-bottom: 0;
    border: 0;
    border-radius: 14px;
    font-size: 13px;
}

.phone-incoming-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 27, 48, .52);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.phone-incoming-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.phone-incoming-card {
    width: min(380px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(20, 27, 48, .3);
    text-align: center;
    transform: translateY(16px) scale(.96);
    transition: transform .2s ease;
}

.phone-incoming-modal.is-visible .phone-incoming-card {
    transform: translateY(0) scale(1);
}

.phone-incoming-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #52d3a0, #32b982);
    box-shadow: 0 14px 30px rgba(50, 185, 130, .35);
    font-size: 34px;
    animation: phoneIncomingPulse 1.4s ease-in-out infinite;
}

.phone-incoming-label {
    display: block;
    margin-bottom: 5px;
    color: #8a91a3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.phone-incoming-card h4 {
    margin-bottom: 8px;
    color: #252b3b;
}

.phone-incoming-number {
    display: block;
    margin-bottom: 24px;
    color: #536dfe;
    font-size: 28px;
    letter-spacing: .04em;
}

.phone-incoming-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.phone-incoming-actions .btn {
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    font-weight: 700;
}

@keyframes phoneIncomingPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@media (max-width: 575.98px) {
    .phone-launcher {
        right: 16px;
        bottom: 18px;
    }

    .phone-panel {
        right: 16px;
        bottom: 92px;
    }
}
