
/* ==========================================================================
   NAMASTECHAT CLEAN LIGHT THEME DESIGN SYSTEM (PIXEL-PERFECT REFERENCE)
   ========================================================================== */
:root {
  --nc-primary: #00a884;
  --nc-primary-dark: #008069;
  --nc-primary-light: #d9fdd3;
  --nc-accent: #00a884;
  --nc-tick-blue: #53bdeb;
  
  --nc-rail-bg: #f0f2f5;
  --nc-sidebar-bg: #ffffff;
  --nc-chat-bg: #efeae2;
  --nc-header-bg: #f0f2f5;
  --nc-card-hover: #f5f6f6;
  --nc-card-active: #f0f2f5;
  
  --nc-sent-bubble: #d9fdd3;
  --nc-received-bubble: #ffffff;
  
  --nc-text-main: #111b21;
  --nc-text-sub: #667781;
  --nc-text-muted: #8696a0;
  --nc-border: #e9edef;
  
  --text-primary: #111b21;
  --text-secondary: #667781;
  --primary-sky: #00a884;
  --bg-sidebar: #ffffff;
  --bg-chat: #efeae2;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --nc-rail-bg: #111b21;
  --nc-sidebar-bg: #111b21;
  --nc-chat-bg: #0b141a;
  --nc-header-bg: #202c33;
  --nc-card-hover: #202c33;
  --nc-card-active: #2a3942;
  --nc-sent-bubble: #005c4b;
  --nc-received-bubble: #202c33;
  --nc-text-main: #e9edef;
  --nc-text-sub: #aebac1;
  --nc-text-muted: #8696a0;
  --nc-border: #2a3942;
  --text-primary: #e9edef;
  --text-secondary: #aebac1;
  --bg-sidebar: #111b21;
  --bg-chat: #0b141a;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--nc-rail-bg);
  color: var(--nc-text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(134, 150, 160, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 150, 160, 0.6);
}

.app-container {
  display: flex !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background-color: var(--nc-sidebar-bg);
  position: relative !important;
}

/* ==========================================================================
   1. SLIM LEFT RAIL (60px FIXED)
   ========================================================================== */
.sidebar-wrapper {
  display: flex !important;
  width: 440px !important;
  min-width: 380px !important;
  max-width: 480px !important;
  height: 100vh !important;
  background-color: var(--nc-sidebar-bg) !important;
  border-right: 1px solid var(--nc-border) !important;
  z-index: 10 !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.25s ease !important;
}

.sidebar-rail {
  width: 60px !important;
  min-width: 60px !important;
  height: 100% !important;
  background-color: #f0f2f5 !important;
  border-right: 1px solid var(--nc-border) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  z-index: 12 !important;
}

.rail-top, .rail-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.rail-brand-logo {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 6px !important;
}

.rail-logo-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.rail-nav-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
  color: #54656f !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.15s ease !important;
}

.rail-svg-icon {
  width: 22px !important;
  height: 22px !important;
  stroke: #54656f !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

.rail-nav-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

.rail-nav-btn:hover .rail-svg-icon {
  stroke: #00a884 !important;
  transform: scale(1.08) !important;
}

.rail-nav-btn.active .rail-svg-icon {
  stroke: #008069 !important;
}

.rail-nav-btn.active {
  background: rgba(0, 168, 132, 0.15) !important;
}

.rail-profile-wrap {
  position: relative !important;
  cursor: pointer !important;
}

.rail-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: #00a884 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.online-status-dot {
  position: absolute !important;
  bottom: 0px !important;
  right: 0px !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #10b981 !important;
  border: 2px solid #ffffff !important;
}

/* ==========================================================================
   2. MAIN SIDEBAR PANE (380px) & CHAT LIST
   ========================================================================== */
.sidebar-main-pane {
  flex: 1 !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

.sidebar-view-pane {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-view-pane.hidden {
  transform: translateX(-100%) !important;
  pointer-events: none !important;
  display: none !important;
}

/* Header */
.pane-header {
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 60px !important;
  background: #ffffff !important;
}

.pane-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #008069 !important;
}

.pane-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
}

.header-circle-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: #54656f !important;
  font-size: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.nc-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex: 0 0 auto !important;
}

.nc-icon circle {
  fill: none !important;
}

.header-circle-btn .nc-icon {
  width: 19px !important;
  height: 19px !important;
}

.header-circle-btn[title="More options"] .nc-icon circle {
  fill: currentColor !important;
  stroke: none !important;
}

.header-circle-btn:hover {
  background: #f0f2f5 !important;
  color: #111b21 !important;
}

.primary-circle-accent {
  background: #00a884 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.primary-circle-accent:hover {
  background: #008069 !important;
  color: #ffffff !important;
}

/* Header Dropdown Menu */
.header-dropdown-menu {
  position: absolute !important;
  top: 48px !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  width: 200px !important;
  z-index: 100 !important;
  padding: 6px 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.dropdown-item {
  padding: 10px 16px !important;
  background: none !important;
  border: none !important;
  text-align: left !important;
  font-size: 13.5px !important;
  color: #111b21 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: background 0.12s ease !important;
}

.dropdown-item .dropdown-icon {
  width: 18px !important;
  height: 18px !important;
  color: #54656f !important;
}

.dropdown-item.danger .dropdown-icon {
  color: currentColor !important;
}

.dropdown-item:hover {
  background: #f5f6f6 !important;
}

.dropdown-item.danger {
  color: #ef4444 !important;
}

.dropdown-divider {
  height: 1px !important;
  background: var(--nc-border) !important;
  margin: 4px 0 !important;
}

/* Search Box */
.search-section {
  padding: 8px 16px 10px 16px !important;
  background: #ffffff !important;
}

.search-input-box {
  background: #f0f2f5 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
  gap: 10px !important;
  transition: all 0.15s ease !important;
}

.search-input-box:focus-within {
  background: #ffffff !important;
  border-color: #00a884 !important;
  box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.2) !important;
}

.search-input-box input {
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  outline: none !important;
  font-size: 13.5px !important;
  color: #111b21 !important;
}

.clear-search-btn {
  background: none !important;
  border: none !important;
  color: #8696a0 !important;
  cursor: pointer !important;
  font-size: 13px !important;
}

/* Filter Chips */
.filter-chips-row {
  padding: 0 16px 10px 16px !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  background: #ffffff !important;
}

.filter-chip {
  border-radius: 18px !important;
  background: #f0f2f5 !important;
  border: 1px solid transparent !important;
  color: #54656f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 5px 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.filter-chip:hover {
  background: #e9edef !important;
  color: #111b21 !important;
}

.filter-chip.active {
  background: #d9fdd3 !important;
  border-color: #d9fdd3 !important;
  color: #008069 !important;
  font-weight: 700 !important;
}

/* Archived Row */
.archived-row-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--nc-border) !important;
  cursor: pointer !important;
  background: #ffffff !important;
  transition: background 0.12s ease !important;
}

.archived-row-banner:hover {
  background: #f5f6f6 !important;
}

.archived-left-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.archived-label {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary, #111b21) !important;
}

[data-theme="dark"] .archived-label,
.dark-mode .archived-label,
.dark .archived-label {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .archived-left-meta svg,
.dark-mode .archived-left-meta svg,
.dark .archived-left-meta svg {
  stroke: #94A3B8 !important;
  color: #94A3B8 !important;
}

.archived-pill-badge {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #008069 !important;
  background: #d9fdd3 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

[data-theme="dark"] .archived-pill-badge,
.dark-mode .archived-pill-badge,
.dark .archived-pill-badge {
  background: rgba(0, 168, 132, 0.22) !important;
  color: #25d366 !important;
}

/* Chat Cards List */
.chat-cards-list {
  flex: 1 !important;
  overflow-y: auto !important;
  background: #ffffff !important;
}

.user-item {
  display: flex !important;
  align-items: center !important;
  min-height: 72px !important;
  height: 74px !important;
  padding: 10px 14px !important;
  margin: 2px 0 !important;
  gap: 14px !important;
  cursor: pointer !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-radius: 12px !important;
  background-color: transparent !important;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

:root:not([data-theme="dark"]) .user-item:hover {
  background-color: #F3F8FC !important;
  border-radius: 12px !important;
  border: none !important;
  border-bottom: none !important;
}

:root:not([data-theme="dark"]) .user-item.active {
  background-color: #EAF5FC !important;
  border-radius: 12px !important;
  border: none !important;
  border-bottom: none !important;
}

.avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
}

.chat-card-middle {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.chat-card-name {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: #111b21 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.chat-card-preview {
  font-size: 13.5px !important;
  color: #667781 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.chat-card-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.chat-card-time {
  font-size: 11.5px !important;
  color: #8696a0 !important;
  font-weight: 500 !important;
}

.unread-count-pill {
  background: #25d366 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 19px !important;
  height: 19px !important;
  border-radius: 10px !important;
  padding: 0 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Drawers */
.drawer-header-bar {
  height: 60px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  border-bottom: 1px solid var(--nc-border) !important;
  background: #f0f2f5 !important;
}

.drawer-back-btn {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  color: #54656f !important;
  cursor: pointer !important;
}

.drawer-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111b21 !important;
}

/* ==========================================================================
   3. SETTINGS HERO & FLOATING THOUGHT BUBBLE (LIGHT)
   ========================================================================== */
.settings-drawer-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px 0 !important;
  background: #ffffff !important;
}

.settings-hero-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 20px 16px !important;
  cursor: pointer !important;
  border-bottom: 1px solid var(--nc-border) !important;
}

.floating-thought-bubble {
  background: #f0f2f5 !important;
  border: 1px solid #e9edef !important;
  padding: 6px 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  color: #111b21 !important;
  position: relative !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  max-width: 240px !important;
  text-align: center !important;
  font-weight: 500 !important;
}

.floating-thought-bubble::after {
  content: '' !important;
  position: absolute !important;
  bottom: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #f0f2f5 !important;
}

.settings-hero-avatar-wrap {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}

.settings-hero-avatar {
  width: 100% !important;
  height: 100% !important;
  font-size: 38px !important;
  font-weight: 700 !important;
}

.settings-hero-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111b21 !important;
}

.settings-hero-sub {
  font-size: 13px !important;
  color: #667781 !important;
  margin-top: 2px !important;
}

/* Categorized Menu List */
.settings-menu-list {
  display: flex !important;
  flex-direction: column !important;
  margin-top: 8px !important;
}

.settings-menu-row {
  display: flex !important;
  align-items: center !important;
  padding: 14px 20px !important;
  gap: 16px !important;
  cursor: pointer !important;
  border-bottom: 1px solid var(--nc-border) !important;
  transition: background 0.12s ease !important;
}

.settings-menu-row:hover {
  background: #f5f6f6 !important;
}

.settings-menu-icon {
  font-size: 20px !important;
  width: 28px !important;
  text-align: center !important;
  color: #54656f !important;
}

.settings-menu-text {
  flex: 1 !important;
}

.settings-menu-title {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #111b21 !important;
}

.settings-menu-desc {
  font-size: 12px !important;
  color: #667781 !important;
  margin-top: 2px !important;
}

.menu-arrow-chevron {
  font-size: 18px !important;
  color: #8696a0 !important;
}

/* Profile Sub-Drawer */
.profile-drawer-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: #ffffff !important;
}

.profile-avatar-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 0 !important;
}

.large-avatar-wrapper {
  position: relative !important;
  width: 140px !important;
  height: 140px !important;
  margin: 0 auto !important;
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
}

.large-avatar-wrapper:hover {
  transform: scale(1.02) !important;
}

.large-profile-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  font-size: 52px !important;
  font-weight: 700 !important;
  background: #00a884 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.avatar-camera-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  border-radius: 50% !important;
}

.large-avatar-wrapper:hover .avatar-camera-overlay {
  opacity: 1 !important;
}

.profile-field-card {
  background: #ffffff !important;
  border: 1px solid #e9edef !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.profile-field-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #008069 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.profile-field-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.profile-field-value {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111b21 !important;
}

.inline-pencil-btn {
  background: none !important;
  border: none !important;
  font-size: 16px !important;
  color: #54656f !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 4px !important;
}

.profile-inline-edit-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.inline-input-wrap {
  flex: 1 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.inline-text-input {
  width: 100% !important;
  padding: 8px 36px 8px 10px !important;
  border-radius: 8px !important;
  border: 1.5px solid #00a884 !important;
  background: #ffffff !important;
  font-size: 14px !important;
  color: #111b21 !important;
  outline: none !important;
}

.char-counter {
  position: absolute !important;
  right: 10px !important;
  font-size: 11px !important;
  color: #8696a0 !important;
  font-weight: 600 !important;
}

.inline-action-btns {
  display: flex !important;
  gap: 4px !important;
}

.inline-save-btn, .inline-cancel-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
}

.inline-save-btn {
  background: #00a884 !important;
  color: #ffffff !important;
}

.inline-cancel-btn {
  background: #e9edef !important;
  color: #54656f !important;
}

.profile-field-note {
  font-size: 11.5px !important;
  color: #8696a0 !important;
  margin-top: 4px !important;
}

.status-presets-section {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.status-presets-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #8696a0 !important;
  text-transform: uppercase !important;
}

.status-presets-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.status-preset-chip {
  background: #f0f2f5 !important;
  border: 1px solid #e9edef !important;
  border-radius: 14px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #54656f !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.status-preset-chip.active {
  background: #d9fdd3 !important;
  border-color: #d9fdd3 !important;
  color: #008069 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   4. CHAT FEED & MESSAGE BUBBLES
   ========================================================================== */
.chat-area {
  flex: 1 !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: row !important;
  background-color: #efeae2 !important;
  position: relative !important;
  overflow: hidden !important;
}

.active-chat-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background-color: #efeae2 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Empty State / Welcome Screen */
.empty-chat-welcome {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px !important;
  background: #f0f2f5 !important;
}

.welcome-card-container {
  max-width: 520px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 16px !important;
}

.welcome-logo-badge {
  width: 90px !important;
  height: 90px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 8px !important;
}

.welcome-logo-img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

.welcome-heading {
  font-size: 28px !important;
  font-weight: 300 !important;
  color: #41525d !important;
}

.welcome-subtext {
  font-size: 14px !important;
  color: #667781 !important;
  line-height: 1.5 !important;
  max-width: 400px !important;
}

.welcome-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 12px 0 !important;
}

.welcome-action-pill {
  padding: 8px 16px !important;
  background: #008069 !important;
  border: none !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
}

.welcome-action-pill:hover {
  background: #00a884 !important;
}

.welcome-footer-lock {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #8696a0 !important;
  margin-top: 24px !important;
}

/* Chat Header */
.chat-header {
  height: 60px !important;
  padding: 0 20px !important;
  background-color: #f0f2f5 !important;
  border-bottom: 1px solid #e9edef !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.chat-header-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
}

.chat-header-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111b21 !important;
}

.chat-header-subtitle {
  font-size: 12.5px !important;
  color: #667781 !important;
}

.chat-header-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Messages Feed Box */
.messages-feed-box {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background-color: #efeae2 !important;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

/* Call Log Bubbles */
.call-log-bubble {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e9edef !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  max-width: 360px !important;
  margin: 6px 0 !important;
  align-self: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.call-log-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #f0f2f5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #008069 !important;
  flex-shrink: 0 !important;
}

.call-log-icon.missed {
  color: #ef4444 !important;
}

.call-callback-btn {
  background: #00a884 !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.call-callback-btn:hover {
  background: #008069 !important;
}

/* Composer Bar */
.message-composer-bar {
  display: flex !important;
  align-items: center !important;
  padding: 10px 18px !important;
  background-color: #f0f2f5 !important;
  border-top: 1px solid #e9edef !important;
  gap: 10px !important;
  min-height: 62px !important;
}

.composer-input-wrapper {
  flex: 1 !important;
  background: #ffffff !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 16px !important;
}

.composer-input-wrapper input {
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  outline: none !important;
  font-size: 14.5px !important;
  color: #111b21 !important;
}

.composer-send-btn {
  background-color: #00a884 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

/* Contact Info Drawer */
.contact-info-drawer {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 400px !important;
  max-width: 90vw !important;
  height: 100% !important;
  background-color: #ffffff !important;
  border-left: 1px solid #e9edef !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 100 !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08) !important;
}

.contact-info-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: #ffffff !important;
}

.info-hero-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 16px 0 !important;
}

.info-section-box {
  background: #f0f2f5 !important;
  border: 1px solid #e9edef !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
}

/* ==========================================================================
   5. MODALS & AUTH (LIGHT THEME)
   ========================================================================== */
#loginScreen {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(11, 20, 26, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(11, 20, 26, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.auth-modal-dialog, .broadcast-dialog-card {
  background: #ffffff !important;
  border-radius: 18px !important;
  width: 90vw !important;
  max-width: 440px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #e9edef !important;
}

.auth-modal-dialog {
  max-width: 380px !important;
  padding: 32px 28px !important;
  text-align: center !important;
  align-items: center !important;
}

.auth-input-group {
  display: flex !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 14px !important;
  width: 100% !important;
}

.country-code {
  background: #f0f2f5 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  color: #111b21 !important;
  font-size: 14px !important;
  border-right: 1px solid #cbd5e1 !important;
}

.auth-input-group input {
  border: none !important;
  padding: 12px 14px !important;
  width: 100% !important;
  outline: none !important;
  font-size: 15px !important;
  background: #ffffff !important;
  color: #111b21 !important;
}

.otp-input {
  width: 100% !important;
  padding: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  margin-bottom: 14px !important;
  outline: none !important;
  font-size: 18px !important;
  text-align: center !important;
  letter-spacing: 4px !important;
  font-weight: 700 !important;
  background: #ffffff !important;
  color: #111b21 !important;
}

.primary-action-btn {
  width: 100% !important;
  height: 44px !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.primary-action-btn:hover {
  background: #008069 !important;
}

.secondary-action-btn {
  width: 100% !important;
  height: 44px !important;
  background: #f0f2f5 !important;
  color: #111b21 !important;
  border: 1px solid #e9edef !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.link-btn {
  background: none !important;
  border: none !important;
  color: #008069 !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.auth-error-msg {
  font-size: 13px !important;
  color: #ef4444 !important;
  margin-top: 10px !important;
  font-weight: 500 !important;
}

.dialog-header-bar {
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-bottom: 1px solid #e9edef !important;
  background: #f0f2f5 !important;
}

.dialog-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111b21 !important;
}

.dialog-search-input {
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #e9edef !important;
  background: #ffffff !important;
  font-size: 13.5px !important;
  color: #111b21 !important;
  outline: none !important;
}

.dialog-footer-bar {
  padding: 12px 16px !important;
  border-top: 1px solid #e9edef !important;
  background: #f0f2f5 !important;
}

.broadcast-contact-scroll {
  max-height: 280px !important;
  overflow-y: auto !important;
  padding: 0 16px !important;
}

/* Visibility Control */
.hidden,
#loginScreen.hidden,
.modal-overlay.hidden,
#callModal.hidden,
#mediaLightboxModal.hidden,
#newBroadcastModal.hidden,
#newGroupModal.hidden,
#addMemberModal.hidden,
#contactInfoDrawer.hidden,
#activeChat.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .sidebar-wrapper {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 50 !important;
  }

  .sidebar-wrapper.mobile-hidden {
    transform: translateX(-100%) !important;
  }

  .chat-area {
    width: 100vw !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 40 !important;
  }

  .contact-info-drawer {
    width: 100vw !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 100 !important;
  }

  .mobile-back-btn {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .mobile-back-btn,
  .mobile-bottom-nav,
  .sheet-drag-handle-bar {
    display: none !important;
  }
}


/* ==========================================================================
   ICE BLUE SENT BUBBLES & ALIGNED CALL LOGS
   ========================================================================== */
:root {
  --nc-primary: #0284c7;
  --nc-primary-dark: #0369a1;
  --nc-primary-light: #e0f2fe;
  --nc-accent: #0284c7;
}

/* Sent Messages (Outgoing) - Signature Namaste Ice Blue */
.message.sent, .message.outgoing {
  align-self: flex-end !important;
  background: #e0f2fe !important; /* Fresh Ice Blue */
  color: #0f172a !important;
  border-radius: 8px 8px 0px 8px !important;
  margin-left: auto !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06) !important;
}

/* Received Messages (Incoming) - Pure Crisp White */
.message.received, .message.incoming {
  align-self: flex-start !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 8px 8px 8px 0px !important;
  margin-right: auto !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06) !important;
}

/* Call Log Bubbles - Aligned Left for Incoming & Right for Outgoing (NOT Centered) */
.call-log-bubble {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  max-width: 320px !important;
  margin: 4px 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.call-log-bubble.sent {
  align-self: flex-end !important;
  margin-left: auto !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
}

.call-log-bubble.received {
  align-self: flex-start !important;
  margin-right: auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.call-log-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(2, 132, 199, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0284c7 !important;
  flex-shrink: 0 !important;
}

.call-log-icon.missed {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
}

.call-callback-btn {
  background: #0284c7 !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.call-callback-btn:hover {
  background: #0369a1 !important;
}

.composer-send-btn {
  background-color: #0284c7 !important;
}

.primary-circle-accent {
  background: #0284c7 !important;
}

.pane-title {
  color: #0284c7 !important;
}


/* Welcome Screen Action Pills in Namaste Brand Blue */
.welcome-action-pill {
  padding: 8px 18px !important;
  background: #0284c7 !important;
  border: none !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

.welcome-action-pill:hover {
  background: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.filter-chip.active {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
}

.unread-count-pill {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.rail-avatar, #myStatusAvatar {
  background: #0284c7 !important;
}

.online-status-dot {
  background-color: #10b981 !important;
}


/* Top Right Chat Header Controls */
.chat-header-controls {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.chat-header-controls .header-circle-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  color: #54656f !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.chat-header-controls .header-circle-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #111b21 !important;
}

.chat-header-controls .header-circle-btn svg {
  display: block !important;
}

/* Contact Info Drawer Close Button */
.drawer-back-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #54656f !important;
  transition: background 0.15s ease !important;
}

.drawer-back-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #111b21 !important;
}


/* Rail Badges, Status Dots, & Divider */
.rail-badge-pill {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
}

.rail-status-dot {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #25d366 !important;
}

.rail-divider {
  width: 28px !important;
  height: 1px !important;
  background: #e2e8f0 !important;
  margin: 6px 0 !important;
}

.settings-search-box {
  border-radius: 20px !important;
  border: 1.5px solid #00a884 !important;
  background: #ffffff !important;
}

.settings-menu-row {
  display: flex !important;
  align-items: center !important;
  padding: 14px 20px !important;
  gap: 16px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f0f2f5 !important;
  transition: background 0.12s ease !important;
  border-radius: 8px !important;
  margin: 0 8px 2px 8px !important;
}

.settings-menu-row:hover {
  background: #f5f6f6 !important;
}

.settings-menu-icon {
  width: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #54656f !important;
}

.settings-menu-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111b21 !important;
}

.settings-menu-desc {
  font-size: 12.5px !important;
  color: #667781 !important;
  margin-top: 2px !important;
}

.logout-row:hover {
  background: #fef2f2 !important;
}


/* Sub Drawer Items & Switch Toggles */
.settings-sub-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #f0f2f5 !important;
  gap: 16px !important;
}

.settings-sub-meta {
  flex: 1 !important;
}

.toggle-switch {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.toggle-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.toggle-slider {
  position: absolute !important;
  cursor: pointer !important;
  inset: 0 !important;
  background-color: #cbd5e1 !important;
  border-radius: 24px !important;
  transition: 0.2s ease !important;
}

.toggle-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  transition: 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #00a884 !important;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px) !important;
}

.settings-select {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #111b21 !important;
  font-size: 13.5px !important;
  outline: none !important;
  cursor: pointer !important;
}

.small-action-pill {
  padding: 6px 14px !important;
  border-radius: 16px !important;
  border: none !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  cursor: pointer !important;
}

.wallpaper-grid-select {
  display: flex !important;
  gap: 12px !important;
}

.wallpaper-option-card {
  width: 54px !important;
  height: 54px !important;
  border-radius: 12px !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.wallpaper-option-card:hover {
  transform: scale(1.06) !important;
}

.wallpaper-option-card.active {
  border-color: #00a884 !important;
  box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.3) !important;
}

.shortcuts-table {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.shortcut-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 14px !important;
  color: #111b21 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
}

.key-pill {
  background: #f0f2f5 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}


/* ==========================================================================
   EXACT SCREENSHOT STYLES (EDIT PROFILE, ACCOUNT, CHATS, NOTIF, SHORTCUTS)
   ========================================================================== */

/* Profile Cards */
.profile-spec-card {
  padding: 14px 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.profile-spec-card.clickable-spec-row {
  cursor: pointer !important;
  transition: background 0.12s ease !important;
}

.profile-spec-card.clickable-spec-row:hover {
  background: #f5f6f6 !important;
}

.profile-spec-label {
  font-size: 13px !important;
  color: #667781 !important;
  font-weight: 500 !important;
}

.profile-spec-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.profile-spec-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.profile-spec-value {
  font-size: 15.5px !important;
  color: #111b21 !important;
  font-weight: 500 !important;
}

.profile-spec-subtext {
  font-size: 12.5px !important;
  color: #8696a0 !important;
}

.spec-pencil-btn, .spec-copy-btn {
  background: none !important;
  border: none !important;
  color: #667781 !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.spec-pencil-btn:hover, .spec-copy-btn:hover {
  background: #f0f2f5 !important;
  color: #111b21 !important;
}

.settings-section-header {
  padding: 14px 20px 6px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #008069 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* 2-Column Keyboard Shortcuts Modal Card */
.shortcuts-dialog-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  width: 90vw !important;
  max-width: 720px !important;
  padding: 24px 28px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid #e9edef !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.shortcuts-dialog-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111b21 !important;
  margin: 0 !important;
}

.shortcuts-2col-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
}

.shortcuts-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.shortcut-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
  gap: 8px !important;
}

.shortcut-label {
  font-size: 13px !important;
  color: #111b21 !important;
  flex: 1 !important;
}

