:root {
    --primary: #00f2ff;
    --bg: #050b10;
    --card: rgba(0, 242, 255, 0.03);
    --border: rgba(0, 242, 255, 0.15);
    --text: #e0faff;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    background: radial-gradient(circle at center, #0a1926 0%, #050b10 100%);
    overflow-x: hidden;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header { text-align: center; margin-bottom: 2rem; }
h1 { font-size: 2.2rem; margin: 0; color: var(--primary); text-shadow: 0 0 15px rgba(0, 242, 255, 0.4); }
header p { opacity: 0.6; font-size: 0.9rem; margin-top: 0.5rem; }

/* Radar UI */
#radarContainer {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}
.radar {
    width: 150px;
    height: 150px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    background: repeating-radial-gradient(circle, transparent, transparent 20px, rgba(0, 242, 255, 0.05) 21px);
}
.radar .sweep {
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, var(--primary), transparent);
    position: absolute;
    top: 0; left: 50%;
    transform-origin: bottom left;
    animation: sweep 4s linear infinite;
    opacity: 0.3;
}
@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}
.search-box input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    outline: none;
}
#scanBtn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.lead-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.lead-info h4 { margin: 0; font-size: 1rem; }
.lead-info p { margin: 4px 0 0; font-size: 0.8rem; opacity: 0.5; }

.lead-meta { text-align: right; }
.score { color: var(--primary); font-weight: bold; font-size: 1.1rem; }
.btn-snipe {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-top: 8px;
    cursor: pointer;
}
.btn-snipe:hover { background: var(--primary); color: #000; }

.hidden { display: none !important; }

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #0a1926;
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--primary);
}
.modal-content textarea {
    width: 100%;
    height: 150px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: white;
    padding: 10px;
    margin: 1rem 0;
    border-radius: 12px;
    font-size: 0.8rem;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions button {
    padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
}
.modal-actions button.primary { background: var(--primary); color: #000; font-weight: bold; }

.app-switcher {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 3rem;
}
.app-switcher a { text-decoration: none; color: white; font-size: 0.8rem; opacity: 0.4; }
.app-switcher a.active { opacity: 1; color: var(--primary); font-weight: bold; }
footer p { text-align: center; font-size: 0.7rem; opacity: 0.3; margin-top: 2rem; }
