  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box
  }

  body {
      font-family: 'Inter', sans-serif;
      overflow-x: hidden
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
      font-family: 'Plus Jakarta Sans', sans-serif
  }

  html,
  body {
      max-width: 100vw;
      overflow-x: hidden
  }

  ::-webkit-scrollbar {
      width: 6px;
      height: 6px
  }

  ::-webkit-scrollbar-track {
      background: transparent
  }

  ::-webkit-scrollbar-thumb {
      background: #94a3b8;
      border-radius: 3px
  }

  .dark ::-webkit-scrollbar-thumb {
      background: #475569
  }

  .glass {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2)
  }

  .dark .glass {
      background: rgba(17, 24, 39, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.05)
  }

  .glass-card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(226, 232, 240, 0.8);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05)
  }

  .dark .glass-card {
      background: rgba(30, 41, 59, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.05)
  }

  .sidebar {
      transition: all .3s cubic-bezier(.4, 0, .2, 1)
  }

  .sidebar-overlay {
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px)
  }

  @keyframes shimmer {
      0% {
          background-position: -200% 0
      }

      100% {
          background-position: 200% 0
      }
  }

  @keyframes fadeIn {
      from {
          opacity: 0
      }

      to {
          opacity: 1
      }
  }

  @keyframes scaleIn {
      from {
          opacity: 0;
          transform: scale(.95)
      }

      to {
          opacity: 1;
          transform: scale(1)
      }
  }

  @keyframes slideInBottom {
      from {
          opacity: 0;
          transform: translateY(20px)
      }

      to {
          opacity: 1;
          transform: translateY(0)
      }
  }

  @keyframes typing {

      0%,
      60%,
      100% {
          transform: translateY(0);
          opacity: .4
      }

      30% {
          transform: translateY(-8px);
          opacity: 1
      }
  }

  .skeleton {
      background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite
  }

  .dark .skeleton {
      background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
      background-size: 200% 100%
  }

  .animate-fadeIn {
      animation: fadeIn .3s ease
  }

  .animate-scaleIn {
      animation: scaleIn .3s ease
  }

  .animate-slideInBottom {
      animation: slideInBottom .3s ease
  }

  .hover-lift {
      transition: all .3s cubic-bezier(.4, 0, .2, 1)
  }

  .hover-lift:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1)
  }

  .gradient-text {
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text
  }

  .nav-item.active {
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      color: white
  }

  .icon-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border-radius: 12px;
      cursor: pointer;
      position: relative;
      z-index: 1;
      transition: all .2s;
      border: none;
      outline: none;
      -webkit-tap-highlight-color: transparent
  }

  .icon-btn:active {
      transform: scale(.92)
  }

  .icon-btn svg {
      pointer-events: none
  }

  .icon-btn .badge-dot {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 9px;
      height: 9px;
      background: #EF4444;
      border-radius: 50%;
      border: 2px solid white
  }

  .dark .icon-btn .badge-dot {
      border-color: #111827
  }

  .slide-panel {
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      height: 100dvh;
      z-index: 60;
      transform: translateX(100%);
      transition: transform .35s cubic-bezier(.4, 0, .2, 1);
      will-change: transform
  }

  .slide-panel.open {
      transform: translateX(0)
  }

  .panel-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(4px);
      z-index: 55;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s
  }

  .panel-overlay.active {
      opacity: 1;
      pointer-events: auto
  }

  @media(max-width:1023px) {
      .sidebar {
          transform: translateX(-100%);
          position: fixed;
          z-index: 50
      }

      .sidebar.open {
          transform: translateX(0)
      }
  }

  .dropdown-menu {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      z-index: 50;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px) scale(.97);
      transition: all .2s cubic-bezier(.4, 0, .2, 1)
  }

  .dropdown-menu.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1)
  }

  /* Chat specific styles */
  .chat-container {
      height: calc(100vh - 64px);
      height: calc(100dvh - 64px)
  }

  .chat-list-item {
      transition: all .2s;
      cursor: pointer;
      border-left: 3px solid transparent
  }

  .chat-list-item:hover {
      background: rgba(79, 70, 229, 0.05)
  }

  .dark .chat-list-item:hover {
      background: rgba(79, 70, 229, 0.1)
  }

  .chat-list-item.active {
      background: rgba(79, 70, 229, 0.08);
      border-left-color: #4F46E5
  }

  .dark .chat-list-item.active {
      background: rgba(79, 70, 229, 0.15)
  }

  .message-bubble {
      max-width: 70%;
      padding: 10px 14px;
      border-radius: 16px;
      word-wrap: break-word;
      position: relative
  }

  .message-sent {
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      color: white;
      border-bottom-right-radius: 4px;
      margin-left: auto
  }

  .message-received {
      background: #F1F5F9;
      color: #0F172A;
      border-bottom-left-radius: 4px
  }

  .dark .message-received {
      background: #1E293B;
      color: #F1F5F9
  }

  .message-time {
      font-size: 10px;
      opacity: 0.7;
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 4px
  }

  .typing-dots {
      display: flex;
      gap: 3px;
      padding: 12px 16px
  }

  .typing-dots span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #94a3b8;
      animation: typing 1.4s infinite
  }

  .typing-dots span:nth-child(2) {
      animation-delay: 0.2s
  }

  .typing-dots span:nth-child(3) {
      animation-delay: 0.4s
  }

  .chat-input-area {
      background: white;
      border-top: 1px solid #E2E8F0
  }

  .dark .chat-input-area {
      background: #111827;
      border-color: #334155
  }

  .emoji-btn {
      transition: all .2s;
      padding: 8px;
      border-radius: 8px
  }

  .emoji-btn:hover {
      background: rgba(79, 70, 229, 0.1);
      transform: scale(1.1)
  }

  .attachment-preview {
      background: rgba(79, 70, 229, 0.05);
      border: 1px dashed #4F46E5;
      border-radius: 12px
  }

  .chat-image {
      border-radius: 12px;
      max-width: 250px;
      cursor: pointer;
      transition: all .3s
  }

  .chat-image:hover {
      transform: scale(1.02)
  }

  .voice-message {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px
  }

  .voice-wave {
      flex: 1;
      height: 20px;
      display: flex;
      align-items: center;
      gap: 2px
  }

  .voice-wave span {
      width: 3px;
      background: currentColor;
      border-radius: 2px;
      opacity: 0.8
  }

  .reaction-btn {
      background: white;
      border: 1px solid #E2E8F0;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 11px;
      cursor: pointer;
      transition: all .2s
  }

  .dark .reaction-btn {
      background: #1E293B;
      border-color: #334155
  }

  .reaction-btn:hover {
      transform: scale(1.1);
      background: rgba(79, 70, 229, 0.1)
  }

  .status-online {
      background: #10B981
  }

  .status-away {
      background: #F59E0B
  }

  .status-offline {
      background: #94a3b8
  }

  .date-separator {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0
  }

  .date-separator::before,
  .date-separator::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #E2E8F0
  }

  .dark .date-separator::before,
  .dark .date-separator::after {
      background: #334155
  }

  .date-separator span {
      font-size: 11px;
      color: #94a3b8;
      font-weight: 600;
      padding: 4px 12px;
      background: rgba(148, 163, 184, 0.1);
      border-radius: 12px
  }

  /* Mobile chat toggle */
  @media(max-width:767px) {
      .chat-list-panel {
          position: fixed;
          top: 64px;
          left: 0;
          right: 0;
          bottom: 0;
          z-index: 20;
          background: white;
          transform: translateX(0);
          transition: transform .3s
      }

      .dark .chat-list-panel {
          background: #0F172A
      }

      .chat-list-panel.hidden-mobile {
          transform: translateX(-100%)
      }

      .chat-main-panel {
          position: fixed;
          top: 64px;
          left: 0;
          right: 0;
          bottom: 0;
          z-index: 30;
          background: white;
          transform: translateX(100%);
          transition: transform .3s
      }

      .dark .chat-main-panel {
          background: #0F172A
      }

      .chat-main-panel.show-mobile {
          transform: translateX(0)
      }
  }

  .custom-checkbox {
      accent-color: #4F46E5;
      width: 16px;
      height: 16px;
      cursor: pointer;
      border-radius: 4px
  }