/**
 * phone.css — телефон, контакты, звонки.
 * Стиль: frame, matrix, L-уголки, без скруглений.
 * Эффекты помех (badTV, hologram) — в JS, сохраняются.
 */

/* === ВЫДВИЖНОЕ МЕНЮ СЛЕВА (телефон) === */
#left-menu-overlay {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(100% - 320px);
    z-index: 9500;
    pointer-events: none;
    transition: opacity 0.2s;
}
#left-menu-overlay.active {
    pointer-events: auto;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 100vw;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
    -webkit-backface-visibility: hidden;
}

.left-menu-glass {
    background: rgba(var(--frame-rgb), 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(var(--frame-rgb), 0.3);
}

#left-menu-strip-wrap {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9510;
    display: flex;
    align-items: center;
    height: 224px;
    transition: opacity 0.25s ease;
}

/* 3 точки в 2 ряда; при .wide скрыт */
#left-menu-strip-layer {
    position: absolute;
    left: 1px;
    top: 40%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: rgba(0, 212, 255, 0.35);
    border-radius: 50%;
    box-shadow:
        0 12px 0 rgba(0, 212, 255, 0.35),
        0 24px 0 rgba(0, 212, 255, 0.35),
        10px 0 0 rgba(0, 212, 255, 0.35),
        10px 12px 0 rgba(0, 212, 255, 0.35),
        10px 24px 0 rgba(0, 212, 255, 0.35);
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
    pointer-events: none;
}
#left-menu-strip.wide #left-menu-strip-layer {
    display: none;
}


#left-menu-strip {
    position: relative;
    height: 112px;
    min-width: 28px;
    border-radius: 0 !important;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    padding-left: 0;
    transition: min-width 0.25s ease, height 0.25s ease, padding-right 0.25s ease, padding-left 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
}

#left-menu-strip.wide {
    min-width: 40px;
    height: 110px;
    padding-right: 12px;
    padding-left: 4px;
    box-shadow: none;
}
#left-menu-strip.wide #left-menu-hamburger {
    margin-left: 4px;
}

.left-menu-btn.incoming-call {
    animation: leftMenuBtnRing 0.6s ease-in-out infinite;
    box-shadow: none;
}
.left-menu-btn.tube-btn.incoming-call::before {
    animation: leftMenuTubeGlow 0.6s ease-in-out infinite;
}
@keyframes leftMenuBtnRing {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 18px rgba(var(--frame-rgb), 0.8), 0 0 36px rgba(var(--frame-rgb), 0.4); }
    50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 24px rgba(var(--frame-rgb), 0.9), 0 0 48px rgba(var(--frame-rgb), 0.5); }
}
@keyframes leftMenuTubeGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

#left-menu-phone-icon {
    display: none !important;
}

#left-menu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
    height: 30px;
}
#left-menu-strip.wide #left-menu-hamburger { display: none; }
#left-menu-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 !important;
}

#left-menu-buttons {
    position: fixed;
    top: 50%;
    z-index: 9505;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
#left-menu-buttons.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.left-menu-btn {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.left-menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* tube-btn: picker переопределяет в right-menu.css; fallback для ::before при отсутствии picker */
.left-menu-btn.tube-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.incoming-missed-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: var(--deadend);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 1;
}
.incoming-missed-badge.pill {
    border-radius: 0 !important;
    min-width: 48px;
    padding: 0 12px;
}

/* === ТЕЛЕФОННАЯ КНИГА === */
body.phone-book-open { overflow: hidden; touch-action: none; }

#phone-book-overlay {
    display: none;
    position: fixed;
    inset: 0;
    min-width: 100vw;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    z-index: 9600;
    align-items: center;
    justify-content: center;
}

.phone-book-glass {
    background: repeating-linear-gradient(
        45deg,
        rgba(var(--frame-rgb), 0.04),
        rgba(var(--frame-rgb), 0.04) 50px,
        rgba(0, 0, 0, 0.03) 50px,
        rgba(0, 0, 0, 0.03) 70px
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

#phone-book-modal {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 454px;
    min-height: 454px;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 0 0 14px 0;
    box-sizing: border-box;
}
#phone-book-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--frame-color);
    border-left: 2px solid var(--frame-color);
    pointer-events: none;
}
#phone-book-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--frame-color);
    border-right: 2px solid var(--frame-color);
    pointer-events: none;
}