.key-pill-group {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.key-pill {
  background: #f0f2f5 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.shortcuts-dialog-footer {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 8px !important;
}

.shortcuts-ok-btn {
  background: #00a884 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 8px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.shortcuts-ok-btn:hover {
  background: #008069 !important;
}


/* Screen Privacy (Anti-Peep Blur Engine) */
.privacy-blur-messages .message-bubble {
  filter: blur(5px) !important;
  transition: filter 0.2s ease !important;
  user-select: none !important;
}

.privacy-blur-messages .message:hover .message-bubble {
  filter: blur(0px) !important;
  user-select: auto !important;
}

.privacy-blur-media .message img,
.privacy-blur-media .message video {
  filter: blur(12px) !important;
  transition: filter 0.2s ease !important;
}

.privacy-blur-media .message:hover img,
.privacy-blur-media .message:hover video {
  filter: blur(0px) !important;
}

.privacy-blur-previews .chat-card-preview,
.privacy-blur-previews .chat-preview-text {
  filter: blur(4px) !important;
  transition: filter 0.2s ease !important;
}

.privacy-blur-previews .user-item:hover .chat-card-preview,
.privacy-blur-previews .user-item:hover .chat-preview-text {
  filter: blur(0px) !important;
}


/* Targeted Contact Info Blur (Chat Partner Only - NOT User's Own Profile) */
.privacy-blur-contact-profile #chatHeaderInfo .chat-header-title,
.privacy-blur-contact-profile #chatHeaderInfo .chat-header-subtitle,
.privacy-blur-contact-profile #chatAvatar,
.privacy-blur-contact-profile .user-item .avatar,
.privacy-blur-contact-profile .user-item .chat-card-name,
.privacy-blur-contact-profile .user-item .chat-title-text {
  filter: blur(5px) !important;
  transition: filter 0.2s ease !important;
  user-select: none !important;
}

.privacy-blur-contact-profile #chatHeaderInfo:hover .chat-header-title,
.privacy-blur-contact-profile #chatHeaderInfo:hover .chat-header-subtitle,
.privacy-blur-contact-profile #chatHeaderInfo:hover #chatAvatar,
.privacy-blur-contact-profile .user-item:hover .avatar,
.privacy-blur-contact-profile .user-item:hover .chat-card-name,
.privacy-blur-contact-profile .user-item:hover .chat-title-text {
  filter: blur(0px) !important;
  user-select: auto !important;
}


/* Screenshot & View-Once Protection Engine */
body.screenshot-protected {
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.screenshot-protected img,
body.screenshot-protected video {
  pointer-events: none !important;
  -webkit-touch-callout: none !important;
}

/* =====================================================
   SECURE CALL SCREEN
===================================================== */
#callModal.call-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 15, 24, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000 !important;
}

.call-modal-dialog {
  position: relative;
  width: min(1080px, 96vw);
  height: min(720px, 92vh);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 25%, #1e3a4b 0%, #101c27 46%, #071018 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  color: #fff;
}

.call-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(3, 10, 16, 0.82), rgba(3, 10, 16, 0));
  pointer-events: none;
}

.call-topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.call-topbar-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.call-topbar-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.call-timer {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 12, 18, 0.5);
  color: #dff7ee;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.video-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050b10;
}

.remote-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.remote-video-waiting {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.remote-video-waiting svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.video-grid.has-remote-video .remote-video-waiting {
  display: none;
}

.local-video {
  position: absolute;
  right: 22px;
  bottom: 112px;
  z-index: 5;
  width: clamp(150px, 21vw, 230px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scaleX(-1);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: #152630;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.call-profile-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.avatar-ring-pulse {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(14, 165, 233, 0.08), 0 0 0 38px rgba(14, 165, 233, 0.035);
}

.call-avatar {
  width: 132px !important;
  height: 132px !important;
  font-size: 44px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.call-secure-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.call-secure-label svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.incoming-call-bar,
.active-call-bar {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(4, 12, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.incoming-call-bar {
  gap: 42px;
  padding-inline: 28px;
}

.call-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.call-btn:hover { transform: translateY(-2px); }
.call-btn:active { transform: scale(0.96); }
.call-btn svg { width: 23px; height: 23px; fill: currentColor; }
.control-btn { background: rgba(255, 255, 255, 0.16); }
.control-btn:hover { background: rgba(255, 255, 255, 0.25); }
.accept-btn { background: #16a56a; box-shadow: 0 8px 24px rgba(22, 165, 106, 0.34); }
.reject-btn,
.end-call-btn { background: #ef4444; box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3); }
.active-danger { background: #ef4444 !important; }
.active-warning { background: #d97706 !important; }

@media (max-width: 720px) {
  #callModal.call-modal-overlay { padding: 0; }
  .call-modal-dialog { width: 100vw; height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .call-topbar { padding: 16px 18px; }
  .local-video { right: 14px; bottom: 108px; width: 34vw; border-radius: 13px; }
  .active-call-bar { bottom: 20px; gap: 8px; padding: 10px 12px; }
  .call-btn { width: 47px; height: 47px; flex-basis: 47px; }
}

@media print {
  body.screenshot-protected {
    display: none !important;
  }
}


/* Brand Ocean Blue Primary Button Overrides */
.primary-action-btn, #sendOtpBtn, #verifyOtpBtn, #submitCreateBroadcastBtn, #createGroupSubmitBtn, #submitAddMemberBtn {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.primary-action-btn:hover, #sendOtpBtn:hover, #verifyOtpBtn:hover {
  background: #0369a1 !important;
}

.link-btn {
  color: #0284c7 !important;
}

.auth-logo {
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25) !important;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #0284c7 !important;
}

.shortcuts-ok-btn {
  background: #0284c7 !important;
}

.shortcuts-ok-btn:hover {
  background: #0369a1 !important;
}


/* Strict Sidebar Layout Rules (Prevents any horizontal breaking) */
.sidebar-wrapper {
  display: flex !important;
  flex-direction: row !important;
  width: 440px !important;
  min-width: 400px !important;
  max-width: 460px !important;
  height: 100vh !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border-right: 1px solid var(--nc-border) !important;
  background: #ffffff !important;
}

.sidebar-main-pane {
  flex: 1 !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

.sidebar-view-pane {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.sidebar-view-pane.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.chat-area {
  flex: 1 !important;
  height: 100vh !important;
  min-width: 0 !important;
  display: flex !important;
  position: relative !important;
  overflow: hidden !important;
}


/* Strict Sidebar Single-Pane Display */
.sidebar-main-pane {
  position: relative !important;
  width: 380px !important;
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

.sidebar-view-pane {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  overflow-y: auto !important;
}

.sidebar-view-pane.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.chat-area {
  flex: 1 !important;
  height: 100vh !important;
  min-width: 0 !important;
  display: flex !important;
  background-color: #efeae2 !important;
  position: relative !important;
  overflow: hidden !important;
}


/* ==========================================================================
   PRISTINE 3-COLUMN LAYOUT GUARANTEE (RAIL: 60px | SIDEBAR: 380px | CHAT: 1fr)
   ========================================================================== */
.app-container {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  position: relative !important;
  background-color: #f0f2f5 !important;
}

.sidebar-rail {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  height: 100vh !important;
  flex-shrink: 0 !important;
  background-color: #f0f2f5 !important;
  border-right: 1px solid #e9edef !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  z-index: 20 !important;
}

.sidebar-main-pane {
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  height: 100vh !important;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid #e9edef !important;
  background-color: #ffffff !important;
  z-index: 10 !important;
}

.sidebar-view-pane {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #ffffff !important;
  overflow-y: auto !important;
}

.sidebar-view-pane.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.chat-area {
  flex: 1 !important;
  height: 100vh !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  position: relative !important;
  overflow: hidden !important;
  background-color: #efeae2 !important;
}
.story-progress-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.story-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
}

.attachment-menu-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: 210px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  background: var(--nc-sidebar-bg);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.attachment-popup-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-primary);
  font: 600 13px/1.2 inherit;
  text-align: left;
  cursor: pointer;
}

.attachment-popup-item:hover {
  background: var(--nc-card-hover);
}

.broadcast-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-primary, #111827);
  background: var(--bg-header, #fff);
}

.broadcast-contact-item:hover {
  background: var(--hover-bg, #f3f6f8);
}

.broadcast-contact-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0284c7;
}

/* Text-only header controls must not inherit the icon button's zero font-size. */
#backBtn,
#chatMenuBtn {
  font-size: 22px !important;
  line-height: 1 !important;
  color: #475569 !important;
}

/* ========================================================================== 
   RESPONSIVE PRODUCT LAYOUT
   This block intentionally lives last so the desktop guarantees above cannot
   override the compact single-pane experience.
   ========================================================================== */
@media (max-width: 768px) {
  html,
  body,
  .app-container {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  .app-container {
    position: relative !important;
    isolation: isolate !important;
    background: #f4f8fb !important;
  }

  .sidebar-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    z-index: 50 !important;
    transform: translateX(0) !important;
    transition: transform 220ms cubic-bezier(.4, 0, .2, 1) !important;
    background: #ffffff !important;
  }

  .sidebar-wrapper.mobile-hidden {
    transform: translateX(-100%) !important;
    pointer-events: none !important;
  }

  .sidebar-rail {
    display: none !important;
  }

  .sidebar-main-pane {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    border-right: 0 !important;
    z-index: 51 !important;
    transform: translateX(0) !important;
    transition: transform 220ms cubic-bezier(.4, 0, .2, 1) !important;
  }

  .app-container.mobile-chat-open .sidebar-main-pane {
    transform: translateX(-100vw) !important;
    pointer-events: none !important;
  }

  .app-container.mobile-chat-open .mobile-bottom-nav {
    transform: translateY(100%) !important;
    pointer-events: none !important;
  }

  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding-top: 3px !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
    padding-left: env(safe-area-inset-left, 0px) !important;
    padding-right: env(safe-area-inset-right, 0px) !important;
    z-index: 99 !important;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.98) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }

  .mobile-nav-btn {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    min-width: 44px !important;
    padding: 4px 2px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    gap: 3px !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 150ms ease, transform 150ms ease !important;
  }

  .mobile-nav-btn:active {
    transform: scale(0.92) !important;
  }

  .mobile-nav-btn.active {
    color: #0284c7 !important;
    font-weight: 600 !important;
  }

  [data-theme="dark"] .mobile-nav-btn {
    color: #94a3b8 !important;
  }

  [data-theme="dark"] .mobile-nav-btn.active {
    color: #38bdf8 !important;
  }

  .mobile-nav-icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.1 !important;
    transition: stroke 150ms ease !important;
  }

  .mobile-nav-label {
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.1px !important;
  }

  /* Ensure primary pane scroll areas reserve space above bottom nav */
  .chat-cards-list,
  .settings-drawer-scroll,
  .calls-scroll-area,
  .status-scroll-area,
  .groups-scroll-area,
  .saved-scroll-area {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sidebar-view-pane {
    width: 100% !important;
    height: 100dvh !important;
  }

  .pane-header {
    min-height: calc(64px + env(safe-area-inset-top, 0px)) !important;
    padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    padding-left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: 10px !important;
  }

  .drawer-header-bar,
  .contact-info-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    padding-left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(12px + env(safe-area-inset-right, 0px)) !important;
  }

  .pane-title {
    font-size: 20px !important;
    letter-spacing: -0.3px !important;
  }

  .pane-header-actions {
    gap: 3px !important;
  }

  .pane-header-actions .header-circle-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .search-section {
    padding: 7px 12px 9px !important;
  }

  .filter-chips-row {
    padding: 0 12px 10px !important;
    gap: 6px !important;
  }

  .filter-chip {
    padding: 5px 11px !important;
    font-size: 12.5px !important;
  }

  .archived-row-banner {
    padding: 11px 14px !important;
  }

  .user-item {
    height: 70px !important;
    padding: 0 12px !important;
    gap: 12px !important;
  }

  .user-item .avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 15px !important;
  }

  .chat-area {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    z-index: 40 !important;
  }

  .active-chat-wrapper,
  .empty-chat-welcome {
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100dvh !important;
  }

  .mobile-back-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
  }

  .chat-header {
    height: calc(62px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(62px + env(safe-area-inset-top, 0px)) !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: 0 !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
  }

  .chat-header-user {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }

  .chat-header-user .avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }

  .chat-header-user > div:last-child {
    min-width: 0 !important;
  }

  .chat-header-title,
  .chat-header-subtitle {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .chat-header-title {
    font-size: 14.5px !important;
  }

  .chat-header-controls {
    flex: 0 0 auto !important;
    gap: 1px !important;
  }

  .chat-header-controls .header-circle-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .messages-feed-box {
    padding: 12px 10px !important;
    gap: 5px !important;
    background-color: #f5f8fb !important;
    background-image: radial-gradient(rgba(2, 132, 199, 0.045) 1px, transparent 1px) !important;
    background-size: 18px 18px !important;
  }

  .message {
    max-width: 88% !important;
    min-width: 64px !important;
    font-size: 14px !important;
  }

  .call-log-bubble {
    max-width: min(88%, 340px) !important;
  }

  .message-composer-bar {
    min-height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: 8px !important;
    padding-left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .composer-input-wrapper {
    height: 42px !important;
    padding: 0 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
  }

  .composer-send-btn {
    width: 40px !important;
    height: 40px !important;
  }

  .contact-info-drawer {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100dvh !important;
    z-index: 100 !important;
  }

  /* Mobile Bottom Sheet for Emoji / Sticker / GIF Tray */
  .composer-emoji-tray {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 70dvh !important;
    max-height: 72dvh !important;
    border-radius: 22px 22px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28) !important;
    z-index: 10005 !important;
    animation: mobileSheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    transform-origin: bottom center !important;
  }

  @keyframes mobileSheetSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  [data-theme="dark"] .composer-emoji-tray {
    background: #0f172a !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
  }

  .sheet-drag-handle-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 2px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .sheet-drag-handle {
    display: block !important;
    width: 38px !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: rgba(148, 163, 184, 0.45) !important;
  }

  [data-theme="dark"] .sheet-drag-handle {
    background: rgba(255, 255, 255, 0.25) !important;
  }

  .emoji-tray-header {
    padding: 6px 12px 8px !important;
  }

  .emoji-main-tabs {
    flex: 1 !important;
    justify-content: center !important;
  }

  .emoji-tab-btn {
    flex: 1 !important;
    justify-content: center !important;
    min-height: 40px !important;
  }

  .emoji-tray-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    padding: 8px 10px 24px !important;
  }

  .emoji-cell-btn,
  .emoji-tile-btn {
    height: 44px !important;
    min-width: 42px !important;
    font-size: 26px !important;
  }

  /* Responsive 4-column Sticker Grid */
  .sticker-tray-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 10px 10px 24px !important;
  }

  .sticker-card-btn,
  .sticker-card-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 2px !important;
    min-height: 56px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
  }

  .sticker-card-btn:hover,
  .sticker-card-item:hover,
  .sticker-card-btn:active {
    background: rgba(2, 132, 199, 0.08) !important;
    transform: scale(0.94) !important;
  }

  .sticker-card-icon,
  .sticker-display-art {
    font-size: 38px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08)) !important;
  }

  img.sticker-card-icon,
  img.sticker-display-art {
    width: 60px !important;
    height: 60px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  .sticker-card-label,
  .sticker-pack-label {
    display: none !important;
  }

  /* Responsive 2-column GIF Grid */
  .gif-tray-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px 10px 24px !important;
  }

  .gif-card-btn,
  .gif-card-item {
    height: 110px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 410px) {
  .emoji-tray-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .sticker-tray-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }
  .sticker-card-icon,
  .sticker-display-art {
    font-size: 34px !important;
  }
}

  .pane-header-actions .header-circle-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .chat-header-controls .header-circle-btn {
    width: 32px !important;
    height: 32px !important;
  }
}


/* 100% Clickable Login Screen & Dialog Fix */
#loginScreen {
  pointer-events: auto !important;
  z-index: 10000 !important;
}

.auth-modal-dialog {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10001 !important;
}

.auth-modal-dialog input,
.auth-modal-dialog button,
.auth-input-group,
.country-code {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10002 !important;
}

.auth-modal-dialog input {
  cursor: text !important;
}

#recaptcha-container {
  margin: 10px 0 !important;
  position: relative !important;
  z-index: 10003 !important;
}


/* Ultra-Responsive Auth Screen & Button Styles */
#loginScreen {
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.auth-modal-dialog {
  pointer-events: auto !important;
  z-index: 100000 !important;
  position: relative !important;
}

#phoneInput, #otpInput, #sendOtpBtn, #verifyOtpBtn, #retryOtpBtn, #changeNumberBtn {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 100001 !important;
}

#phoneInput, #otpInput {
  cursor: text !important;
}

#sendOtpBtn:active, #verifyOtpBtn:active {
  transform: scale(0.97) !important;
  filter: brightness(0.9) !important;
}

.auth-input-group:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}


