:root {
  --wa-dark-bg: #0b141a;
  --wa-header-bg: #1f2c34;
  --wa-tab-bg: #1f2c34;
  --wa-body-bg: #111b21;
  --wa-chat-bg: #0b141a;
  --wa-chat-footer: #1f2c34;
  --wa-input-bg: #2a3942;
  --wa-green: #00a884;
  --wa-green-light: #25d366;
  --wa-green-fab: #00a884;
  --wa-green-btn: #00a884;
  --wa-text-primary: #e9edef;
  --wa-text-secondary: #8696a0;
  --wa-text-muted: #667781;
  --wa-border: #222d34;
  --wa-bubble-incoming: #202c33;
  --wa-bubble-outgoing: #005c4b;
  --wa-blue-ticks: #53bdeb;
  --wa-danger: #ea4335;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0c1317;
  color: var(--wa-text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App Shell: On mobile, 100% width/height. On desktop, smartphone framed or full */
.mobile-app-shell {
  width: 100%;
  height: 100%;
  max-width: 480px;
  background-color: var(--wa-body-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

@media (min-width: 600px) {
  .mobile-app-shell {
    height: 94vh;
    border-radius: 28px;
    border: 6px solid #2a3942;
  }
}

/* Screen Views Container */
.views-container {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Individual screen view */
.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--wa-body-bg);
  transition: transform 0.28s cubic-bezier(0.1, 0.9, 0.2, 1);
  overflow: hidden;
}

.screen-view.hidden-left {
  transform: translateX(-100%);
  pointer-events: none;
}

.screen-view.hidden-right {
  transform: translateX(100%);
  pointer-events: none;
}

.screen-view.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* TOP APP BAR (Mobile WhatsApp Style) */
.mobile-top-bar {
  height: 56px;
  background-color: var(--wa-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 10;
}

.mobile-logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--wa-green-light);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-action-btn {
  background: none;
  border: none;
  color: var(--wa-text-secondary);
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.top-action-btn:hover {
  color: var(--wa-text-primary);
}

/* NAVIGATION TABS (Chats, Aktuelles/Status, Anrufe) */
.mobile-tabs {
  background-color: var(--wa-header-bg);
  display: flex;
  border-bottom: 1px solid var(--wa-border);
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  padding: 12px 4px;
  background: none;
  border: none;
  color: var(--wa-text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  color: var(--wa-green-light);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--wa-green-light);
  border-radius: 2px 2px 0 0;
}

.tab-badge {
  background-color: var(--wa-green);
  color: #111b21;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Search bar on mobile */
.mobile-search-bar {
  background-color: var(--wa-body-bg);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
}

.mobile-search-bar.show {
  display: block;
}

.mobile-search-input-wrap {
  background-color: var(--wa-input-bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  gap: 10px;
}

.mobile-search-input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

/* Filter pills */
.mobile-filters {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  flex-shrink: 0;
}

.mobile-filter-pill {
  background-color: var(--wa-input-bg);
  color: var(--wa-text-secondary);
  border: none;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-filter-pill.active {
  background-color: #0a332c;
  color: var(--wa-green-light);
  font-weight: 600;
}

/* CHAT LIST (Scrollable) */
.mobile-list-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-chat-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.12s;
}

.mobile-chat-row:active {
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-chat-row.long-pressed {
  background-color: rgba(0, 168, 132, 0.18);
  transform: scale(0.985);
  transition: transform 0.12s, background-color 0.12s;
}

/* Long-Press Context Menu Items */
.ctx-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: none;
  border: none;
  color: var(--wa-text-primary);
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s;
}

.ctx-menu-item:active {
  background-color: rgba(255, 255, 255, 0.08);
}

.ctx-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

/* POI Location Call Button (Weltkugel + Point of Interest) */
.ctx-menu-item.poi-location-btn {
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.18), rgba(0, 92, 75, 0.28));
  border: 1px solid rgba(0, 168, 132, 0.45);
  margin-bottom: 6px;
  border-radius: 14px;
  padding: 12px 14px;
}

.ctx-menu-item.poi-location-btn:active {
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.32), rgba(0, 92, 75, 0.45));
}

.poi-icon-box {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #0b2e25;
  border: 1.5px solid #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.poi-globe {
  font-size: 22px;
}

.poi-pin {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
}

/* POI Badge neben dem Namen im Startbildschirm */
.poi-name-badge {
  background: rgba(0, 168, 132, 0.18);
  color: #25d366;
  border: 1px solid rgba(0, 168, 132, 0.4);
  font-size: 11px;
  font-weight: 600;
  padding: 1.5px 7px;
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 1;
}

/* Toast Notification */
.whatsup-toast {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: #1f2c34;
  color: #e9edef;
  border-left: 4px solid var(--wa-green-light);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  animation: slideDownToast 0.25s ease;
}

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

.chat-row-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-row-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #2b3942;
}

.chat-row-online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background-color: var(--wa-green-light);
  border: 2px solid var(--wa-body-bg);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.6);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.row-status-online {
  color: var(--wa-green-light);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(37, 211, 102, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
}

.row-status-lastseen {
  color: var(--wa-text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.chat-row-info {
  flex: 1;
  min-width: 0;
}

.chat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.chat-row-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--wa-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-row-time {
  font-size: 12px;
  color: var(--wa-text-secondary);
}

.chat-row-time.unread {
  color: var(--wa-green-light);
  font-weight: 600;
}

.chat-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.chat-row-snippet {
  font-size: 13.5px;
  color: var(--wa-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-row-badge {
  background-color: var(--wa-green-light);
  color: #111b21;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* FLOATING ACTION BUTTON (FAB) */
.mobile-fab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--wa-green-fab);
  border-radius: 16px;
  color: #111b21;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: none;
  font-size: 22px;
  z-index: 50;
  transition: transform 0.15s, background-color 0.15s;
}

.mobile-fab:active {
  transform: scale(0.92);
}

/* ==========================================================
   CHAT SCREEN VIEW (Authentic Mobile Conversation Screen)
   ========================================================== */
.chat-screen-view {
  background-color: var(--wa-chat-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
}

.mobile-chat-header {
  height: 56px;
  background-color: var(--wa-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.mobile-chat-header-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.back-btn {
  background: none;
  border: none;
  color: var(--wa-text-primary);
  font-size: 20px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.chat-header-avatar-wrap {
  position: relative;
  margin-right: 8px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--wa-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-subtitle {
  font-size: 11.5px;
  color: var(--wa-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-subtitle.online {
  color: var(--wa-green-light);
}

/* Standard Mobile WhatsApp Header Action Buttons */
.mobile-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-call-btn {
  background: none;
  border: none;
  color: var(--wa-text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
}

.header-call-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Messages Stream */
.mobile-messages-stream {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.mobile-encryption-box {
  background-color: #182229;
  color: #ffd279;
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: 8px;
  text-align: center;
  align-self: center;
  max-width: 90%;
  margin-bottom: 8px;
  line-height: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-date-divider {
  align-self: center;
  background-color: #182229;
  color: var(--wa-text-secondary);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  margin: 6px 0;
}

/* Mobile Message Bubbles */
.msg-bubble-wrap {
  display: flex;
  position: relative;
  margin-bottom: 2px;
}

.msg-bubble-wrap.outgoing {
  justify-content: flex-end;
}

.msg-bubble-wrap.incoming {
  justify-content: flex-start;
}

.msg-bubble {
  max-width: 82%;
  min-width: 80px;
  padding: 6px 8px 6px 9px;
  border-radius: 8px;
  position: relative;
  font-size: 14.5px;
  line-height: 19px;
  word-wrap: break-word;
}

.msg-bubble-wrap.outgoing .msg-bubble {
  background-color: var(--wa-bubble-outgoing);
  border-top-right-radius: 0;
}

.msg-bubble-wrap.incoming .msg-bubble {
  background-color: var(--wa-bubble-incoming);
  border-top-left-radius: 0;
}

.msg-text {
  color: var(--wa-text-primary);
  white-space: pre-wrap;
}

.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  float: right;
  margin-left: 8px;
}

.msg-timestamp {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.msg-ticks {
  font-size: 12px;
  color: var(--wa-blue-ticks);
  display: inline-flex;
}

/* Location Card inside Message */
.location-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.location-map-canvas {
  height: 130px;
  width: 100%;
  background: #1f2c34;
}

.location-card-info {
  padding: 6px 8px;
}

.location-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.location-card-sub {
  font-size: 11.5px;
  color: var(--wa-text-secondary);
}

.location-card-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--wa-green-light);
  text-decoration: none;
  font-weight: 500;
}

/* Audio Voice Message Bubble */
.audio-bubble-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 4px 0;
}

.audio-play-round {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--wa-green-light);
  color: #111b21;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-waves-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wave-bars-row {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.audio-bar {
  width: 3px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.audio-bar.active {
  background-color: var(--wa-green-light);
}

.audio-meta-duration {
  font-size: 10.5px;
  color: var(--wa-text-secondary);
}

/* Reactions on Message */
.reaction-pill {
  position: absolute;
  bottom: -8px;
  right: 6px;
  background-color: #202c33;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ==========================================================
   MOBILE CHAT INPUT BAR (WhatsApp Mobile Native)
   ========================================================== */
.mobile-chat-footer {
  padding: 6px 8px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}

.mobile-input-pill {
  flex: 1;
  background-color: var(--wa-chat-footer);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.input-icon-btn {
  background: none;
  border: none;
  color: var(--wa-text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.mobile-textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--wa-text-primary);
  font-size: 15px;
  max-height: 90px;
  resize: none;
  line-height: 19px;
}

.mobile-textarea::placeholder {
  color: var(--wa-text-muted);
}

/* Circular Mic / Send Button */
.mobile-circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--wa-green-btn);
  color: #111b21;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.mobile-circle-btn:active {
  transform: scale(0.92);
}

/* Attachment Tray (WhatsApp Mobile 6-Grid Popup) */
.mobile-attachment-tray {
  position: absolute;
  bottom: 64px;
  left: 12px;
  right: 12px;
  background-color: var(--wa-chat-footer);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-attachment-tray.show {
  display: grid;
}

.attachment-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--wa-text-primary);
  cursor: pointer;
}

.attachment-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.attachment-tile span {
  font-size: 12px;
  color: var(--wa-text-secondary);
}

/* ==========================================================
   MOBILE FULL SCREEN CALL SCREEN (with Live Standorterkennung)
   ========================================================== */
.mobile-call-screen {
  position: absolute;
  inset: 0;
  background-color: #0b141a;
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.mobile-call-screen.active {
  transform: translateY(0);
}

.call-video-stage {
  flex: 1;
  position: relative;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobileRemoteVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mobileLocalVideo {
  position: absolute;
  bottom: 90px;
  right: 16px;
  width: 110px;
  height: 155px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--wa-green-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

/* Standorterkennung Live Call HUD Banner */
.call-hud-banner {
  position: absolute;
  top: 16px;
  left: 14px;
  right: 14px;
  background: rgba(17, 27, 33, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 168, 132, 0.4);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.call-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-location-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.hud-live-tag {
  background-color: rgba(234, 67, 53, 0.25);
  color: #ff5252;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.hud-coords-text {
  font-size: 11.5px;
  font-family: monospace;
  color: var(--wa-green-light);
}

.hud-metrics-row {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--wa-text-secondary);
}

.call-bottom-controls {
  height: 84px;
  background: rgba(17, 27, 33, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 16px;
  z-index: 30;
}

.call-ctl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-ctl-btn.end-btn {
  background-color: var(--wa-danger);
  width: 54px;
  height: 54px;
  font-size: 22px;
}

/* ==========================================================
   STATUS & CALLS TABS (Mobile WhatsApp Style)
   ========================================================== */
.status-section-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-text-secondary);
  padding: 14px 16px 6px 16px;
  text-transform: uppercase;
}

.status-avatar-ring {
  border: 2px solid var(--wa-green-light);
  padding: 2px;
}

/* Modals */
.mobile-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-modal-sheet {
  background-color: var(--wa-chat-footer);
  border-radius: 20px 20px 0 0;
  padding: 20px 18px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
}

.sheet-form-control {
  background-color: var(--wa-input-bg);
  border: 1px solid var(--wa-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
}

.sheet-primary-btn {
  background-color: var(--wa-green-btn);
  color: #111b21;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Verdeckte Medieninhalte (View-Once / Spoiler / Blur-Cover)
   ========================================================================== */
.hidden-media-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-width: 260px;
  background: #000;
  cursor: pointer;
  margin-bottom: 4px;
}

.hidden-media-content {
  width: 100%;
  max-width: 260px;
  display: block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.hidden-media-content.blurred {
  filter: blur(22px) brightness(0.65);
  transform: scale(1.05);
  pointer-events: none;
}

.hidden-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 26, 0.55);
  z-index: 5;
  padding: 12px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.hidden-media-icon {
  font-size: 26px;
  background: rgba(0, 168, 132, 0.25);
  border: 1.5px solid #00a884;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hidden-media-hint {
  font-size: 12px;
  color: #e9edef;
  font-weight: 500;
  line-height: 1.3;
}

/* Speichern von Dateien im Dateiverzeichnis des Endgeraets */
.btn-save-device {
  background: var(--wa-panel-bg);
  border: 1px solid var(--wa-border);
  color: var(--wa-green-btn);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}

.btn-save-device:hover {
  background: rgba(0, 168, 132, 0.15);
}

.media-save-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.media-save-btn:hover {
  opacity: 1;
}

/* Dokument-Bubbles */
.doc-bubble-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--wa-border);
  border-radius: 8px;
  padding: 10px;
  max-width: 280px;
}

.doc-icon {
  font-size: 28px;
}

.doc-meta {
  flex: 1;
  min-width: 0;
}

.doc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-sub {
  font-size: 11.5px;
  color: var(--wa-subtext);
}

.doc-download-btn {
  background: var(--wa-green-btn);
  color: #111b21;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

