* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #2d3748;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  font-size: 14px;
}

/* MOBILE-FIRST CHAT CONTAINER */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  margin: 0;
  background: white;
  position: relative;
  width: 100%;
}

/* MOBILE-OPTIMIZED HEADER */
.chat-header {
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(255, 216, 0, 0.3);
  position: relative;
  overflow: visible;
  min-height: 55px;
  flex-shrink: 0;
  width: 100%;
  top: 0;
  z-index: 10;
}

.chat-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  animation: headerShine 6s ease-in-out infinite;
}

@keyframes headerShine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* MOBILE AVATAR */
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
  position: relative;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid white;
  overflow: hidden;
}

.header-avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8, #3b82f6);
  border-radius: 50%;
  z-index: -1;
  animation: avatarGlow 4s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.support-icon {
  position: relative;
  animation: iconFloat 3s ease-in-out infinite;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1px);
  }
}

/* IMAGEM DO AVATAR */
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

/* MOBILE HEADER INFO */
.header-info {
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.header-title {
  color: #2d3748;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  margin: 0;
}

.header-name-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-right: 6px;
  flex-shrink: 0;
}

.header-subtitle {
  color: #4a5568;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.header-status {
  color: #4a5568;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex-wrap: wrap;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.status-dot {
  width: 4px;
  height: 4px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* NOVOS INDICADORES DE STATUS */
.status-dot.typing-dot {
  background: #ffd800;
  animation: typingPulse 1.5s infinite ease-in-out;
}

.status-dot.consulting-dot {
  background: #3b82f6;
  animation: consultingPulse 2s infinite ease-in-out;
}

.status-dot.processing-dot {
  background: #f59e0b;
  animation: processingPulse 1s infinite ease-in-out;
}

@keyframes typingPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

@keyframes consultingPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    background: #3b82f6;
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
    background: #1d4ed8;
  }
}

@keyframes processingPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1) rotate(180deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 9px;
  color: #2d3748;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.security-badge i {
  color: #10b981;
  font-size: 7px;
}

.security-badge i.fa-keyboard {
  color: #ffd800;
}

.security-badge i.fa-search {
  color: #3b82f6;
}

.security-badge i.fa-cog {
  color: #f59e0b;
}

/* MOBILE MESSAGES AREA */
.messages-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  height: calc(100vh - 110px);
  height: calc(100dvh - 110px);
}

.messages-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 216, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.message {
  display: flex;
  margin-bottom: 8px;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  align-self: flex-end;
  overflow: hidden;
}

.bot-avatar {
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  color: #2d3748;
  box-shadow: 0 2px 8px rgba(255, 216, 0, 0.4);
  border: 1px solid white;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  border: 1px solid white;
}

.message-content {
  max-width: 85%;
  position: relative;
}

.message.payment .message-content,
.message.status .message-content {
  max-width: 95%;
}

.message-bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.bot-message {
  background: white;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 3px;
  margin-left: 6px;
}

.user-message {
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  color: #2d3748;
  font-weight: 600;
  border-radius: 14px 14px 3px 14px;
  margin-right: 6px;
}

.message-time {
  font-size: 9px;
  color: #a0aec0;
  margin-top: 3px;
  text-align: right;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.user .message-time {
  color: #6b7280;
}

/* INDICADOR DE MENSAGEM LIDA */
.read-indicator {
  animation: readIndicatorAppear 0.5s ease-out;
}

@keyframes readIndicatorAppear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* MOBILE TYPING INDICATOR */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 3px;
  margin-left: 6px;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  animation: typingIndicatorPulse 2s ease-in-out infinite;
}

@keyframes typingIndicatorPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(255, 216, 0, 0.2);
  }
}

.typing-text {
  color: #6b7280;
  font-style: italic;
  font-size: 11px;
  font-weight: 500;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: #ffd800;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* MOBILE QUICK REPLIES */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.quick-reply {
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  color: #2d3748;
  border: none;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 6px rgba(255, 216, 0, 0.3);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.quick-reply:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 216, 0, 0.4);
}

/* MOBILE-OPTIMIZED STATUS CARD */
.status-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  margin: 8px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 100%;
  width: 100%;
}

.status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  animation: statusGlow 3s ease-in-out infinite;
}