/* PIN Box Styling for Chat Lock Vault */
.vault-pin-box {
  width: 50px !important;
  height: 56px !important;
  font-size: 24px !important;
  text-align: center !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #111b21 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.vault-pin-box:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

/* Settings Menu Rows Hover & Interactive Click */
.settings-menu-row {
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.settings-menu-row:hover {
  background: rgba(2, 132, 199, 0.05) !important;
}


/* Invisible phone-auth verifier badge. Allowed by Google when disclosure is displayed. */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-disclosure {
  margin: 12px 4px 0;
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.recaptcha-disclosure a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ==========================================================================
   NAMASTECHAT ULTRA-PREMIUM DESIGN SYSTEM (2026 EDITION)
   ========================================================================== */

:root {
  --nc-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nc-font-display: 'Outfit', var(--nc-font-main);

  /* Primary Brand Colors */
  --nc-primary: #0284c7;
  --nc-primary-hover: #0369a1;
  --nc-primary-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --nc-primary-glow: rgba(2, 132, 199, 0.28);

  /* Light Theme Tokens */
  --nc-bg-body: #f8fafc;
  --nc-bg-rail: rgba(255, 255, 255, 0.88);
  --nc-bg-sidebar: #ffffff;
  --nc-bg-chat: #f0f4f8;
  --nc-bg-surface: #ffffff;
  --nc-border-subtle: rgba(226, 232, 240, 0.8);
  --nc-border-hover: rgba(203, 213, 225, 0.9);

  /* Typography Colors */
  --nc-text-main: #0f172a;
  --nc-text-muted: #64748b;
  --nc-text-subtle: #94a3b8;

  /* Chat Bubbles */
  --nc-bubble-sent: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  --nc-bubble-sent-text: #ffffff;
  --nc-bubble-received: #ffffff;
  --nc-bubble-received-text: #0f172a;
  --nc-bubble-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);

  /* Elevation Shadows */
  --nc-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --nc-shadow-md: 0 8px 24px -4px rgba(0,0,0,0.08);
  --nc-shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.12);
  --nc-shadow-glow: 0 0 20px rgba(2, 132, 199, 0.22);
}

/* Dark Theme Tokens */
[data-theme="dark"],
.dark,
.dark-mode {
  --nc-bg-body: #070d14;
  --nc-bg-rail: rgba(11, 20, 30, 0.88);
  --nc-bg-sidebar: #0f1c28;
  --nc-bg-chat: #0a131c;
  --nc-bg-surface: #142433;
  --nc-border-subtle: rgba(255, 255, 255, 0.08);
  --nc-border-hover: rgba(255, 255, 255, 0.14);

  --nc-text-main: #f1f5f9;
  --nc-text-muted: #94a3b8;
  --nc-text-subtle: #64748b;

  --nc-bubble-sent: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --nc-bubble-sent-text: #ffffff;
  --nc-bubble-received: #142433;
  --nc-bubble-received-text: #f1f5f9;
  --nc-bubble-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

/* Global Font Application */
body, button, input, select, textarea {
  font-family: var(--nc-font-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .brand-title, .dialog-title {
  font-family: var(--nc-font-display) !important;
  letter-spacing: -0.02em;
}

/* Left Slim Rail (60px) Glassmorphism */
.sidebar-rail {
  background: var(--nc-bg-rail) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-right: 1px solid var(--nc-border-subtle) !important;
}

.rail-nav-btn {
  border-radius: 12px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rail-nav-btn:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: var(--nc-primary) !important;
  transform: translateY(-1px);
}

.rail-nav-btn.active {
  background: var(--nc-primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--nc-primary-glow) !important;
}

/* Main Sidebar Pane (380px) */
.sidebar-main-pane,
.sidebar-wrapper {
  background: var(--nc-bg-sidebar) !important;
  border-right: 1px solid var(--nc-border-subtle) !important;
}

/* Modern Pill Search Box */
.search-container {
  padding: 12px 16px !important;
}

.search-input,
.dialog-search-input {
  border-radius: 24px !important;
  background: var(--nc-bg-body) !important;
  border: 1px solid var(--nc-border-subtle) !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  color: var(--nc-text-main) !important;
  transition: all 0.2s ease !important;
}

.search-input:focus,
.dialog-search-input:focus {
  border-color: var(--nc-primary) !important;
  box-shadow: 0 0 0 3px var(--nc-primary-glow) !important;
  background: var(--nc-bg-surface) !important;
}

/* Contact / Chat Item Cards */
.chat-item,
.contact-item {
  border-radius: 14px !important;
  margin: 4px 8px !important;
  padding: 10px 12px !important;
  transition: all 0.18s ease !important;
}

.chat-item:hover,
.contact-item:hover {
  background: rgba(2, 132, 199, 0.06) !important;
  transform: translateX(2px);
}

.chat-item.active {
  background: rgba(2, 132, 199, 0.12) !important;
  border-left: 3px solid var(--nc-primary) !important;
}

/* Chat Viewport & Message Bubbles */
.chat-viewport,
.messages-container {
  background: var(--nc-bg-chat) !important;
}

.message-bubble {
  border-radius: 18px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-shadow: var(--nc-bubble-shadow) !important;
  transition: transform 0.15s ease !important;
  max-width: min(72%, 580px) !important;
}

.message-item.sent .message-bubble {
  background: var(--nc-bubble-sent) !important;
  color: var(--nc-bubble-sent-text) !important;
  border-bottom-right-radius: 4px !important;
}

.message-item.received .message-bubble {
  background: var(--nc-bubble-received) !important;
  color: var(--nc-bubble-received-text) !important;
  border-bottom-left-radius: 4px !important;
  border: 1px solid var(--nc-border-subtle) !important;
}

/* Floating Input Bar */
.chat-input-bar {
  background: var(--nc-bg-sidebar) !important;
  border-top: 1px solid var(--nc-border-subtle) !important;
  padding: 12px 18px !important;
  backdrop-filter: blur(14px) !important;
}

.chat-text-input {
  border-radius: 22px !important;
  padding: 10px 18px !important;
  background: var(--nc-bg-body) !important;
  border: 1px solid var(--nc-border-subtle) !important;
  font-size: 14px !important;
  color: var(--nc-text-main) !important;
  outline: none !important;
}

.chat-text-input:focus {
  border-color: var(--nc-primary) !important;
  box-shadow: 0 0 0 3px var(--nc-primary-glow) !important;
}

/* Primary Action Buttons */
.primary-action-btn {
  background: var(--nc-primary-gradient) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  box-shadow: 0 4px 14px var(--nc-primary-glow) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
}

.primary-action-btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 22px var(--nc-primary-glow) !important;
  filter: brightness(1.05);
}

.primary-action-btn:active {
  transform: scale(0.98) !important;
}

/* In-App Floating Toast Notification Container & Cards */
.toast-container {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
}

.toast-card {
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 280px !important;
  max-width: 420px !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  transition: all 0.22s ease !important;
}

.toast-card.success { border-left: 4px solid #10b981 !important; }
.toast-card.error { border-left: 4px solid #ef4444 !important; }
.toast-card.warning { border-left: 4px solid #f59e0b !important; }
.toast-card.info { border-left: 4px solid #0284c7 !important; }

.app-error-banner {
  background: #fef2f2;
  border-bottom: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .app-error-banner {
  background: #450a0a;
  border-bottom: 1px solid #7f1d1d;
  color: #fecaca;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-card.hide {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.95) !important;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3) !important;
  border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.5) !important;
}


/* Hide unread badges by default unless unread messages exist */
.rail-badge-pill.hidden,
.rail-status-dot.hidden,
#railUnreadBadge.hidden,
#railStatusDot.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}


/* =====================================================
   ULTRA-LUXURY REACTION PILL & MESSAGE ACTION MENU
===================================================== */
.message-bubble-wrapper {
  position: relative !important;
}

/* Floating Reaction Bar (Pill Shape) */
.reaction-bar {
  position: absolute !important;
  bottom: calc(100% + 6px) !important;
  left: 8px !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 8px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  animation: reactionPillPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

[data-theme="dark"] .reaction-bar,
.dark .reaction-bar,
.dark-mode .reaction-bar {
  background: rgba(20, 36, 51, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

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

.reaction-emoji-btn {
  border: none !important;
  background: transparent !important;
  font-size: 19px !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  padding: 0 !important;
}

.reaction-emoji-btn:hover {
  transform: scale(1.35) translateY(-3px) !important;
  background: rgba(2, 132, 199, 0.12) !important;
}

.reaction-emoji-btn:active {
  transform: scale(1.1) !important;
}

/* Floating Message Menu Popover */
.msg-menu-popover {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  z-index: 150 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 180px !important;
  padding: 6px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  animation: reactionPillPop 0.18s ease-out forwards !important;
}

[data-theme="dark"] .msg-menu-popover,
.dark .msg-menu-popover,
.dark-mode .msg-menu-popover {
  background: rgba(18, 32, 45, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
}

.msg-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
  transition: all 0.15s ease !important;
}

[data-theme="dark"] .msg-menu-item,
.dark .msg-menu-item,
.dark-mode .msg-menu-item {
  color: #f1f5f9 !important;
}

.msg-menu-item:hover {
  background: rgba(2, 132, 199, 0.09) !important;
  color: #0284c7 !important;
  transform: translateX(2px);
}

.msg-menu-item.danger {
  color: #ef4444 !important;
}

.msg-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.09) !important;
  color: #dc2626 !important;
}


/* =====================================================
   PERFECT CLEAN CHAT BUBBLE SYSTEM (TELEGRAM / WHATSAPP STYLE)
===================================================== */
.message {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 6px !important;
  max-width: min(76%, 540px) !important;
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.message.sent {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 12px !important;
}

.message.received {
  align-self: flex-start !important;
  margin-right: auto !important;
  margin-left: 12px !important;
}

.message-bubble-wrapper {
  position: relative !important;
  display: inline-block !important;
}

.message-bubble {
  position: relative !important;
  padding: 8px 14px 6px 14px !important;
  font-size: 14.2px !important;
  line-height: 1.45 !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  display: inline-block !important;
}

/* Sent Bubbles: Electric Ocean Blue */
.message.sent .message-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border-radius: 18px 18px 3px 18px !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.25) !important;
}

/* Received Bubbles: Pure White Elevation */
.message.received .message-bubble {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 18px 18px 18px 3px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .message.received .message-bubble,
.dark .message.received .message-bubble,
.dark-mode .message.received .message-bubble {
  background: #142433 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Integrated Bubble Meta: Time & Double Ticks */
.bubble-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  float: right !important;
  margin-left: 10px !important;
  margin-top: 3px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.message.sent .bubble-meta {
  color: rgba(255, 255, 255, 0.85) !important;
}

.message.received .bubble-meta {
  color: #64748b !important;
}

[data-theme="dark"] .message.received .bubble-meta,
.dark .message.received .bubble-meta,
.dark-mode .message.received .bubble-meta {
  color: #94a3b8 !important;
}

/* Call Log Centered Pill */
.call-log-row {
  display: flex !important;
  justify-content: center !important;
  margin: 10px 0 !important;
}

.call-log-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  background: rgba(100, 116, 139, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--nc-text-muted) !important;
}

/* Three dots action trigger button */
.msg-actions-trigger {
  position: absolute !important;
  top: 4px !important;
  right: -24px !important;
  opacity: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--nc-text-muted) !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: opacity 0.15s ease !important;
}

.message:hover .msg-actions-trigger {
  opacity: 0.8 !important;
}


/* ==========================================================================
   CLEAN NATIVE SINGLE-LAYER BUBBLE ARCHITECTURE (ZERO DOUBLE-BOXES)
   ========================================================================== */
.message {
  display: flex !important;
  flex-direction: column !important;
  max-width: min(72%, 520px) !important;
  position: relative !important;
  margin: 3px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.message.sent {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 16px !important;
}

.message.received {
  align-self: flex-start !important;
  margin-right: auto !important;
  margin-left: 16px !important;
}

.message-bubble-wrapper {
  position: relative !important;
  display: inline-block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* THE ONLY VISIBLE BUBBLE CONTAINER */
.message-bubble {
  position: relative !important;
  display: inline-block !important;
  padding: 8px 12px 6px 14px !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* Sent Bubble: Namaste Ocean Blue */
.message.sent .message-bubble {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 16px 16px 3px 16px !important;
  box-shadow: 0 1.5px 4px rgba(2, 132, 199, 0.25) !important;
}

/* Received Bubble: Clean White */
.message.received .message-bubble {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 16px 16px 16px 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .message.received .message-bubble,
.dark .message.received .message-bubble,
.dark-mode .message.received .message-bubble {
  background: #142433 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Timestamp & Double Ticks inside Bubble */
.bubble-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  float: right !important;
  margin-left: 10px !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  user-select: none !important;
}

.message.sent .bubble-meta {
  color: rgba(255, 255, 255, 0.8) !important;
}

.message.received .bubble-meta {
  color: #64748b !important;
}

[data-theme="dark"] .message.received .bubble-meta,
.dark .message.received .bubble-meta,
.dark-mode .message.received .bubble-meta {
  color: #94a3b8 !important;
}

.bubble-ticks {
  font-size: 11px !important;
  color: #38bdf8 !important;
}


/* ==========================================================================
   PURE SINGLE-LAYER WHATSAPP / TELEGRAM CHAT BUBBLE CSS
   ========================================================================== */
.message {
  display: flex !important;
  flex-direction: column !important;
  max-width: min(72%, 520px) !important;
  position: relative !important;
  margin: 3px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.message.sent,
.message.outgoing {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.message.received,
.message.incoming {
  align-self: flex-start !important;
  margin-right: auto !important;
  margin-left: 14px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* THE ONE AND ONLY BUBBLE */
.message-bubble {
  position: relative !important;
  display: inline-block !important;
  padding: 8px 12px 6px 14px !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.message.sent .message-bubble {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 16px 16px 2px 16px !important;
  box-shadow: 0 1.5px 4px rgba(2, 132, 199, 0.25) !important;
  border: none !important;
}

.message.received .message-bubble {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 16px 16px 16px 2px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .message.received .message-bubble,
.dark .message.received .message-bubble,
.dark-mode .message.received .message-bubble {
  background: #142433 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Metadata inside the bubble */
.bubble-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  float: right !important;
  margin-left: 10px !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  user-select: none !important;
}

.message.sent .bubble-meta {
  color: rgba(255, 255, 255, 0.8) !important;
}

.message.received .bubble-meta {
  color: #64748b !important;
}

[data-theme="dark"] .message.received .bubble-meta,
.dark .message.received .bubble-meta,
.dark-mode .message.received .bubble-meta {
  color: #94a3b8 !important;
}

.bubble-ticks {
  font-size: 11px !important;
  color: #38bdf8 !important;
}

/* Reactions Badge attached cleanly at bottom corner */
.reactions-badge-container {
  position: absolute !important;
  bottom: -9px !important;
  right: 8px !important;
  display: flex !important;
  gap: 2px !important;
  z-index: 2 !important;
}

.reaction-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
  font-size: 12px !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

[data-theme="dark"] .reaction-pill,
.dark .reaction-pill,
.dark-mode .reaction-pill {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}


/* Zero-Flicker Auth Screen Hide Rule */
html.has-auth-session #loginScreen,
.has-auth-session #loginScreen {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Strict Hidden Override for Modals */
.modal-overlay.hidden,
#loginScreen.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}








/* ==========================================================================
   NAMASTECHAT 2026 ULTRA-PREMIUM UI/UX DESIGN SYSTEM (PIXEL-PERFECT)
   ========================================================================== */

:root {
  --nc-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nc-font-display: 'Outfit', sans-serif;
  
  --nc-primary: #0284C7;
  --nc-primary-hover: #0369a1;
  --nc-primary-glow: rgba(2, 132, 199, 0.22);
  --nc-primary-light: rgba(2, 132, 199, 0.1);
  
  --nc-bg-body: #ffffff;
  --nc-bg-rail: #ffffff;
  --nc-bg-sidebar: #ffffff;
  --nc-bg-chat: #efeae2;
  --nc-bg-welcome: #F8FBFF;
  --nc-bg-card: #ffffff;
  --nc-bg-input: #f1f5f9;
  
  --nc-border: #e2e8f0;
  --nc-border-subtle: #f1f5f9;
  
  --nc-text-main: #111b21;
  --nc-text-sub: #64748b;
  --nc-text-muted: #94a3b8;
  
  --nc-bubble-sent: #0284C7;
  --nc-bubble-sent-text: #ffffff;
  --nc-bubble-received: #ffffff;
  --nc-bubble-received-text: #111b21;
  
  --nc-radius-sm: 8px;
  --nc-radius-md: 12px;
  --nc-radius-lg: 16px;
  --nc-radius-xl: 20px;
}

[data-theme="dark"], .dark, .dark-mode {
  --nc-bg-body: #0b141a;
  --nc-bg-rail: #111b21;
  --nc-bg-sidebar: #111b21;
  --nc-bg-chat: #0b141a;
  --nc-bg-welcome: #070d14;
  --nc-bg-card: #152331;
  --nc-bg-input: #202c33;
  
  --nc-border: rgba(255, 255, 255, 0.08);
  --nc-border-subtle: rgba(255, 255, 255, 0.04);
  
  --nc-text-main: #f1f5f9;
  --nc-text-sub: #94a3b8;
  --nc-text-muted: #64748b;
  
  --nc-bubble-received: #202c33;
  --nc-bubble-received-text: #f1f5f9;
}

/* Base resets & typography */
body, button, input, select, textarea {
  font-family: var(--nc-font-main) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-title, .welcome-heading {
  font-family: var(--nc-font-display) !important;
}

/* ==========================================================================
   1. APP LAYOUT (3-COLUMN: 72px Rail, 450px Sidebar, Flex Chat Area)
   ========================================================================== */
.app-container {
  display: flex !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: var(--nc-bg-body) !important;
}

/* ==========================================================================
   2. LEFT NAVIGATION RAIL (72px) (DESKTOP ONLY)
   ========================================================================== */
@media (min-width: 769px) {
  .sidebar-rail {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 100vh !important;
    background: var(--nc-bg-rail) !important;
    border-right: 1px solid var(--nc-border) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
  }
}

.rail-top, .rail-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.rail-brand-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.rail-brand-logo:hover {
  transform: scale(1.06) !important;
}

.rail-brand-logo:focus-visible {
  outline: 2px solid #0284c7 !important;
  outline-offset: 2px !important;
}

.rail-app-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px var(--nc-primary-glow) !important;
}

.rail-nav-btn {
  position: relative !important;
  width: 58px !important;
  padding: 8px 4px 6px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: var(--nc-text-sub) !important;
}

.rail-nav-btn svg {
  color: var(--nc-text-sub) !important;
  transition: all 0.18s ease !important;
}

.rail-btn-label {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: var(--nc-text-sub) !important;
  transition: all 0.18s ease !important;
}

.rail-nav-btn:hover {
  background: var(--nc-primary-light) !important;
  transform: translateY(-1px) !important;
}

.rail-nav-btn:hover svg,
.rail-nav-btn:hover .rail-btn-label {
  color: var(--nc-primary) !important;
}

.rail-nav-btn.active {
  background: var(--nc-primary-light) !important;
}

.rail-nav-btn.active svg,
.rail-nav-btn.active .rail-btn-label {
  color: var(--nc-primary) !important;
  font-weight: 700 !important;
}

.rail-active-indicator {
  position: absolute !important;
  left: -7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3.5px !important;
  height: 24px !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--nc-primary) !important;
  display: none !important;
}

.rail-nav-btn.active .rail-active-indicator {
  display: block !important;
}

.rail-profile-wrap {
  position: relative !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 50% !important;
  transition: transform 0.2s ease !important;
}

.rail-profile-wrap:hover {
  transform: scale(1.06) !important;
}

.rail-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.online-status-dot {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  border: 2px solid #ffffff !important;
}

/* ==========================================================================
   3. CHAT SIDEBAR (450px) (DESKTOP ONLY)
   ========================================================================== */
@media (min-width: 769px) {
  .sidebar-main-pane {
    width: 450px !important;
    min-width: 450px !important;
    max-width: 450px !important;
    height: 100vh !important;
    background: var(--nc-bg-sidebar) !important;
    border-right: 1px solid var(--nc-border) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
  }
}

.pane-header {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--nc-bg-sidebar) !important;
  border-bottom: 1px solid var(--nc-border-subtle) !important;
}

.pane-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--nc-primary) !important;
  letter-spacing: -0.02em !important;
}

.pane-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.header-circle-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: none !important;
  color: var(--nc-text-sub) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

.header-circle-btn:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: var(--nc-primary) !important;
}

/* 4. Search Box */
.search-section {
  padding: 10px 18px 8px !important;
}

.search-input-box {
  position: relative !important;
  height: 44px !important;
  background: var(--nc-bg-input) !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  gap: 10px !important;
  transition: all 0.18s ease !important;
}

.search-input-box:focus-within {
  border-color: var(--nc-primary) !important;
  box-shadow: 0 0 0 3px var(--nc-primary-glow) !important;
  background: #ffffff !important;
}

.search-lens-icon {
  color: var(--nc-text-muted) !important;
  display: flex !important;
  align-items: center !important;
}

.search-input-box input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: var(--nc-text-main) !important;
  outline: none !important;
}

.search-shortcut-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--nc-text-muted) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  border: 1px solid var(--nc-border) !important;
}

/* 5. Filter Chips */
.filter-chips-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 18px 12px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.filter-chip {
  padding: 6px 14px !important;
  border-radius: 20px !important;
  background: var(--nc-bg-input) !important;
  border: 1px solid var(--nc-border) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--nc-text-sub) !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  white-space: nowrap !important;
}

.filter-chip:hover {
  background: #e2e8f0 !important;
  color: var(--nc-text-main) !important;
}

.filter-chip.active {
  background: var(--nc-primary) !important;
  color: #ffffff !important;
  border-color: var(--nc-primary) !important;
  box-shadow: 0 2px 8px var(--nc-primary-glow) !important;
}

.filter-chip-icon-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--nc-text-muted) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.filter-chip-icon-btn:hover {
  background: var(--nc-bg-input) !important;
  color: var(--nc-text-main) !important;
}

/* 6. Archived Row */
.archived-row-banner {
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  border-bottom: 1px solid var(--nc-border-subtle) !important;
  transition: background 0.15s ease !important;
}

.archived-row-banner:hover {
  background: var(--nc-bg-input) !important;
}

.archived-left-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--nc-text-main) !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
}

.archived-pill-badge {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

/* 7. Chat Contact List Item (76px Row) */
.chat-card-item, .chat-item, .contact-item {
  height: 76px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  cursor: pointer !important;
  border-bottom: 1px solid var(--nc-border-subtle) !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  position: relative !important;
}

.chat-card-item:hover, .chat-item:hover, .contact-item:hover {
  background: rgba(2, 132, 199, 0.04) !important;
}

.chat-card-item.active, .chat-item.active {
  background: rgba(2, 132, 199, 0.08) !important;
}

.chat-card-item.active::before, .chat-item.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  background: var(--nc-primary) !important;
  border-radius: 0 4px 4px 0 !important;
}

.chat-avatar-wrap .avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;
}

.chat-info-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 4px !important;
}

.chat-name-title {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main) !important;
}

.chat-time-meta {
  font-size: 12px !important;
  color: var(--nc-text-muted) !important;
}

.chat-preview-text {
  font-size: 13.5px !important;
  color: var(--nc-text-sub) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.unread-count-badge {
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 10px !important;
  background: var(--nc-primary) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px var(--nc-primary-glow) !important;
}

/* ==========================================================================
   8. MAIN CHAT / WELCOME SCREEN (2026 3-CARD DESIGN) (DESKTOP ONLY)
   ========================================================================== */
@media (min-width: 769px) {
  .chat-area {
    flex: 1 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: var(--nc-bg-welcome) !important;
  }
}

.empty-chat-welcome {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px !important;
  position: relative !important;
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.05) 0%, transparent 70%), #F8FBFF !important;
}

[data-theme="dark"] .empty-chat-welcome {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.08) 0%, transparent 70%), #070d14 !important;
}

/* Top Right Utility Controls */
.welcome-top-controls {
  position: absolute !important;
  top: 20px !important;
  right: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 10 !important;
}

.welcome-util-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid var(--nc-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--nc-text-sub) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.18s ease !important;
}

.welcome-util-btn:hover {
  background: var(--nc-primary-light) !important;
  color: var(--nc-primary) !important;
  border-color: var(--nc-primary) !important;
  transform: translateY(-1px) !important;
}

.welcome-profile-badge {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 8px 3px 3px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid var(--nc-border) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  transition: all 0.18s ease !important;
}

.welcome-profile-badge:hover {
  border-color: var(--nc-primary) !important;
}

.welcome-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.welcome-online-dot {
  position: absolute !important;
  bottom: 4px !important;
  left: 24px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  border: 1.5px solid #ffffff !important;
}

.welcome-chevron {
  font-size: 11px !important;
  color: var(--nc-text-muted) !important;
}

/* Centered Welcome Card Container */
.welcome-card-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 640px !important;
  width: 100% !important;
}

.welcome-logo-badge {
  width: 84px !important;
  height: 84px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid var(--nc-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
  box-shadow: 0 16px 36px var(--nc-primary-glow) !important;
}

.welcome-logo-img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}

.welcome-heading {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--nc-text-main) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 10px !important;
}

.brand-blue-gradient {
  color: var(--nc-primary) !important;
}

.welcome-subtext {
  font-size: 14.5px !important;
  color: var(--nc-text-sub) !important;
  line-height: 1.6 !important;
  max-width: 480px !important;
  margin-bottom: 32px !important;
}

/* 3 Interactive Action Cards */
.welcome-cards-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  margin-bottom: 32px !important;
}

.welcome-feature-card {
  flex: 1 !important;
  max-width: 190px !important;
  padding: 24px 16px 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--nc-border) !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.welcome-feature-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--nc-primary) !important;
  box-shadow: 0 12px 28px var(--nc-primary-glow) !important;
}

.feature-card-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 14px !important;
}

.blue-icon-glow {
  background: rgba(2, 132, 199, 0.1) !important;
}

.green-icon-glow {
  background: rgba(16, 185, 129, 0.1) !important;
}

.purple-icon-glow {
  background: rgba(139, 92, 246, 0.1) !important;
}

.feature-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main) !important;
  margin-bottom: 4px !important;
}

.feature-card-desc {
  font-size: 12px !important;
  color: var(--nc-text-sub) !important;
  line-height: 1.4 !important;
}

/* Security Lock Pill */
.welcome-security-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--nc-border) !important;
  font-size: 13px !important;
  color: var(--nc-text-sub) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.security-lock-icon {
  color: var(--nc-primary) !important;
  display: flex !important;
  align-items: center !important;
}

.security-accent-text {
  color: var(--nc-primary) !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   9. ACTIVE CHAT PANE (HEADER, FEED, COMPOSER) (DESKTOP ONLY)
   ========================================================================== */
@media (min-width: 769px) {
  .active-chat-wrapper {
    flex: 1 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--nc-bg-chat) !important;
  }
}

.chat-header {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--nc-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.chat-header-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
}

.chat-header-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main) !important;
}

.chat-header-subtitle {
  font-size: 12.5px !important;
  color: #10b981 !important;
}

.chat-header-controls {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.messages-feed-box {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.message-composer-bar {
  min-height: 64px !important;
  padding: 10px 20px !important;
  background: #ffffff !important;
  border-top: 1px solid var(--nc-border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.composer-input-wrapper {
  flex: 1 !important;
  height: 44px !important;
  background: var(--nc-bg-input) !important;
  border-radius: 12px !important;
  border: 1px solid var(--nc-border) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
}

.composer-input-wrapper input {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  font-size: 14.5px !important;
  color: var(--nc-text-main) !important;
  outline: none !important;
}

.composer-send-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: var(--nc-primary) !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px var(--nc-primary-glow) !important;
  transition: all 0.16s ease !important;
}

.composer-send-btn:hover {
  background: var(--nc-primary-hover) !important;
  transform: scale(1.04) !important;
}


/* ==========================================================================
   SEAMLESS ZERO-DIVIDER CHAT LIST (100% CLEAN 2026 WHITESPACE-BASED)
   ========================================================================== */

/* 1. Chat List Continuous Surface Container */
.chat-cards-list,
#usersList,
.chat-list-container,
#newChatContactsList {
  background: #ffffff !important;
  padding: 4px 8px !important;
  border: none !important;
  overflow-y: auto !important;
}

[data-theme="dark"] .chat-cards-list,
[data-theme="dark"] #usersList,
[data-theme="dark"] .chat-list-container,
[data-theme="dark"] #newChatContactsList {
  background: #111b21 !important;
}

/* 2. Archived Row (Rounded Card without Separator Lines) */
.archived-row-banner,
#archivedBannerRow {
  margin: 6px 8px 4px 8px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #F8FAFC !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.archived-row-banner:hover,
#archivedBannerRow:hover {
  background: #F1F5F9 !important;
}

[data-theme="dark"] .archived-row-banner,
[data-theme="dark"] #archivedBannerRow {
  background: #152331 !important;
}

[data-theme="dark"] .archived-row-banner:hover,
[data-theme="dark"] #archivedBannerRow:hover {
  background: #1a2c3d !important;
}

/* 3. Individual Conversation Rows (NO Horizontal Separator Lines) */
.chat-card-item,
.chat-item,
.contact-item,
.user-card-item,
#usersList > div {
  min-height: 72px !important;
  height: 74px !important;
  padding: 10px 14px !important;
  margin: 2px 0 !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-radius: 12px !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  cursor: pointer !important;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

/* Hover State */
.chat-card-item:hover,
.chat-item:hover,
.contact-item:hover,
.user-card-item:hover,
#usersList > div:hover {
  background: #F3F8FC !important;
  border-radius: 12px !important;
  border: none !important;
  border-bottom: none !important;
}

[data-theme="dark"] .chat-card-item:hover,
[data-theme="dark"] .chat-item:hover,
[data-theme="dark"] .contact-item:hover,
[data-theme="dark"] .user-card-item:hover,
[data-theme="dark"] #usersList > div:hover {
  background: #182838 !important;
}

/* Selected / Active Conversation State */
.chat-card-item.active,
.chat-item.active,
.contact-item.active,
.user-card-item.active,
#usersList > div.active {
  background: #EAF5FC !important;
  border-radius: 12px !important;
  border: none !important;
  border-bottom: none !important;
}

[data-theme="dark"] .chat-card-item.active,
[data-theme="dark"] .chat-item.active,
[data-theme="dark"] .contact-item.active,
[data-theme="dark"] .user-card-item.active,
[data-theme="dark"] #usersList > div.active {
  background: #1e354a !important;
}

/* Remove any pseudo-element vertical bars that look like dividers */
.chat-card-item::before,
.chat-item::before,
.contact-item::before,
.chat-card-item::after,
.chat-item::after,
.contact-item::after {
  display: none !important;
}


/* ==========================================================================
   DEFINITIVE ZERO-DIVIDER CHAT LIST (STRICTLY NO HORIZONTAL LINES)
   ========================================================================== */
.chat-cards-list,
#usersList,
.chat-list-container,
#newChatContactsList {
  background: #ffffff !important;
  padding: 6px 8px !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
}

.user-item,
.chat-card-item,
.chat-item,
.contact-item,
#usersList > div {
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  min-height: 72px !important;
  height: 74px !important;
  padding: 10px 14px !important;
  margin: 2px 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  background-color: transparent !important;
}

:root:not([data-theme="dark"]) .user-item:hover,
:root:not([data-theme="dark"]) .chat-card-item:hover,
:root:not([data-theme="dark"]) .chat-item:hover,
:root:not([data-theme="dark"]) .contact-item:hover,
:root:not([data-theme="dark"]) #usersList > div:hover {
  background: #F3F8FC !important;
  background-color: #F3F8FC !important;
  border-radius: 12px !important;
  border: none !important;
  border-bottom: none !important;
}

:root:not([data-theme="dark"]) .user-item.active,
:root:not([data-theme="dark"]) .chat-card-item.active,
:root:not([data-theme="dark"]) .chat-item.active,
:root:not([data-theme="dark"]) .contact-item.active,
:root:not([data-theme="dark"]) #usersList > div.active {
  background: #EAF5FC !important;
  background-color: #EAF5FC !important;
  border-radius: 12px !important;
  border: none !important;
  border-bottom: none !important;
}

.archived-row-banner,
#archivedBannerRow {
  margin: 6px 8px 4px 8px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #F8FAFC !important;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
}

.archived-row-banner:hover,
#archivedBannerRow:hover {
  background: #F1F5F9 !important;
}

/* Remove all pseudo dividers */
.user-item::before, .user-item::after,
.chat-card-item::before, .chat-card-item::after,
.chat-item::before, .chat-item::after,
.contact-item::before, .contact-item::after {
  display: none !important;
  content: none !important;
}


/* ==========================================================================
   POWER TOOLS / ADVANCED ACTIONS 3-DOT MENU STYLES
   ========================================================================== */

.power-tools-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 12px !important;
  width: 290px !important;
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 16px !important;
  padding: 8px 6px !important;
  box-shadow: 0 12px 32px rgba(15, 45, 70, 0.12) !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  transform-origin: top right !important;
  animation: powerMenuOpen 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.power-tools-dropdown.hidden {
  display: none !important;
}

@keyframes powerMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-theme="dark"] .power-tools-dropdown {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

.menu-group-header {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #8A9AAA !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 6px 10px 2px 10px !important;
  user-select: none !important;
}

.power-tool-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 42px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  color: var(--nc-text-main) !important;
  font-size: 13.8px !important;
  font-weight: 500 !important;
  width: 100% !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.power-tool-item .item-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.power-tool-item svg {
  color: #64748b !important;
  transition: color 0.15s ease !important;
}

.power-tool-item:hover {
  background: #F3F8FC !important;
  color: #0284C7 !important;
}

.power-tool-item:hover svg {
  color: #0284C7 !important;
}

[data-theme="dark"] .power-tool-item:hover {
  background: #1c3247 !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .power-tool-item:hover svg {
  color: #38bdf8 !important;
}

.menu-status-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  background: #F1F5F9 !important;
  color: #64748b !important;
}

.menu-status-pill.active-on {
  background: rgba(2, 132, 199, 0.14) !important;
  color: #0284c7 !important;
}

.menu-status-badge {
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 6px !important;
  border-radius: 9px !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dropdown-divider {
  height: 1px !important;
  background: #F1F5F9 !important;
  margin: 4px 6px !important;
}

[data-theme="dark"] .dropdown-divider {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* 3-Dot Button active hover interaction */
#sidebarMenuBtn:hover {
  background: #F0F7FB !important;
  border-radius: 10px !important;
}

#sidebarMenuBtn.active {
  background: #E6F4FB !important;
  color: #0284C7 !important;
}

/* Shortcuts KBD styling */
.shortcut-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: #e2e8f0 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="dark"] .shortcut-kbd {
  background: #202c33 !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   OFFICE PRIVACY MODE (ANTI-PEEP ACTIVE BLUR ENGINE)
   ========================================================================== */
