/* ============================================================
   BCE Sports Social Media
   Clean Dark Glass Theme — Blue / Purple
   ============================================================ */

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

:root {
  --bg: #0f172a;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --blue: #3b82f6;
  --blue-l: #60a5fa;
  --purple: #8b5cf6;
  --purple-l: #a855f7;
  --grad: linear-gradient(90deg, #60a5fa, #a855f7);
  --grad-btn: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* ========== LANDING PAGE ========== */
.landing-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, #2563eb55, transparent 40%),
    radial-gradient(circle at bottom right, #7c3aed55, transparent 40%),
    #0f172a;
  z-index: 0;
  pointer-events: none;
}

.blur {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  animation: float 12s ease-in-out infinite alternate;
}

.blur-1 {
  background: #2563eb;
  top: -120px;
  left: -120px;
}

.blur-2 {
  background: #9333ea;
  bottom: -150px;
  right: -150px;
  animation-delay: 3s;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(50px); }
}

/* NAV */
.landing-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-btn);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.brand-name .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* HERO */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 3rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-left {
  flex: 1;
  max-width: 560px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* HERO RIGHT */
.hero-right {
  position: relative;
  width: 420px;
  height: 400px;
  flex-shrink: 0;
}

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  color: #fff;
}

.glass-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  background: var(--grad-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.avatar-dot {
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 50%;
  flex-shrink: 0;
}

.big-num {
  font-size: 1.5rem;
  font-weight: 700;
}

.time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-1 { top: 20px; left: 10px; width: 230px; }
.card-2 { top: 150px; right: 0; width: 200px; }
.card-3 { bottom: 40px; left: 50px; width: 250px; }

/* FEATURES */
.features {
  position: relative;
  z-index: 10;
  padding: 4.5rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.features-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.feature {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.85rem 1.5rem;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* FOOTER */
.landing-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-tag {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .landing-nav { padding: 1rem 1.5rem; }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem 3.5rem;
  }
  .hero-left { max-width: 100%; }
  .hero h1 { font-size: 2.5rem; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-right {
    width: 100%;
    max-width: 360px;
    height: 320px;
  }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .brand-name { font-size: 1.15rem; }
  .nav-actions .btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   APP LAYOUT (logged-in)
   ============================================================ */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

.sidebar-header { padding: 0 1.25rem 1.5rem; }

.sidebar .logo,
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .logo-icon,
.sidebar .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-btn);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.sidebar .logo-text-stack,
.sidebar .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar .logo-line-main,
.sidebar .brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.sidebar .logo-line-main span,
.sidebar .brand-name .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar .logo-line-sub,
.sidebar .brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0.75rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 4px;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.nav-item .badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.75rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.content-area { padding: 1.75rem; flex: 1; }

.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.75rem; color: #fff; margin-bottom: 0.25rem; }
.text-muted { color: var(--text-muted); }

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label, .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.avatar, .avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-sm { width: 36px; height: 36px; }

.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-sm { font-size: 0.85rem; }
.verified { color: var(--blue-l); font-weight: 700; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  padding: 0.4rem;
}

.notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  width: 260px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}

.notif-dropdown.show { display: block; }

.notif-header {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--blue-l);
  font-weight: 500;
}

.challenge-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.challenge-box h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.register-step.hidden { display: none; }

.step-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.step-dot.active { background: var(--blue-l); }
.step-dot.done { background: var(--purple); }

/* Messages */
.messages-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  height: calc(100vh - 180px);
  min-height: 480px;
}

.conv-list {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

.conv-items { overflow-y: auto; flex: 1; }

.conv-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  transition: var(--transition);
}

.conv-item:hover, .conv-item.active {
  background: rgba(59, 130, 246, 0.1);
}

.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 0.95rem; }
.conv-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-area {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message-bubble {
  max-width: 75%;
  display: flex;
  flex-direction: column;
}

.message-bubble.outgoing { align-self: flex-end; }
.message-bubble.incoming { align-self: flex-start; }

.bubble-content {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

.outgoing .bubble-content {
  background: var(--grad-btn);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.incoming .bubble-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
}

.bubble-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.3rem;
}

.outgoing .bubble-time { text-align: right; }

.chat-input-form {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-end;
}

.chat-input-form textarea { flex: 1; }

.empty-state, .empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  height: 100%;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notif-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem !important;
  border-left: 4px solid transparent;
}

.notif-item.unread {
  border-left-color: var(--blue);
  background: rgba(59, 130, 246, 0.06);
}

.system-avatar {
  width: 44px;
  height: 44px;
  background: var(--grad-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.forum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.category-card, .thread-preview {
  display: block;
  color: inherit;
  transition: var(--transition);
}

.category-card:hover, .thread-preview:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.3);
}

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.profile-photo-preview {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-photo-preview img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
  margin: 0 auto;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: block; }
  .search-box { display: none; }
  .messages-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .conv-list { max-height: 260px; }
}

@media (max-width: 600px) {
  .content-area { padding: 1rem; }
  .settings-grid { grid-template-columns: 1fr; }
}
