@font-face {
  font-family: 'Quicksand';
  src: url('/fonts/Quicksand.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-primary: #0e1621;
  --bg-secondary: #17212b;
  --bg-tertiary: #242f3d;
  --bg-hover: #202b36;
  --bg-active: #2b5278;
  --bg-input: #242f3d;
  --bg-drawer: #17212b;
  
  --msg-in: #182533;
  --msg-out: #2b5278;
  --msg-out-hover: #325f8a;
  
  --accent: #5288c1;
  --accent-hover: #6499d2;
  --accent-green: #4fae61;
  --accent-orange: #f39c12;
  --danger: #e53935;
  
  --text-primary: #ffffff;
  --text-secondary: #7f91a4;
  --text-muted: #5e6d7d;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #5288c1;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --msg-font-size: 14.5px;
  --msg-radius: 18px;
  --chat-bg: radial-gradient(circle at center, #111b27 0%, #0a111a 100%);
  
  --font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, monospace;
}

/* Theme 2: Midnight OLED Pure Black */
body[data-theme="oled"] {
  --bg-primary: #000000;
  --bg-secondary: #0c0c0e;
  --bg-tertiary: #18181b;
  --bg-hover: #1f1f23;
  --bg-active: #7c3aed;
  --bg-input: #18181b;
  --bg-drawer: #0c0c0e;
  --msg-in: #18181b;
  --msg-out: #7c3aed;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --chat-bg: #000000;
  --border: rgba(255, 255, 255, 0.1);
}

/* Theme 3: Emerald Cyber */
body[data-theme="emerald"] {
  --bg-primary: #09130e;
  --bg-secondary: #0f1f18;
  --bg-tertiary: #193327;
  --bg-hover: #172e23;
  --bg-active: #059669;
  --bg-input: #193327;
  --bg-drawer: #0f1f18;
  --msg-in: #14281f;
  --msg-out: #059669;
  --accent: #10b981;
  --accent-hover: #34d399;
  --chat-bg: radial-gradient(circle at center, #0f241a 0%, #060e0a 100%);
}

/* Theme 4: Sunset Rose */
body[data-theme="rose"] {
  --bg-primary: #150a18;
  --bg-secondary: #1f1124;
  --bg-tertiary: #311c38;
  --bg-hover: #2d1834;
  --bg-active: #db2777;
  --bg-input: #311c38;
  --bg-drawer: #1f1124;
  --msg-in: #291630;
  --msg-out: #db2777;
  --accent: #ec4899;
  --accent-hover: #f472b6;
  --chat-bg: radial-gradient(circle at center, #26122c 0%, #0d0610 100%);
}

/* Theme 5: Ocean Deep Cyber Blue */
body[data-theme="ocean"] {
  --bg-primary: #06111e;
  --bg-secondary: #0b1c30;
  --bg-tertiary: #122b4a;
  --bg-hover: #102640;
  --bg-active: #0891b2;
  --bg-input: #122b4a;
  --bg-drawer: #0b1c30;
  --msg-in: #0f243e;
  --msg-out: #0891b2;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --chat-bg: radial-gradient(circle at center, #0e233d 0%, #040a12 100%);
}

/* Theme 6: Amber Gold */
body[data-theme="amber"] {
  --bg-primary: #141009;
  --bg-secondary: #1f1a10;
  --bg-tertiary: #30271a;
  --bg-hover: #2b2317;
  --bg-active: #d97706;
  --bg-input: #30271a;
  --bg-drawer: #1f1a10;
  --msg-in: #292115;
  --msg-out: #d97706;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --chat-bg: radial-gradient(circle at center, #261e12 0%, #0d0a06 100%);
}

/* Remove ugly white spin buttons on number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Failover / Network Top Status */
#network-banner {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
#network-banner.offline {
  background: #3b1d1d;
  color: #ff9999;
}
#network-banner.failover {
  background: #3d3016;
  color: #f7d57f;
}
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(79, 174, 97, 0.6);
}
.dot.offline { 
  background: var(--danger); 
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
}
.dot.failover { 
  background: var(--accent-orange); 
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
}

/* Main Container */
#app-container {
  display: flex;
  flex: 1;
  height: calc(100% - 28px);
  position: relative;
  overflow: hidden;
}