.privacy-mode-active .chat-name-title,
.privacy-mode-active .chat-title-text,
.privacy-mode-active .chat-preview-text,
.privacy-mode-active .chat-avatar-wrap .avatar,
.privacy-mode-active .user-item .avatar,
.privacy-mode-active .chat-header-title,
.privacy-mode-active .message-text-content,
.privacy-mode-active .message-bubble span {
  filter: blur(5px) !important;
  transition: filter 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Reveal sensitive content on intentional hover */
.privacy-mode-active .user-item:hover .chat-title-text,
.privacy-mode-active .user-item:hover .chat-preview-text,
.privacy-mode-active .user-item:hover .avatar,
.privacy-mode-active .chat-header-user:hover .chat-header-title,
.privacy-mode-active .message:hover .message-text-content,
.privacy-mode-active .message:hover .message-bubble span {
  filter: blur(0px) !important;
}


/* ==========================================================================
   2026 LUXURY EDIT PROFILE DRAWER STYLING (PIXEL-PERFECT)
   ========================================================================== */

.profile-drawer-header {
  height: 68px !important;
  min-height: 68px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
}

[data-theme="dark"] .profile-drawer-header {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.profile-back-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #F4F8FC !important;
  border: 1px solid #E7EEF5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.profile-back-btn:hover {
  background: #EAF5FC !important;
  color: #0284C7 !important;
  border-color: #0284C7 !important;
}

[data-theme="dark"] .profile-back-btn {
  background: #1c3247 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

.profile-header-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.profile-header-subtitle {
  font-size: 12.5px !important;
  color: #64748B !important;
  display: block !important;
  margin-top: 2px !important;
}

.profile-hero-card {
  background: #F8FBFF !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 16px !important;
  padding: 22px 16px 18px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
}

[data-theme="dark"] .profile-hero-card {
  background: #111e2b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.profile-avatar-center-wrap {
  position: relative !important;
}

.large-avatar-wrapper {
  position: relative !important;
  width: 140px !important;
  height: 140px !important;
  margin: 0 auto !important;
}

.large-profile-avatar {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  object-fit: cover !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18) !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .large-profile-avatar {
  border-color: #142433 !important;
}

.floating-camera-btn {
  position: absolute !important;
  bottom: 0px !important;
  right: 0px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border: 3.5px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 15 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.floating-camera-btn svg {
  stroke: #ffffff !important;
}

.floating-camera-btn:hover {
  transform: scale(1.1) !important;
  background: linear-gradient(135deg, #0369a1, #0284c7) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6) !important;
}

[data-theme="dark"] .floating-camera-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: #111e2b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.profile-hero-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
}

.profile-hero-title {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main) !important;
}

.profile-hero-subtitle {
  font-size: 12px !important;
  color: #64748B !important;
}

/* Profile Information Cards */
.profile-card-box {
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  min-height: 82px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.profile-card-box:hover {
  border-color: rgba(2, 132, 199, 0.35) !important;
}

[data-theme="dark"] .profile-card-box {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.profile-card-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.profile-card-icon-wrap {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: #EFF7FD !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #0284c7 !important;
}

[data-theme="dark"] .profile-card-icon-wrap {
  background: #1c3247 !important;
}

.profile-card-text-wrap {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.profile-card-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.profile-card-value {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.profile-card-subtext {
  font-size: 12px !important;
  color: #94a3b8 !important;
}

.profile-card-action-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #F4F8FC !important;
  border: 1px solid #E7EEF5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #0284c7 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.profile-card-action-btn:hover {
  background: #EAF5FC !important;
  transform: scale(1.06) !important;
}

[data-theme="dark"] .profile-card-action-btn {
  background: #1c3247 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Inline Edit Boxes */
.profile-card-edit-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.profile-card-input {
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid #0284C7 !important;
  padding: 0 12px !important;
  font-size: 14.5px !important;
  outline: none !important;
  background: #ffffff !important;
  color: var(--nc-text-main) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .profile-card-input {
  background: #1c3247 !important;
  color: #f1f5f9 !important;
}

.profile-inline-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.profile-btn-cancel {
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.profile-btn-save {
  padding: 6px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  background: #0284C7 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

/* Security Notice */
.profile-security-notice {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

[data-theme="dark"] .profile-security-notice {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.notice-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: #EFF7FD !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.notice-text {
  flex: 1 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.notice-text strong {
  display: block !important;
  color: var(--nc-text-main) !important;
  font-weight: 600 !important;
}

.notice-text p {
  color: #64748B !important;
  margin: 0 !important;
}


/* ==========================================================================
   PERFECT PROFILE CARD LAYOUT FIX (NO CUTOFFS, NO EXTRA SPACING, STRICT HIDDEN)
   ========================================================================== */

.profile-card-box {
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  min-height: unset !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
  position: relative !important;
}

.profile-card-box:hover {
  border-color: rgba(2, 132, 199, 0.4) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.06) !important;
}

[data-theme="dark"] .profile-card-box {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.profile-card-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.profile-card-content.hidden {
  display: none !important;
}

.profile-card-edit-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 2px 0 !important;
}

.profile-card-edit-box.hidden {
  display: none !important;
}

.profile-card-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  background: #EFF7FD !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #0284c7 !important;
}

[data-theme="dark"] .profile-card-icon-wrap {
  background: #1c3247 !important;
}

.profile-card-text-wrap {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
}

.profile-card-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.profile-card-value {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main) !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.profile-card-subtext {
  font-size: 12px !important;
  color: #8696A0 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.profile-card-action-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  background: #F4F8FC !important;
  border: 1px solid #E7EEF5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #0284c7 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.profile-card-action-btn:hover {
  background: #EAF5FC !important;
  border-color: #0284c7 !important;
  transform: scale(1.05) !important;
}

/* Avatar Centering & Typography */
.large-profile-avatar {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18) !important;
  font-size: 56px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  user-select: none !important;
}


/* ==========================================================================
   STRICT VIEWPORT TOGGLE FIX (#emptyChat vs #activeChat FULL HEIGHT)
   ========================================================================== */

#emptyChat.hidden,
.empty-chat-welcome.hidden,
#activeChat.hidden,
.active-chat-wrapper.hidden,
.sidebar-view-pane.hidden,
.modal-overlay.hidden,
.header-dropdown-menu.hidden {
  display: none !important;
}

#emptyChat:not(.hidden),
.empty-chat-welcome:not(.hidden) {
  display: flex !important;
  flex: 1 !important;
  width: 100% !important;
  height: 100vh !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

#activeChat:not(.hidden),
.active-chat-wrapper:not(.hidden) {
  display: flex !important;
  flex: 1 !important;
  width: 100% !important;
  height: 100vh !important;
  flex-direction: column !important;
  position: relative !important;
  background: var(--nc-bg-chat) !important;
  overflow: hidden !important;
}

#activeChat .chat-header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  order: 1 !important;
  position: relative !important;
  top: 0 !important;
  z-index: 10 !important;
}

#activeChat #messages,
#activeChat .messages-feed-box {
  flex: 1 !important;
  width: 100% !important;
  height: auto !important;
  overflow-y: auto !important;
  order: 2 !important;
}

#activeChat #messageForm,
#activeChat .message-composer-bar {
  min-height: 64px !important;
  max-height: 120px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  order: 3 !important;
  position: relative !important;
  bottom: 0 !important;
  z-index: 10 !important;
}


/* ==========================================================================
   2026 LUXURY CONTACT INFO CONTROL CENTER STYLING (DESKTOP ONLY)
   ========================================================================== */
@media (min-width: 769px) {
  .contact-info-drawer {
    width: 440px !important;
    min-width: 440px !important;
    max-width: 480px !important;
    height: 100vh !important;
    background: #F8FBFD !important;
    border-left: 1px solid #E7EEF5 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 50 !important;
    box-shadow: -4px 0 24px rgba(15, 45, 70, 0.05) !important;
  }
}

.contact-info-drawer.hidden {
  display: none !important;
}

[data-theme="dark"] .contact-info-drawer {
  background: #0f1a24 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.contact-info-header {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
}

[data-theme="dark"] .contact-info-header {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.contact-info-close-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748B !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.contact-info-close-btn:hover {
  background: #F1F5F9 !important;
  color: var(--nc-text-main) !important;
}

.contact-info-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main) !important;
  margin: 0 !important;
}

.contact-info-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* Contact Hero Section */
.contact-hero-card {
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 16px !important;
  padding: 22px 16px 18px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
}

[data-theme="dark"] .contact-hero-card {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.contact-hero-avatar-wrap {
  position: relative !important;
  margin-bottom: 6px !important;
}

.contact-hero-avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.18) !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  object-fit: cover !important;
}

.contact-hero-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.contact-hero-phone {
  font-size: 13.5px !important;
  color: #64748B !important;
  margin: 0 !important;
}

.contact-hero-status {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: #059669 !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
}

.status-indicator-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
}

/* Quick Action 4-Grid */
.contact-quick-actions-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
}

.quick-action-pill-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 4px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  color: #475569 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.quick-action-pill-btn:hover {
  background: #EAF6FC !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="dark"] .quick-action-pill-btn {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .quick-action-pill-btn:hover {
  background: #1c3247 !important;
  color: #38bdf8 !important;
}

.quick-icon-box {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: #F4F8FC !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0284C7 !important;
  transition: all 0.15s ease !important;
}

[data-theme="dark"] .quick-icon-box {
  background: #1c3247 !important;
  color: #38bdf8 !important;
}

/* Contact Info Cards & Rows */
.contact-info-card {
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.contact-info-card:hover {
  border-color: rgba(2, 132, 199, 0.3) !important;
}

[data-theme="dark"] .contact-info-card {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.info-card-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0284C7 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.info-card-value {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main) !important;
  line-height: 1.4 !important;
}

.info-row-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.info-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.info-row-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--nc-text-main) !important;
}

.info-row-right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.info-count-badge {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #64748B !important;
  background: #F1F5F9 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

.info-pill-badge {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #64748B !important;
}

/* Danger / Destructive Actions */
.danger-card {
  border-color: rgba(239, 68, 68, 0.2) !important;
  background: #FFFDFD !important;
}

[data-theme="dark"] .danger-card {
  background: #191c20 !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.contact-danger-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 4px !important;
  border: none !important;
  background: transparent !important;
  color: #ef4444 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
  width: 100% !important;
}

.contact-danger-btn:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  padding-left: 8px !important;
}

.toggle-switch-compact {
  position: relative !important;
  display: inline-block !important;
  width: 38px !important;
  height: 22px !important;
}

.toggle-switch-compact input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.toggle-slider-compact {
  position: absolute !important;
  cursor: pointer !important;
  inset: 0 !important;
  background-color: #cbd5e1 !important;
  transition: 0.2s !important;
  border-radius: 22px !important;
}

.toggle-slider-compact:before {
  position: absolute !important;
  content: "" !important;
  height: 16px !important;
  width: 16px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: white !important;
  transition: 0.2s !important;
  border-radius: 50% !important;
}

input:checked + .toggle-slider-compact {
  background-color: #0284c7 !important;
}

input:checked + .toggle-slider-compact:before {
  transform: translateX(16px) !important;
}


/* ==========================================================================
   4-COLUMN DESKTOP LAYOUT (RAIL + SIDEBAR + ACTIVE CHAT + RIGHT CONTACT INFO)
   ========================================================================== */
@media (min-width: 769px) {
  .chat-area {
    flex: 1 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: row !important;
    position: relative !important;
    background: var(--nc-bg-chat) !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }

  #emptyChat:not(.hidden) {
    display: flex !important;
    flex: 1 !important;
    height: 100vh !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.05) 0%, transparent 70%), #F8FBFF !important;
  }

  #activeChat:not(.hidden) {
    display: flex !important;
    flex: 1 !important;
    min-width: 0 !important;
    height: 100vh !important;
    flex-direction: column !important;
    position: relative !important;
    background: var(--nc-bg-chat) !important;
    overflow: hidden !important;
  }

  /* Contact Info Panel sits neatly on the RIGHT side (500-540px Control Center, recommended 520px) */
  .contact-info-drawer {
    width: 520px !important;
    min-width: 480px !important;
    max-width: 540px !important;
    height: 100vh !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-left: 1px solid #E7EEF5 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 20 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.04) !important;
  }
}

.contact-info-drawer.hidden {
  display: none !important;
}

[data-theme="dark"] .contact-info-drawer {
  background: #111b21 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}


/* ==========================================================================
   PER-CHAT PRIVACY MODE (SCOPED STRICTLY TO THE ACTIVE CONVERSATION)
   ========================================================================== */

#activeChat.chat-privacy-blur-active .chat-header-title,
#activeChat.chat-privacy-blur-active #chatAvatar,
#activeChat.chat-privacy-blur-active .message-text-content,
#activeChat.chat-privacy-blur-active .message-bubble span,
#activeChat.chat-privacy-blur-active .message-media-bubble,
#activeChat.chat-privacy-blur-active .message-bubble img,
#activeChat.chat-privacy-blur-active .chat-preview-text {
  filter: blur(6px) !important;
  transition: filter 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Reveal sensitive content on intentional mouse hover */
#activeChat.chat-privacy-blur-active #chatHeaderInfo:hover .chat-header-title,
#activeChat.chat-privacy-blur-active #chatHeaderInfo:hover #chatAvatar,
#activeChat.chat-privacy-blur-active .message:hover .message-text-content,
#activeChat.chat-privacy-blur-active .message:hover .message-bubble span,
#activeChat.chat-privacy-blur-active .message:hover .message-media-bubble,
#activeChat.chat-privacy-blur-active .message:hover .message-bubble img {
  filter: blur(0px) !important;
}


/* ==========================================================================
   CHAT HEADER 3-DOT DROPDOWN MENU STYLING
   ========================================================================== */

.chat-header-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  width: 250px !important;
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 14px !important;
  padding: 6px !important;
  box-shadow: 0 12px 32px rgba(15, 45, 70, 0.12) !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  transform-origin: top right !important;
  animation: powerMenuOpen 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.chat-header-dropdown.hidden {
  display: none !important;
}

[data-theme="dark"] .chat-header-dropdown {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}


/* ==========================================================================
   COMPLETE DARK / LIGHT CHAT VIEWPORT THEME HARMONIZATION
   ========================================================================== */

/* LIGHT MODE DEFAULTS */
.chat-header {
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
}

.chat-header-title {
  color: #0F172A !important;
}

.chat-header-subtitle {
  color: #64748B !important;
}

.header-circle-btn {
  color: #64748B !important;
}

.header-circle-btn:hover {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
}

.messages-feed-box {
  background-color: #F8FBFE !important;
  background-image: radial-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}

.message-composer-bar {
  background: #ffffff !important;
  border-top: 1px solid #E7EEF5 !important;
}

.composer-input-wrapper input {
  background: #F4F8FC !important;
  color: #0F172A !important;
  border: 1px solid #E2E8F0 !important;
}

/* --------------------------------------------------------------------------
   DARK MODE OVERRIDES ([data-theme="dark"])
   -------------------------------------------------------------------------- */

[data-theme="dark"] .chat-header {
  background: #142433 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .chat-header-title {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .chat-header-subtitle {
  color: #94A3B8 !important;
}

[data-theme="dark"] .header-circle-btn {
  color: #94A3B8 !important;
}

