body { margin: 0; background: #000; font-family: -apple-system, sans-serif; overflow: hidden; }
.iphone-wrapper { display: flex; flex-direction: column; height: 100vh; max-width: 500px; margin: 0 auto; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(15px); color: white; border-inline: 1px solid rgba(255, 255, 255, 0.1); }
.chat-header { display: flex; align-items: center; padding: 45px 15px 10px; background: rgba(20, 20, 20, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.1); gap: 15px; }
.back-btn { color: #9146ff; text-decoration: none; }
.avatar { width: 36px; height: 36px; background: linear-gradient(135deg, #9146ff, #6441a5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.status-text .name { display: block; font-size: 0.9rem; font-weight: 600; color: white; }
.status-text .status { font-size: 0.75rem; color: #34c759; }
.chat-thread { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.message { display: flex; width: 100%; margin-bottom: 4px; }
.incoming { justify-content: flex-start; }
.outgoing { justify-content: flex-end; }
.bubble { max-width: 75%; padding: 8px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.4; }
.incoming .bubble { background: #3a3a3c; color: white; border-radius: 18px 18px 18px 4px; }
.outgoing .bubble { background: #9146ff; color: white; border-radius: 18px 18px 4px 18px; }
.input-area { padding: 10px 15px 30px; background: #121212; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.preview-box { padding: 10px 0; }
#preview-img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; border: 2px solid #9146ff; }
.input-bar { display: flex; align-items: center; gap: 12px; }
.text-input-wrapper { flex-grow: 1; background: #1c1c1e; border-radius: 20px; padding: 6px 15px; border: 1px solid #3a3a3c; }
#msg-input { width: 100%; background: none; border: none; color: white; outline: none; font-size: 1rem; }
.send-btn { background: #9146ff; border: none; color: white; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.remove-btn { position: absolute; top: -8px; right: -8px; background: #ff3b30; color: white; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }
.img-wrap { position: relative; display: inline-block; }
