body {
    margin: 0;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    padding: 10px;
    background: #222;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

header span {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
}

#search {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    background: #333;
    border: none;
    color: white;
    border-radius: 4px;
}

.user-icon {
    font-size: 1.6em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.user-icon:hover {
    background: #444;
}

/* Popups */
.backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9;
}

.popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    color: #eee;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    width: 300px;
    z-index: 10;
    text-align: center;
}

.popup h2 {
    margin-top: 0;
    color: #58a6ff;
}

.popup-input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    background: #333;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 1em;
}

.popup button {
    width: 100%;
    padding: 12px;
    background: #58a6ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin: 8px 0;
}

.popup button:hover {
    background: #4a9eff;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    color: #aaa;
    font-size: 1.4em;
    width: auto;
    padding: 0 8px;
}

.switch-link {
    color: #58a6ff;
    cursor: pointer;
    text-decoration: underline;
}