#phone-book-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    flex-shrink: 0;
}

.phone-book-tab {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    border-radius: 0 !important;
    background: rgba(var(--frame-rgb), 0.06);
    color: rgba(230, 230, 230, 0.8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "Noto Sans", sans-serif;
    transition: background 0.2s, color 0.2s;
}
.phone-book-tab.active {
    background: rgba(var(--frame-rgb), 0.2);
    color: #e6e6e6;
    border-color: var(--frame-color);
}
.phone-book-tab:not(.active):hover {
    background: rgba(var(--frame-rgb), 0.12);
}

.phone-book-list {
    height: 304px;
    min-height: 304px;
    flex: 0 0 304px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.phone-book-list.phone-book-list-no-scroll {
    overflow-y: hidden;
    scrollbar-width: none;
}
.phone-book-list.phone-book-list-no-scroll::-webkit-scrollbar { display: none; width: 0; }
.phone-book-list::-webkit-scrollbar { width: 10px; }
.phone-book-list::-webkit-scrollbar-track { background: var(--scrollbar-track); }
.phone-book-list::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 0 !important; }
.phone-book-list::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

.phone-book-contact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(var(--frame-rgb), 0.3);
    cursor: pointer;
    transition: background 0.15s;
    min-height: 72px;
    box-sizing: border-box;
}
.phone-book-contact:hover {
    background: rgba(var(--frame-rgb), 0.08);
}
@keyframes phone-book-contact-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.phone-book-list.phone-book-list-animate .phone-book-contact {
    opacity: 0;
    animation: phone-book-contact-in 0.3s ease forwards;
}

.phone-book-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 0 !important;
    overflow: hidden;
    background: rgba(var(--frame-rgb), 0.08);
    border: 1px solid rgba(var(--frame-rgb), 0.3);
}
.phone-book-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-book-contact .phone-book-missed-badge {
    position: absolute;
    top: -2px;
    right: auto;
    left: 40px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--deadend);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.phone-book-contact .phone-book-missed-badge.pill {
    border-radius: 0 !important;
    min-width: 28px;
    padding: 0 8px;
}

.phone-book-contact-info { flex: 1; min-width: 0; }
.phone-book-contact-name { font-size: 16px; font-weight: 600; color: #e6e6e6; margin-bottom: 2px; }
.phone-book-contact-sub { font-size: 12px; color: rgba(230, 230, 230, 0.6); }

.phone-book-info-btn {
    width: 32px;
    height: 32px;
    border-radius: 0 !important;
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    background: rgba(var(--frame-rgb), 0.15);
    color: rgba(230, 230, 230, 0.9);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.phone-book-info-btn:hover { background: rgba(var(--frame-rgb), 0.25); }

#phone-book-close-btn {
    flex-shrink: 0;
    margin: 16px 16px 0 16px;
    padding: 14px;
    border-radius: 0 !important;
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    background: rgba(var(--frame-rgb), 0.15);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "Noto Sans", sans-serif;
    transition: background 0.2s;
}
#phone-book-close-btn:hover {
    background: rgba(var(--frame-rgb), 0.25);
}

/* === МОДАЛКА ИНФО О КОНТАКТЕ === */
#phone-book-info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9700;
    align-items: center;
    justify-content: center;
}

#phone-book-info-modal {
    position: relative;
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    border-radius: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
}
#phone-book-info-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--frame-color);
    border-left: 2px solid var(--frame-color);
    pointer-events: none;
}
#phone-book-info-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--frame-color);
    border-right: 2px solid var(--frame-color);
    pointer-events: none;
}

#phone-book-info-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
#phone-book-info-text {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    color: #e0e1dd;
    line-height: 1.5;
    white-space: pre-wrap;
}
#phone-book-info-text strong, #phone-book-info-text b { font-weight: bold; }
#phone-book-info-text em, #phone-book-info-text i { font-style: italic; }
#phone-book-info-text code {
    font-family: 'Courier New', monospace;
    background: rgba(var(--frame-rgb), 0.1);
    padding: 2px 4px;
    border-radius: 0 !important;
    font-size: 0.9em;
}
#phone-book-info-text a { color: var(--accent-alt); text-decoration: underline; }
#phone-book-info-text a:hover { color: #6dd5fa; }

