/* style.css (melhorado visualmente) */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #121212;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#appWrapper {
  transition: box-shadow 0.4s ease-in-out;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  margin: 10px;
  overflow: hidden;
}

/* Estados com neon moderno */
.neon-pagando #appWrapper {
  box-shadow: 0 0 20px #00e676, 0 0 40px #00e676;
  animation: neonGreenPulse 1.5s infinite;
}

.neon-recolhendo #appWrapper {
  box-shadow: 0 0 20px #ff5252, 0 0 40px #ff5252;
  animation: neonRedPulse 1.5s infinite;
}

.neon-formando #appWrapper {
  box-shadow: 0 0 20px #ffc107, 0 0 40px #ffc107;
  animation: neonYellowPulse 1.5s infinite;
}

@keyframes neonGreenPulse {
  0%, 100% { box-shadow: 0 0 20px #00e676, 0 0 40px #00e676; }
  50% { box-shadow: 0 0 30px #00e676, 0 0 60px #00e676; }
}

@keyframes neonRedPulse {
  0%, 100% { box-shadow: 0 0 20px #ff5252, 0 0 40px #ff5252; }
  50% { box-shadow: 0 0 30px #ff5252, 0 0 60px #ff5252; }
}

@keyframes neonYellowPulse {
  0%, 100% { box-shadow: 0 0 20px #ffc107, 0 0 40px #ffc107; }
  50% { box-shadow: 0 0 30px #ffc107, 0 0 60px #ffc107; }
}

.status-bar {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  text-align: center;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.neon-pagando .status-bar { color: #00e676; text-shadow: 0 0 8px #00e676; }
.neon-recolhendo .status-bar { color: #ff5252; text-shadow: 0 0 8px #ff5252; }
.neon-formando .status-bar { color: #ffc107; text-shadow: 0 0 8px #ffc107; }

.menu {
  display: flex;
  justify-content: space-around;
  background: #1e1e1e;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.menu button {
  background: #2c2c2c;
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.3s;
}

.menu button:hover {
  background: #444;
}

.menu button.active {
  background: linear-gradient(to right, #00e676, #00c853);
  color: black;
  font-weight: bold;
}

iframe {
  width: 100%;
  flex-grow: 1;
  border: none;
  transition: opacity 0.4s ease;
}

.toast-pattern {
  position: fixed;
  top: 5rem;
  left: 1rem;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  max-width: 320px;
  background-color: rgba(255, 82, 82, 0.95);
  border-left: 4px solid #ff5252;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  animation: fadeIn 0.3s ease;
  z-index: 9999;
  display: none;
}

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

.install-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  z-index: 10000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.install-overlay h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.5rem;
}
.install-overlay p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 320px;
}
.install-overlay img {
  max-width: 90%;
  max-height: 200px;
  margin-bottom: 1rem;
}
.install-overlay button {
  background: #00e676;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
}
.icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
ul, li { text-align: left; }

.btn-link { text-decoration: none; }

.btn-telegram {
  background-color: #0088cc;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
}

#btnALOHA { display: none; }
