:root {
    --bg-dark: #0a0a0a;
    --terminal-green: #0f0;
    --primary: #ff007a;
    --secondary: #7a00ff;
    --text-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Terminal Styles --- */
#terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    padding: 50px;
    font-family: 'Fira Code', monospace;
    color: var(--terminal-green);
    text-shadow: 0 0 5px var(--terminal-green);
}

.terminal-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

.cursor {
    display: inline-block;
    width: 10px;
    background-color: var(--terminal-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 255, 0, 0.1);
    opacity: 0.4;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* --- Incoming Call Styles --- */
#incoming-call-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 18;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.call-interface {
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.caller-avatar {
    width: 120px;
    height: 120px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pulsing-border {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

.caller-name {
    font-size: 2rem;
    margin-bottom: 5px;
}

.call-type {
    color: #ccc;
    margin-bottom: 50px;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.call-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.call-btn.answer {
    background: #4cd964;
    box-shadow: 0 0 15px #4cd964;
    animation: shake 1s infinite;
}

.call-btn.reject {
    background: #ff3b30;
    box-shadow: 0 0 15px #ff3b30;
    position: relative;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

/* --- Toast Notification Styles --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30;
}

.toast {
    background: rgba(20, 20, 20, 0.9);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Stats Panel --- */
.stats-panel {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Fira Code', monospace;
}

/* --- Celebration Styles --- */
#celebration-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('bg.png') center center / cover no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    position: relative;
    z-index: 10;
}

#confetti-canvas {
    display: none;
}

#celebration-container.visible {
    opacity: 1;
}

.hidden {
    display: none !important;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.card {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 20;
    transform: scale(0.8);
    opacity: 0;
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card.active {
    transform: scale(1);
    opacity: 1;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.badge {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.5);
}

.image-placeholder {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    border: 3px solid var(--terminal-green);
    color: var(--terminal-green);
    box-shadow: 0 0 20px var(--terminal-green);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    background: -webkit-linear-gradient(45deg, #00d4ff, #ff007a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.details {
    margin-bottom: 30px;
    color: #ccc;
}

.date {
    font-family: 'Fira Code', monospace;
    color: var(--terminal-green);
    margin-bottom: 10px;
}

.message {
    font-size: 1rem;
    line-height: 1.5;
}

.glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000;
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@media (max-width: 600px) {
    .terminal-content { padding: 0 20px; font-size: 1rem; }
    h1 { font-size: 2rem; }
}