/* Telegram Side Drawer Menu */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-overlay.active {
  display: block;
  opacity: 1;
}
.drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-drawer);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.drawer-overlay.active .drawer {
  transform: translateX(0);
}
.drawer-header {
  padding: 24px 20px 18px 20px;
  background: linear-gradient(180deg, #1f2c3a 0%, #17212b 100%);
  border-bottom: 1px solid var(--border);
}
.drawer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5288c1, #2b5278);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.drawer-avatar img, .chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar-wrapper {
  position: relative;
  cursor: pointer;
  display: inline-block;
}
.profile-avatar-wrapper:hover .avatar-edit-badge {
  background: var(--accent-hover);
  transform: scale(1.1);
}
.avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.drawer-username {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.drawer-pubkey {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-menu {
  padding: 10px 8px;
  flex: 1;
  overflow-y: auto;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
}
.drawer-item:hover {
  background: var(--bg-hover);
}
.drawer-item:active {
  transform: scale(0.98);
}
.drawer-item svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.drawer-item:hover svg {
  color: var(--accent);
}
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 8px;
}

/* Sidebar */
#sidebar {
  width: 360px;
  min-width: 300px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Telegram Top Search Bar */
.sidebar-topbar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.menu-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.menu-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7367f0;
}
.search-container {
  flex: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.search-container:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-input);
}
.search-container input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
}
.search-container input::placeholder {
  color: var(--text-muted);
}
.search-container svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Chat List */
#chat-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
  border-radius: var(--radius-sm);
  margin: 2px 6px;
}
.chat-item:hover {
  background: var(--bg-hover);
}
.chat-item.active {
  background: var(--bg-active);
}
.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f5873, #2a3d52);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.chat-avatar.group {
  background: linear-gradient(135deg, #3b6b55, #224736);
}
.online-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-green);
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid var(--bg-secondary);
}
.chat-info {
  flex: 1;
  min-width: 0;
}
.chat-info-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.chat-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-time {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.chat-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-preview {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
.chat-item.active .chat-preview {
  color: #d1e2f3;
}
.unread-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  min-width: 18px;
  text-align: center;
}

/* Chat Main View */
#chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  height: 100%;
  position: relative;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  gap: 16px;
  padding: 20px;
}
.empty-badge {
  background: var(--bg-tertiary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}
.chat-header-title {
  font-size: 16px;
  font-weight: 700;
}
.chat-header-status {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.chat-header-status.typing {
  color: var(--accent);
  font-style: italic;
}

/* Message Thread */
#message-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--chat-bg);
}

.msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  animation: fadeIn 0.15s ease-out;
}
.msg-wrapper.in {
  align-self: flex-start;
}
.msg-wrapper.out {
  align-self: flex-end;
}

.msg-bubble {
  padding: 9px 14px;
  border-radius: var(--msg-radius);
  position: relative;
  word-break: break-word;
  font-size: var(--msg-font-size);
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  user-select: text;
  -webkit-user-select: text;
}
.msg-wrapper.in .msg-bubble {
  background-color: var(--msg-in);
  border-bottom-left-radius: 4px;
}
.msg-wrapper.out .msg-bubble {
  background-color: var(--msg-out);
  border-bottom-right-radius: 4px;
}

.msg-sender {
  font-size: 12px;
  font-weight: 700;
  color: #64d2ff;
  margin-bottom: 3px;
}
.msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: right;
  margin-left: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.msg-wrapper.out .msg-meta {
  color: #a6c4e5;
}
.ticks svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.ticks.read svg {
  color: #64d2ff;
}

.msg-image {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  display: block;
}

.chat-input-bar {
  padding: 10px 16px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.chat-input-wrapper {
  flex: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-wrapper:focus-within {
  border-color: var(--accent);
}
.chat-input {
  flex: 1;
  max-height: 120px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  resize: none;
  outline: none;
  padding: 4px 0;
  line-height: 1.4;
}
.chat-input::placeholder {
  color: var(--text-muted);
}
.emoji-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.emoji-btn:hover {
  color: var(--accent);
  background: var(--bg-hover);
  transform: scale(1.1);
}
.send-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0;
  outline: none;
}
.send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(82, 136, 193, 0.4);
}
.send-btn:active {
  transform: scale(0.94);
}
.send-btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* Telegram Floating Emoji & Sticker Picker */
.emoji-picker-panel {
  position: absolute;
  bottom: 72px;
  right: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  z-index: 60;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.15s ease-out;
}
.emoji-picker-panel.active {
  display: flex;
}
.emoji-picker-tabs {
  display: flex;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 4px;
  gap: 4px;
}
.emoji-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}
.emoji-tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--accent);
}
.emoji-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.emoji-search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.emoji-search-box svg {
  color: var(--text-muted);
}
.emoji-categories-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.emoji-categories-nav button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: transform 0.1s, background 0.15s;
}
.emoji-categories-nav button:hover, .emoji-categories-nav button.active {
  background: var(--bg-hover);
  transform: scale(1.15);
}
.emoji-content-pane {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: none;
}
.emoji-content-pane.active {
  display: block;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.emoji-item {
  font-size: 24px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.1s, transform 0.1s;
  user-select: none;
}
.emoji-item:hover {
  background: var(--bg-hover);
  transform: scale(1.2);
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px;
}
.sticker-item {
  font-size: 38px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.sticker-item:hover {
  transform: scale(1.15);
  background: var(--bg-hover);
  border-color: var(--accent);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 700;
}
.form-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input.mono {
  font-family: var(--font-mono);
  font-size: 12px;
}
.form-input:focus {
  border-color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s, background 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: #2f3d4f;
}
.btn-block {
  width: 100%;
}
.btn:active {
  transform: scale(0.98);
}

/* Settings Sub Tabs */
.settings-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.settings-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}
.settings-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.settings-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}
.settings-pane {
  display: none;
}
.settings-pane.active {
  display: block;
}

