* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100vh;
  height: 100dvh; /* Usa viewport dinâmico quando disponível */
  overflow-x: hidden;
  overflow-y: hidden; /* Previne scroll vertical desnecessário */
  /* Remove padding padrão que causa scroll extra no mobile */
  padding: 0;
}

/* Partículas de fundo */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
  opacity: 0.9;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.welcome-screen {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  color: white;
}

.welcome-screen.hidden {
  display: none;
}

.welcome-title {
  text-align: center;
  font-size: 1.5em;
  color: #ffd700;
  margin-bottom: 20px;
  font-weight: 600;
}

.welcome-content {
  line-height: 1.6;
  margin-bottom: 25px;
}

.welcome-content p {
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
  border-color: #ffd700;
}

.form-textarea {
  min-height: 80px;
  max-height: 120px;
  resize: vertical;
}

.start-button {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease;
  margin-top: 10px;
}

.start-button:hover {
  transform: scale(1.02);
}

.start-button:active {
  transform: scale(0.98);
}

.support-section {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}

.message.oracle a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.message.oracle a:hover {
  color: #ff8c42;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.ad-space {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin: 20px 0;
  font-size: 0.9em;
  display: none;
}

.chat-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Importante para que o flex funcione corretamente */
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 10px;
  min-height: 0; /* Importante para que o flex funcione corretamente */
}

.message {
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out;
}

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

.message.user {
  text-align: right;
}

.message.oracle {
  text-align: left;
}

.message-bubble {
  display: inline-block;
  max-width: 80%;
  padding: 15px 20px;
  border-radius: 20px;
  margin: 5px;
  word-wrap: break-word;
}

.user .message-bubble {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: white;
  border-bottom-right-radius: 5px;
}

.oracle .message-bubble {
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  border-bottom-left-radius: 5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cards-display {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cards-section {
  margin-bottom: 20px;
}

.cards-section:last-child {
  margin-bottom: 0;
}

.cards-section h4 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.2);
}

.card-item.inverted {
  border-left: 4px solid #ff6b6b;
}

.card-item.inverted::before {
  content: "↻";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff6b6b;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.card-name {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95em;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-position {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.card-deck-type {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8em;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Layout para muitas cartas */
.cards-grid.many-cards {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.many-cards .card-item {
  padding: 12px;
}

.many-cards .card-name {
  font-size: 0.85em;
}

.many-cards .card-position {
  font-size: 0.7em;
  padding: 3px 6px;
}

/* Separador entre múltiplas consultas */
.consultation-separator {
  border-top: 2px solid rgba(255, 215, 0, 0.4);
  margin: 25px 0;
  padding-top: 25px;
  position: relative;
}

.consultation-separator::before {
  content: "✧";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 0 15px;
  font-size: 16px;
}

.consultation-question {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #1a1a1a;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.95em;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Separador entre baralhos na mesma consulta */
.reading-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
  padding-top: 20px;
}

.verification-section {
  margin-top: 15px;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-toggle {
  background: none;
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  font-family: inherit;
  font-weight: 500;
}

.verification-toggle:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.6);
}

.verification-details {
  display: none;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-details.show {
  display: block;
  animation: fadeInDown 0.3s ease-out;
}

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

.verification-title {
  color: #ffd700;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.verification-content {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.number-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.75em;
}

.verification-link {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: transform 0.2s ease;
}

.verification-link:hover {
  transform: scale(1.02);
  text-decoration: none;
  color: #1a1a1a;
}

.input-container {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 0 5px;
  flex-shrink: 0; /* Impede que o input seja comprimido */
}

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

#questionInput {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 16px;
  resize: none;
  min-height: 50px;
  max-height: 120px;
  font-family: inherit;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  line-height: 1.4;
  box-sizing: border-box;
}

#questionInput::placeholder {
  color: #666;
}

.send-button {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.send-button:hover {
  transform: scale(1.05);
}

.send-button:active {
  transform: scale(0.95);
}

.send-button svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 15px;
  font-weight: 500;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  animation: loadingDot 1.4s infinite ease-in-out both;
}

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

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.welcome-message {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin: 50px 0;
  font-style: italic;
}

/* Botão de instalação PWA */
.install-app-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  z-index: 1000;
  font-family: inherit;
  max-width: 160px;
}

.install-app-button.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: slideInFromTop 0.5s ease-out;
}

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

.install-app-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.install-app-button:active {
  transform: scale(0.95);
}

.install-app-button .install-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0); /* Torna a imagem preta para combinar com o texto */
}

