@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #16a34a;
  --primary-light: #22c55e;
  --primary-dark: #15803d;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #888;
  --border: #eee;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 40%, #f0fdf4 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

/* ── Ambient background glow ── */
body::before {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.08), transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(134,239,172,0.08), transparent 70%);
  bottom: -150px; left: -150px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Auth page ── */
.auth-page {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: white;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.logo { text-align: center; margin-bottom: 28px; }
.logo-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.logo h1 { font-size: 32px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.logo p { color: var(--muted); margin-top: 4px; }

.tabs { display: flex; gap: 4px; background: #f5f5f5; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--muted); transition: all 0.2s;
}
.tab.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* ── Forms ── */
.auth-form, form { width: 100%; }
.hidden { display: none !important; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, select, textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--text);
  transition: border-color 0.2s; outline: none; background: white;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; }

.char-count { font-size: 12px; color: var(--muted); float: right; margin-top: 4px; }

.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s, transform 0.1s; margin-top: 8px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.error-msg { color: #e74c3c; font-size: 13px; padding: 10px 12px; background: #ffeaea; border-radius: 8px; margin-top: 8px; }
.success-msg { color: #27ae60; font-size: 13px; padding: 10px 12px; background: #eafaf1; border-radius: 8px; margin-top: 8px; }

/* ── Navbar ── */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,0.5);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.logo-small {
  font-size: 20px; font-weight: 800; color: var(--primary);
  text-decoration: none; letter-spacing: -0.5px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #f0fdf4; }

.btn-logout {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: white; color: var(--muted); font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--primary); color: var(--primary); }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px; border-radius: 20px;
  background: #f0fdf4; border: 1px solid #86efac;
}
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: #86efac; flex-shrink: 0;
}
.nav-user-avatar-placeholder {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: white; font-weight: 700; flex-shrink: 0;
}
.nav-user-name {
  font-size: 13px; font-weight: 700; color: var(--primary);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Page container ── */
.page-container { max-width: 1100px; margin: 0 auto; padding: 40px 28px 60px; position: relative; z-index: 1; }

/* ── Profile edit ── */
.profile-edit-card {
  max-width: 560px; margin: 0 auto;
  background: white; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow);
}
.profile-edit-card h2 { font-size: 24px; font-weight: 800; }
.subtitle { color: var(--muted); margin-top: 4px; margin-bottom: 28px; font-size: 14px; }

.photo-upload-area {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 28px; cursor: pointer; position: relative;
  border: 3px solid var(--border);
}
.photo-upload-area img { width: 100%; height: 100%; object-fit: cover; }
.photo-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; color: white; font-size: 13px; font-weight: 600;
}
.photo-upload-area:hover .photo-overlay { opacity: 1; }