/* Theme Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.theme-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, border-color 0.2s;
  background: var(--bg-primary);
}
.theme-card:hover {
  transform: translateY(-2px);
}
.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(82, 136, 193, 0.4);
}
.theme-preview-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin: 0 auto 6px auto;
  border: 2px solid rgba(255,255,255,0.2);
}
.theme-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Wallpapers selection */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.wallpaper-card {
  height: 48px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s;
}
.wallpaper-card:hover {
  transform: scale(1.05);
}
.wallpaper-card.active {
  border-color: var(--accent);
}

/* Custom Range Slider */
.slider-group {
  margin-bottom: 14px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.slider-header span.val {
  color: var(--accent);
  font-family: var(--font-mono);
}
input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: var(--radius-pill);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Custom Dark Number Stepper */
.stepper-input {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stepper-btn {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s;
}
.stepper-btn:hover {
  background: var(--bg-hover);
  color: var(--accent);
}
.stepper-input input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

/* Invite code item in list */
.invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}
.invite-item-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64d2ff;
  font-weight: 700;
}
.invite-item-badge {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Key Chip */
.key-chip {
  background: var(--bg-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64d2ff;
  word-break: break-all;
  border: 1px solid var(--border);
  user-select: all;
  -webkit-user-select: all;
  margin-top: 4px;
}

/* Toasts */
#toast-container {
  position: fixed;
  top: 36px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3000;
  pointer-events: none;
}
.toast {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  font-size: 13.5px;
  font-weight: 600;
  animation: slideIn 0.2s ease-out;
  pointer-events: auto;
}
.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--danger); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(0);
  }
  #sidebar.hidden {
    transform: translateX(-100%);
  }
  #chat-view {
    width: 100%;
  }
  .back-btn {
    display: flex;
  }
  .msg-wrapper {
    max-width: 86%;
  }
}

/* ============================================================= */
/* 1. Custom Contact Picker & Enhanced Selects                   */
/* ============================================================= */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}
select.form-input option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px;
}

.custom-contact-picker {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contact-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.contact-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.custom-contact-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.contact-item:hover {
  background: var(--bg-hover);
}
.contact-item.selected {
  background: var(--bg-active);
  border-color: var(--accent);
}
.contact-item-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.contact-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-item-info {
  flex: 1;
  min-width: 0;
}
.contact-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-item-key {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.contact-item-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ============================================================= */
/* 2. Voice Messaging & Recording HUD                            */
/* ============================================================= */
.record-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  outline: none;
}
.record-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.06);
}
.record-btn.recording {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  animation: pulseRecording 1.2s infinite;
}

@keyframes pulseRecording {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.6); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255, 69, 58, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

.recording-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border-radius: 22px;
  height: 42px;
  padding: 0 8px 0 16px;
  gap: 12px;
  animation: fadeIn 0.2s ease-out;
}
.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  animation: blinkRec 0.8s infinite alternate;
}
@keyframes blinkRec {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.3; transform: scale(0.7); }
}
.rec-timer {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--danger);
}
.rec-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.rec-waveform span {
  display: inline-block;
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: waveAnim 0.6s infinite ease-in-out alternate;
}
.rec-waveform span:nth-child(2) { animation-delay: 0.1s; }
.rec-waveform span:nth-child(3) { animation-delay: 0.2s; }
.rec-waveform span:nth-child(4) { animation-delay: 0.3s; }
.rec-waveform span:nth-child(5) { animation-delay: 0.4s; }
.rec-waveform span:nth-child(6) { animation-delay: 0.2s; }
.rec-waveform span:nth-child(7) { animation-delay: 0.1s; }
.rec-waveform span:nth-child(8) { animation-delay: 0.3s; }
@keyframes waveAnim {
  from { height: 4px; }
  to { height: 18px; }
}