@keyframes statusGlow {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.correios-header {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.correios-logo-official {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.status-main {
  padding: 12px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.status-header-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}

.spinner-circle {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #6b7280;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.status-text {
  flex: 1;
  padding-top: 2px;
}

.status-main-title {
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.status-subtitle {
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

/* MOBILE TIMELINE */
.timeline-container {
  position: relative;
  margin-left: 8px;
  background: white;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.timeline-line {
  position: absolute;
  left: 16px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, #fbbf24 0%, #f59e0b 100%);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
  z-index: 1;
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  z-index: 2;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 3;
  position: relative;
}

.step-icon.brazil {
  background-image: url("/bandeiranacionalbrasil_.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid white;
  overflow: hidden;
}

.step-icon.brazil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: flagShine 4s ease-in-out infinite;
}

@keyframes flagShine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.step-icon.transfer {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.step-icon.package {
  background: linear-gradient(135deg, #a16207 0%, #92400e 100%);
}

.step-icon.alert {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(234, 88, 12, 0.3);
  }
}

.step-content {
  flex: 1;
  padding-top: 2px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px;
  border-left: 2px solid #e5e7eb;
}

.step-title {
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.step-title.warning {
  color: #dc2626;
}

.step-description {
  color: #6b7280;
  font-size: 10px;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.highlight-date {
  color: #dc2626;
  font-weight: 800;
  background: #fef2f2;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #fecaca;
}

.highlight-text {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #dc2626;
}

.step-location {
  color: #6b7280;
  font-size: 9px;
  margin-top: 6px;
  line-height: 1.3;
  font-style: italic;
  background: #f1f5f9;
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 2px solid #cbd5e1;
}

.status-footer {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-top: 1px solid #e5e7eb;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: #1e40af;
  font-weight: 600;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.status-footer i {
  color: #3b82f6;
  font-size: 12px;
}

/* DADOS DO DESTINATÁRIO - AJUSTADOS */
.recipient-data {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.data-title {
  color: #1e40af;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-name {
  color: #2d3748;
  font-size: 8px;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 2px 0;
  border-bottom: 1px solid #e5e7eb;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 8px;
}

.data-row:last-child {
  margin-bottom: 0;
}

.data-label {
  color: #64748b;
  font-weight: 600;
  min-width: 30px;
}

.data-value {
  color: #2d3748;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

/* MOBILE WHATSAPP AUDIO PLAYER */
.whatsapp-audio {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #dcf8c6 0%, #b8e6b8 100%);
  border-radius: 10px;
  padding: 6px 8px;
  margin: 6px 0;
  gap: 8px;
  position: relative;
  max-width: 220px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.whatsapp-audio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: audioShine 4s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes audioShine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.audio-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d3748;
  font-size: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.audio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.audio-play-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #22c55e;
  font-size: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.audio-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.audio-play-btn.playing {
  color: #ef4444;
}

.audio-waveform {
  flex: 1;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 100%;
  width: 100%;
  position: relative;
}

.wave-bar {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  transition: all 0.2s ease;
  min-height: 2px;
  flex: 1;
  max-width: 1.5px;
}

.wave-bar.active {
  background: white;
}

.audio-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s ease;
}

.audio-duration {
  font-size: 9px;
  color: rgba(45, 55, 72, 0.8);
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  position: relative;
  z-index: 1;
}

.audio-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(45, 55, 72, 0.6);
  margin-top: 1px;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* MOBILE INPUT AREA */
.input-container {
  padding: 8px 12px 12px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  flex-shrink: 0;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.message-input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: white;
  color: #2d3748;
  min-height: 36px;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.message-input:focus {
  border-color: #ffd800;
  box-shadow: 0 0 0 2px rgba(255, 216, 0, 0.2);
}

.message-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.send-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  color: #2d3748;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(255, 216, 0, 0.3);
}

.send-button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 216, 0, 0.4);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

/* MOBILE ADDRESS CARD */
.address-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0ea5e9;
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
  position: relative;
  overflow: hidden;
}

.address-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: cardShine 6s ease-in-out infinite;
}

@keyframes cardShine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.address-title {
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.address-details {
  background: white;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #0ea5e9;
  position: relative;
  z-index: 1;
}

.address-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}

.address-row:last-child {
  margin-bottom: 0;
}

.address-label {
  color: #64748b;
  font-weight: 600;
  min-width: 60px;
}

.address-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

/* MOBILE PAYMENT CARD */
.payment-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #ffd800;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 6px 20px rgba(255, 216, 0, 0.3);
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
}

.payment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: cardShine 8s ease-in-out infinite;
}

.payment-title {
  color: #2d3748;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.payment-details {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #ffd800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  padding: 4px 0;
}

.payment-row:last-child {
  margin-bottom: 0;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4a5568;
  font-weight: 600;
}

.payment-value {
  font-weight: 700;
  color: #2d3748;
}

.payment-total {
  border-top: 2px solid #ffd800;
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 800;
  font-size: 13px;
  color: #2d3748;
}

.payment-total .payment-value {
  font-size: 16px;
  color: #f59e0b;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.payment-info {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  border-left: 3px solid #ffd800;
  font-size: 10px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.payment-button {
  width: 100%;
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  color: #2d3748;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(255, 216, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  min-height: 44px;
}

.payment-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 0, 0.5);
}

/* MOBILE ICONS */
.icon {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-large {
  width: 12px;
  height: 12px;
}

/* MOBILE HIGHLIGHT */
.highlight {
  background: linear-gradient(135deg, #ffd800 0%, #f59e0b 100%);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  color: #2d3748;
}

/* MOBILE SCROLLBAR */
.messages-container::-webkit-scrollbar {
  width: 3px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #ffd800;
  border-radius: 2px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* PROTEÇÃO ANTI-SELEÇÃO */
::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

/* OVERLAY DE PROTEÇÃO */
.protection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  font-size: 18px;
  text-align: center;
  flex-direction: column;
  gap: 16px;
}

.protection-overlay.active {
  display: flex;
}

/* MOBILE PACKAGE CARD */
.package-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #ffd800;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 6px 20px rgba(255, 216, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: packageFound 0.8s ease-out;
}

@keyframes packageFound {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: cardShine 8s ease-in-out infinite;
}

.package-title {
  color: #2d3748;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.package-image-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto 16px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: white;
}

.package-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.package-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

/* AJUSTES ESPECÍFICOS PARA OS DADOS NA IMAGEM DA ETIQUETA */
.destinatario-field {
  position: absolute;
  top: 51.2%;
  left: 24.5%;
  right: 12%;
  height: 5.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 2px;
  padding-top: 1px;
}

.cpf-field {
  position: absolute;
  top: 66.8%;
  left: 24.5%;
  right: 12%;
  height: 5.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 2px;
  padding-top: 1px;
}

.field-value {
  color: #374151;
  font-size: 5px;
  font-weight: 500;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.1;
  text-transform: none;
  margin: 0;
  padding: 0;
  display: block;
  text-align: left;
}

.package-info {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  border-left: 4px solid #ffd800;
  position: relative;
  z-index: 1;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #4a5568;
  font-weight: 600;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row i {
  font-size: 12px;
  flex-shrink: 0;
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 768px) {
  body {
    position: static;
    overflow: auto;
    font-size: 16px;
  }

  .chat-container {
    max-width: 400px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    height: calc(100vh - 40px);
  }

  .chat-header {
    padding: 12px 16px;
    min-height: 65px;
  }

  .header-avatar {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .header-title {
    font-size: 16px;
  }

  .header-subtitle {
    font-size: 12px;
  }

  .header-status {
    font-size: 11px;
  }

  .messages-container {
    padding: 16px 12px;
    height: calc(100vh - 120px);
  }

  .input-container {
    padding: 12px 16px 16px 16px;
    min-height: 60px;
  }

  .message-bubble {
    font-size: 14px;
    padding: 10px 14px;
  }

  .whatsapp-audio {
    max-width: 280px;
    padding: 8px 10px;
  }

  .status-card {
    margin: 12px 0;
  }

  .payment-card {
    padding: 20px;
    margin: 16px 0;
  }

  .correios-logo-official {
    height: 40px;
    max-width: 150px;
  }

  .package-card {
    padding: 20px;
    margin: 16px 0;
  }

  .package-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .package-image-container {
    max-width: 400px;
    margin-bottom: 20px;
  }

  .destinatario-field {
    top: 51.2%;
    left: 24.5%;
    right: 12%;
    height: 5.5%;
    padding-left: 3px;
    padding-top: 2px;
  }

  .cpf-field {
    top: 66.8%;
    left: 24.5%;
    right: 12%;
    height: 5.5%;
    padding-left: 3px;
    padding-top: 2px;
  }

  .field-value {
    font-size: 6px;
    letter-spacing: 0.25px;
    font-weight: 500;
  }

  .package-info {
    padding: 16px;
  }

  .info-row {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .info-row i {
    font-size: 14px;
  }

  .data-title {
    font-size: 10px;
  }

  .data-name {
    font-size: 9px;
  }

  .data-row {
    font-size: 9px;
  }

  .header-name-avatar {
    width: 22px;
    height: 22px;
    margin-right: 8px;
  }
}