/* ── Browse ── */
.browse-header { margin-bottom: 28px; }
.browse-header h2 { font-size: 28px; font-weight: 800; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.member-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px 12px;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

.member-photo-wrap {
  position: relative; width: 88px; height: 88px;
  flex-shrink: 0; margin-bottom: 12px;
}
.member-photo {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  background: #f0f0f0;
  border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-info { text-align: center; flex: 1; width: 100%; }
.member-info h3 { font-size: 16px; font-weight: 700; }
.member-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.member-bio { color: #555; font-size: 13px; margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn-chat {
  margin: 12px 16px 16px; padding: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.btn-chat:hover { opacity: 0.9; }

.empty-state {
  grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--muted);
}
.empty-state span { font-size: 48px; display: block; margin-bottom: 16px; }
.loading { color: var(--muted); padding: 40px; text-align: center; }

/* ── Chat layout ── */
.chat-layout {
  display: flex;
  height: calc(100vh - 60px);
}

.chat-sidebar {
  width: 300px; min-width: 300px;
  border-right: 1px solid var(--border);
  background: white; display: flex; flex-direction: column;
}

.sidebar-header {
  padding: 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header h3 { font-size: 18px; font-weight: 800; }
.new-chat-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; text-decoration: none; line-height: 1;
}

.conversation-list { flex: 1; overflow-y: auto; }
.convo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.convo-item:hover { background: #fafafa; }
.convo-item.active { background: #fff0f2; }
.convo-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.convo-info { flex: 1; min-width: 0; }
.convo-info strong { display: block; font-size: 14px; font-weight: 600; }
.convo-info span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-convos { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; }
.no-convos a { color: var(--primary); }

/* ── Chat main ── */
.chat-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.chat-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--muted);
}
.chat-placeholder span { font-size: 56px; margin-bottom: 16px; }
.chat-placeholder p { text-align: center; line-height: 1.8; }
.chat-placeholder a { color: var(--primary); }

.chat-window { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.chat-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: white; display: flex; align-items: center; gap: 12px;
}
.chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header h3 { font-size: 16px; font-weight: 700; }

.messages-area {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  background: #f8f8f8;
}

.message { display: flex; flex-direction: row; max-width: 70%; align-items: flex-end; gap: 0; }
.message .bubble-wrap { display: flex; flex-direction: column; }
.message.mine  { align-self: flex-end;   flex-direction: row-reverse; }
.message.theirs { align-self: flex-start; flex-direction: row; }
.message.mine  .bubble-wrap { align-items: flex-end; }
.message.theirs .bubble-wrap { align-items: flex-start; }
.message.theirs { align-self: flex-start; align-items: flex-start; }

.bubble {
  padding: 10px 14px; border-radius: 18px;
  font-size: 15px; line-height: 1.5; word-break: break-word;
}
.mine .bubble {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white; border-bottom-right-radius: 4px;
}
.theirs .bubble {
  background: white; color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.msg-time { font-size: 11px; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.no-msgs { text-align: center; color: var(--muted); font-size: 14px; margin: auto; }

.message-input-area {
  display: flex; gap: 10px; padding: 16px 20px;
  border-top: 1px solid var(--border); background: white;
}
.message-input-area input {
  flex: 1; border-radius: 24px; padding: 10px 18px;
  font-size: 15px; border: 2px solid var(--border);
}
.message-input-area input:focus { border-color: var(--primary); }

.btn-send {
  padding: 10px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white; border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-send:hover { opacity: 0.9; }

/* ── File preview bar ── */
.file-preview-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: #f0fdf4; border-top: 1px solid #86efac;
}
.file-preview-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.file-preview-icon { font-size: 28px; }
.file-preview-label { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.file-preview-cancel { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.file-preview-cancel:hover { background: #fee2e2; color: var(--danger, #ef4444); }

/* ── Chat image & file ── */
.chat-image { max-width: 220px; max-height: 220px; border-radius: 12px; display: block; cursor: zoom-in; object-fit: cover; }
.chat-file {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.25); border-radius: 10px; padding: 8px 12px;
}
.mine .chat-file { background: rgba(255,255,255,0.2); }
.theirs .chat-file { background: #f3f4f6; }
.chat-file-icon { font-size: 22px; flex-shrink: 0; }
.chat-file-name { font-size: 13px; font-weight: 600; word-break: break-all; text-decoration: underline; }

.btn-emoji, .btn-attach {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border);
  background: white; font-size: 20px; cursor: pointer; flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-emoji:hover, .btn-emoji.open,
.btn-attach:hover { border-color: var(--primary); background: #f0fdf4; }
.btn-attach:disabled { opacity: 0.5; cursor: not-allowed; }

.emoji-picker {
  display: none; position: absolute; bottom: 72px; left: 16px;
  width: 320px; background: white; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  overflow: hidden; z-index: 200;
}
.emoji-picker.open { display: block; }

.emoji-tabs {
  display: flex; padding: 8px 8px 0; gap: 2px;
  border-bottom: 1px solid var(--border); background: #f9fafb;
}
.emoji-tab {
  flex: 1; padding: 6px 4px; border: none; background: none; cursor: pointer;
  font-size: 18px; border-radius: 8px 8px 0 0; transition: background 0.15s;
}
.emoji-tab:hover { background: #f0f0f0; }
.emoji-tab.active { background: white; box-shadow: 0 -1px 0 var(--primary) inset; }

.emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 2px; padding: 8px; max-height: 200px; overflow-y: auto;
}
.emoji-grid button {
  font-size: 22px; padding: 4px; border: none; background: none; cursor: pointer;
  border-radius: 6px; transition: background 0.1s; line-height: 1;
}
.emoji-grid button:hover { background: #f3f4f6; }

/* ── Forgot password / Change password ── */
.forgot-link { text-align: right; margin-top: -8px; margin-bottom: 12px; }
.forgot-link a { font-size: 13px; color: var(--primary); text-decoration: none; }
.forgot-link a:hover { text-decoration: underline; }

.btn-back {
  background: none; border: none; color: var(--muted); font-size: 13px;
  cursor: pointer; padding: 0; margin-bottom: 16px; display: flex; align-items: center; gap: 4px;
}
.btn-back:hover { color: var(--primary); }

.section-divider {
  border: none; border-top: 1px solid var(--border); margin: 28px 0;
}

.change-password-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }

.btn-secondary {
  width: 100%; padding: 13px;
  background: white; color: var(--primary);
  border: 2px solid var(--primary); border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, color 0.2s; margin-top: 4px;
}
.btn-secondary:hover { background: var(--primary); color: white; }

/* ── Online status (browse cards + chat) ── */
.status-dot {
  position: absolute; bottom: 3px; right: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid white; z-index: 2;
}
.status-dot.online  { background: #22c55e; }
.status-dot.offline { background: #9ca3af; }

.member-status {
  font-size: 11px; font-weight: 600; margin-top: 3px; margin-bottom: 2px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.member-status::before { content: '●'; font-size: 8px; }
.member-status.is-online  { color: #16a34a; }
.member-status.is-offline { color: #9ca3af; }

/* chat header status */
.chat-partner-status { font-size: 12px; font-weight: 600; margin-top: 1px; }
.chat-partner-status.is-online  { color: #16a34a; }
.chat-partner-status.is-offline { color: #9ca3af; }

/* convo sidebar dot wrapper */
.convo-avatar-wrap { position: relative; flex-shrink: 0; width: 44px; height: 44px; }
.convo-avatar-wrap img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.convo-avatar-wrap .status-dot { bottom: 0; right: 0; width: 12px; height: 12px; border-width: 2px; }

/* ── Message edit / delete ── */
.message.mine  { flex-direction: row-reverse; }
.message.theirs { flex-direction: row; }

.msg-actions {
  display: none; align-items: center; gap: 2px;
  align-self: center; margin: 0 4px;
}
.message.mine:hover  .msg-actions,
.message.theirs:hover .msg-actions { display: flex; }

.msg-actions button {
  background: white; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; padding: 3px 6px;
  cursor: pointer; transition: background 0.15s, border-color 0.15s; line-height: 1;
}
.msg-actions button:hover { background: #f0fdf4; border-color: var(--primary); }

/* ── Inline edit box ── */
.edit-box { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.edit-input {
  width: 100%; padding: 6px 10px; border: 2px solid var(--primary);
  border-radius: 8px; font-size: 14px; font-family: inherit; outline: none;
  background: white; color: var(--text);
}
.edit-btns { display: flex; gap: 6px; justify-content: flex-end; }
.edit-confirm, .edit-cancel {
  border: none; border-radius: 6px; padding: 4px 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.edit-confirm { background: var(--primary); color: white; }
.edit-cancel  { background: #f3f4f6; color: var(--muted); }

.edited-tag { font-size: 10px; color: var(--muted); margin-left: 4px; font-style: italic; }

/* ── Unread message badge ── */
.unread-badge {
  min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--primary); color: white;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0; margin-left: auto;
  box-shadow: 0 2px 6px rgba(232,68,90,0.4);
  animation: pop-in 0.2s ease;
}
@keyframes pop-in {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);   opacity: 1; }
}
.convo-unread-preview { font-weight: 700; color: var(--text); }

/* nav badge (Messages link) */
.nav-msg-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── Responsive ── */
/* ── Page footer ── */
.page-footer {
  text-align: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.page-footer a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.page-footer a:hover { color: var(--primary); text-decoration: underline; }

/* ── Contact modal ── */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-content {
  background: white; border-radius: 16px; padding: 28px;
  width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--muted); padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: #f3f4f6; color: var(--text); }

@media (max-width: 640px) {
  .navbar { padding: 0 16px; height: 56px; }
  .logo-small { font-size: 17px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
  .nav-links a[href="browse.html"] { display: none; }
  .nav-links a[href="profile.html"] { display: none; }
  .nav-user { padding: 3px 8px 3px 5px; gap: 4px; cursor: pointer; }
  .nav-user-name { font-size: 12px; cursor: pointer; }
  .nav-user:hover { background: #f0fdf4; border-radius: 20px; }
  .btn-logout { padding: 5px 10px; font-size: 12px; }

  .page-container { padding: 24px 16px 40px; }

  .chat-sidebar { width: 70px; min-width: 70px; }
  .sidebar-header h3, .convo-info { display: none; }
  .sidebar-header { padding: 16px 10px; }
  .new-chat-btn { width: 28px; height: 28px; font-size: 14px; }
  .convo-item { justify-content: center; padding: 10px 6px; gap: 0; }
  .convo-item img { width: 36px; height: 36px; }
  .message-input-area { padding: 8px 10px; gap: 6px; }
  .input-wrapper input { height: 42px; font-size: 13px; padding: 10px 12px; }
  .btn-send { min-width: 70px; height: 42px; font-size: 13px; padding: 0 16px; }
  .btn-emoji, .btn-attach { width: 34px; height: 34px; font-size: 15px; }

  .members-grid { grid-template-columns: 1fr; gap: 14px; }
  .browse-header h2 { font-size: 22px; }
  .member-card { border-radius: 16px; }
  .member-photo-wrap { margin: 18px auto 6px; }
  .member-photo { width: 80px; height: 80px; }
  .member-info h3 { font-size: 16px; }

  .profile-edit-card { padding: 24px 16px; border-radius: 16px; }
  .form-row { grid-template-columns: 1fr; }
  input, select, textarea { padding: 11px 14px; font-size: 14px; }
  .btn-primary { padding: 13px 16px; font-size: 15px; }

  .message { max-width: 85%; }
  .chat-header { padding: 10px 14px; }
  .messages-area { padding: 16px 14px; }
  .mine .bubble, .theirs .bubble { padding: 10px 14px; font-size: 13px; }
}