[data-theme="dark"] .header-circle-btn:hover {
  background: #1c2834 !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .messages-feed-box {
  background-color: #0B141B !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}

[data-theme="dark"] .message-composer-bar {
  background: #142433 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .composer-input-wrapper input {
  background: #1c2834 !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .message.incoming .message-bubble {
  background: #1c2834 !important;
  color: #F1F5F9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .call-log-bubble {
  background: #1c2834 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}


/* ==========================================================================
   PERFECT FLAWLESS DUAL THEME SYSTEM (100% COHESIVE LIGHT & DARK)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. LIGHT MODE (DEFAULT / :root:not([data-theme="dark"]))
   -------------------------------------------------------------------------- */
:root:not([data-theme="dark"]) body,
:root:not([data-theme="dark"]) .app-container {
  background: #ffffff !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .sidebar-rail {
  background: #ffffff !important;
  border-right: 1px solid #E7EEF5 !important;
}

:root:not([data-theme="dark"]) .sidebar-main-pane,
:root:not([data-theme="dark"]) .sidebar-view-pane,
:root:not([data-theme="dark"]) .chat-cards-list,
:root:not([data-theme="dark"]) #usersList {
  background: #ffffff !important;
}

:root:not([data-theme="dark"]) .pane-header {
  background: #ffffff !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

:root:not([data-theme="dark"]) .empty-chat-welcome,
:root:not([data-theme="dark"]) #emptyChat {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.06) 0%, transparent 70%), #F8FBFF !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .welcome-action-card {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 16px rgba(15, 45, 70, 0.04) !important;
}

:root:not([data-theme="dark"]) .welcome-action-card:hover {
  background: #F8FAFC !important;
  border-color: #0284C7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12) !important;
}

:root:not([data-theme="dark"]) .welcome-action-card .action-card-title {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .welcome-action-card .action-card-desc {
  color: #64748B !important;
}

:root:not([data-theme="dark"]) .welcome-heading {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .welcome-subheading {
  color: #64748B !important;
}

:root:not([data-theme="dark"]) .welcome-e2ee-badge {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
}

:root:not([data-theme="dark"]) .chat-header {
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
}

:root:not([data-theme="dark"]) .chat-header-title {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .chat-header-subtitle {
  color: #64748B !important;
}

:root:not([data-theme="dark"]) .header-circle-btn {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .header-circle-btn:hover {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
}

:root:not([data-theme="dark"]) .messages-feed-box {
  background-color: #F8FBFE !important;
  background-image: radial-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px) !important;
}

:root:not([data-theme="dark"]) .message-composer-bar {
  background: #ffffff !important;
  border-top: 1px solid #E7EEF5 !important;
}

:root:not([data-theme="dark"]) .composer-input-wrapper input {
  background: #F4F8FC !important;
  color: #0F172A !important;
  border: 1px solid #E2E8F0 !important;
}

/* --------------------------------------------------------------------------
   B. DARK MODE ([data-theme="dark"])
   -------------------------------------------------------------------------- */
[data-theme="dark"] body,
[data-theme="dark"] .app-container {
  background: #0B141B !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .sidebar-rail {
  background: #0B141B !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .sidebar-main-pane,
[data-theme="dark"] .sidebar-view-pane,
[data-theme="dark"] .chat-cards-list,
[data-theme="dark"] #usersList {
  background: #111B21 !important;
}

[data-theme="dark"] .pane-header {
  background: #111B21 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .empty-chat-welcome,
[data-theme="dark"] #emptyChat {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.1) 0%, transparent 70%), #0B141B !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .welcome-action-card {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .welcome-action-card:hover {
  background: #182C3F !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.2) !important;
}

[data-theme="dark"] .welcome-action-card .action-card-title {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .welcome-action-card .action-card-desc {
  color: #94A3B8 !important;
}

[data-theme="dark"] .welcome-heading {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .welcome-subheading {
  color: #94A3B8 !important;
}

[data-theme="dark"] .welcome-e2ee-badge {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}

[data-theme="dark"] .chat-header {
  background: #142433 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .chat-header-title {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .chat-header-subtitle {
  color: #94A3B8 !important;
}

[data-theme="dark"] .header-circle-btn {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .header-circle-btn:hover {
  background: #1c2834 !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .messages-feed-box {
  background-color: #0B141B !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
}

[data-theme="dark"] .message-composer-bar {
  background: #142433 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .composer-input-wrapper input {
  background: #1c2834 !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .message.incoming .message-bubble {
  background: #1c2834 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .call-log-bubble {
  background: #1c2834 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}


/* ==========================================================================
   NAMASTECHAT 2026 ULTIMATE MASTER THEME ENGINE (COMPREHENSIVE DUAL THEME)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL LIGHT MODE SPECIFICATIONS (:root:not([data-theme="dark"]))
   -------------------------------------------------------------------------- */
:root:not([data-theme="dark"]) body,
:root:not([data-theme="dark"]) .app-container {
  background: #ffffff !important;
  color: #0F172A !important;
}

/* A. Navigation Rail */
:root:not([data-theme="dark"]) .sidebar-rail {
  background: #ffffff !important;
  border-right: 1px solid #E7EEF5 !important;
}
:root:not([data-theme="dark"]) .rail-nav-btn {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .rail-nav-btn svg {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .rail-btn-label {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .rail-nav-btn:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284C7 !important;
}
:root:not([data-theme="dark"]) .rail-nav-btn.active {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284C7 !important;
}
:root:not([data-theme="dark"]) .rail-nav-btn.active svg,
:root:not([data-theme="dark"]) .rail-nav-btn.active .rail-btn-label {
  color: #0284C7 !important;
}

/* B. Sidebar & Search */
:root:not([data-theme="dark"]) .sidebar-main-pane,
:root:not([data-theme="dark"]) .sidebar-view-pane,
:root:not([data-theme="dark"]) .chat-cards-list,
:root:not([data-theme="dark"]) #usersList,
:root:not([data-theme="dark"]) .chat-list-container,
:root:not([data-theme="dark"]) #newChatContactsList {
  background: #ffffff !important;
}
:root:not([data-theme="dark"]) .pane-header {
  background: #ffffff !important;
  border-bottom: 1px solid #F1F5F9 !important;
}
:root:not([data-theme="dark"]) .search-section {
  background: #ffffff !important;
}
:root:not([data-theme="dark"]) .search-input-box {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
}
:root:not([data-theme="dark"]) .search-input-box input {
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .filter-pill {
  background: #F1F5F9 !important;
  color: #475569 !important;
}
:root:not([data-theme="dark"]) .filter-pill.active {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284C7 !important;
}
:root:not([data-theme="dark"]) .archived-row-banner,
:root:not([data-theme="dark"]) #archivedBannerRow {
  background: #F8FAFC !important;
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .archived-row-banner:hover,
:root:not([data-theme="dark"]) #archivedBannerRow:hover {
  background: #F1F5F9 !important;
}
:root:not([data-theme="dark"]) .chat-card-item,
:root:not([data-theme="dark"]) .chat-item,
:root:not([data-theme="dark"]) .contact-item,
:root:not([data-theme="dark"]) .user-card-item {
  background: #ffffff !important;
}
:root:not([data-theme="dark"]) .chat-card-item:hover,
:root:not([data-theme="dark"]) .chat-item:hover,
:root:not([data-theme="dark"]) .contact-item:hover,
:root:not([data-theme="dark"]) .user-card-item:hover {
  background: #F3F8FC !important;
}
:root:not([data-theme="dark"]) .chat-card-item.active,
:root:not([data-theme="dark"]) .chat-item.active,
:root:not([data-theme="dark"]) .contact-item.active,
:root:not([data-theme="dark"]) .user-card-item.active {
  background: #EAF5FC !important;
}
:root:not([data-theme="dark"]) .chat-card-name,
:root:not([data-theme="dark"]) .contact-name,
:root:not([data-theme="dark"]) .user-name {
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .chat-card-preview,
:root:not([data-theme="dark"]) .last-message-text {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .chat-card-time {
  color: #94A3B8 !important;
}

/* C. Welcome Screen & 3 Action Cards */
:root:not([data-theme="dark"]) .empty-chat-welcome,
:root:not([data-theme="dark"]) #emptyChat {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.06) 0%, transparent 70%), #F8FBFF !important;
}
:root:not([data-theme="dark"]) .welcome-heading {
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .welcome-subtext {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .welcome-feature-card {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(15, 45, 70, 0.04) !important;
}
:root:not([data-theme="dark"]) .welcome-feature-card:hover {
  background: #F8FAFC !important;
  border-color: #0284C7 !important;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.14) !important;
}
:root:not([data-theme="dark"]) .feature-card-title {
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .feature-card-desc {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .welcome-util-btn,
:root:not([data-theme="dark"]) .welcome-profile-badge {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .welcome-security-pill {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
}

/* D. Active Chat Viewport */
:root:not([data-theme="dark"]) .chat-header {
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
}
:root:not([data-theme="dark"]) .chat-header-title {
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .chat-header-subtitle {
  color: #64748B !important;
}
:root:not([data-theme="dark"]) .header-circle-btn {
  color: #475569 !important;
}
:root:not([data-theme="dark"]) .header-circle-btn:hover {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
}
:root:not([data-theme="dark"]) .messages-feed-box {
  background-color: #F8FBFE !important;
  background-image: radial-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px) !important;
}
:root:not([data-theme="dark"]) .message.incoming .message-bubble {
  background: #ffffff !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(15, 45, 70, 0.08) !important;
}
:root:not([data-theme="dark"]) .message.outgoing .message-bubble {
  background: #0284C7 !important;
  color: #ffffff !important;
}
:root:not([data-theme="dark"]) .call-log-bubble {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
:root:not([data-theme="dark"]) .message-composer-bar {
  background: #ffffff !important;
  border-top: 1px solid #E7EEF5 !important;
}
:root:not([data-theme="dark"]) .composer-input-wrapper input {
  background: #F4F8FC !important;
  color: #0F172A !important;
  border: 1px solid #E2E8F0 !important;
}
:root:not([data-theme="dark"]) .header-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  color: #0F172A !important;
}

/* --------------------------------------------------------------------------
   2. GLOBAL DARK MODE MASTER OVERRIDES ([data-theme="dark"])
   -------------------------------------------------------------------------- */
[data-theme="dark"] body,
[data-theme="dark"] .app-container {
  background: #0B141B !important;
  color: #F1F5F9 !important;
}

/* A. Navigation Rail (Dark) */
[data-theme="dark"] .sidebar-rail {
  background: #0B141B !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .rail-nav-btn {
  color: #94A3B8 !important;
}
[data-theme="dark"] .rail-nav-btn svg {
  color: #94A3B8 !important;
}
[data-theme="dark"] .rail-btn-label {
  color: #94A3B8 !important;
}
[data-theme="dark"] .rail-nav-btn:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  color: #38BDF8 !important;
}
[data-theme="dark"] .rail-nav-btn.active {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38BDF8 !important;
}
[data-theme="dark"] .rail-nav-btn.active svg,
[data-theme="dark"] .rail-nav-btn.active .rail-btn-label {
  color: #38BDF8 !important;
}

/* B. Sidebar & Search (Dark) */
[data-theme="dark"] .sidebar-main-pane,
[data-theme="dark"] .sidebar-view-pane,
[data-theme="dark"] .chat-cards-list,
[data-theme="dark"] #usersList,
[data-theme="dark"] .chat-list-container,
[data-theme="dark"] #newChatContactsList {
  background: #111B21 !important;
}
[data-theme="dark"] .pane-header {
  background: #111B21 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .search-section {
  background: #111B21 !important;
}
[data-theme="dark"] .search-input-box {
  background: #1C2834 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .search-input-box input {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .filter-pill {
  background: #1C2834 !important;
  color: #94A3B8 !important;
}
[data-theme="dark"] .filter-pill.active {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38BDF8 !important;
}
[data-theme="dark"] .archived-row-banner,
[data-theme="dark"] #archivedBannerRow {
  background: #152331 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .archived-label,
[data-theme="dark"] .archived-row-banner .archived-label {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .archived-left-meta svg,
[data-theme="dark"] .archived-row-banner svg {
  stroke: #94A3B8 !important;
  color: #94A3B8 !important;
}
[data-theme="dark"] .archived-row-banner:hover,
[data-theme="dark"] #archivedBannerRow:hover {
  background: #1A2C3D !important;
}
[data-theme="dark"] .chat-card-item,
[data-theme="dark"] .chat-item,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .user-card-item,
[data-theme="dark"] .user-item,
.dark-mode .user-item,
.dark .user-item {
  background: transparent !important;
  background-color: transparent !important;
}
[data-theme="dark"] .chat-card-item:hover,
[data-theme="dark"] .chat-item:hover,
[data-theme="dark"] .contact-item:hover,
[data-theme="dark"] .user-card-item:hover,
[data-theme="dark"] .user-item:hover,
.dark-mode .user-item:hover,
.dark .user-item:hover {
  background: #152331 !important;
  background-color: #152331 !important;
}
[data-theme="dark"] .chat-card-item.active,
[data-theme="dark"] .chat-item.active,
[data-theme="dark"] .contact-item.active,
[data-theme="dark"] .user-card-item.active,
[data-theme="dark"] .user-item.active,
.dark-mode .user-item.active,
.dark .user-item.active {
  background: #182C3F !important;
  background-color: #182C3F !important;
}
[data-theme="dark"] .chat-card-name,
[data-theme="dark"] .contact-name,
[data-theme="dark"] .user-name,
[data-theme="dark"] .chat-title-text,
.dark-mode .chat-title-text,
.dark .chat-title-text {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .chat-card-preview,
[data-theme="dark"] .last-message-text,
[data-theme="dark"] .chat-preview-text,
.dark-mode .chat-preview-text,
.dark .chat-preview-text {
  color: #94A3B8 !important;
}
[data-theme="dark"] .chat-card-time,
[data-theme="dark"] .chat-time-text,
.dark-mode .chat-time-text,
.dark .chat-time-text {
  color: #64748B !important;
}
[data-theme="dark"] #archivedDrawerPane,
.dark-mode #archivedDrawerPane,
.dark #archivedDrawerPane {
  background: #0B141B !important;
  background-color: #0B141B !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] #archivedDrawerPane .pane-title,
.dark-mode #archivedDrawerPane .pane-title,
.dark #archivedDrawerPane .pane-title {
  color: #38BDF8 !important;
}

/* C. Welcome Screen & 3 Action Cards (Dark) */
[data-theme="dark"] .empty-chat-welcome,
[data-theme="dark"] #emptyChat {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.12) 0%, transparent 70%), #0B141B !important;
}
[data-theme="dark"] .welcome-heading {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .welcome-subtext {
  color: #94A3B8 !important;
}
[data-theme="dark"] .welcome-feature-card {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="dark"] .welcome-feature-card:hover {
  background: #182C3F !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.22) !important;
}
[data-theme="dark"] .feature-card-title {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .feature-card-desc {
  color: #94A3B8 !important;
}
[data-theme="dark"] .welcome-util-btn,
[data-theme="dark"] .welcome-profile-badge {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #CBD5E1 !important;
}
[data-theme="dark"] .welcome-security-pill {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}

/* D. Active Chat Viewport (Dark) */
[data-theme="dark"] .chat-header {
  background: #142433 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .chat-header-title {
  color: #F1F5F9 !important;
}
[data-theme="dark"] .chat-header-subtitle {
  color: #94A3B8 !important;
}
[data-theme="dark"] .header-circle-btn {
  color: #CBD5E1 !important;
}
[data-theme="dark"] .header-circle-btn:hover {
  background: #1C2834 !important;
  color: #38BDF8 !important;
}
[data-theme="dark"] .messages-feed-box {
  background-color: #0B141B !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
}
[data-theme="dark"] .message.incoming .message-bubble {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .message.outgoing .message-bubble {
  background: #0284C7 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .call-log-bubble {
  background: #1C2834 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .message-composer-bar {
  background: #142433 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .composer-input-wrapper input {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .header-dropdown-menu {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .dropdown-item {
  color: #CBD5E1 !important;
}
[data-theme="dark"] .dropdown-item:hover {
  background: #182C3F !important;
  color: #38BDF8 !important;
}


/* ==========================================================================
   PERFECT SEAMLESS FILTER CHIPS ROW (ZERO WHITE STRIP IN DARK MODE)
   ========================================================================== */

.filter-chips-row {
  background: transparent !important;
  padding: 0 16px 10px 16px !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

/* Light Mode Chips */
:root:not([data-theme="dark"]) .filter-chips-row {
  background: transparent !important;
}

:root:not([data-theme="dark"]) .filter-chip {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

:root:not([data-theme="dark"]) .filter-chip:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .filter-chip.active {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284C7 !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
}

:root:not([data-theme="dark"]) .filter-chip-icon-btn {
  color: #64748B !important;
  background: transparent !important;
}

:root:not([data-theme="dark"]) .filter-chip-icon-btn:hover {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
}

/* Dark Mode Chips */
[data-theme="dark"] .filter-chips-row {
  background: transparent !important;
}

[data-theme="dark"] .filter-chip {
  background: #1C2834 !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

[data-theme="dark"] .filter-chip:hover {
  background: #233342 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .filter-chip.active {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2) !important;
}

[data-theme="dark"] .filter-chip-icon-btn {
  color: #94A3B8 !important;
  background: transparent !important;
}

[data-theme="dark"] .filter-chip-icon-btn:hover {
  background: #1C2834 !important;
  color: #38BDF8 !important;
}


/* ==========================================================================
   PERFECT SEAMLESS CONTACT INFO & SETTINGS SUB-DRAWERS DUAL-THEME
   ========================================================================== */

/* LIGHT MODE DEFAULTS */
:root:not([data-theme="dark"]) .contact-info-drawer,
:root:not([data-theme="dark"]) #contactInfoDrawer,
:root:not([data-theme="dark"]) .contact-info-scroll,
:root:not([data-theme="dark"]) .sidebar-view-pane,
:root:not([data-theme="dark"]) .settings-drawer-scroll {
  background: #ffffff !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .contact-info-header {
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .contact-hero-card,
:root:not([data-theme="dark"]) .contact-info-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

:root:not([data-theme="dark"]) .danger-card {
  background: #FEF2F2 !important;
  border: 1px solid #FEE2E2 !important;
}

/* DARK MODE MASTER OVERRIDES */
[data-theme="dark"] .contact-info-drawer,
[data-theme="dark"] #contactInfoDrawer,
[data-theme="dark"] .contact-info-scroll,
[data-theme="dark"] .sidebar-view-pane,
[data-theme="dark"] .settings-drawer-scroll {
  background: #111B21 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .contact-info-header {
  background: #142433 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .contact-hero-card,
[data-theme="dark"] .contact-info-card {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .contact-hero-name,
[data-theme="dark"] .card-main-title {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .contact-hero-subtext,
[data-theme="dark"] .card-sub-info,
[data-theme="dark"] .action-label-subtext {
  color: #94A3B8 !important;
}

[data-theme="dark"] .quick-action-pill-btn {
  background: #1C2834 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .quick-action-pill-btn:hover {
  background: #233547 !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .quick-icon-box {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .danger-card {
  background: #1c1917 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

[data-theme="dark"] .danger-action-btn {
  color: #f87171 !important;
}

[data-theme="dark"] .danger-action-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
}

[data-theme="dark"] .media-thumb-box {
  background: #1C2834 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .encryption-notice-card {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .large-contact-avatar {
  border-color: #142433 !important;
}


/* ==========================================================================
   UNIVERSAL COMPLETE 100% COVERAGE DARK & LIGHT THEME ENGINE (ZERO EXCEPTIONS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. UNIVERSAL LIGHT MODE (:root:not([data-theme="dark"]))
   -------------------------------------------------------------------------- */
:root:not([data-theme="dark"]) .sidebar-view-pane,
:root:not([data-theme="dark"]) .settings-drawer-scroll,
:root:not([data-theme="dark"]) .profile-drawer-scroll,
:root:not([data-theme="dark"]) .account-drawer-scroll,
:root:not([data-theme="dark"]) .privacy-drawer-scroll,
:root:not([data-theme="dark"]) .chats-settings-scroll,
:root:not([data-theme="dark"]) .notifications-scroll,
:root:not([data-theme="dark"]) .contacts-list-scroll,
:root:not([data-theme="dark"]) .modal-dialog {
  background: #ffffff !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .drawer-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .drawer-title {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .drawer-back-btn {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .settings-hero-section {
  background: #ffffff !important;
  border-bottom: 1px solid #E7EEF5 !important;
}

:root:not([data-theme="dark"]) .floating-thought-bubble {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .settings-menu-row {
  background: #ffffff !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

:root:not([data-theme="dark"]) .settings-menu-row:hover {
  background: #F8FAFC !important;
}

:root:not([data-theme="dark"]) .settings-menu-icon {
  color: #0284C7 !important;
}

:root:not([data-theme="dark"]) .settings-menu-title {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .settings-menu-desc {
  color: #64748B !important;
}

:root:not([data-theme="dark"]) .settings-card-box,
:root:not([data-theme="dark"]) .profile-card-box,
:root:not([data-theme="dark"]) .privacy-card-box {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

/* --------------------------------------------------------------------------
   2. UNIVERSAL DARK MODE ([data-theme="dark"])
   -------------------------------------------------------------------------- */
[data-theme="dark"] .sidebar-view-pane,
[data-theme="dark"] .settings-drawer-scroll,
[data-theme="dark"] .profile-drawer-scroll,
[data-theme="dark"] .account-drawer-scroll,
[data-theme="dark"] .privacy-drawer-scroll,
[data-theme="dark"] .chats-settings-scroll,
[data-theme="dark"] .notifications-scroll,
[data-theme="dark"] .contacts-list-scroll,
[data-theme="dark"] .modal-dialog {
  background: #111B21 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .drawer-header-bar {
  background: #142433 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .drawer-title {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .drawer-back-btn {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .drawer-back-btn:hover {
  color: #38BDF8 !important;
}

[data-theme="dark"] .settings-hero-section {
  background: #111B21 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .floating-thought-bubble {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .floating-thought-bubble::after {
  background: #142433 !important;
}

[data-theme="dark"] .settings-menu-list {
  background: #111B21 !important;
}

[data-theme="dark"] .settings-menu-row {
  background: #111B21 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .settings-menu-row:hover {
  background: #152331 !important;
}

[data-theme="dark"] .settings-menu-icon {
  color: #38BDF8 !important;
}

[data-theme="dark"] .settings-menu-title {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .settings-menu-desc {
  color: #94A3B8 !important;
}

[data-theme="dark"] .settings-card-box,
[data-theme="dark"] .profile-card-box,
[data-theme="dark"] .privacy-card-box {
  background: #142433 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(7, 13, 20, 0.82) !important;
  backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .modal-dialog {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}


/* ==========================================================================
   2026 NATIVE PREMIUM MESSAGE LAYOUT & NATURAL FLOW ARCHITECTURE
   ========================================================================== */

/* Feed Box Container */
.messages-feed-box {
  flex: 1 !important;
  width: 100% !important;
  overflow-y: auto !important;
  padding: 16px 48px !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #F8FBFE !important;
  background-image: radial-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .messages-feed-box {
  background-color: #0B141B !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
}

@media (max-width: 900px) {
  .messages-feed-box {
    padding: 14px 20px !important;
  }
}
@media (max-width: 600px) {
  .messages-feed-box {
    padding: 12px 10px !important;
  }
}

/* Date Separators */
.chat-date-separator-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 18px 0 10px 0 !important;
  clear: both !important;
}

.chat-date-separator-pill {
  display: inline-block !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: rgba(100, 116, 139, 0.12) !important;
  color: #64748B !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  text-transform: capitalize !important;
  user-select: none !important;
}

[data-theme="dark"] .chat-date-separator-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}

/* System Message Row */
.chat-system-message-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 12px 0 !important;
}

.system-message-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  border-radius: 8px !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
  color: #0284c7 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: center !important;
  max-width: 80% !important;
}

[data-theme="dark"] .system-message-pill {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
}

/* Message Rows (Row Alignment & Responsive Grouping) */
.message-row {
  display: flex !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.message-row.grouped {
  margin-bottom: 3px !important;
}

.message-row.incoming {
  justify-content: flex-start !important;
}

.message-row.outgoing {
  justify-content: flex-end !important;
}

/* Message Bubble (Dynamic Width & Natural Layout) */
.message-bubble {
  position: relative !important;
  width: fit-content !important;
  max-width: 65% !important;
  min-width: 70px !important;
  padding: 7px 12px 6px 12px !important;
  font-size: 14.5px !important;
  line-height: 1.42 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  display: inline-flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .message-bubble {
    max-width: 72% !important;
  }
}
@media (max-width: 600px) {
  .message-bubble {
    max-width: 85% !important;
  }
}

/* INCOMING BUBBLE (Light & Dark) */
.message-bubble.bubble-incoming {
  background: #ffffff !important;
  color: #0F172A !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 14px 14px 14px 4px !important;
  box-shadow: 0 1px 3px rgba(15, 45, 70, 0.05) !important;
}

[data-theme="dark"] .message-bubble.bubble-incoming {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* OUTGOING BUBBLE (NamasteChat Electric Blue) */
.message-bubble.bubble-outgoing {
  background: #0284C7 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px 14px 4px 14px !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22) !important;
}

/* Grouped Bubble Radius Transitions */
.message-row.incoming.grouped .message-bubble {
  border-top-left-radius: 4px !important;
}
.message-row.outgoing.grouped .message-bubble {
  border-top-right-radius: 4px !important;
}

/* Message Content Inner */
.message-content-inner {
  display: block !important;
  width: 100% !important;
  color: inherit !important;
  font-size: 14.5px !important;
}

.message-text-span {
  display: inline !important;
  color: inherit !important;
}

/* Message Time & Status Meta (INSIDE BUBBLE AT BOTTOM RIGHT) */
.message-meta-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  float: right !important;
  margin-left: 12px !important;
  margin-top: 2px !important;
  align-self: flex-end !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  user-select: none !important;
}

.bubble-incoming .message-meta-inline {
  color: #64748B !important;
}

[data-theme="dark"] .bubble-incoming .message-meta-inline {
  color: #94A3B8 !important;
}

.bubble-outgoing .message-meta-inline {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bubble-outgoing .msg-tick-icon {
  display: inline-flex !important;
  align-items: center !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.bubble-outgoing .msg-tick-icon .tick-blue {
  color: #7DD3FC !important; /* Soft bright cyan-white contrast */
}

/* CALL MESSAGE CARD (Compact 280-340px width) */
.call-message-bubble {
  width: 100% !important;
  max-width: 320px !important;
  padding: 10px 14px !important;
}

.call-message-card-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.call-card-icon-box {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.2) !important;
  flex-shrink: 0 !important;
}

.bubble-incoming .call-card-icon-box {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}

.bubble-incoming .call-card-icon-box.missed {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
}

.call-card-text-box {
  flex: 1 !important;
  min-width: 0 !important;
}

.call-card-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: inherit !important;
}

.call-card-subtitle {
  font-size: 11.5px !important;
  opacity: 0.85 !important;
  margin-top: 2px !important;
}

.call-card-callback-btn {
  padding: 6px 14px !important;
  border-radius: 18px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: none !important;
  transition: transform 0.12s ease, opacity 0.12s ease !important;
}

.bubble-outgoing .call-card-callback-btn {
  background: #ffffff !important;
  color: #0284c7 !important;
}

.bubble-incoming .call-card-callback-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.call-card-callback-btn:hover {
  transform: scale(1.04) !important;
  opacity: 0.95 !important;
}


/* ==========================================================================
   CANONICAL PROFILE AVATAR FIX (ALLOW DYNAMIC PHOTOS & COLORS TO RENDER)
   ========================================================================== */

.avatar,
.contact-hero-avatar,
.large-profile-avatar,
.welcome-avatar,
.rail-avatar {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  user-select: none !important;
}

.contact-hero-avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.18) !important;
  font-size: 36px !important;
}

[data-theme="dark"] .contact-hero-avatar {
  border-color: #142433 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

.contact-hero-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #059669 !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

.contact-hero-status.offline {
  color: #64748b !important;
}

[data-theme="dark"] .contact-hero-status.offline {
  color: #94a3b8 !important;
}

#chatUserStatus.online {
  color: #059669 !important;
  font-weight: 500 !important;
}


/* ==========================================================================
   2026 NAMASTECHAT COMPACT COMPOSER & INTELLIGENT MULTI-STATE SYSTEM
   ========================================================================== */

.composer-container {
  width: 100% !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-top: 1px solid #E7EEF5 !important;
  z-index: 40 !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .composer-container {
  background: #142433 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Staging Bar (Reply / Edit / File Preview / Upload Progress) */
.composer-staging-bar {
  width: 100% !important;
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .composer-staging-bar {
  background: #111B21 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.staging-reply-preview {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.staging-accent-bar {
  width: 3.5px !important;
  height: 36px !important;
  border-radius: 4px !important;
  background: #0284C7 !important;
  flex-shrink: 0 !important;
}

.staging-text-wrap {
  flex: 1 !important;
  min-width: 0 !important;
}

.staging-sender-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0284C7 !important;
}

[data-theme="dark"] .staging-sender-name {
  color: #38BDF8 !important;
}

.staging-snippet-text {
  font-size: 12px !important;
  color: #64748B !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 1px !important;
}

[data-theme="dark"] .staging-snippet-text {
  color: #94A3B8 !important;
}

.staging-close-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: #64748B !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.staging-close-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #0F172A !important;
}

[data-theme="dark"] .staging-close-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
}

/* File Upload Progress Bar */
.staging-upload-progress {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
}

.upload-progress-track {
  width: 100% !important;
  height: 4px !important;
  border-radius: 4px !important;
  background: #E2E8F0 !important;
  overflow: hidden !important;
}

.upload-progress-fill {
  height: 100% !important;
  background: #0284C7 !important;
  transition: width 0.15s ease !important;
}

/* Unified Message Composer Bar */
.message-composer-bar {
  min-height: 64px !important;
  max-height: 160px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  border: none !important;
}

.composer-btn-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
  flex-shrink: 0 !important;
}

.composer-icon-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
  color: #64748B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  flex-shrink: 0 !important;
}

.composer-icon-btn:hover {
  background: #F0F7FB !important;
  color: #0284C7 !important;
}

[data-theme="dark"] .composer-icon-btn {
  color: #94A3B8 !important;
}

[data-theme="dark"] .composer-icon-btn:hover {
  background: #1C2834 !important;
  color: #38BDF8 !important;
}

/* Auto-Growing Textarea Container */
.composer-input-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: #F4F8FC !important;
  border: 1px solid #E2EBF3 !important;
  border-radius: 16px !important;
  padding: 2px 14px !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

.composer-input-wrapper:focus-within {
  border-color: #0284C7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="dark"] .composer-input-wrapper {
  background: #1C2834 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .composer-input-wrapper:focus-within {
  border-color: #38BDF8 !important;
  background: #182633 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

.composer-textarea {
  width: 100% !important;
  min-height: 42px !important;
  max-height: 120px !important;
  padding: 10px 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #0F172A !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  resize: none !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.composer-textarea::placeholder {
  color: #8A9AAA !important;
}

[data-theme="dark"] .composer-textarea {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .composer-textarea::placeholder {
  color: #64748B !important;
}

/* ONE Single Primary Dynamic Action Button (46-48px) */
.composer-primary-btn-wrap {
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
  flex-shrink: 0 !important;
}

.composer-primary-action-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  border: none !important;
  background: #0284C7 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
}

.composer-primary-action-btn:hover {
  background: #0369A1 !important;
  transform: scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
}

.composer-primary-action-btn:active {
  transform: scale(0.96) !important;
}

.composer-primary-action-btn.send-btn {
  background: #0284C7 !important;
}

.composer-primary-action-btn.mic-btn {
  background: #0284C7 !important;
}

/* Visual Attachment Tray Popover (Grid Layout) */
.attachment-tray-popover {
  position: absolute !important;
  bottom: calc(100% + 14px) !important;
  left: 0 !important;
  width: 280px !important;
  background: #ffffff !important;
  border: 1px solid #E7EEF5 !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(15, 45, 70, 0.12) !important;
  padding: 14px !important;
  z-index: 100 !important;
  box-sizing: border-box !important;
  animation: traySlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

[data-theme="dark"] .attachment-tray-popover {
  background: #142433 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.attachment-tray-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.attachment-tray-action {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: #F8FAFC !important;
  color: #0F172A !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
}

.attachment-tray-action:hover {
  background: #F0F7FB !important;
  border-color: #0284C7 !important;
}

[data-theme="dark"] .attachment-tray-action {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .attachment-tray-action:hover {
  background: #233446 !important;
  border-color: #38BDF8 !important;
}

.tray-action-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.icon-blue { background: rgba(2, 132, 199, 0.1) !important; }
.icon-indigo { background: rgba(99, 102, 241, 0.1) !important; }
.icon-pink { background: rgba(236, 72, 153, 0.1) !important; }
.icon-purple { background: rgba(139, 92, 246, 0.1) !important; }

/* Dedicated visually-hidden file input for programmatic mobile picker compatibility */
.composer-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Emoji / Sticker Floating Tray Popover handled in modern 2026 suite */

/* Inline Voice Recording Bar (Seamless Composer Morph) */
.voice-recording-inline-bar {
  flex: 1 !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  background: #FEF2F2 !important;
  border: 1px solid #FEE2E2 !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  animation: fadeIn 0.15s ease !important;
}

.voice-recording-inline-bar.hidden {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  flex: 0 0 0 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .voice-recording-inline-bar {
  background: #251818 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.voice-cancel-trash-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: #EF4444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  flex-shrink: 0 !important;
}

.voice-cancel-trash-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  transform: scale(1.05) !important;
}

.voice-recording-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.recording-pulse-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #EF4444 !important;
  animation: pulseRecording 1s infinite alternate !important;
}

@keyframes pulseRecording {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.3; transform: scale(0.8); }
}

.recording-timer-text {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #EF4444 !important;
  font-variant-numeric: tabular-nums !important;
}

.recording-live-waveform {
  display: flex !important;
  align-items: center !important;
  gap: 2.5px !important;
  flex: 1 !important;
  min-width: 60px !important;
  height: 28px !important;
  overflow: hidden !important;
}

.recording-live-waveform .live-bar {
  flex: 1 1 0 !important;
  min-width: 2px !important;
  max-width: 4px !important;
  height: 4px;
  min-height: 3px !important;
  border-radius: 2px !important;
  background: #EF4444 !important;
  transition: height 0.06s ease !important;
}

/* ==========================================================================
   VOICE MESSAGE PLAYER (PHASE 3)
   ========================================================================== */
.voice-msg-player {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 2px !important;
  min-width: 220px !important;
  max-width: 320px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  user-select: none !important;
}

.vn-play-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  border: none !important;
  background: var(--nc-primary, #00a884) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.vn-play-btn:hover {
  transform: scale(1.06) !important;
  background: #008f72 !important;
}

.vn-play-btn:active {
  transform: scale(0.96) !important;
}

.vn-play-btn svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

.vn-waveform-track {
  flex: 1 !important;
  min-width: 90px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  touch-action: none !important;
  border-radius: 6px !important;
}

.vn-waveform-bars {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.vn-bar {
  flex: 1 1 0 !important;
  min-width: 2px !important;
  max-width: 4px !important;
  height: 6px;
  background: rgba(0, 0, 0, 0.22) !important;
  border-radius: 2px !important;
  transition: background 0.08s ease !important;
}

.message-row.outgoing .vn-bar {
  background: rgba(0, 92, 75, 0.28) !important;
}

.vn-bar.played {
  background: var(--nc-primary, #00a884) !important;
}

.message-row.outgoing .vn-bar.played {
  background: #005c4b !important;
}

[data-theme="dark"] .vn-bar {
  background: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .message-row.outgoing .vn-bar {
  background: rgba(0, 168, 132, 0.35) !important;
}

[data-theme="dark"] .vn-bar.played,
[data-theme="dark"] .message-row.outgoing .vn-bar.played {
  background: #00a884 !important;
}

.vn-meta-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
}

.vn-time-text {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--nc-text-sub, #667781) !important;
  font-variant-numeric: tabular-nums !important;
  min-width: 32px !important;
  text-align: right !important;
}

.message-row.outgoing .vn-time-text {
  color: rgba(17, 27, 33, 0.75) !important;
}

[data-theme="dark"] .message-row.outgoing .vn-time-text {
  color: rgba(233, 237, 239, 0.75) !important;
}

.voice-msg-unavailable-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-radius: 12px !important;
  color: #ef4444 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}


/* ==========================================================================
   ACTIVE CHAT STRICT 3-TIER ORDER (HEADER TOP -> FEED MIDDLE -> COMPOSER BOTTOM)
   ========================================================================== */

#activeChat,
.active-chat-wrapper {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

#activeChat .chat-header {
  order: 1 !important;
  flex-shrink: 0 !important;
  height: 64px !important;
  min-height: 64px !important;
  width: 100% !important;
  position: relative !important;
  top: 0 !important;
  z-index: 30 !important;
}

#activeChat #messages,
#activeChat .messages-feed-box {
  order: 2 !important;
  flex: 1 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 16px 20px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  background: var(--nc-bg-chat) !important;
}

#activeChat .composer-container,
#composerContainer {
  order: 3 !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  position: relative !important;
  bottom: 0 !important;
  z-index: 40 !important;
  background: #ffffff !important;
  border-top: 1px solid #E7EEF5 !important;
}

[data-theme="dark"] #activeChat .composer-container,
[data-theme="dark"] #composerContainer {
  background: #142433 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   NATURAL MESSAGE BUBBLES WITH INLINE TIMESTAMPS & DATE SEPARATORS
   ========================================================================== */

.chat-date-separator-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 14px 0 10px 0 !important;
  order: 0 !important;
}

.chat-date-separator-pill {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 4px 14px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.06) !important;
  color: #64748b !important;
  letter-spacing: 0.2px !important;
  text-transform: capitalize !important;
  user-select: none !important;
  backdrop-filter: blur(4px) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

[data-theme="dark"] .chat-date-separator-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

.message-row {
  display: flex !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.message-row.outgoing {
  justify-content: flex-end !important;
}

.message-row.incoming {
  justify-content: flex-start !important;
}

.message-row.grouped {
  margin-bottom: 3px !important;
}

.message-bubble {
  display: inline-flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: fit-content !important;
  max-width: 65% !important;
  min-width: 80px !important;
  padding: 8px 12px 6px 12px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .message-bubble {
    max-width: 85% !important;
  }
}

.message-row.outgoing .message-bubble {
  background: #0284C7 !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
}

.message-row.incoming .message-bubble {
  background: #ffffff !important;
  color: #0F172A !important;
  border-bottom-left-radius: 4px !important;
}

[data-theme="dark"] .message-row.incoming .message-bubble {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
}

.message-text-content {
  margin-bottom: 2px !important;
}

.message-meta-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin-left: auto !important;
  padding-left: 12px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.message-row.outgoing .message-meta-inline {
  color: rgba(255, 255, 255, 0.8) !important;
}

.message-row.incoming .message-meta-inline {
  color: #94A3B8 !important;
}

.msg-status-tick {
  display: inline-flex !important;
  align-items: center !important;
}

.msg-status-tick svg {
  width: 14px !important;
  height: 14px !important;
}

.msg-status-tick .tick-blue,
.msg-tick-icon.tick-blue {
  color: #7DD3FC !important;
}

/* Call Log Message Card */
.call-message-bubble {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: fit-content !important;
  max-width: 320px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.message-row.outgoing .call-message-bubble {
  background: #0284C7 !important;
  color: #ffffff !important;
}

.message-row.incoming .call-message-bubble {
  background: #ffffff !important;
  color: #0F172A !important;
}

[data-theme="dark"] .message-row.incoming .call-message-bubble {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
}


/* ==========================================================================
   STRICT 3-TIER ACTIVE CHAT LAYOUT (HEADER TOP -> FEED SCROLL -> COMPOSER BOTTOM)
   ========================================================================== */

.active-chat-wrapper,
#activeChat {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: var(--nc-bg-chat) !important;
}

#activeChat .chat-header {
  order: 1 !important;
  flex-shrink: 0 !important;
  height: 64px !important;
  min-height: 64px !important;
  width: 100% !important;
  position: relative !important;
  top: 0 !important;
  z-index: 30 !important;
  box-sizing: border-box !important;
}

#activeChat #messages,
#activeChat .messages-feed-box {
  order: 2 !important;
  flex: 1 1 0% !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 16px 24px 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  background: var(--nc-bg-chat) !important;
}

#activeChat .composer-container,
#composerContainer {
  order: 3 !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  position: relative !important;
  bottom: 0 !important;
  z-index: 40 !important;
  background: #ffffff !important;
  border-top: 1px solid #E7EEF5 !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] #activeChat .composer-container,
[data-theme="dark"] #composerContainer {
  background: #142433 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* COMPACT NATURAL COMPOSER (ALL CONTROLS GROUPED HORIZONTALLY AROUND FLEXIBLE INPUT) */
.message-composer-bar {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 64px !important;
  max-height: 140px !important;
  padding: 10px 20px !important;
  box-sizing: border-box !important;
  position: relative !important;
  margin: 0 !important;
}

.composer-btn-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 46px !important;
  flex-shrink: 0 !important;
}

.composer-icon-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
  color: #64748B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.composer-icon-btn:hover {
  background: #F0F7FB !important;
  color: #0284C7 !important;
}

[data-theme="dark"] .composer-icon-btn {
  color: #94A3B8 !important;
}

[data-theme="dark"] .composer-icon-btn:hover {
  background: #1C2834 !important;
  color: #38BDF8 !important;
}

/* FLEXIBLE AUTO-GROWING INPUT WRAPPER (CONSUMES ALL AVAILABLE SPACE) */
.composer-input-wrapper {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: #F4F8FC !important;
  border: 1px solid #E2EBF3 !important;
  border-radius: 15px !important;
  padding: 0 16px !important;
  min-height: 46px !important;
  max-height: 120px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

.composer-input-wrapper:focus-within {
  border-color: #0284C7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2.5px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="dark"] .composer-input-wrapper {
  background: #1C2834 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .composer-input-wrapper:focus-within {
  border-color: #38BDF8 !important;
  background: #182633 !important;
  box-shadow: 0 0 0 2.5px rgba(56, 189, 248, 0.15) !important;
}

.composer-textarea {
  width: 100% !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  max-height: 110px !important;
  padding: 10px 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #0F172A !important;
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  resize: none !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.composer-textarea::placeholder {
  color: #8A9AAA !important;
}

[data-theme="dark"] .composer-textarea {
  color: #F1F5F9 !important;
}

[data-theme="dark"] .composer-textarea::placeholder {
  color: #64748B !important;
}

/* PRIMARY RIGHT ACTION BUTTON (MIC / SEND) */
.composer-primary-btn-wrap {
  display: flex !important;
  align-items: center !important;
  height: 46px !important;
  flex-shrink: 0 !important;
}

.composer-primary-action-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  border: none !important;
  background: #0284C7 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.composer-primary-action-btn:hover {
  background: #0369A1 !important;
  transform: scale(1.02) !important;
}

/* MESSAGE BUBBLES AND TIMESTAMPS */
.chat-date-separator-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 12px 0 8px 0 !important;
}

.chat-date-separator-pill {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 4px 14px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.06) !important;
  color: #64748b !important;
  user-select: none !important;
}

[data-theme="dark"] .chat-date-separator-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

.message-row {
  display: flex !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.message-row.outgoing {
  justify-content: flex-end !important;
}

.message-row.incoming {
  justify-content: flex-start !important;
}

.message-row.grouped {
  margin-bottom: 3px !important;
}

.message-bubble {
  display: inline-flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: fit-content !important;
  max-width: 65% !important;
  min-width: 70px !important;
  padding: 8px 12px 6px 12px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box !important;
}

.message-row.outgoing .message-bubble {
  background: #0284C7 !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
}

.message-row.incoming .message-bubble {
  background: #ffffff !important;
  color: #0F172A !important;
  border-bottom-left-radius: 4px !important;
}

[data-theme="dark"] .message-row.incoming .message-bubble {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
}

.message-meta-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin-left: auto !important;
  padding-left: 10px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.message-row.outgoing .message-meta-inline {
  color: rgba(255, 255, 255, 0.8) !important;
}

.message-row.incoming .message-meta-inline {
  color: #94A3B8 !important;
}

.msg-status-tick svg {
  width: 14px !important;
  height: 14px !important;
}

/* =====================================================
   WHATSAPP-GRADE CHAT CONTEXT MENU & HOVER ARROW
===================================================== */
.user-item {
  position: relative !important;
}

.chat-item-arrow-btn {
  display: none !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--nc-text-sub, #64748b) !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  z-index: 5 !important;
}

[data-theme="dark"] .chat-item-arrow-btn,
.dark-mode .chat-item-arrow-btn,
.dark .chat-item-arrow-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
}

.user-item:hover .chat-item-arrow-btn {
  display: flex !important;
}

.chat-item-arrow-btn:hover {
  background: rgba(2, 132, 199, 0.18) !important;
  color: #0284c7 !important;
}

.context-menu-popover {
  position: fixed !important;
  z-index: 99999 !important;
  min-width: 195px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  animation: ctxFadeIn 0.12s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes ctxFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-popover.hidden {
  display: none !important;
}

.context-menu-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 9px 12px !important;
  border: none !important;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background 0.12s ease, color 0.12s ease !important;
}

.context-menu-btn:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

.context-menu-btn.danger {
  color: #ef4444 !important;
}

.context-menu-btn.danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.context-menu-btn svg {
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .context-menu-popover,
.dark-mode .context-menu-popover,
.dark .context-menu-popover {
  background: #152331 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .context-menu-btn,
.dark-mode .context-menu-btn,
.dark .context-menu-btn {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .context-menu-btn:hover,
.dark-mode .context-menu-btn:hover,
.dark .context-menu-btn:hover {
  background: #1a2c3d !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .context-menu-btn.danger,
.dark-mode .context-menu-btn.danger,
.dark .context-menu-btn.danger {
  color: #f87171 !important;
}

[data-theme="dark"] .context-menu-btn.danger:hover,
.dark-mode .context-menu-btn.danger:hover,
.dark .context-menu-btn.danger:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #ef4444 !important;
}

/* =====================================================
   CHAT BACKUP & RESTORE STYLES
===================================================== */
.backup-form-input {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.backup-form-input:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="dark"] .backup-hero-card,
.dark-mode .backup-hero-card,
.dark .backup-hero-card {
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid rgba(2, 132, 199, 0.28) !important;
}

[data-theme="dark"] .backup-form-input,
.dark-mode .backup-form-input,
.dark .backup-form-input {
  background: #1C2834 !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#downloadBackupFileBtn,
#restoreBackupActionBtn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

#downloadBackupFileBtn:hover:not(:disabled),
#restoreBackupActionBtn:hover:not(:disabled) {
  background: #0369a1 !important;
}

#downloadBackupFileBtn:active:not(:disabled),
#restoreBackupActionBtn:active:not(:disabled) {
  transform: scale(0.99);
}

#downloadBackupFileBtn:disabled,
#restoreBackupActionBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[data-theme="dark"] #downloadBackupFileBtn,
.dark-mode #downloadBackupFileBtn,
.dark #downloadBackupFileBtn,
[data-theme="dark"] #restoreBackupActionBtn,
.dark-mode #restoreBackupActionBtn,
.dark #restoreBackupActionBtn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
}

/* =====================================================
   MESSAGE ACTIONS, EDITING, VIEW ONCE & DRAFTS STYLES
===================================================== */
.message-row {
  position: relative;
}

.msg-item-arrow-btn {
  display: none !important;
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  transition: all 0.12s ease !important;
}

.message-bubble:hover .msg-item-arrow-btn {
  display: flex !important;
}

.msg-item-arrow-btn:hover {
  background: rgba(0, 0, 0, 0.35) !important;
}

/* View Once Pill */
.view-once-bubble-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.view-once-bubble-pill.unopened {
  background: rgba(0, 168, 132, 0.15) !important;
  color: #00a884 !important;
  border: 1px solid rgba(0, 168, 132, 0.3) !important;
}

.view-once-bubble-pill.unopened:hover {
  background: rgba(0, 168, 132, 0.25) !important;
  transform: scale(1.02) !important;
}

.view-once-bubble-pill.opened {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  cursor: default !important;
  opacity: 0.8 !important;
}

.view-once-pill-badge {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 2px solid currentColor !important;
  display: grid !important;
  place-items: center !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

/* Composer Staging / Editing Banner */
.composer-staging-bar {
  width: 100% !important;
  padding: 8px 14px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  animation: slideUpFade 0.15s ease-out !important;
}

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

.composer-staging-bar.hidden {
  display: none !important;
}

/* =====================================================
   INTERACTIVE POLL CARDS & FONT SIZE ENGINE
===================================================== */
:root {
  --nc-msg-font-size: 14.5px;
}

body.font-size-small {
  --nc-msg-font-size: 13px;
}

body.font-size-large {
  --nc-msg-font-size: 16.5px;
}

.message-text-content {
  font-size: var(--nc-msg-font-size) !important;
}

/* Poll Bubble Card */
.poll-bubble-card {
  min-width: 250px;
  max-width: 330px;
  padding: 4px 0;
}

.poll-question-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--nc-text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.poll-meta-sub {
  font-size: 11.5px;
  color: var(--nc-text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.poll-option-row {
  position: relative;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  user-select: none;
}

.poll-option-row:hover {
  background: rgba(0, 0, 0, 0.07);
}

.poll-option-row.voted {
  border-color: #00a884;
  background: rgba(0, 168, 132, 0.08);
}

.poll-option-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 168, 132, 0.22);
  border-radius: 10px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poll-option-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nc-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-option-votes-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--nc-text-sub);
}

[data-theme="dark"] .poll-option-row,
.dark-mode .poll-option-row,
.dark .poll-option-row {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .font-size-opt-row,
.dark-mode .font-size-opt-row,
.dark .font-size-opt-row {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* =====================================================
   👑 2026 LUXURY GROUPS VIEW PANE
===================================================== */
.groups-pane-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 0 14px 0 !important;
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  margin-bottom: 8px !important;
}

.groups-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.groups-pane-main-title {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: var(--nc-text-main, #111b21) !important;
  margin: 0 !important;
  letter-spacing: -0.4px !important;
}

.groups-count-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 9px !important;
  border-radius: 12px !important;
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  letter-spacing: 0.2px !important;
  text-transform: uppercase !important;
}

.groups-premium-new-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 17px !important;
  background: linear-gradient(135deg, #00a884 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
}

.groups-premium-new-btn svg {
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
}

.groups-premium-new-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.35) !important;
  filter: brightness(1.05) !important;
}

.groups-premium-new-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

[data-theme="dark"] .groups-pane-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .groups-count-pill {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

/* =====================================================
   👑 2026 LUXURY FOCUS MODE MODAL
===================================================== */
.focus-modal-dialog {
  max-width: 440px !important;
  width: calc(100% - 24px) !important;
  background: var(--nc-bg-primary, #ffffff) !important;
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  box-sizing: border-box !important;
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

.focus-modal-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.focus-modal-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.focus-modal-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main, #111b21) !important;
  margin: 0 !important;
  letter-spacing: -0.3px !important;
}

.focus-modal-desc {
  font-size: 13.5px !important;
  color: var(--nc-text-sub, #64748b) !important;
  line-height: 1.5 !important;
  margin: 0 0 24px 0 !important;
  font-weight: 400 !important;
}

.focus-options-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  margin-bottom: 24px !important;
}

.focus-option-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.025)) !important;
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.focus-option-card:hover {
  background: rgba(2, 132, 199, 0.04) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1px) !important;
}

.focus-option-info {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
}

.focus-option-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main, #1e293b) !important;
  transition: color 0.2s ease !important;
}

.focus-option-radio {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.focus-custom-radio {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 2px solid var(--nc-border-subtle, #cbd5e1) !important;
  display: grid !important;
  place-items: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
  background: var(--nc-bg-primary, #ffffff) !important;
}

.focus-custom-radio::after {
  content: "" !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  transform: scale(0) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Selected state styling */
.focus-option-card:has(.focus-option-radio:checked) {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: #0284c7 !important;
}

.focus-option-card:has(.focus-option-radio:checked) .focus-option-label {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

.focus-option-card:has(.focus-option-radio:checked) .focus-custom-radio {
  border-color: #0284c7 !important;
}

.focus-option-card:has(.focus-option-radio:checked) .focus-custom-radio::after {
  transform: scale(1) !important;
}

.focus-apply-cta-btn {
  width: 100% !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #00a884 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.focus-apply-cta-btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38) !important;
  filter: brightness(1.04) !important;
}

.focus-apply-cta-btn:active {
  transform: translateY(0) scale(0.99) !important;
}

.focus-apply-cta-btn:focus-visible {
  outline: 2px solid #0284c7 !important;
  outline-offset: 3px !important;
}

/* Dark mode adjustments */
[data-theme="dark"] .focus-modal-dialog,
.dark-mode .focus-modal-dialog,
.dark .focus-modal-dialog {
  background: var(--nc-bg-primary, #1e293b) !important;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .focus-option-card,
.dark-mode .focus-option-card,
.dark .focus-option-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .focus-option-card:hover,
.dark-mode .focus-option-card:hover,
.dark .focus-option-card:hover {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .focus-option-card:has(.focus-option-radio:checked),
.dark-mode .focus-option-card:has(.focus-option-radio:checked),
.dark .focus-option-card:has(.focus-option-radio:checked) {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .focus-option-card:has(.focus-option-radio:checked) .focus-option-label,
.dark-mode .focus-option-card:has(.focus-option-radio:checked) .focus-option-label,
.dark .focus-option-card:has(.focus-option-radio:checked) .focus-option-label {
  color: #38bdf8 !important;
}

[data-theme="dark"] .focus-option-card:has(.focus-option-radio:checked) .focus-custom-radio,
.dark-mode .focus-option-card:has(.focus-option-radio:checked) .focus-custom-radio,
.dark .focus-option-card:has(.focus-option-radio:checked) .focus-custom-radio {
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .focus-custom-radio,
.dark-mode .focus-custom-radio,
.dark .focus-custom-radio {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .focus-custom-radio::after,
.dark-mode .focus-custom-radio::after,
.dark .focus-custom-radio::after {
  background: #38bdf8 !important;
}

/* =====================================================
   👑 2026 UNIVERSAL LUXURY MODAL DESIGN SYSTEM
===================================================== */
.modal-luxury-dialog {
  max-width: 440px !important;
  width: calc(100% - 24px) !important;
  background: var(--nc-bg-primary, #ffffff) !important;
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  box-sizing: border-box !important;
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
}

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

.modal-header-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.modal-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

.modal-icon-badge.danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

.modal-icon-badge.warning {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #eab308 !important;
}

.modal-luxury-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main, #111b21) !important;
  margin: 0 !important;
  letter-spacing: -0.3px !important;
}

.modal-luxury-desc {
  font-size: 13.5px !important;
  color: var(--nc-text-sub, #64748b) !important;
  line-height: 1.5 !important;
  margin: 0 0 22px 0 !important;
  font-weight: 400 !important;
}

.modal-options-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 22px !important;
}

.modal-option-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.025)) !important;
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.modal-option-card:hover {
  background: rgba(2, 132, 199, 0.04) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1px) !important;
}

.modal-option-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
}

.modal-option-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main, #1e293b) !important;
  transition: color 0.2s ease !important;
}

.modal-option-radio {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-custom-radio {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 2px solid var(--nc-border-subtle, #cbd5e1) !important;
  display: grid !important;
  place-items: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
  background: var(--nc-bg-primary, #ffffff) !important;
}

.modal-custom-radio::after {
  content: "" !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  transform: scale(0) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.modal-option-card:has(.modal-option-radio:checked) {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: #0284c7 !important;
}

.modal-option-card:has(.modal-option-radio:checked) .modal-option-label {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

.modal-option-card:has(.modal-option-radio:checked) .modal-custom-radio {
  border-color: #0284c7 !important;
}

.modal-option-card:has(.modal-option-radio:checked) .modal-custom-radio::after {
  transform: scale(1) !important;
}

.modal-primary-btn {
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #00a884 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-primary-btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38) !important;
  filter: brightness(1.04) !important;
}

.modal-primary-btn:active {
  transform: translateY(0) scale(0.99) !important;
}

.modal-secondary-btn {
  height: 52px !important;
  border-radius: 14px !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.025)) !important;
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  color: var(--nc-text-main, #1e293b) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-secondary-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Dark mode overrides for universal luxury modals */
[data-theme="dark"] .modal-luxury-dialog,
.dark-mode .modal-luxury-dialog,
.dark .modal-luxury-dialog {
  background: var(--nc-bg-primary, #1e293b) !important;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .modal-option-card,
.dark-mode .modal-option-card,
.dark .modal-option-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .modal-option-card:hover,
.dark-mode .modal-option-card:hover,
.dark .modal-option-card:hover {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .modal-option-card:has(.modal-option-radio:checked),
.dark-mode .modal-option-card:has(.modal-option-radio:checked),
.dark .modal-option-card:has(.modal-option-radio:checked) {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .modal-option-card:has(.modal-option-radio:checked) .modal-option-label,
.dark-mode .modal-option-card:has(.modal-option-radio:checked) .modal-option-label,
.dark .modal-option-card:has(.modal-option-radio:checked) .modal-option-label {
  color: #38bdf8 !important;
}

[data-theme="dark"] .modal-option-card:has(.modal-option-radio:checked) .modal-custom-radio,
.dark-mode .modal-option-card:has(.modal-option-radio:checked) .modal-custom-radio,
.dark .modal-option-card:has(.modal-option-radio:checked) .modal-custom-radio {
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .modal-custom-radio,
.dark-mode .modal-custom-radio,
.dark .modal-custom-radio {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .modal-custom-radio::after,
.dark-mode .modal-custom-radio::after,
.dark .modal-custom-radio::after {
  background: #38bdf8 !important;
}

[data-theme="dark"] .modal-secondary-btn,
.dark-mode .modal-secondary-btn,
.dark .modal-secondary-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--nc-text-main, #f1f5f9) !important;
}

/* ==========================================================================
   CONTACT & GROUP INFO DRAWER LUXURY RESPONSIVE DESIGN SYSTEM (2026 EDITION)
   Desktop: 440-520px Control Center | Mobile: Full Viewport 100dvh
   ========================================================================== */

/* 1. Base Container & Viewport Modes */
.contact-info-drawer {
  background: var(--nc-bg-surface, #ffffff) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.contact-info-drawer.hidden {
  display: none !important;
}

/* Desktop: Right-side luxury panel */
@media (min-width: 769px) {
  .contact-info-drawer {
    width: 520px !important;
    min-width: 480px !important;
    max-width: 540px !important;
    height: 100vh !important;
    flex-shrink: 0 !important;
    border-left: 1px solid var(--nc-border-subtle, #e2e8f0) !important;
    position: relative !important;
    z-index: 50 !important;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.05) !important;
  }
}

/* Mobile: Full-screen native immersion */
@media (max-width: 768px) {
  .contact-info-drawer {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1000 !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
}

/* 2. Sticky Header */
.contact-info-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--nc-bg-header, var(--nc-bg-surface, #ffffff)) !important;
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.drawer-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.contact-info-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 24px !important;
}

.drawer-back-btn,
.contact-info-close-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--nc-text-sub, #64748b) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.drawer-back-btn:hover,
.contact-info-close-btn:hover {
  background: var(--nc-bg-hover, rgba(0, 0, 0, 0.05)) !important;
  color: var(--nc-text-main, #0f172a) !important;
}

/* 3. Main Scrollable Body */
.contact-info-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 14px 16px 24px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 4. Identity Hero Section (Profile Header) */
.drawer-identity-section,
.contact-hero-card {
  background: var(--nc-bg-card, var(--nc-bg-surface, #ffffff)) !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  border-radius: 16px !important;
  padding: 18px 16px 16px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

.drawer-avatar-wrap,
.contact-hero-avatar-wrap {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

.contact-hero-avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.2) !important;
}

@media (max-width: 768px) {
  .contact-hero-avatar {
    width: 88px !important;
    height: 88px !important;
    font-size: 34px !important;
  }
}

.group-avatar-edit-badge {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 2.5px solid #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.group-avatar-edit-badge:hover {
  transform: scale(1.08) !important;
  background: #0369a1 !important;
}

.group-avatar-edit-badge.hidden {
  display: none !important;
}

.drawer-name-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  max-width: 100% !important;
}

.contact-hero-name {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 26px !important;
  word-break: break-word !important;
}

@media (max-width: 768px) {
  .contact-hero-name {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 26px !important;
  }
}

.group-field-edit-btn {
  background: transparent !important;
  border: none !important;
  color: var(--nc-text-sub, #64748b) !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.group-field-edit-btn:hover {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
}

.group-field-edit-btn.hidden {
  display: none !important;
}

.contact-hero-phone,
#infoDrawerSubtext {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  color: var(--nc-text-sub, #64748b) !important;
  margin: 0 !important;
}

.contact-hero-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #059669 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  margin-top: 2px !important;
}

.contact-hero-status.offline {
  color: var(--nc-text-sub, #64748b) !important;
  background: rgba(100, 116, 139, 0.1) !important;
}

.status-indicator-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

.drawer-header-bio-row {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.drawer-header-bio-wrap,
.drawer-header-bio-row .drawer-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.drawer-header-bio-row #infoDrawerBioLabel,
#infoDrawerBioLabel.hidden,
.drawer-section-label.hidden,
.info-card-label.hidden {
  display: none !important;
}

.drawer-bio-text {
  font-size: 14.5px !important;
  font-weight: 400 !important;
  color: var(--nc-text-sub, #64748b) !important;
  line-height: 20px !important;
  text-align: center !important;
  word-break: break-word !important;
  width: auto !important;
  max-width: 100% !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#editGroupDescriptionBtn.group-field-edit-btn {
  flex-shrink: 0 !important;
}

/* 5. Quick Actions Row */
.drawer-quick-actions-row,
.contact-quick-actions-grid {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.quick-action-pill-btn {
  flex: 1 !important;
  max-width: 110px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 6px 4px !important;
  border-radius: 12px !important;
  background: var(--nc-bg-card, var(--nc-bg-surface, #ffffff)) !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
}

.quick-action-pill-btn.hidden {
  display: none !important;
}

.quick-action-pill-btn:hover {
  background: rgba(2, 132, 199, 0.06) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1px) !important;
}

.quick-action-pill-btn span {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  color: var(--nc-text-sub, #475569) !important;
}

.quick-icon-box {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: rgba(2, 132, 199, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0284c7 !important;
}

/* Primary Tabs Navigation (Group chats) */
.group-info-tab-bar {
  display: flex !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  background: var(--nc-bg-surface, #ffffff) !important;
  border-bottom: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  box-sizing: border-box !important;
  position: sticky !important;
  top: -14px !important;
  z-index: 25 !important;
  margin-top: 2px !important;
  margin-bottom: 4px !important;
}

.group-info-tab-bar.hidden {
  display: none !important;
}

.group-info-tab-btn {
  flex: 1 !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  color: var(--nc-text-sub, #64748b) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  transition: color 0.15s ease !important;
}

.group-info-tab-btn:hover {
  color: var(--nc-primary, #0284c7) !important;
  background: rgba(2, 132, 199, 0.04) !important;
}

.group-info-tab-btn.active {
  color: var(--nc-primary, #0284c7) !important;
  font-weight: 600 !important;
}

.group-info-tab-btn.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1.5px !important;
  left: 14% !important;
  right: 14% !important;
  height: 2.5px !important;
  background: var(--nc-primary, #0284c7) !important;
  border-radius: 2px 2px 0 0 !important;
}

/* Tab Panels */
.group-tab-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.group-tab-panel.hidden {
  display: none !important;
}

.group-tab-card {
  margin-bottom: 0 !important;
}

/* 6. Section Cards (About, Participants, Content, Settings) */
.drawer-section,
.contact-info-card {
  background: var(--nc-bg-card, var(--nc-bg-surface, #ffffff)) !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.drawer-section.hidden,
.contact-info-card.hidden {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  height: 0 !important;
}

.drawer-section-label,
.info-card-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  color: var(--nc-text-sub, #64748b) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.drawer-bio-text,
.info-card-value {
  font-size: 14.5px !important;
  font-weight: 400 !important;
  color: var(--nc-text-main, #0f172a) !important;
  line-height: 20px !important;
  word-break: break-word !important;
}

/* 7. Participants Section */
.add-member-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #00a884 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.add-member-pill-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35) !important;
}

.add-member-pill-btn.hidden {
  display: none !important;
}

#groupSettingsSection.hidden {
  display: none !important;
}

.participant-search-wrap {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

.participant-search-icon {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  color: var(--nc-text-sub, #64748b) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.participant-search-input {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 46px !important;
  padding-right: 42px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03)) !important;
  color: var(--nc-text-main, #0f172a) !important;
  box-sizing: border-box !important;
  line-height: 42px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.participant-search-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

.participant-search-clear-btn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--nc-text-sub, #64748b) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
}

.participant-search-clear-btn:hover {
  color: var(--nc-text-main, #0f172a) !important;
}

[data-theme="dark"] .participant-search-input {
  background: var(--nc-bg-input, rgba(255, 255, 255, 0.05)) !important;
  border-color: var(--nc-border, rgba(255, 255, 255, 0.1)) !important;
  color: var(--nc-text-main, #e9edef) !important;
}

[data-theme="dark"] .participant-search-icon,
[data-theme="dark"] .participant-search-clear-btn {
  color: var(--nc-text-sub, #aebac1) !important;
}

[data-theme="dark"] .participant-search-clear-btn:hover {
  color: var(--nc-text-main, #e9edef) !important;
}

.group-member-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 8px !important;
  border-radius: 10px !important;
  transition: background 0.15s ease !important;
  cursor: pointer !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
}

.group-member-item:hover {
  background: var(--nc-bg-hover, rgba(0, 0, 0, 0.04)) !important;
}

.group-member-item .avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  font-size: 14px !important;
}

.group-member-name {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  color: var(--nc-text-main, #0f172a) !important;
}

.group-member-status {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  color: var(--nc-text-sub, #64748b) !important;
}

[data-theme="dark"] .group-member-name {
  color: var(--nc-text-main, #f1f5f9) !important;
}

[data-theme="dark"] .group-member-status {
  color: var(--nc-text-sub, #94a3b8) !important;
}

.group-admin-badge {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.12) !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  letter-spacing: 0.02em !important;
}

/* 8. Interactive List Rows (Media, Starred, Settings, Security) */
.drawer-list-row,
.info-row-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  box-sizing: border-box !important;
}

.drawer-list-row:hover,
.info-row-item:hover {
  background: var(--nc-bg-hover, rgba(0, 0, 0, 0.03)) !important;
}

.info-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.row-icon-box {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 8px !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.04)) !important;
  color: var(--nc-text-sub, #64748b) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.info-row-title {
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  color: var(--nc-text-main, #0f172a) !important;
}

.info-row-caption {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  color: var(--nc-text-sub, #64748b) !important;
}

.info-row-right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.info-count-badge {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.05)) !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

.info-pill-badge {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--nc-text-sub, #64748b) !important;
}

.security-icon-box {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
}

/* 9. Danger / Action Block (Exit, Delete for me, Clear, Report, Delete for everyone) */
.danger-section,
.danger-card {
  background: var(--nc-bg-card, var(--nc-bg-surface, #ffffff)) !important;
  border: 1px solid rgba(239, 68, 68, 0.15) !important;
  border-radius: 16px !important;
  padding: 4px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  box-sizing: border-box !important;
}

.drawer-danger-row,
.contact-danger-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  color: #ef4444 !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.drawer-danger-row:hover,
.contact-danger-btn:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  transform: translateX(2px) !important;
}

.drawer-danger-row.hidden,
.contact-danger-btn.hidden {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.danger-icon-box {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

button#groupDeleteBtn {
  color: #dc2626 !important;
  font-weight: 600 !important;
}

/* 10. Dark Theme Adaptations */
[data-theme="dark"] .contact-info-drawer,
.dark-mode .contact-info-drawer,
.dark .contact-info-drawer {
  background: #0f172a !important;
  border-left-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .contact-info-header,
.dark-mode .contact-info-header,
.dark .contact-info-header {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .drawer-identity-section,
.dark-mode .drawer-identity-section,
.dark .drawer-identity-section,
[data-theme="dark"] .contact-hero-card,
.dark-mode .contact-hero-card,
.dark .contact-hero-card,
[data-theme="dark"] .drawer-section,
.dark-mode .drawer-section,
.dark .drawer-section,
[data-theme="dark"] .contact-info-card,
.dark-mode .contact-info-card,
.dark .contact-info-card {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .quick-action-pill-btn,
.dark-mode .quick-action-pill-btn,
.dark .quick-action-pill-btn {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .quick-action-pill-btn:hover,
.dark-mode .quick-action-pill-btn:hover,
.dark .quick-action-pill-btn:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .group-member-item:hover,
.dark-mode .group-member-item:hover,
.dark .group-member-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .group-admin-badge,
.dark-mode .group-admin-badge,
.dark .group-admin-badge {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.18) !important;
}

[data-theme="dark"] .drawer-list-row:hover,
.dark-mode .drawer-list-row:hover,
.dark .drawer-list-row:hover,
[data-theme="dark"] .info-row-item:hover,
.dark-mode .info-row-item:hover,
.dark .info-row-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .row-icon-box,
.dark-mode .row-icon-box,
.dark .row-icon-box {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .danger-section,
.dark-mode .danger-section,
.dark .danger-section,
[data-theme="dark"] .danger-card,
.dark-mode .danger-card,
.dark .danger-card {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

[data-theme="dark"] .group-info-tab-bar,
.dark-mode .group-info-tab-bar,
.dark .group-info-tab-bar {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .group-info-tab-btn,
.dark-mode .group-info-tab-btn,
.dark .group-info-tab-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .group-info-tab-btn:hover,
.dark-mode .group-info-tab-btn:hover,
.dark .group-info-tab-btn:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.06) !important;
}

[data-theme="dark"] .group-info-tab-btn.active,
.dark-mode .group-info-tab-btn.active,
.dark .group-info-tab-btn.active {
  color: #38bdf8 !important;
}

[data-theme="dark"] .group-info-tab-btn.active::after,
.dark-mode .group-info-tab-btn.active::after,
.dark .group-info-tab-btn.active::after {
  background: #38bdf8 !important;
}

/* ==========================================================================
   APP LOCK & PASSCODE SECURITY SUITE (WhatsApp Gold Standard)
   ========================================================================== */

.app-lock-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
}

.app-lock-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

:root:not([data-theme="dark"]) .app-lock-overlay {
  background: rgba(241, 245, 249, 0.9) !important;
}

.app-lock-card {
  background: var(--nc-bg-primary, #ffffff) !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28) !important;
  border-radius: 28px !important;
  padding: 36px 32px !important;
  width: 360px !important;
  max-width: 90vw !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  animation: appLockCardPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes appLockCardPop {
  0% { transform: scale(0.92) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

[data-theme="dark"] .app-lock-card,
.dark-mode .app-lock-card,
.dark .app-lock-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.6) !important;
}

.app-lock-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.app-lock-icon-wrap {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  background: rgba(0, 168, 132, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
  animation: appLockIconPulse 2.5s infinite ease-in-out !important;
}

@keyframes appLockIconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.2); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(0, 168, 132, 0); }
}

.app-lock-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main, #0f172a) !important;
  margin: 0 !important;
  letter-spacing: -0.3px !important;
}

.app-lock-subtitle {
  font-size: 13px !important;
  color: var(--nc-text-sub, #64748b) !important;
  margin: 0 !important;
}

/* PIN Dots */
.pin-dots-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin: 4px 0 !important;
}

.pin-dot {
  width: 15px !important;
  height: 15px !important;
  border-radius: 50% !important;
  border: 2px solid var(--nc-text-sub, #94a3b8) !important;
  background: transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pin-dot.filled {
  background: #00a884 !important;
  border-color: #00a884 !important;
  transform: scale(1.2) !important;
  box-shadow: 0 0 12px rgba(0, 168, 132, 0.5) !important;
}

.pin-dots-container.shake {
  animation: pinShake 0.45s ease-in-out !important;
}

.pin-dots-container.shake .pin-dot {
  border-color: #ef4444 !important;
  background: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5) !important;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Numeric Keypad */
.lock-keypad {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 270px !important;
  margin-top: 6px !important;
}

.lock-key-btn {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03)) !important;
  color: var(--nc-text-main, #0f172a) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.lock-key-btn:hover {
  background: rgba(0, 168, 132, 0.12) !important;
  border-color: #00a884 !important;
  color: #00a884 !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.2) !important;
}

.lock-key-btn:active {
  transform: translateY(0) scale(0.94) !important;
}

.lock-key-clear,
.lock-key-backspace {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--nc-text-sub, #64748b) !important;
  border: none !important;
  background: transparent !important;
}

.lock-key-clear:hover,
.lock-key-backspace:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .lock-key-btn,
.dark-mode .lock-key-btn,
.dark .lock-key-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .lock-key-btn:hover,
.dark-mode .lock-key-btn:hover,
.dark .lock-key-btn:hover {
  background: rgba(0, 168, 132, 0.2) !important;
  border-color: #00a884 !important;
  color: #34d399 !important;
}

/* ==========================================================================
   GROUP SETTINGS & PERMISSIONS SUITE (WHATSAPP-GRADE)
   ========================================================================== */
.perm-option-card {
  background: var(--nc-bg-surface, #ffffff);
  border: 1px solid var(--nc-border-subtle, #e2e8f0);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.perm-option-card:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

[data-theme="dark"] .perm-option-card,
.dark-mode .perm-option-card,
.dark .perm-option-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.perm-option-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perm-option-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nc-text-main, #0f172a);
}

.perm-option-desc {
  font-size: 11.5px;
  color: var(--nc-text-sub, #64748b);
  line-height: 1.4;
}

.perm-radio-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.perm-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nc-bg-main, #f8fafc);
  border: 1.5px solid var(--nc-border-subtle, #e2e8f0);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nc-text-main, #0f172a);
  cursor: pointer;
  transition: all 0.18s ease;
}

.perm-radio-label:hover {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.04);
}

.perm-radio-label:has(input:checked) {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
}

[data-theme="dark"] .perm-radio-label,
.dark-mode .perm-radio-label,
.dark .perm-radio-label {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

[data-theme="dark"] .perm-radio-label:has(input:checked),
.dark-mode .perm-radio-label:has(input:checked),
.dark .perm-radio-label:has(input:checked) {
  background: rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
}

.perm-radio-label input[type="radio"] {
  accent-color: #0284c7;
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.group-admin-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--nc-bg-main, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--nc-border-subtle, #e2e8f0);
}

[data-theme="dark"] .group-admin-member-row,
.dark-mode .group-admin-member-row,
.dark .group-admin-member-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-role-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .admin-role-badge,
.dark-mode .admin-role-badge,
.dark .admin-role-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

/* Announcement Mode Banner in Composer */
.group-admin-only-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--nc-bg-surface, #ffffff);
  border: 1px solid var(--nc-border-subtle, #e2e8f0);
  border-radius: 20px;
  color: var(--nc-text-sub, #64748b);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.group-admin-only-banner svg {
  stroke: #0284c7;
  flex-shrink: 0;
}

[data-theme="dark"] .group-admin-only-banner,
.dark-mode .group-admin-only-banner,
.dark .group-admin-only-banner {
  background: #152433;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   WHATSAPP LUXURY GROUP MEMBER ACTION SHEET DESIGN SYSTEM
   ========================================================================== */

.member-action-modal {
  padding: 24px 24px 20px !important;
}

.member-action-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.025));
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06));
  margin-bottom: 18px;
}

.member-hero-avatar {
  width: 52px !important;
  height: 52px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}

.member-hero-meta {
  flex: 1;
  min-width: 0;
}

.member-hero-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--nc-text-main, #0f172a);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-hero-role-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  letter-spacing: 0.2px;
}

.member-role-badge.admin-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.member-hero-sub {
  font-size: 12.5px;
  color: var(--nc-text-sub, #64748b);
}

.member-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-action-item-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.member-action-item-btn:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.035));
  border-color: var(--nc-border-subtle, rgba(0, 0, 0, 0.06));
  transform: translateX(2px);
}

.member-action-item-btn:active {
  transform: scale(0.99);
}

.member-action-icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-action-icon-pill.icon-blue {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.member-action-icon-pill.icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.member-action-icon-pill.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.member-action-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nc-text-main, #0f172a);
}

.action-item-desc {
  font-size: 12px;
  color: var(--nc-text-sub, #64748b);
  line-height: 1.35;
}

.action-chevron {
  color: var(--nc-text-muted, #94a3b8);
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.member-action-item-btn:hover .action-chevron {
  opacity: 1;
  transform: translateX(2px);
}

.member-action-item-btn.danger-item:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.member-action-item-btn.danger-item .action-item-title {
  color: #ef4444;
}

/* Segment Pills for Group Permissions */
.segment-pill {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08));
  background: var(--nc-bg-primary, #ffffff);
  color: var(--nc-text-sub, #64748b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.segment-pill:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03));
}

.segment-pill.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Dark Mode Tokens */
[data-theme="dark"] .member-action-hero,
.dark-mode .member-action-hero,
.dark .member-action-hero {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .member-action-item-btn:hover,
.dark-mode .member-action-item-btn:hover,
.dark .member-action-item-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .segment-pill,
.dark-mode .segment-pill,
.dark .segment-pill {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .segment-pill.active,
.dark-mode .segment-pill.active,
.dark .segment-pill.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* ==========================================================================
   2026 LUXURY SUITE: 8 MASTER POWER FEATURES
   ========================================================================== */

/* 1. APP LOCK FULLSCREEN OVERLAY & NUMPAD */
.app-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-lock-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-lock-brand {
  margin-bottom: 24px;
}

.app-lock-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(0, 168, 132, 0.12);
  border: 1px solid rgba(0, 168, 132, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 12px 30px rgba(0, 168, 132, 0.2);
}

.app-lock-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.app-lock-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}

/* PIN Dots */
.pin-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
  background: #00a884;
  border-color: #00a884;
  box-shadow: 0 0 16px rgba(0, 168, 132, 0.8);
  transform: scale(1.15);
}

.pin-dots-container.shake {
  animation: pinShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pinShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Keypad Grid */
.lock-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 290px;
}

.lock-key-btn {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lock-key-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lock-key-btn:active {
  transform: scale(0.92);
  background: rgba(0, 168, 132, 0.3);
  border-color: #00a884;
}

.lock-key-btn.lock-key-clear {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  background: transparent;
  border-color: transparent;
}

.lock-key-btn.lock-key-backspace {
  background: transparent;
  border-color: transparent;
  color: #cbd5e1;
}

/* 2. MULTI-SELECT & BATCH FLOATING ACTION BAR */
.batch-action-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: slideDownBatch 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBatch {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.batch-action-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.batch-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.batch-count-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.batch-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.batch-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.batch-action-btn.primary {
  background: #00a884;
  border-color: #00a884;
  color: #ffffff;
}

.batch-action-btn.primary:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.batch-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
}

/* Message selection mode row highlight */
.msg-row.select-mode {
  cursor: pointer;
}

.msg-row.select-mode.selected-for-batch .msg-bubble {
  outline: 2.5px solid #00a884;
  box-shadow: 0 0 16px rgba(0, 168, 132, 0.35);
}

/* 3. VOICE NOTE SPEED CONTROLLER */
.vn-speed-btn {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 168, 132, 0.12);
  color: #00a884;
  border: 1px solid rgba(0, 168, 132, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  user-select: none;
}

.vn-speed-btn:hover {
  background: #00a884;
  color: #ffffff;
  transform: scale(1.08);
}

/* 4. EXTENDED EMOJI REACTION POPOVER */
.extended-emoji-popover {
  position: fixed;
  z-index: 10005;
  width: 320px;
  background: var(--nc-bg-primary, #ffffff);
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: scaleInPopover 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInPopover {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.emoji-popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.emoji-search-box {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03));
  color: var(--nc-text-main);
  font-size: 13px;
  outline: none;
}

.emoji-close-btn {
  background: none;
  border: none;
  color: var(--nc-text-sub);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.emoji-category-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06));
  margin-bottom: 8px;
}

.emoji-cat-tab {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.emoji-cat-tab:hover,
.emoji-cat-tab.active {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.06));
  transform: scale(1.15);
}

.emoji-grid-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.emoji-item-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: all 0.12s ease;
}

.emoji-item-btn:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.08));
  transform: scale(1.25);
}

/* 5. QR CODE SCANNER LASER */
.qr-scan-laser {
  width: 100%;
  height: 2px;
  background: #00a884;
  box-shadow: 0 0 12px 2px #00a884;
  position: absolute;
  top: 0;
  animation: scanLaserAnim 2s infinite ease-in-out;
}

@keyframes scanLaserAnim {
  0% { top: 0; opacity: 0.8; }
  50% { top: calc(100% - 2px); opacity: 1; }
  100% { top: 0; opacity: 0.8; }
}

/* 6. RICH LINK PREVIEW CARD */
.rich-link-card {
  margin-top: 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
  max-width: 320px;
}

.rich-link-card:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.rich-link-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #000;
}

.rich-link-info {
  padding: 10px 12px;
}

.rich-link-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nc-text-main);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rich-link-desc {
  font-size: 12px;
  color: var(--nc-text-sub);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.rich-link-domain {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Dark mode overrides for new power features */
[data-theme="dark"] .extended-emoji-popover,
.dark-mode .extended-emoji-popover,
.dark .extended-emoji-popover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .rich-link-card,
.dark-mode .rich-link-card,
.dark .rich-link-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .rich-link-card:hover,
.dark-mode .rich-link-card:hover,
.dark .rich-link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   2026 GOLD STANDARD EMOJI, STICKER, GIF & REACTION SUITE
   ========================================================================== */

/* 1. Composer Floating Emoji Tray Popover */
.composer-emoji-tray {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 410px;
  max-height: 75vh;
  background: var(--nc-bg-primary, #ffffff);
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: emojiTrayPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom left;
}

@keyframes emojiTrayPopIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 2. Tray Header & Main Tabs */
.emoji-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--nc-bg-secondary, rgba(0, 0, 0, 0.02));
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.07));
  flex-shrink: 0;
}

.emoji-main-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.05));
  padding: 3px;
  border-radius: 12px;
}

.emoji-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--nc-text-sub, #64748b);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.emoji-tab-btn:hover {
  color: var(--nc-text-main, #0f172a);
}

.emoji-tab-btn.active {
  background: var(--nc-bg-primary, #ffffff);
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.emoji-tray-close-btn {
  background: transparent;
  border: none;
  color: var(--nc-text-sub, #64748b);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.emoji-tray-close-btn:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.06));
  color: var(--nc-text-main, #0f172a);
}

/* 3. Search Bar */
.emoji-search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 14px 6px;
  flex-shrink: 0;
}

.emoji-search-bar-wrap .search-input-icon {
  position: absolute;
  left: 10px;
  color: var(--nc-text-sub, #94a3b8);
  pointer-events: none;
}

.emoji-search-input {
  width: 100%;
  padding: 7px 30px 7px 32px;
  border-radius: 10px;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03));
  color: var(--nc-text-main, #0f172a);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.emoji-search-input:focus {
  border-color: #0284c7;
  background: var(--nc-bg-primary, #ffffff);
}

.emoji-clear-search-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--nc-text-sub, #94a3b8);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 50%;
}

/* 4. Category Strip */
.emoji-category-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 12px 6px;
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.05));
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.emoji-category-strip::-webkit-scrollbar {
  display: none;
}

.emoji-cat-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.emoji-cat-btn:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.05));
  transform: scale(1.12);
}

.emoji-cat-btn.active {
  background: rgba(2, 132, 199, 0.12);
  transform: scale(1.16);
}

/* 5. Grids Container */
.emoji-tray-view {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.emoji-tray-view.hidden,
.composer-emoji-tray.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.emoji-tray-grid {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 8px 12px 16px !important;
  display: grid !important;
  grid-template-columns: repeat(8, 1fr) !important;
  gap: 4px !important;
  align-content: start !important;
}

.emoji-section-header {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nc-text-sub, #64748b);
  margin-top: 6px;
  margin-bottom: 2px;
  padding-left: 2px;
}

.emoji-cell-btn,
.emoji-tile-btn {
  background: transparent !important;
  border: none !important;
  font-size: 24px !important;
  height: 38px !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.12s ease !important;
  user-select: none !important;
}

.emoji-cell-btn:hover,
.emoji-tile-btn:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.07)) !important;
  transform: scale(1.25) !important;
  z-index: 2 !important;
}

.emoji-cell-btn:active,
.emoji-tile-btn:active {
  transform: scale(0.95) !important;
}

/* 6. Stickers Grid */
.sticker-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.sticker-pill {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 14px;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03));
  color: var(--nc-text-sub, #64748b);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sticker-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.sticker-tray-grid {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px 16px;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  align-content: start !important;
}

.sticker-card-btn,
.sticker-card-item {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03)) !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.06)) !important;
  border-radius: 14px !important;
  padding: 12px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sticker-card-btn:hover,
.sticker-card-item:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.08)) !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) !important;
}

.sticker-card-icon,
.sticker-display-art {
  font-size: 34px !important;
  line-height: 1 !important;
}

img.sticker-card-icon,
img.sticker-display-art {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12)) !important;
}

.sticker-card-label,
.sticker-pack-label {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main, #334155) !important;
}

/* 7. GIFs Grid & Quick Tags */
.gif-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.gif-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03));
  color: var(--nc-text-sub, #64748b);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gif-tag.active {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.3);
}

.gif-tray-grid {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px 16px;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  align-content: start !important;
}

.gif-card-btn,
.gif-card-item {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  background: #000 !important;
  cursor: pointer !important;
  height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
}

.gif-card-btn:hover,
.gif-card-item:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  border-color: #0284c7 !important;
}

.gif-card-btn img,
.gif-card-item img,
.gif-preview-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.gif-card-label,
.gif-card-overlay {
  position: absolute !important;
  bottom: 4px !important;
  left: 6px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  color: #fff !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  max-width: calc(100% - 12px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.gif-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03));
  color: var(--nc-text-sub, #64748b);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gif-tag.active {
  background: rgba(0, 168, 132, 0.12);
  color: #00a884;
  border-color: rgba(0, 168, 132, 0.3);
}

.gif-tray-grid {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gif-card-btn {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08));
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.gif-card-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  border-color: #00a884;
}

.gif-card-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-card-label {
  position: absolute;
  bottom: 4px;
  left: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* 8. Big Emoji Display (WhatsApp Style) */
.big-emoji-message {
  font-size: 38px !important;
  line-height: 1.25 !important;
  padding: 4px 8px !important;
  display: inline-block;
  user-select: text;
}

.big-emoji-message.emoji-single {
  font-size: 48px !important;
}

/* 9. Floating Reaction Trigger & Reactions Dock */
.msg-hover-reaction-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--nc-bg-primary, #ffffff);
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.1));
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nc-text-sub, #64748b);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.message-row:hover .msg-hover-reaction-btn {
  opacity: 1;
  pointer-events: auto;
}

.message-row.outgoing .msg-hover-reaction-btn {
  left: -32px;
}

.message-row.incoming .msg-hover-reaction-btn {
  right: -32px;
}

.msg-hover-reaction-btn:hover {
  background: var(--nc-bg-input, #f1f5f9);
  color: var(--nc-text-main, #0f172a);
  transform: translateY(-50%) scale(1.15);
}

/* 10. Dark Mode Tokens for Emoji Suite */
[data-theme="dark"] .composer-emoji-tray,
.dark-mode .composer-emoji-tray,
.dark .composer-emoji-tray {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .emoji-tray-header,
.dark-mode .emoji-tray-header,
.dark .emoji-tray-header {
  background: #0f172a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .emoji-main-tabs,
.dark-mode .emoji-main-tabs,
.dark .emoji-main-tabs {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .emoji-tab-btn.active,
.dark-mode .emoji-tab-btn.active,
.dark .emoji-tab-btn.active {
  background: #1e293b;
  color: #0284c7;
}

[data-theme="dark"] .emoji-search-input,
.dark-mode .emoji-search-input,
.dark .emoji-search-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

[data-theme="dark"] .emoji-search-input:focus,
.dark-mode .emoji-search-input:focus,
.dark .emoji-search-input:focus {
  background: #0f172a;
  border-color: #0284c7;
}

[data-theme="dark"] .sticker-card-btn,
.dark-mode .sticker-card-btn,
.dark .sticker-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sticker-card-btn:hover,
.dark-mode .sticker-card-btn:hover,
.dark .sticker-card-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #00a884;
}

[data-theme="dark"] .sticker-card-label,
.dark-mode .sticker-card-label,
.dark .sticker-card-label {
  color: #e2e8f0;
}

[data-theme="dark"] .msg-hover-reaction-btn,
.dark-mode .msg-hover-reaction-btn,
.dark .msg-hover-reaction-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

[data-theme="dark"] .msg-hover-reaction-btn:hover,
.dark-mode .msg-hover-reaction-btn:hover,
.dark .msg-hover-reaction-btn:hover {
  background: #334155;
  color: #ffffff;
}

/* ==========================================================================
   11. LUXURY STATUS & 24H STORIES SUITE (10/10 GOLD STANDARD)
   ========================================================================== */
.status-pane-container {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  background: var(--nc-sidebar-bg, #ffffff) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  user-select: none !important;
}

.status-pane-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 20px 14px 20px !important;
  background: var(--nc-sidebar-bg, #ffffff) !important;
  border-bottom: 1px solid var(--nc-border, #e9edef) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

.status-pane-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.status-pane-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main, #111b21) !important;
  letter-spacing: -0.4px !important;
  margin: 0 !important;
}

.status-encrypted-pill-mini {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #00a884 !important;
  background: rgba(0, 168, 132, 0.12) !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  letter-spacing: 0.3px !important;
}

/* My Status Card */
.status-my-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  background: var(--nc-sidebar-bg, #ffffff) !important;
  border-radius: 16px !important;
  margin: 12px 14px 8px 14px !important;
  border: 1px solid var(--nc-border, #e9edef) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  position: relative !important;
}

.status-my-card:hover {
  background: var(--nc-card-hover, #f5f6f6) !important;
  border-color: rgba(0, 168, 132, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

.status-avatar-wrapper {
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.status-avatar-core {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #00a884, #008069) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.status-plus-badge {
  position: absolute !important;
  bottom: -2px !important;
  right: -2px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #00a884 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--nc-sidebar-bg, #ffffff) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease !important;
  padding: 0 !important;
}

.status-plus-badge:hover {
  transform: scale(1.15) !important;
  background: #008069 !important;
}

.status-my-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.status-my-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main, #111b21) !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.status-my-subtext {
  font-size: 13px !important;
  color: var(--nc-text-sub, #667781) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.status-quick-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.status-action-circle-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid var(--nc-border, #e9edef) !important;
  background: var(--nc-card-hover, #f5f6f6) !important;
  color: var(--nc-text-sub, #667781) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.status-action-circle-btn:hover {
  background: #00a884 !important;
  color: #ffffff !important;
  border-color: #00a884 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 10px rgba(0, 168, 132, 0.3) !important;
}

/* Privacy Notice */
.status-privacy-notice {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  margin: 4px 14px 12px 14px !important;
  border-radius: 12px !important;
  background: rgba(0, 168, 132, 0.08) !important;
  border: 1px solid rgba(0, 168, 132, 0.18) !important;
  color: var(--nc-text-sub, #667781) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.status-privacy-notice svg {
  flex-shrink: 0 !important;
  color: #00a884 !important;
}

.status-privacy-notice strong {
  color: #00a884 !important;
  font-weight: 700 !important;
}

/* Section Header */
.status-section-header {
  padding: 12px 20px 6px 20px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--nc-text-muted, #8696a0) !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
}

/* Status List */
.status-list-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 0 10px 24px 10px !important;
  flex: 1 !important;
}

.status-item-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent !important;
}

.status-item-card:hover {
  background: var(--nc-card-hover, #f5f6f6) !important;
  border-color: var(--nc-border, #e9edef) !important;
}

.status-item-avatar-wrap {
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Status Rings */
.status-ring-unseen {
  padding: 2.5px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #00a884, #06b6d4, #3b82f6) !important;
  box-shadow: 0 2px 8px rgba(0, 168, 132, 0.25) !important;
}

.status-ring-seen {
  padding: 2px !important;
  border-radius: 50% !important;
  background: var(--nc-border, #e9edef) !important;
}

.status-item-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.status-item-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--nc-text-main, #111b21) !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.status-item-time {
  font-size: 13px !important;
  color: var(--nc-text-sub, #667781) !important;
}

.status-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 40px 20px !important;
  color: var(--nc-text-muted, #8696a0) !important;
}

.status-empty-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: var(--nc-card-hover, #f5f6f6) !important;
  color: var(--nc-text-muted, #8696a0) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
}

.status-empty-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--nc-text-main, #111b21) !important;
  margin-bottom: 4px !important;
}

.status-empty-sub {
  font-size: 12.5px !important;
  color: var(--nc-text-sub, #667781) !important;
  max-width: 240px !important;
  line-height: 1.4 !important;
}

/* Text Status Composer Modal */
.status-story-composer {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 540px !important;
  max-height: 720px !important;
  border-radius: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 24px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: background 0.4s ease !important;
}

.status-composer-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 5 !important;
}

.status-encryption-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
}

.composer-icon-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.composer-icon-btn:hover {
  background: rgba(0, 0, 0, 0.45) !important;
  transform: scale(1.1) !important;
}

.status-composer-body {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

#textStatusInput {
  width: 100% !important;
  max-height: 280px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  text-align: center !important;
  line-height: 1.4 !important;
  resize: none !important;
  font-family: inherit !important;
}

#textStatusInput::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.status-composer-bottombar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 5 !important;
}

.status-expiry-hint {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.status-post-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  color: #111b21 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.status-post-btn:hover {
  background: #f0f2f5 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Photo Status Composer Modal */
.status-photo-composer {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 540px !important;
  max-height: 720px !important;
  border-radius: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 20px !important;
  background: #0f172a !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
  position: relative !important;
  overflow: hidden !important;
}

.status-photo-preview-wrap {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  margin: 14px 0 !important;
  background: #000000 !important;
}

#photoStatusPreviewImg {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}

.status-photo-bottombar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.status-caption-input {
  flex: 1 !important;
  padding: 12px 18px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  outline: none !important;
}

.status-caption-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.status-photo-send-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #00a884 !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4) !important;
  flex-shrink: 0 !important;
}

.status-photo-send-btn:hover {
  background: #008069 !important;
  transform: scale(1.1) !important;
}

/* Story Viewer Modal */
.status-story-viewer-card {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 480px !important;
  max-height: 820px !important;
  border-radius: 24px !important;
  background: #000000 !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
}

.story-progress-container {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: 14px !important;
  display: flex !important;
  gap: 6px !important;
  z-index: 30 !important;
}

.story-progress-bar-bg {
  flex: 1 !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
}

.story-progress-bar-fill {
  height: 100% !important;
  width: 0% !important;
  background: #ffffff !important;
  border-radius: 3px !important;
  transition: width linear !important;
}

.story-viewer-header {
  position: absolute !important;
  top: 26px !important;
  left: 14px !important;
  right: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 30 !important;
}

.story-viewer-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  background: #00a884 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
}

.story-viewer-userinfo {
  flex: 1 !important;
  min-width: 0 !important;
}

.story-viewer-name {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.story-viewer-time {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.story-header-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #00a884 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(0, 168, 132, 0.4) !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
}

.story-media-canvas {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 30px !important;
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  position: relative !important;
}

.story-media-canvas img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.story-tap-zone {
  position: absolute !important;
  top: 80px !important;
  bottom: 80px !important;
  width: 40% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  z-index: 25 !important;
}

.story-tap-left {
  left: 0 !important;
}

.story-tap-right {
  right: 0 !important;
}

.story-caption-overlay {
  position: absolute !important;
  bottom: 24px !important;
  left: 20px !important;
  right: 20px !important;
  padding: 12px 18px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  text-align: center !important;
  z-index: 30 !important;
}

/* Owner Story Viewers Control & Bottom Sheet */
.story-viewer-count-bar {
  position: absolute !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-height: 44px !important;
  min-width: 72px !important;
  padding: 8px 18px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  z-index: 40 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  outline: none !important;
}

.story-viewer-count-bar:hover {
  background: rgba(0, 168, 132, 0.28) !important;
  border-color: #00a884 !important;
  transform: translateX(-50%) scale(1.05) !important;
}

.story-viewer-count-bar:active {
  transform: translateX(-50%) scale(0.97) !important;
}

.story-viewer-count-text {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.story-viewers-sheet {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60% !important;
  max-height: 520px !important;
  background: #111b21 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  z-index: 50 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.75) !important;
  animation: slideUpViewers 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

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

.story-viewers-header {
  padding: 6px 16px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.story-viewers-handle-bar {
  width: 36px !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.28) !important;
  border-radius: 2px !important;
  margin: 6px auto 10px !important;
}

.story-viewers-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.story-viewers-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.story-viewers-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #e9edef !important;
  margin: 0 !important;
}

.story-viewers-badge {
  background: #00a884 !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
}

.story-viewers-close-btn {
  color: #8696a0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  padding: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.story-viewers-close-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.story-viewers-list {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 8px 10px !important;
}

.story-viewer-item {
  display: flex !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  transition: background 0.15s ease !important;
}

.story-viewer-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.story-viewers-empty {
  padding: 44px 16px !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13.5px !important;
}

/* Dark Mode Overrides for Status Suite */
[data-theme="dark"] .status-pane-container,
.dark-mode .status-pane-container,
.dark .status-pane-container {
  background: #111b21 !important;
}

[data-theme="dark"] .status-pane-header,
.dark-mode .status-pane-header,
.dark .status-pane-header {
  background: #111b21 !important;
  border-bottom-color: #202c33 !important;
}

[data-theme="dark"] .status-pane-title,
.dark-mode .status-pane-title,
.dark .status-pane-title {
  color: #e9edef !important;
}

[data-theme="dark"] .status-my-card,
.dark-mode .status-my-card,
.dark .status-my-card {
  background: #202c33 !important;
  border-color: #2a3942 !important;
}

[data-theme="dark"] .status-my-card:hover,
.dark-mode .status-my-card:hover,
.dark .status-my-card:hover {
  background: #2a3942 !important;
}

[data-theme="dark"] .status-my-title,
.dark-mode .status-my-title,
.dark .status-my-title {
  color: #e9edef !important;
}

[data-theme="dark"] .status-my-subtext,
.dark-mode .status-my-subtext,
.dark .status-my-subtext {
  color: #8696a0 !important;
}

[data-theme="dark"] .status-plus-badge,
.dark-mode .status-plus-badge,
.dark .status-plus-badge {
  border-color: #202c33 !important;
}

[data-theme="dark"] .status-action-circle-btn,
.dark-mode .status-action-circle-btn,
.dark .status-action-circle-btn {
  background: #111b21 !important;
  border-color: #2a3942 !important;
  color: #8696a0 !important;
}

[data-theme="dark"] .status-action-circle-btn:hover,
.dark-mode .status-action-circle-btn:hover,
.dark .status-action-circle-btn:hover {
  background: #00a884 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .status-item-card:hover,
.dark-mode .status-item-card:hover,
.dark .status-item-card:hover {
  background: #202c33 !important;
  border-color: #2a3942 !important;
}

[data-theme="dark"] .status-item-name,
.dark-mode .status-item-name,
.dark .status-item-name {
  color: #e9edef !important;
}

[data-theme="dark"] .status-item-time,
.dark-mode .status-item-time,
.dark .status-item-time {
  color: #8696a0 !important;
}

[data-theme="dark"] .status-empty-icon,
.dark-mode .status-empty-icon,
.dark .status-empty-icon {
  background: #202c33 !important;
  color: #8696a0 !important;
}

[data-theme="dark"] .status-empty-title,
.dark-mode .status-empty-title,
.dark .status-empty-title {
  color: #e9edef !important;
}

[data-theme="dark"] .status-empty-sub,
.dark-mode .status-empty-sub,
.dark .status-empty-sub {
  color: #8696a0 !important;
}

/* NamasteChat status palette: keep the existing UI, use the site's blue brand. */
.status-encrypted-pill-mini {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.12) !important;
}

.status-my-card:hover {
  border-color: rgba(2, 132, 199, 0.3) !important;
}

.status-avatar-core {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
}

.status-plus-badge,
.status-action-circle-btn:hover,
[data-theme="dark"] .status-action-circle-btn:hover,
.dark-mode .status-action-circle-btn:hover,
.dark .status-action-circle-btn:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

.status-plus-badge:hover,
.status-photo-send-btn:hover {
  background: #0369a1 !important;
}

.status-action-circle-btn:hover {
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}

.status-privacy-notice {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.18) !important;
}

.status-privacy-notice svg,
.status-privacy-notice strong {
  color: #0284c7 !important;
}

.status-ring-unseen {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #38bdf8 100%) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
}

.status-story-composer {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.status-photo-send-btn,
.story-viewer-avatar {
  background: #0284c7 !important;
}

.status-photo-send-btn {
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

.story-header-pill {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
}

/* Call History Delete & Actions */
.call-history-item {
  transition: all 0.15s ease !important;
}

.call-history-item:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.05)) !important;
}

.call-log-delete-btn {
  opacity: 0.55;
  transition: all 0.15s ease;
}

.call-history-item:hover .call-log-delete-btn {
  opacity: 1 !important;
}

.call-log-delete-btn:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  transform: scale(1.1);
}

.call-clear-btn:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Modern In-Chat Live Search Bar Overlay */
.in-chat-search-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 16px !important;
  background: var(--nc-bg-primary, #ffffff) !important;
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08)) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  z-index: 50 !important;
  gap: 12px !important;
  transition: all 0.18s ease !important;
}

.in-chat-search-bar.hidden {
  display: none !important;
}

[data-theme="dark"] .in-chat-search-bar,
.dark-mode .in-chat-search-bar,
.dark .in-chat-search-bar {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.in-chat-search-input-wrap {
  position: relative !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.in-chat-search-input-wrap svg {
  position: absolute !important;
  left: 10px !important;
  color: var(--nc-text-sub, #94a3b8) !important;
  pointer-events: none !important;
}

#inChatSearchInput {
  width: 100% !important;
  padding: 7px 30px 7px 32px !important;
  border-radius: 8px !important;
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.12)) !important;
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.03)) !important;
  color: var(--nc-text-main, #0f172a) !important;
  font-size: 13px !important;
  outline: none !important;
  transition: border-color 0.15s ease !important;
}

#inChatSearchInput:focus {
  border-color: #0284c7 !important;
  background: var(--nc-bg-primary, #ffffff) !important;
}

[data-theme="dark"] #inChatSearchInput {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #inChatSearchInput:focus {
  background: #1e293b !important;
  border-color: #0284c7 !important;
}

.in-chat-search-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.in-chat-search-count {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--nc-text-sub, #64748b) !important;
  min-width: 48px !important;
  text-align: center !important;
}

.in-chat-nav-btn,
.in-chat-close-btn,
.in-chat-search-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  color: var(--nc-text-sub, #64748b) !important;
  cursor: pointer !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.in-chat-nav-btn:hover:not(:disabled),
.in-chat-close-btn:hover {
  background: var(--nc-bg-input, rgba(0, 0, 0, 0.06)) !important;
  color: var(--nc-text-main, #0f172a) !important;
}

[data-theme="dark"] .in-chat-nav-btn:hover:not(:disabled),
[data-theme="dark"] .in-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

.in-chat-nav-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.message-search-highlight {
  outline: 2px solid #0284c7 !important;
  outline-offset: 3px !important;
  transition: outline 0.15s ease !important;
}

.message-search-active {
  outline: 2.5px solid #f59e0b !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}

/* ==================================================
   TRANSPARENT STICKER PRESENTATION
   ================================================== */

.message-row.is-sticker-row .message-bubble.sticker-bubble,
.message-bubble.sticker-bubble {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: visible !important;
}

.sticker-artwork-container {
  position: relative;
  display: block;
}

.sticker-artwork-img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}

@media (max-width: 768px) {
  .sticker-artwork-img {
    width: 170px;
    height: 170px;
    max-width: 170px;
    max-height: 170px;
  }
}

.message-bubble.sticker-bubble .message-meta-inline.sticker-meta {
  position: absolute !important;
  right: 6px !important;
  bottom: 4px !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
  background: rgba(15,23,42,.45) !important;
  color: #fff !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  z-index: 2 !important;
}

/* ==================================================
   MY NAMASTE AVATAR CREATOR (PHASE 2 UI)
   ================================================== */

.create-avatar-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1.5px solid rgba(2, 132, 199, 0.28);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  min-height: 40px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  width: fit-content;
  align-self: center;
}

.create-avatar-entry-btn:hover {
  background: rgba(2, 132, 199, 0.16);
  border-color: #0284c7;
  transform: translateY(-1px);
}

.create-avatar-entry-btn:active {
  transform: translateY(0);
}

.create-avatar-sparkle {
  font-size: 14px;
  line-height: 1;
}

/* Dialog Container (Desktop Centered, Mobile Fullscreen) */
.avatar-creator-dialog {
  display: flex;
  flex-direction: column;
  background: var(--nc-bg-primary, #ffffff);
  width: 92%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08));
  overflow: hidden;
  animation: avatarModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avatarModalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.avatar-creator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nc-border-subtle, rgba(0, 0, 0, 0.08));
  background: var(--nc-bg-primary, #ffffff);
}

.avatar-creator-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--nc-text-main, #0f172a);
  margin: 0;
}

.avatar-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--nc-text-sub, #64748b);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.avatar-header-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--nc-text-main, #0f172a);
}

.avatar-creator-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.avatar-creator-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.avatar-creator-step.hidden {
  display: none !important;
}

/* Step 1: Hero Graphic */
.avatar-hero-graphic {
  margin-bottom: 16px;
}

.avatar-sparkle-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.avatar-mock-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.1);
  border: 2px dashed rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-sparkle-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 15px;
}

.avatar-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nc-text-main, #0f172a);
  margin: 0 0 6px 0;
}

.avatar-step-subtitle {
  font-size: 13.5px;
  color: var(--nc-text-sub, #64748b);
  line-height: 1.45;
  margin: 0 0 16px 0;
  max-width: 340px;
}

/* Privacy Disclosure */
.avatar-privacy-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.avatar-privacy-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.avatar-privacy-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--nc-text-sub, #475569);
}

/* Actions List */
.avatar-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.avatar-primary-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.avatar-primary-btn:hover:not(:disabled) {
  background: #0369a1;
}

.avatar-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.avatar-secondary-btn {
  background: transparent;
  color: var(--nc-text-main, #0f172a);
  border: 1.5px solid var(--nc-border-subtle, #cbd5e1);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.avatar-secondary-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #94a3b8;
}

/* Step 2: Preview */
.avatar-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  width: 100%;
}

.avatar-crop-viewport {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--nc-border-subtle, #e2e8f0);
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 10px;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.avatar-crop-viewport:active {
  cursor: grabbing;
}

.avatar-source-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-crop-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.avatar-guide-head {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 110px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50% 50% 45% 45%;
}

.avatar-guide-shoulders {
  position: absolute;
  top: 135px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 70px;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50% 50% 0 0;
  border-bottom: none;
}

.avatar-crop-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 6px;
}

.avatar-zoom-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--nc-border-subtle, #e2e8f0);
  background: var(--nc-bg-surface, #ffffff);
  color: var(--nc-text-main, #0f172a);
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.avatar-zoom-slider {
  flex: 1;
  accent-color: #0284c7;
  cursor: pointer;
  height: 4px;
}

.avatar-reset-crop-btn {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--nc-border-subtle, #cbd5e1);
  background: transparent;
  color: var(--nc-text-sub, #64748b);
  cursor: pointer;
  font-weight: 500;
}

.avatar-reset-crop-btn:hover {
  color: var(--nc-text-main, #0f172a);
  border-color: #94a3b8;
}

.avatar-preview-hint {
  font-size: 11px;
  color: var(--nc-text-sub, #64748b);
  text-align: center;
  margin-bottom: 10px;
}

.avatar-guidance-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--nc-text-main, #334155);
  line-height: 1.45;
  text-align: left;
}

.avatar-guidance-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.avatar-dev-inspect-wrap {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 8px;
}

.avatar-dev-inspect-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.avatar-dev-inspect-content {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  margin-top: 4px;
}

.avatar-preview-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

/* Step 3: Loading & Dev Mock */
.avatar-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 16px;
}

.avatar-loader-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-loader-spinner {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(2, 132, 199, 0.15);
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: avatarSpin 1s linear infinite;
}

@keyframes avatarSpin {
  to { transform: rotate(360deg); }
}

.avatar-loader-icon {
  font-size: 24px;
}

.avatar-dev-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.avatar-dev-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #f59e0b;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.avatar-dev-notice p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #92400e;
}

.avatar-profile-opt-wrap {
  margin-bottom: 20px;
  width: 100%;
  text-align: left;
}

.avatar-profile-opt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nc-text-sub, #64748b);
  cursor: pointer;
  opacity: 0.65;
}

.avatar-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0284c7;
}

.avatar-review-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

/* Mobile full-screen creator overlay */
@media (max-width: 768px) {
  .avatar-creator-dialog {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  .avatar-creator-header {
    padding-top: max(14px, env(safe-area-inset-top, 14px));
  }

  .avatar-creator-body {
    padding: 20px 16px;
  }
}

/* Dark Mode Overrides */
[data-theme="dark"] .avatar-creator-dialog {
  background: #111b21 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .avatar-creator-header {
  background: #111b21 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .avatar-creator-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .avatar-step-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .avatar-step-subtitle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .avatar-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .avatar-mock-preview {
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

[data-theme="dark"] .avatar-sparkle-badge {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .avatar-privacy-notice {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.2) !important;
}

[data-theme="dark"] .avatar-privacy-text {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .avatar-secondary-btn {
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .avatar-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #64748b !important;
}

[data-theme="dark"] .create-avatar-entry-btn {
  background: rgba(2, 132, 199, 0.14) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .create-avatar-entry-btn:hover {
  background: rgba(2, 132, 199, 0.22) !important;
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .avatar-dev-notice {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .avatar-dev-notice p {
  color: #fcd34d !important;
}

/* ==========================================================================
   DEFINITIVE MOBILE LAYOUT RECOVERY (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. App container occupies exact viewport */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .app-container {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
  }

  /* 2. Desktop navigation rail is strictly hidden on mobile */
  .sidebar-rail {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* 3. Primary sidebar chat list fills 100% of viewport */
  .sidebar-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    z-index: 50 !important;
    transform: translateX(0) !important;
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .sidebar-main-pane,
  aside#sidebar.sidebar-main-pane {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    border-right: none !important;
    z-index: 50 !important;
    transform: translateX(0) !important;
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. When chat is open, sidebar translates left off-screen and drops below */
  .app-container.mobile-chat-open aside#sidebar.sidebar-main-pane,
  .app-container.mobile-chat-open #sidebar,
  .app-container.mobile-chat-open .sidebar-main-pane,
  body.compact-chat-open aside#sidebar.sidebar-main-pane,
  body.compact-chat-open #sidebar,
  body.compact-chat-open .sidebar-main-pane,
  .app-container.mobile-chat-open .sidebar-wrapper,
  body.compact-chat-open .sidebar-wrapper {
    transform: translateX(-100vw) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  /* 5. Mobile bottom navigation sits fixed at bottom */
  #mobileBottomNav.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99 !important;
    display: flex !important;
    transform: translateY(0) !important;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
  }

  /* 6. When chat is open, bottom nav slides down and hides */
  .app-container.mobile-chat-open #mobileBottomNav,
  .app-container.mobile-chat-open #mobileBottomNav.mobile-bottom-nav,
  body.compact-chat-open #mobileBottomNav,
  body.compact-chat-open #mobileBottomNav.mobile-bottom-nav,
  .app-container.mobile-chat-open .mobile-bottom-nav,
  body.compact-chat-open .mobile-bottom-nav {
    transform: translateY(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* 7. Chat area fills 100% of viewport */
  .chat-area,
  main.chat-area {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    z-index: 40 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .app-container.mobile-chat-open .chat-area,
  .app-container.mobile-chat-open main.chat-area,
  body.compact-chat-open .chat-area,
  body.compact-chat-open main.chat-area {
    z-index: 60 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* 8. Active chat wrapper fills full viewport width */
  #activeChat,
  .active-chat-wrapper {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
  }

  .app-container.mobile-chat-open #activeChat,
  .app-container.mobile-chat-open .active-chat-wrapper,
  body.compact-chat-open #activeChat,
  body.compact-chat-open .active-chat-wrapper {
    z-index: 60 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* 9. Back button visible on mobile */
  .mobile-back-btn,
  #backBtn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
  }

  /* 10. Message composer bar fits full mobile width with safe areas & compact unified row */
  .message-composer-bar,
  #activeChat .message-composer-bar {
    width: 100% !important;
    max-width: 100vw !important;
    max-width: 100% !important;
    min-height: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 140px !important;
    padding-top: 6px !important;
    padding-left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .composer-btn-wrap {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    margin: 0 !important;
    position: relative !important;
  }

  .composer-icon-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #54656F !important;
    background: transparent !important;
    opacity: 0.95 !important;
    border: none !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
  }

  [data-theme="dark"] .composer-icon-btn {
    color: #A0B3C6 !important;
    background: transparent !important;
    opacity: 0.95 !important;
  }

  .composer-icon-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .composer-input-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 42px !important;
    width: 0 !important;
    max-width: 100% !important;
    max-height: 120px !important;
    border-radius: 21px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #E2EBF3 !important;
    background: #F4F8FC !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  }

  [data-theme="dark"] .composer-input-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #1C2834 !important;
    box-shadow: none !important;
  }

  .composer-input-wrapper:focus-within {
    border-color: #0284C7 !important;
    box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.2) !important;
    background: #ffffff !important;
    outline: none !important;
  }

  [data-theme="dark"] .composer-input-wrapper:focus-within {
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2) !important;
    background: #1C2834 !important;
    outline: none !important;
  }

  .composer-textarea {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 22px !important;
    height: 22px !important;
    max-height: 110px !important;
    font-size: 17px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    color: #0F172A !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    resize: none !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    align-self: center !important;
    border: none !important;
    outline: none !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  [data-theme="dark"] .composer-textarea {
    color: #F1F5F9 !important;
  }

  .composer-textarea::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .composer-textarea::placeholder {
    color: var(--nc-text-muted, #64748B) !important;
    font-size: 17px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  [data-theme="dark"] .composer-textarea::placeholder {
    color: var(--nc-text-muted, #94A3B8) !important;
  }

  .composer-primary-btn-wrap {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    flex-shrink: 0 !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    margin: 0 !important;
    position: relative !important;
    right: auto !important;
    transform: none !important;
  }

  .composer-primary-action-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .composer-primary-action-btn.hidden,
  .composer-primary-btn-wrap .hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .composer-primary-action-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* 11. Contact Info drawer occupies full viewport on mobile */
  .contact-info-drawer {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   SURGICAL DARK THEME FOR NEW GROUP & NEW BROADCAST SURFACES
   ========================================================================== */
[data-theme="dark"] .broadcast-dialog-card {
  background: var(--nc-sidebar-bg, #111b21) !important;
  border: 1px solid var(--nc-border, #2a3942) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .dialog-header-bar {
  background: var(--nc-header-bg, #202c33) !important;
  border-bottom: 1px solid var(--nc-border, #2a3942) !important;
}

[data-theme="dark"] .dialog-title {
  color: var(--nc-text-main, #e9edef) !important;
}

[data-theme="dark"] .dialog-footer-bar {
  background: var(--nc-header-bg, #202c33) !important;
  border-top: 1px solid var(--nc-border, #2a3942) !important;
}

[data-theme="dark"] .dialog-search-input {
  background: var(--nc-chat-bg, #0b141a) !important;
  border: 1px solid var(--nc-border, #2a3942) !important;
  color: var(--nc-text-main, #e9edef) !important;
}

[data-theme="dark"] .dialog-search-input::placeholder {
  color: var(--nc-text-muted, #8696a0) !important;
}

[data-theme="dark"] .dialog-search-input:focus {
  border-color: #0284c7 !important;
  background: var(--nc-chat-bg, #0b141a) !important;
}

[data-theme="dark"] .broadcast-contact-item {
  background: var(--nc-sidebar-bg, #111b21) !important;
  color: var(--nc-text-main, #e9edef) !important;
  border-bottom: 1px solid var(--nc-border, #2a3942) !important;
}

[data-theme="dark"] .broadcast-contact-item:hover {
  background: var(--nc-card-hover, #202c33) !important;
}

[data-theme="dark"] .broadcast-contact-item strong {
  color: var(--nc-text-main, #e9edef) !important;
}

[data-theme="dark"] .broadcast-contact-item small {
  color: var(--nc-text-sub, #aebac1) !important;
}

[data-theme="dark"] .secondary-action-btn {
  background: var(--nc-card-active, #2a3942) !important;
  color: var(--nc-text-main, #e9edef) !important;
  border: 1px solid var(--nc-border, #2a3942) !important;
}

[data-theme="dark"] .secondary-action-btn:hover {
  background: var(--nc-header-bg, #202c33) !important;
}

/* Story Viewer 3-dot Context Menu */
.story-viewer-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#storyViewerDropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: #202c33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 160;
}

#storyViewerDropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: #ef4444;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

#storyViewerDropdown .dropdown-item:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   STATUS 2.0: OWNER VIEWERS FOOTER & VIEWED BY SHEET
   ========================================================================== */
.story-viewer-count-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  min-height: 44px;
  min-width: 80px;
  background: rgba(17, 27, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  color: #e9edef;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  z-index: 40;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  user-select: none;
  touch-action: manipulation;
}

.story-viewer-count-bar:hover {
  background: rgba(32, 44, 51, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%) translateY(-1px);
}

.story-viewer-count-bar:active {
  transform: translateX(-50%) scale(0.97);
}

.story-viewer-count-bar svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.story-viewer-count-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Viewed by Bottom Sheet / Panel */
.story-viewers-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70%;
  background: var(--nc-sidebar-bg, #111b21);
  border-top: 1px solid var(--nc-border, #2a3942);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 50;
  animation: slideUpViewers 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideUpViewers {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
  }
}

.story-viewers-header {
  padding: 12px 18px 12px;
  border-bottom: 1px solid var(--nc-border, #2a3942);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--nc-header-bg, #202c33);
}

.story-viewers-handle-bar {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 0 auto;
}

.story-viewers-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.story-viewers-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-viewers-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--nc-text-main, #e9edef);
  margin: 0;
}

.story-viewers-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 12px;
}

.story-viewers-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--nc-text-sub, #aebac1);
  cursor: pointer;
}

.story-viewers-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--nc-text-main, #e9edef);
}

.story-viewers-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overscroll-behavior: contain;
}

.story-viewer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.story-viewer-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.story-viewer-avatar-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.story-viewer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-viewer-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nc-text-main, #e9edef);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-viewer-time {
  font-size: 12px;
  color: var(--nc-text-sub, #8696a0);
}

.story-viewers-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--nc-text-sub, #8696a0);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   STATUS 2.0 PHASE 2: REPLY COMPOSER & QUOTED PREVIEW
   ========================================================================== */
.story-reply-form {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 40;
  max-width: 480px;
  margin: 0 auto;
  user-select: none;
}

.story-reply-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  min-height: 44px;
  background: rgba(17, 27, 33, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 23px;
  padding: 0 18px;
  color: #e9edef;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.story-reply-input::placeholder {
  color: rgba(233, 237, 239, 0.6);
}

.story-reply-input:focus {
  border-color: #0284c7;
  background: rgba(32, 44, 51, 0.95);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
}

.story-reply-send-btn {
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.story-reply-send-btn:hover:not(:disabled) {
  background: #0369a1;
  transform: scale(1.05);
}

.story-reply-send-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.story-reply-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status Reply Quoted Preview inside Chat Bubble */
.status-reply-quote {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-left: 3.5px solid #0284c7;
  font-size: 12.5px;
  user-select: none;
}

[data-theme="dark"] .status-reply-quote {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #38bdf8;
}

.status-reply-quote-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-reply-quote-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .status-reply-quote-title {
  color: #38bdf8;
}

.status-reply-quote-text {
  font-size: 12px;
  color: var(--nc-text-sub, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

[data-theme="dark"] .status-reply-quote-text {
  color: #94a3b8;
}

/* Phase GP4: Group Profile Polish Styles */
.group-avatar-edit-badge {
  position: absolute !important;
  bottom: 0 !important;
  right: -2px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--nc-primary, #0284c7) !important;
  color: #ffffff !important;
  border: 2.5px solid var(--nc-bg-surface, #ffffff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
  z-index: 5 !important;
  padding: 0 !important;
}
.group-avatar-edit-badge:hover {
  transform: scale(1.1) !important;
  background: var(--nc-primary-hover, #0369a1) !important;
}
.group-field-edit-btn {
  background: transparent !important;
  border: none !important;
  color: var(--nc-text-sub, #94a3b8) !important;
  cursor: pointer !important;
  padding: 4px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
  flex-shrink: 0 !important;
}
.group-field-edit-btn:hover {
  color: var(--nc-primary, #0284c7) !important;
  background: rgba(2, 132, 199, 0.1) !important;
}



