/* AegisChat - Modern Glassmorphism & Responsive Theme with Supabase & Burner IDs */
:root {
  --bg-dark: #070a13;
  --panel-bg: rgba(15, 23, 42, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --input-bg: rgba(10, 15, 28, 0.65);
  --msg-own: linear-gradient(135deg, #6366f1, #4f46e5);
  --msg-other: rgba(30, 41, 59, 0.85);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Lighting */
.app-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -120px;
  left: -120px;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  bottom: -120px;
  right: -120px;
}

.glow-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-pink);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0.45; }
}

.hidden { display: none !important; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--accent-cyan);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s ease 2.7s forwards;
  max-width: 340px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* LANDING PAGE STYLES */
.landing-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Landing Header / Navbar */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 32px 0;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-btn {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 12px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px 40px 20px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  width: auto;
}

/* Features Section & Grid */
.features-section {
  padding: 40px 0 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.icon-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.icon-pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Landing Footer */
.landing-footer {
  padding: 32px 0 16px 0;
  border-top: 1px solid var(--panel-border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-github-btn {
  padding: 8px 16px;
  font-size: 12px;
}

/* SETUP / MODAL CARD STYLES */
.setup-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  text-align: center;
}

.tagline {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

input, select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 10px auto;
  padding-right: 32px;
}

option {
  background: #0f172a;
  color: var(--text-main);
}

textarea {
  resize: none;
  height: 60px;
  font-family: var(--font-mono);
  font-size: 11px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.danger-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.danger-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.status-msg {
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent-cyan);
}

/* APP CONTAINER & MAIN CHAT INTERFACE */
.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  height: 90vh;
  max-height: 820px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-chat-card {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

/* Mobile Bar */
.mobile-bar {
  display: none;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(10, 15, 28, 0.85);
}

.mobile-brand {
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

/* Sidebar */
.sidebar {
  width: 320px;
  background: rgba(10, 15, 28, 0.45);
  border-right: 1px solid var(--panel-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
  z-index: 10;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}

.profile-info { flex: 1; overflow: hidden; }
.profile-info h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.dot.online {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.dot.offline {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
}

.profile-actions {
  display: flex;
  gap: 4px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.add-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-group {
  display: flex;
  gap: 8px;
}

.btn-group .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
}

.contacts-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.contact-item .contact-id {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-item .contact-type-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

/* Footer / Branding in Sidebar */
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.brand-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.brand-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Chat Viewport */
.chat-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(15, 23, 42, 0.2);
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  font-size: 12px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lock-icon {
  font-size: 11px;
}

.sender-select-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sender-dropdown {
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: 8px;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid var(--panel-border);
  color: var(--accent-cyan);
  outline: none;
}

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.messages-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bubble.own {
  align-self: flex-end;
  background: var(--msg-own);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.msg-bubble.other {
  align-self: flex-start;
  background: var(--msg-other);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--panel-border);
}

.msg-sender-num {
  font-size: 10px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.msg-meta {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.message-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  gap: 12px;
}

.send-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 12px;
  flex-shrink: 0;
}

/* BURNER NUMBERS MANAGEMENT MODAL */
.burner-card {
  max-width: 520px;
}

.burner-creation-box {
  background: rgba(10, 15, 28, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.burner-creation-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.burner-select {
  flex: 1;
}

.burner-list-section {
  text-align: left;
}

.burner-list-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.burner-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.burner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}

.burner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.burner-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.burner-expiry {
  font-size: 11px;
  color: var(--text-muted);
}

.burner-actions {
  display: flex;
  gap: 6px;
}

/* PROFILE & BURNER IDs MODAL */
.profile-modal-card {
  max-width: 520px;
}

.profile-modal-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 28, 0.6);
  border: 1px solid var(--panel-border);
  padding: 14px 18px;
  border-radius: 14px;
}

.mono-bold {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.burner-generator-box {
  background: rgba(10, 15, 28, 0.4);
  border: 1px solid var(--panel-border);
  padding: 16px;
  border-radius: 14px;
}

.burner-generator-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
}

.burner-list-section h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.burner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.empty-burner {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.burner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--panel-border);
  padding: 10px 14px;
  border-radius: 12px;
}

.burner-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.burner-num {
  font-size: 14px;
}

.burner-expiry {
  font-size: 11px;
  color: var(--text-muted);
}

.burner-item-actions {
  display: flex;
  gap: 6px;
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-container {
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.qr-container img, .qr-container canvas {
  display: block;
  max-width: 200px;
  max-height: 200px;
}

.camera-reader-viewport {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.modal-subtext {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Responsive UI Adjustments */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .landing-container {
    padding: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .app-container {
    height: 100vh;
    max-height: 100vh;
    padding: 0;
  }

  .glass-card {
    border-radius: 0;
    border: none;
  }

  .main-chat-card {
    flex-direction: column;
  }

  .mobile-bar {
    display: flex;
  }

  .mobile-only { display: inline-flex; }
  .desktop-only { display: none; }

  .sidebar {
    width: 100%;
    height: calc(100vh - 56px);
    position: absolute;
    top: 56px;
    left: 0;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(25px);
    z-index: 50;
  }

  .sidebar.mobile-hidden {
    display: none;
  }

  .chat-viewport {
    height: calc(100vh - 56px);
  }

  .msg-bubble {
    max-width: 85%;
  }
}
