/* Web quickpay card, chat room dark surfaces and bottom navigation capsule. */
.md-quickpay-card {
  margin: 0 24px;
  padding: 18px;
}

.md-quickpay-card[hidden] {
  display: none;
}

.md-quickpay-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.md-quickpay-card p {
  margin: 0 0 14px;
  color: #c8ccd7;
  font-size: 15px;
  line-height: 1.35;
}

.web-chat-body .messages {
  padding: 12px 24px;
  background: #050506;
  gap: 10px;
}

.web-chat-body .msg {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px 14px;
  color: #f7f8ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.web-chat-body .msg.me {
  background: linear-gradient(135deg, #2b58f0, #6f3dff);
}

.web-chat-body .msg.bot,
.web-chat-body .msg.admin {
  background: #181a20;
}

.web-chat-body .msg time {
  color: #a3a8b7;
}

.web-chat-body .msg-inline-btn,
.web-chat-body .msg-reply-btn,
.web-chat-body .restart-btn,
.web-chat-body .attach-btn,
.web-chat-body .keyboard-toggle-btn,
.web-chat-body .composer-reply-preview,
.web-chat-body .composer-file-preview,
.web-chat-body .chat-footer textarea {
  border-color: rgba(255, 255, 255, 0.08);
  background: #24272f;
  color: #f7f8ff;
  box-shadow: none;
}

.web-chat-body .msg-inline-btn {
  min-height: 50px;
  background: #24272f;
  color: #f7f8ff;
  font-weight: 650;
}

.web-chat-body .chat-bottom,
.web-chat-body .chat-footer {
  background: #14161b;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.web-chat-body .chat-bottom {
  position: fixed;
  left: 50%;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  width: min(620px, 100vw);
  transform: translateX(-50%);
  z-index: 34;
}

.web-chat-body.is-chat-room .chat-bottom {
  bottom: 0;
}

.web-chat-body .md-chat-panel.is-active .messages {
  padding-bottom: 88px;
}

.web-chat-body .quick-keyboard,
.web-chat-body .keyboard-toggle-btn {
  display: none;
}

.web-chat-body .send-btn {
  border-radius: 13px;
  background: linear-gradient(135deg, #2768ff, #7b3cff);
}

.md-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--md-bottom-nav-gap, max(4px, calc(env(safe-area-inset-bottom, 0px) - 12px)));
  width: min(596px, calc(100vw - 20px));
  transform: translateX(-50%);
  z-index: 32;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 6px 8px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(85, 226, 207, 0.07), rgba(123, 60, 255, 0.09)),
    rgba(15, 17, 23, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.19),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 -16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(38px) saturate(1.6);
  -webkit-backdrop-filter: blur(38px) saturate(1.6);
}

.web-chat-body.is-chat-room .md-bottom-nav {
  display: none;
}

.md-bottom-nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 60px;
  border: 0;
  background: transparent;
  color: #f7f8ff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.46);
}

.md-bottom-nav button.is-active {
  color: #aebaff;
}

.md-nav-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: saturate(0.88) brightness(0.98) drop-shadow(0 5px 12px rgba(0, 0, 0, 0.38));
  transition: filter 0.16s ease, transform 0.16s ease;
}

.md-bottom-nav button.is-active .md-nav-icon {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 0 10px rgba(69, 129, 255, 0.6));
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .web-chat-body .app-topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .md-panel {
    padding-left: 24px;
    padding-right: 24px;
  }

  .md-referral-strip {
    padding: 0 78px;
  }
}
