/* =========================================================================
   GRANDSTREAM GXV3480 DESK PHONE - VOIP SKY-BLUE EDITION
   ========================================================================= */

.gxv-overlay {
    display: none !important;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(8, 14, 22, 0.94);
    backdrop-filter: blur(8px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none !important;
    visibility: hidden !important;
}

.gxv-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.gxv-phone-chassis {
    background: linear-gradient(145deg, #1e242b, #12161a);
    border: 3px solid #2e3842;
    border-bottom: 7px solid #0a0d10;
    border-radius: 22px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.12);
    padding: 24px;
    max-width: 820px;
    width: 100%;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    position: relative;
    box-sizing: border-box;
    color: #f0f4f8;
}

.gxv-brand {
    position: absolute;
    top: 10px;
    right: 26px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #5c7082;
    text-transform: uppercase;
}

.gxv-handset-bay {
    background: #0f1316;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.85), 0 1px 1px rgba(255,255,255,0.05);
    min-height: 370px;
    box-sizing: border-box;
}

.gxv-handset {
    background: linear-gradient(to right, #252b31, #1a1e22, #252b31);
    border-radius: 28px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 22px 10px;
    border: 1px solid #333c44;
    box-shadow: 0 8px 16px rgba(0,0,0,0.65);
    box-sizing: border-box;
}

.handset-earpiece {
    width: 50px;
    height: 50px;
    background: #14171a;
    border-radius: 50%;
    border: 2px solid #2a3138;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.7);
    display: grid;
    place-items: center;
}

.earpiece-grille {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #555 22%, transparent 22%);
    background-size: 6px 6px;
}

.handset-shaft {
    color: #5d6d7e;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: bold;
    transform: rotate(-90deg);
}

.handset-mic {
    width: 44px;
    height: 28px;
    background: #14171a;
    border-radius: 14px;
    border: 2px solid #2a3138;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.7);
}

.gxv-console {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gxv-screen-bezel {
    background: #090c0f;
    border-radius: 14px;
    padding: 12px;
    border: 2px solid #232a32;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.95), 0 1px 2px rgba(255,255,255,0.08);
}

/* VOIP BACKLIT SKY-BLUE LCD SCREEN */
.gxv-screen {
    background: linear-gradient(180deg, #0d3b66 0%, #082845 55%, #05192d 100%);
    border-radius: 10px;
    border: 1px solid #1e5282;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(56, 189, 248, 0.22), 0 0 18px rgba(14, 165, 233, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
}

.gxv-screen-bar {
    background: rgba(6, 26, 46, 0.88);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.gxv-line-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.5px;
}

.gxv-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: gxv-pulse-ring 2s infinite;
}

@keyframes gxv-pulse-ring {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}

.gxv-screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.gxv-member-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    margin-bottom: 10px;
    border: 2px solid #7dd3fc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(56, 189, 248, 0.4);
}

.gxv-call-partner-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gxv-call-status-badge {
    font-size: 0.82rem;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.22);
    padding: 4px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.gxv-call-timer {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.55rem;
    font-weight: bold;
    color: #e0f2fe;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.gxv-screen-footer {
    background: rgba(6, 26, 46, 0.88);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 12px;
    font-size: 0.72rem;
    color: #7dd3fc;
    text-align: center;
}

/* TACTILE TRAY & BUTTONS */
.gxv-tactile-tray {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    position: relative;
    z-index: 1000002;
    pointer-events: auto !important;
}

.gxv-phone-btn {
    flex: 1;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid #363d45;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 #0f1316, 0 6px 12px rgba(0,0,0,0.45);
    position: relative;
    z-index: 1000003;
    pointer-events: auto !important;
    user-select: none;
}

.gxv-phone-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #0f1316, 0 2px 4px rgba(0,0,0,0.45);
}

.gxv-btn-mute {
    background: linear-gradient(180deg, #374151, #1f2937);
    color: #f3f4f6;
}

.gxv-btn-hangup {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    color: #ffffff;
    border-color: #ef4444;
    flex: 1.35;
}

.gxv-btn-expand {
    background: linear-gradient(180deg, #0284c7, #0369a1);
    color: #ffffff;
    border-color: #38bdf8;
    text-decoration: none;
}

@media (max-width: 680px) {
    .gxv-phone-chassis {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 14px;
    }
    .gxv-handset-bay {
        display: none;
    }
    .gxv-brand {
        position: static;
        text-align: right;
        margin-bottom: 4px;
    }
}
