/* Reader Chat — header chip + toast (premium / gamified) */

.tc-header-wallet__chip--chat {
  position: relative;
  border-color: rgba(201, 162, 39, 0.45) !important;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.22), transparent 55%),
    linear-gradient(165deg, rgba(28, 22, 36, 0.95), rgba(12, 10, 15, 0.92)) !important;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12), 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tc-header-wallet__chip--chat:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 213, 163, 0.65) !important;
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.22), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.tc-header-wallet__chip--chat .tc-header-wallet__label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: rgba(232, 213, 163, 0.85);
}

.tc-header-wallet__chip--chat .tc-header-wallet__val {
  color: #e8d5a3;
  font-family: Georgia, "Times New Roman", serif;
}

.tc-header-wallet__chip--chat-unread {
  animation: tcRcChipPulse 2.4s ease-in-out infinite;
}

@keyframes tcRcChipPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.18), 0 8px 20px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45), 0 0 22px rgba(201, 162, 39, 0.35), 0 8px 20px rgba(0, 0, 0, 0.28); }
}

.tc-header-chat-seal {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #1a140a;
  background: linear-gradient(180deg, #e8d5a3 0%, #c9a227 100%);
  border: 1px solid rgba(255, 240, 200, 0.55);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.55);
}

.tc-topnav__chat {
  position: relative;
}

.tc-topnav__chat-badge {
  display: inline-block;
  margin-left: 0.3rem;
  min-width: 1.05rem;
  padding: 0.05rem 0.32rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8d5a3, #c9a227);
  color: #1a140a;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}

/* Toast premium */
.tc-reader-chat-toast {
  position: fixed;
  z-index: 100050;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  width: min(92vw, 360px);
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.2), transparent 50%),
    linear-gradient(165deg, #1c1624 0%, #0c0a0f 100%);
  color: #f3ebe0;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  padding: 0.95rem 1rem 1rem;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.tc-reader-chat-toast--enter {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tc-reader-chat-toast--exit {
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
}

.tc-reader-chat-toast__row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tc-reader-chat-toast__icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: radial-gradient(circle at 35% 30%, #3a3228, #16121c);
  color: #e8d5a3;
  font-size: 1.05rem;
}

.tc-reader-chat-toast__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  color: #e8d5a3;
  line-height: 1.25;
}

.tc-reader-chat-toast__body {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(243, 235, 224, 0.78);
}

.tc-reader-chat-toast__actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tc-reader-chat-toast__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.tc-reader-chat-toast__btn--primary {
  background: linear-gradient(180deg, #d4b45a 0%, #b8922a 100%);
  color: #1a140a !important;
}

.tc-reader-chat-toast__btn--ghost {
  background: transparent;
  color: rgba(232, 213, 163, 0.85) !important;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.tc-reader-chat-toast__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: rgba(243, 235, 224, 0.55);
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
}