#phone-book-info-close {
    margin-top: 12px;
    padding: 10px;
    border-radius: 0 !important;
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    background: rgba(var(--frame-rgb), 0.15);
    color: #fff;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    transition: background 0.2s;
}
#phone-book-info-close:hover {
    background: rgba(var(--frame-rgb), 0.25);
}

/* === ДОЗВОН === */
#dialing-overlay {
    position: fixed;
    inset: 0;
    z-index: 9590;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
#dialing-box {
    text-align: center;
    color: #fff;
}
#dialing-icon { font-size: 64px; display: block; margin-bottom: 12px; }
#dialing-text { font-size: 18px; margin: 0; opacity: 0.95; }

/* === МОДАЛКА ЗВОНКА (badTV, hologram — в JS) === */
body.call-modal-open { overflow: hidden; touch-action: none; }
body.call-modal-open #call-dialog-wrap { touch-action: pan-y; }

#call-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#call-hologram-rays-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}
#call-hologram-rays-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
}

/* Лучи сбоку: пропущенный звонок и развёрнутое левое меню */
#missed-call-rays-wrap,
#left-menu-rays-wrap {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 38vw;
    max-width: 220px;
    min-width: 120px;
    z-index: 9580;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    /* iOS: отдельный слой и видимость у левого края */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}
#left-menu-rays-wrap { z-index: 9575; }
#missed-call-rays-canvas,
#left-menu-rays-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: block;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
@media (max-width: 768px) {
    #missed-call-rays-wrap,
    #left-menu-rays-wrap {
        width: 45vw;
        max-width: 200px;
    }
}

#call-modal {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: auto;
    max-height: 85vh;
    border-radius: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: repeating-linear-gradient(
        45deg,
        rgba(var(--frame-rgb), 0.05),
        rgba(var(--frame-rgb), 0.05) 50px,
        rgba(0, 0, 0, 0.04) 50px,
        rgba(0, 0, 0, 0.04) 70px
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    box-shadow: var(--shadow-lg);
}
#call-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--frame-color);
    border-left: 2px solid var(--frame-color);
    pointer-events: none;
}
#call-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--frame-color);
    border-right: 2px solid var(--frame-color);
    pointer-events: none;
}

.call-modal-glass { /* дополнительный класс, backdrop уже в #call-modal */ }

#call-media-wrap {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    background: #141224;
    position: relative;
    overflow: hidden;
}
#call-media-wrap video,
#call-media-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#call-badtv-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}
#call-media-wrap:not(.badtv-active) #call-badtv-canvas { display: none; }

#call-dialog-wrap {
    flex: 0 1 auto;
    min-height: 80px;
    max-height: 220px;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(var(--frame-rgb), 0.3);
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
#call-dialog-wrap::-webkit-scrollbar { width: 10px; }
#call-dialog-wrap::-webkit-scrollbar-track { background: var(--scrollbar-track); }
#call-dialog-wrap::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 0 !important; }
#call-dialog-wrap::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

.call-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 0 !important;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
    animation: callBubbleFadeIn 0.55s ease forwards;
}
@keyframes callBubbleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.call-bubble.npc {
    align-self: flex-start;
    position: relative;
    background: rgba(var(--frame-rgb), 0.12);
    color: #fff;
    border-top: 1px solid rgba(var(--frame-rgb), 0.5);
    border-bottom: 1px solid rgba(var(--frame-rgb), 0.5);
}
.call-bubble.npc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--frame-color);
    border-left: 2px solid var(--frame-color);
    pointer-events: none;
}
.call-bubble.npc::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--frame-color);
    border-right: 2px solid var(--frame-color);
    pointer-events: none;
}
.call-bubble.player {
    align-self: flex-end;
    position: relative;
    background: rgba(56, 142, 60, 0.35);
    color: #fff;
    border-top: 1px solid rgba(76, 175, 80, 0.6);
    border-bottom: 1px solid rgba(76, 175, 80, 0.6);
}
.call-bubble.player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(76, 175, 80, 0.9);
    border-left: 2px solid rgba(76, 175, 80, 0.9);
    pointer-events: none;
}
.call-bubble.player::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.9);
    border-right: 2px solid rgba(76, 175, 80, 0.9);
    pointer-events: none;
}

