/* 🎨 ڈیزائن اور لے آؤٹ */
:where(html) { font-family: sans-serif; }
:root {
  --primary: #075e54; --primary-dark: #128c7e; --bg-dark: #ece5dd;
  --bg-panel: #ffffff; --text-light: #546e7a; --text-main: #202124;
}
body.theme-green { --primary: #075e54; --primary-dark: #128c7e; }
body.theme-purple { --primary: #6200ee; --primary-dark: #3700b3; }
body.theme-orange { --primary: #e65100; --primary-dark: #b53d00; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
html, body { height: 100%; }
body { background: var(--bg-dark); color: var(--text-main); transition: all 0.3s ease; }
.container { max-width: 450px; margin: 0 auto; padding: 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.logo { text-align: center; font-size: 32px; margin-bottom: 8px; color: var(--primary); font-weight: bold; }
.tagline { text-align: center; margin-bottom: 40px; color: var(--text-light); font-size: 14px; }
.login-box { background: var(--bg-panel); padding: 35px 30px; border-radius: 16px; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,0.1); }

.maintenance-msg { background: rgba(255, 71, 87, 0.1); border: 1px solid #ff4757; color: #d32f2f; padding: 15px; border-radius: 12px; margin-top: 20px; display: none; }
#chat-screen { display: none; height: 100dvh; flex-direction: column; }
.header { background: var(--primary); padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; color: white; }
.header-left { display: flex; align-items: center; gap: 10px; }
.profile-pic { width: 36px; height: 36px; border-radius: 50%; border: 2px solid white; }
.profile-initial { width: 36px; height: 36px; border-radius: 50%; background: white; color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: bold; }

.online-dropdown { position: fixed; top: 60px; right: 15px; background: white; border: 1px solid #ddd; border-radius: 12px; min-width: 220px; max-height: 300px; overflow-y: auto; display: none; z-index: 9999; color: #333; }
.online-dropdown.show { display: block; }
.owner-btn { background: #ff9800; color: white; border: none; padding: 6px 12px; border-radius: 20px; cursor: pointer; display: none; }
.tab-bar { display: none; background: #f5f5f5; border-bottom: 2px solid var(--primary); }
.tab-bar.show { display: block; }
.tab-buttons { display: flex; background: #e0e0e0; padding: 8px; gap: 8px; overflow-x: auto; }
.tab-btn { padding: 8px 16px; background: white; color: #555; border: 1px solid #ccc; border-radius: 25px; cursor: pointer; }
.tab-btn.active { background: var(--primary); color: white; }
.tab-content { display: none; padding: 15px; background: white; }
.tab-content.active { display: block; }
.toggle-btn { background: #f44336; color: white; border: none; padding: 12px; border-radius: 12px; width: 100%; cursor: pointer; }
.toggle-btn.on { background: #4caf50; }

.messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; }
.msg { padding: 10px 14px; margin: 4px 0; border-radius: 10px; max-width: 75%; position: relative; color: #222; font-size: 15px; }
.msg.received { background: white; align-self: flex-start; }
.msg.sent { background: #e1ffc7; align-self: flex-end; }
.msg-name { font-weight: bold; color: var(--primary-dark); font-size: 12px; }

.input-area { display: flex; padding: 10px; background: #f0f0f0; gap: 10px; }
.input-area input { flex: 1; padding: 10px; border-radius: 24px; border: 1px solid #ccc; outline: none; }
.input-area button { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 24px; cursor: pointer; }
.google-btn-official { background: #fff; border: 1px solid #ccc; padding: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.auth-divider { text-align: center; margin: 20px 0; opacity: 0.6; }
.input-field { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; margin-bottom: 10px; }
.btn-primary { flex: 1; background: var(--primary); color: white; padding: 12px; border: none; border-radius: 8px; cursor: pointer; }
.btn-outline { flex: 1; background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 12px; border-radius: 8px; cursor: pointer; }
.btn-guest { width: 100%; background: #374151; color: white; padding: 12px; border: none; border-radius: 8px; cursor: pointer; }