* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, Helvetica, sans-serif;

    background: #f2f4f7;
}

.phone {
    width: 360px;
    max-width: 95vw;

    background: #ffffff;

    border-radius: 18px;

    padding: 20px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.brand {
    font-size: 22px;
    font-weight: bold;
}

.title {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.status {
    display: inline-block;

    margin-top: 10px;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;
}

.status.offline {
    background: #eee;
    color: #666;
}

.status.online {
    background: #dff5e5;
    color: #16733a;
}

.display {
    background: #f7f8fa;

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 20px;

    text-align: center;
}

.call-status {
    font-size: 14px;
    color: #666;
}

.number {
    min-height: 34px;

    margin-top: 8px;

    font-size: 24px;
    font-weight: bold;

    word-break: break-all;
}

.dialpad {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.dialpad button {
    height: 58px;

    border: none;

    border-radius: 12px;

    background: #f1f3f5;

    font-size: 22px;

    cursor: pointer;
}

.dialpad button:hover {
    background: #e4e7eb;
}

.controls {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 18px;
}

.controls button {
    height: 48px;

    border: none;

    border-radius: 10px;

    font-weight: bold;

    cursor: pointer;
}

.call-button {
    background: #1f9d55;
    color: white;
}

.hangup-button {
    background: #d64545;
    color: white;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.secondary-controls {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 10px;
}

.secondary-controls button {
    height: 40px;

    border: 1px solid #ddd;

    border-radius: 10px;

    background: white;

    cursor: pointer;
}

.incoming-call {
    margin-top: 20px;

    padding: 18px;

    border-radius: 12px;

    background: #fff4e5;

    text-align: center;
}

.incoming-title {
    font-size: 18px;
    font-weight: bold;
}

.incoming-number {
    margin: 10px 0;

    font-size: 20px;
}

.incoming-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.incoming-buttons button {
    height: 45px;

    border: none;

    border-radius: 10px;

    font-weight: bold;

    cursor: pointer;
}

.answer-button {
    background: #1f9d55;
    color: white;
}

.reject-button {
    background: #d64545;
    color: white;
}

.hidden {
    display: none;
}
