:root {
    --green: #2ecc71;
    --red: #e74c3c;
    --dark: #000000;
    --alert-bg: #ff3b30;
    --text: #ffffff;
    --primary-gradient: linear-gradient(135deg, #ff0055 0%, #ff5e62 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-user-select: none; user-select: none; }

body {
    background: #000; height: 100vh; width: 100vw;
    overflow: hidden; display: flex; justify-content: center;
}

/* Background Video */
.video-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; filter: blur(15px); transform: scale(1.1); }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }

/* Main Container */
.main-container { width: 100%; max-width: 450px; height: 100%; position: relative; display: flex; flex-direction: column; padding: 20px; }

/* Top Bar */
.top-bar { display: flex; justify-content: space-between; color: rgba(255,255,255,0.8); font-size: 0.75rem; margin-top: 10px; font-weight: 500; }
.encryption i { margin-right: 5px; color: #aaa; }
.dot-green { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 5px; box-shadow: 0 0 5px var(--green); }
.connection-status { color: var(--green); }

/* Screens */
.screen { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: fadeIn 0.5s ease; }
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Screen 1 */
.caller-profile { margin-top: auto; margin-bottom: 50px; }
.avatar-wrapper { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; position: relative; }
.avatar-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.2); }
.pulse-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--green); animation: ripple 2s infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

.caller-name { font-size: 2rem; font-weight: 600; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.caller-status { font-size: 1rem; color: #ddd; margin-bottom: 10px; }
.location-tag { background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 20px; display: inline-block; font-size: 0.85rem; backdrop-filter: blur(5px); }

/* Chat Toast */
.chat-toast { position: absolute; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px); width: 92%; background: rgba(255,255,255,0.95); color: #000; padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); opacity: 0; transition: 0.5s; pointer-events: none; z-index: 10; }
.chat-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.toast-msg { font-size: 0.85rem; text-align: left; line-height: 1.3; }

/* Call Buttons */
.call-actions { margin-top: auto; margin-bottom: 40px; width: 100%; display: flex; justify-content: space-around; align-items: center; }
.btn-decline, .btn-accept { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; color: white; cursor: pointer; }
.btn-decline i, .btn-accept i { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; transition: transform 0.2s; }
.btn-decline i { background: var(--red); }
.btn-accept i { background: var(--green); animation: bounce 2s infinite; }
.btn-accept span { font-weight: bold; }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Screen 2 */
.system-check-box { background: rgba(30,30,30,0.9); padding: 30px; border-radius: 20px; width: 100%; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.check-list { margin-top: 20px; text-align: left; }
.check-item { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); color: #aaa; }
.check-item.done { color: var(--green); }

/* Screen 3 - New Button Style Alert */
.alert-badge {
    background: var(--alert-bg); color: white;
    padding: 12px 20px; border-radius: 50px;
    font-weight: 800; font-size: 1rem; letter-spacing: 1px;
    margin-bottom: 20px; box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
    display: inline-block; animation: pulseRed 2s infinite;
}
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

.desc { color: #ccc; margin-bottom: 20px; line-height: 1.5; font-size: 0.95rem; }

/* Promise Box (Meetup) */
.promise-box {
    background: rgba(255, 255, 255, 0.1); border-left: 4px solid #ff0055;
    padding: 15px; border-radius: 8px; text-align: left; margin-bottom: 25px;
    display: flex; gap: 10px; align-items: flex-start;
}
.text-pink { color: #ff0055; margin-top: 3px; }
.promise-box span { font-size: 0.9rem; color: #fff; line-height: 1.4; }

.verification-steps { margin-bottom: 25px; text-align: left; width: 100%; }
.step-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.step-row.highlight { background: rgba(46, 204, 113, 0.15); border: 1px solid var(--green); }
.step-num { background: #fff; color: #000; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-weight: bold; font-size: 0.8rem; }

.btn-verify {
    background: var(--primary-gradient); color: white; text-decoration: none;
    padding: 18px; width: 100%; border-radius: 50px; font-weight: bold; font-size: 1.2rem;
    display: block; box-shadow: 0 5px 25px rgba(255, 0, 85, 0.4); text-transform: uppercase;
}
.secure-footer { font-size: 0.75rem; color: #666; margin-top: 15px; }
.pulsate { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Popup */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 100; }
.popup-box { background: #222; padding: 25px; border-radius: 15px; text-align: center; width: 80%; max-width: 300px; }
.pop-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn-back { background: var(--green); color: white; border: none; padding: 10px; flex: 1; border-radius: 8px; cursor: pointer; }
.btn-leave { background: transparent; color: #aaa; border: 1px solid #444; padding: 10px; flex: 1; border-radius: 8px; cursor: pointer; }