.call-typing {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 0 !important;
    background: rgba(var(--frame-rgb), 0.12);
    border-top: 1px solid rgba(var(--frame-rgb), 0.5);
    border-bottom: 1px solid rgba(var(--frame-rgb), 0.5);
    position: relative;
    display: flex;
    gap: 4px;
    align-items: center;
    animation: callBubbleFadeIn 0.3s ease forwards;
}
.call-typing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--frame-color);
    border-left: 2px solid var(--frame-color);
    pointer-events: none;
}
.call-typing::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--frame-color);
    border-right: 2px solid var(--frame-color);
    pointer-events: none;
}
.call-typing .dot {
    width: 6px;
    height: 6px;
    border-radius: 0 !important;
    background: #fff;
    opacity: 0.5;
    animation: callTypingBounce 1.4s ease-in-out infinite both;
}
.call-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.call-typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes callTypingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

#call-text {
    padding: 16px;
    font-size: 17px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    min-height: 60px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
#call-text::-webkit-scrollbar { width: 10px; }
#call-text::-webkit-scrollbar-track { background: var(--scrollbar-track); }
#call-text::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 0 !important; }
#call-text::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

#call-actions {
    flex: 0 0 auto;
    padding: 12px 16px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    height: 76px;
    min-height: 76px;
    box-sizing: border-box;
    border-top: 1px solid rgba(var(--frame-rgb), 0.3);
}
#call-actions .call-next-missed-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}
#call-actions .call-next-missed-wrap button {
    padding: 10px 20px;
    border-radius: 0 !important;
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    font-size: 14px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
}
#call-actions .call-next-missed-btn {
    background: rgba(var(--frame-rgb), 0.15);
    color: #e6e6e6;
}
#call-actions .call-close-missed-btn {
    background: rgba(var(--accent-rgb), 0.5);
    color: #fff;
}

#call-answer-btn,
#call-end-btn {
    padding: 12px 24px;
    border-radius: 0 !important;
    border: 1px solid rgba(var(--frame-rgb), 0.5);
    font-size: 16px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    background: rgba(var(--frame-rgb), 0.2);
    color: white;
    transition: background 0.2s;
}
#call-answer-btn:hover,
#call-end-btn:hover {
    background: rgba(var(--frame-rgb), 0.3);
}
#call-end-btn {
    background: rgba(var(--accent-rgb), 0.4);
    border-color: rgba(var(--accent-rgb), 0.6);
}
#call-end-btn:hover {
    background: rgba(var(--accent-rgb), 0.5);
}

/* ═══════════════════════════════════════════════
   ПРИНУДИТЕЛЬНЫЕ ШРИФТЫ ДЛЯ ТЕЛЕФОНА И ЗВОНКОВ
   Для мобильных устройств: явное указание шрифтов с fallback
   ═══════════════════════════════════════════════ */

/* Левое меню и телефонная книга */
#left-menu-overlay,
.left-menu-btn,
#phone-book-overlay,
#phone-book-modal,
#phone-book-tabs,
.phone-book-tab,
.phone-book-contact,
.phone-book-contact-name,
.phone-book-contact-sub,
#phone-book-close-btn,
#phone-book-info-modal,
#phone-book-info-name,
#phone-book-info-text,
#phone-book-info-close {
    font-family: var(--font-primary) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

.phone-book-tab,
#phone-book-close-btn,
#phone-book-info-close {
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

.phone-book-contact-name {
    font-weight: 600 !important;
}

/* Окно звонка */
#call-modal-overlay,
#call-modal,
#call-dialog-wrap,
.call-bubble,
.call-typing,
#call-text,
#call-answer-btn,
#call-end-btn {
    font-family: var(--font-primary) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

#call-answer-btn,
#call-end-btn {
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}

/* Дозвон */
#dialing-overlay,
#dialing-text {
    font-family: var(--font-primary) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}