.btn-rec-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}
.btn-rec-cancel:hover {
  background: rgba(255, 69, 58, 0.15);
  color: var(--danger);
}

/* Voice Message Bubble in Chat (Telegram Acoustic Waveform) */
.voice-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 320px;
  padding: 4px 2px;
}
.voice-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s, background 0.15s;
}
.voice-play-btn:hover {
  transform: scale(1.08);
}
.voice-play-btn svg {
  margin-left: 2px;
}
.voice-play-btn.playing svg {
  margin-left: 0;
}
.voice-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Telegram Dense Acoustic Waveform */
.tg-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  cursor: pointer;
  padding: 2px 0;
}
.tg-waveform-bar {
  flex: 1;
  min-width: 2px;
  max-width: 3.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.08s ease;
}
.msg-wrapper.in .tg-waveform-bar {
  background: rgba(255, 255, 255, 0.25);
}
.msg-wrapper.out .tg-waveform-bar {
  background: rgba(255, 255, 255, 0.4);
}
.tg-waveform-bar.played {
  background: #ffffff !important;
}
.msg-wrapper.in .tg-waveform-bar.played {
  background: var(--accent) !important;
}

.voice-duration {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.msg-wrapper.out .voice-duration {
  color: rgba(255, 255, 255, 0.75);
}

/* Media Loading / Downloading Spinner Overlay */
.media-loading-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
  z-index: 4;
  backdrop-filter: blur(2px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.media-loading-spinner.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.media-spinner-ring {
  width: 34px;
  height: 34px;
  border: 3.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinMedia 0.75s linear infinite;
}
@keyframes spinMedia {
  to { transform: rotate(360deg); }
}

/* ============================================================= */
/* 3. Circular Video Notes (Кружочки)                            */
/* ============================================================= */
.video-note-card {
  background: rgba(20, 24, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-note-circle-wrap {
  width: 240px;
  height: 240px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}
#video-note-camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.video-note-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
}
.video-note-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 4;
}
.video-note-ring .ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.video-note-timer {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.video-note-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.icon-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.icon-btn-circle:hover {
  transform: scale(1.1);
}
.icon-btn-circle.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.icon-btn-circle.action {
  background: var(--danger);
  color: #fff;
}
.icon-btn-circle.send {
  background: var(--accent);
  color: #fff;
}
.rec-square {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 4px;
}

/* Video Circle Bubble in Chat */
.video-circle-bubble {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.video-circle-bubble video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-circle-bubble .vcircle-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s;
}
.video-circle-bubble.playing .vcircle-play-icon {
  opacity: 0;
}

/* ============================================================= */
/* 4. WebRTC Voice & Video Calling Screen                        */
/* ============================================================= */
.call-card {
  width: 100%;
  max-width: 460px;
  background: rgba(16, 20, 26, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 28px 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.call-video-container {
  width: 100%;
  height: 360px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}
.call-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.call-local-video {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 100px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: scaleX(-1);
}

.call-audio-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.call-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.call-ripple {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: callRipple 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}
@keyframes callRipple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.call-user-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.call-status {
  font-size: 14px;
  color: var(--text-secondary);
}
.call-duration {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-green);
  font-weight: 700;
}

.call-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.call-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: blinkRec 0.9s infinite alternate;
}
.call-conn-dot.connected {
  background: var(--accent-green);
  animation: none;
}

.call-peer-muted {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 12px;
  animation: fadeIn 0.2s ease-out;
}

.chat-section-header {
  padding: 12px 16px 4px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.call-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.call-btn:hover {
  transform: scale(1.1);
}
.btn-call-mute, .btn-call-cam {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-call-mute.active, .btn-call-cam.active {
  background: rgba(255, 69, 58, 0.2);
  color: var(--danger);
  border-color: var(--danger);
}
.btn-call-hangup {
  background: var(--danger);
  color: #fff;
}
.btn-call-accept {
  background: var(--accent-green);
  color: #fff;
}

/* Incoming Call Card */
.incoming-call-card {
  width: 100%;
  max-width: 380px;
  background: rgba(16, 20, 26, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.incoming-call-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 12px;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
