* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #0e1621; color: #fff; font-family: sans-serif; height: 100vh; overflow: hidden; }
.screen { display: flex; height: 100vh; width: 100vw; }

/* Auth */
#auth-screen { align-items: center; justify-content: center; background: #070d14; }
.auth-card { background: #17212b; padding: 30px; border-radius: 15px; width: 90%; max-width: 340px; text-align: center; }
input { width: 100%; padding: 12px; margin: 8px 0; background: #242f3d; border: 1px solid #1c2733; border-radius: 10px; color: #fff; font-size: 16px; }
button { width: 100%; padding: 12px; margin: 5px 0; border: none; border-radius: 10px; cursor: pointer; font-weight: bold; }
.b-main { background: #2481cc; color: #fff; }
.b-sub { background: none; color: #6ab3f3; }
.b-google { background: #fff; color: #000; }

/* App Layout */
.side { width: 80px; background: #17212b; border-right: 1px solid #000; display: flex; flex-direction: column; transition: 0.3s; }
@media (min-width: 600px) { .side { width: 260px; } }
.main-chat { flex: 1; display: flex; flex-direction: column; }

/* Messages */
#msgs { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 8px; background: #0e1621; }
.msg { max-width: 85%; padding: 10px; border-radius: 12px; font-size: 15px; line-height: 1.4; word-wrap: break-word; }
.my { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 2px; }
.other { align-self: flex-start; background: #182533; border-bottom-left-radius: 2px; }

/* Input */
.input-wrap { padding: 10px; background: #17212b; display: flex; gap: 8px; align-items: center; }
textarea { flex: 1; background: none; border: none; color: #fff; resize: none; font-size: 16px; max-height: 100px; }
#v-btn { width: 40px; background: none; color: #2481cc; font-size: 22px; }
#s-btn { width: 40px; background: none; color: #6ab3f3; font-size: 22px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.m-content { background: #17212b; padding: 25px; border-radius: 20px; width: 280px; text-align: center; }