/* Mensagem de instalação PWA integrada */
#pwa-install-message {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 179, 71, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  display: none;
}

#pwa-install-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: column;
}

#pwa-install-button {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pwa-install-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pwa-install-button:active {
  transform: scale(0.95);
}

.pwa-install-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0); /* Torna o ícone preto */
}

/* Ajustes responsivos */
@media (max-width: 600px) {
  .pwa-install-message {
    padding: 12px;
    margin: 12px 0;
  }

  .pwa-install-content {
    gap: 10px;
    font-size: 14px;
  }

  .pwa-install-button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .pwa-install-icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 400px) {
  .pwa-install-content {
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header h1 {
    font-size: 2.2em;
  }

  .message-bubble {
    max-width: 85%;
    padding: 12px 16px;
  }

  .chat-container {
    padding: 15px;
    min-height: 400px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .cards-grid.many-cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .card-item {
    padding: 12px;
  }

  .ad-space {
    padding: 15px;
    color: rgba(255, 255, 255, 0.95);
  }

  .consultation-question {
    font-size: 0.9em;
    padding: 10px 18px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 10px;
    height: 100vh;
    height: 100dvh; /* Usa viewport dinâmico quando disponível */
  }

  .header {
    margin-bottom: 15px;
  }

  .header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
  }

  .header p {
    font-size: 1em;
  }

  .message-bubble {
    max-width: 90%;
    padding: 10px 14px;
    font-size: 14px;
  }

  .chat-container {
    padding: 12px;
    border-radius: 15px;
    /* Remove min-height para permitir que se ajuste melhor */
  }

  .messages {
    /* Força o container de mensagens a usar todo espaço disponível */
    flex: 1;
    min-height: 0;
    padding-right: 8px;
  }

  .input-container {
    gap: 8px;
    padding: 0 3px;
    margin-top: 10px; /* Reduzir margem */
  }

  #questionInput {
    padding: 12px 16px;
    font-size: 16px;
    min-height: 45px;
  }

  .send-button {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
  }

  .ad-space {
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.95);
  }

  .scroll-to-bottom {
    bottom: 70px; /* Ajustar posição para mobile */
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .scroll-to-bottom svg {
    width: 18px;
    height: 18px;
  }
}

/* Mobile pequeno */
@media (max-width: 400px) {
  .container {
    padding: 8px;
    height: 100vh;
    height: 100dvh;
  }

  .header {
    margin-bottom: 10px;
  }

  .header h1 {
    font-size: 1.6em;
  }

  .chat-container {
    padding: 10px;
  }

  .messages {
    padding-right: 5px;
  }

  .message-bubble {
    max-width: 95%;
    padding: 8px 12px;
    font-size: 13px;
  }

  .input-container {
    gap: 6px;
    padding: 0 2px;
    margin-top: 8px;
  }

  .send-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  #questionInput {
    min-height: 40px;
    padding: 10px 14px;
  }
}

/* Mobile landscape - telas muito baixas */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    padding: 5px;
    height: 100vh;
    height: 100dvh;
  }

  .header {
    margin-bottom: 8px;
  }

  .header h1 {
    font-size: 1.4em;
    margin-bottom: 3px;
  }

  .header p {
    font-size: 0.85em;
  }

  .chat-container {
    padding: 8px;
  }

  .input-container {
    gap: 6px;
    margin-top: 5px;
  }

  .send-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  #questionInput {
    min-height: 38px;
    padding: 8px 12px;
  }
}

/* Para dispositivos com notch ou barra de navegação */
@media (max-width: 600px) {
  .container {
    /* Usar safe-area-inset para respeitar notch e barras do sistema */
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
}

.messages::-webkit-scrollbar {
  width: 6px;
}

.messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Botão para scroll para última mensagem */
.scroll-to-bottom {
  position: absolute;
  bottom: 90px;
  right: 25px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 10;
}

.scroll-to-bottom.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-bottom:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-bottom:active {
  transform: scale(0.95);
}

.scroll-to-bottom svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* Ajustes para mobile */
@media (max-width: 600px) {
  .scroll-to-bottom {
    bottom: 75px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .scroll-to-bottom svg {
    width: 18px;
    height: 18px;
  }
}


/*# sourceMappingURL=main.b278a385ab3bafc6e211.css.map*/