* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  height: 100vh;
  background: #050509;
  color: #ffffff;
  overflow-x: hidden;
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #141428, #050509);
  animation: pulse 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

/* ================= MENU ================= */

.desktop-menu {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5,5,9,0.85);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 100;
}

.desktop-menu ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

.desktop-menu li {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
  clip-path: none;
  position: relative;
}

.desktop-menu li.active,
.desktop-menu li:hover {
  background: #6c63ff;
  border-radius: 0;
  clip-path: polygon(
    8px 0%, calc(100% - 8px) 0%,
    100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%,
    0% calc(100% - 8px), 0% 8px
  );
}

/* ================= BOTTOM NAV (mobile) ================= */

.bottom-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(8, 8, 18, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 64px;
}

.bottom-nav li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-nav li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0.9);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}

.bottom-nav li span {
  font-size: 10px;
  color: #666688;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}

/* Indicador ativo — bolinha roxa em cima do ícone */
.bottom-nav li::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 32px;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: #6c63ff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav li.active::before {
  transform: translateX(-50%) scaleX(1);
}

.bottom-nav li.active img {
  opacity: 1;
  filter: brightness(1.4) drop-shadow(0 0 6px rgba(108, 99, 255, 0.7));
  transform: translateY(-2px);
}

.bottom-nav li.active span {
  color: #a09fff;
  font-weight: 700;
}

.bottom-nav li:active {
  background: rgba(108, 99, 255, 0.08);
}

/* ================= PÁGINAS ================= */

.page {
  display: none;
  padding: 100px 20px 40px;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* ================= HOME ================= */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  font-size: 3.5rem;
  animation: glow 3s infinite;
}

@keyframes glow {
  0% { text-shadow: 0 0 10px #6c63ff; }
  50% { text-shadow: 0 0 30px #6c63ff; }
  100% { text-shadow: 0 0 10px #6c63ff; }
}

.subtitle {
  margin-top: 15px;
  color: #b8b8ff;
}

.status {
  margin-top: 30px;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid #6c63ff;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ================= DOWNLOADS ================= */

#irw-downloads {
  --accent: #7afcff;
  --accent2: #ff7ab6;
  font-family: inherit;
  color: #eafaff;
  padding: 20px;
}

.irw-card {
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 6px 30px rgba(122, 252, 255, 0.04);
  max-width: 900px;
  margin: 0 auto;
}

.irw-card-head {
  margin-bottom: 20px;
  text-align: center;
}

.irw-card-head h2 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: 600;
}

.irw-card-head p {
  margin: 8px 0 0;
  font-size: 16px;
  color: #cccccc;
}

.irw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .irw-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.irw-platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.irw-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #ffffff;
}

.irw-platform:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(122, 252, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.05);
}

.irw-platform.active {
  border-color: rgba(122, 252, 255, 0.2);
  box-shadow: 0 12px 25px rgba(122, 252, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.08);
}

.irw-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(122, 252, 255, 0.05), rgba(255, 122, 186, 0.02));
  color: var(--accent);
  overflow: hidden;
}

.irw-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.5);
}

.irw-label {
  font-size: 15px;
  font-weight: 600;
  flex-grow: 1;
  text-align: left;
}

.irw-info {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.irw-preview {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= APP SHOWCASE (animação de troca) ================= */

.irw-app-showcase {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 90px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.irw-app-showcase.showcase-visible {
  opacity: 1;
  transform: translateY(0);
}

.irw-app-showcase.showcase-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.irw-app-showcase.showcase-enter {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

.irw-showcase-icon {
  --app-color: #7afcff;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px color-mix(in srgb, var(--app-color) 20%, transparent);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.irw-showcase-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(1.4);
}

.irw-showcase-text {
  flex: 1;
}

.irw-hero-title {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 700;
}

.irw-hero-desc {
  font-size: 13px;
  color: #8888aa;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Tags do app */
.irw-app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.irw-app-tag {
  --tag-color: #7afcff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 25%, transparent);
  background: color-mix(in srgb, var(--tag-color) 6%, transparent);
  color: var(--tag-color);
  letter-spacing: 0.2px;
  font-weight: 500;
}

/* ================= AÇÕES DE DOWNLOAD ================= */

.irw-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.irw-download-btn {
  background: linear-gradient(45deg, var(--accent), var(--accent2));
  color: #021018;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(122, 252, 255, 0.4);
  cursor: pointer;
  min-width: 100px;
  text-align: center;
  display: inline-block;
}

.irw-download-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 252, 255, 0.6);
}

.irw-suggest {
  font-size: 12px;
  color: #cccccc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.irw-progress {
  margin-top: 12px;
  height: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.irw-progress-bar {
  height: 100%;
  width: 75%;
  background: linear-gradient(0deg, var(--accent), var(--accent2));
  transition: width 0.6s ease-out;
  border-radius: 12px;
}

.irw-progress-text {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #ffffff;
}

.irw-features {
  margin-top: 16px;
  padding-left: 20px;
  list-style-type: none;
  font-size: 14px;
  color: #cccccc;
}

.irw-features li {
  margin-bottom: 4px;
}

.irw-footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 14px;
  color: #cccccc;
}

/* ================= CONTATO ================= */

.contact-container {
  text-align: center;
}

.contact-container h2 {
  font-size: 2.2rem;
  color: #6c63ff;
  margin-bottom: 20px;
}

.discord-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #6c63ff;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.discord-link:hover {
  background: #5a52d5;
}

/* ================= TOAST ================= */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #6c63ff;
  padding: 12px 30px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.4s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ================= SELETOR DE IDIOMA ================= */

.lang-btn-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.lang-btn {
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 10px;
  width: 38px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', sans-serif;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.lang-btn:hover {
  background: rgba(108, 99, 255, 0.22);
  border-color: rgba(108, 99, 255, 0.5);
  transform: scale(1.08);
}

/* Overlay escuro atrás do painel */
.lang-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.lang-overlay.open {
  display: block;
}

/* Painel de seleção de idioma */
.lang-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.92);
  z-index: 999;
  background: rgba(12, 12, 28, 0.98);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 20px;
  padding: 24px;
  width: min(360px, 90vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(108,99,255,0.1);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lang-panel.open {
  display: block;
}

.lang-panel.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lang-panel-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7777aa;
  margin-bottom: 16px;
  text-align: center;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.lang-option:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.3);
}

.lang-option.selected {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.45);
}

.lang-option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  line-height: 1;
  font-size: 18px;
}

.lang-btn-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  font-size: 18px;
}

.lang-option-name {
  font-size: 13px;
  color: #ccccdd;
  font-weight: 500;
}

.lang-option.selected .lang-option-name {
  color: #a09fff;
  font-weight: 700;
}

/* Botão de idioma na bottom nav mobile */
.lang-btn-wrap-mobile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lang-btn-wrap-mobile .lang-btn {
  width: 36px;
  height: 32px;
  font-size: 18px;
  border-radius: 8px;
}



@media (max-width: 767px) {
  .bottom-nav {
    display: block;
  }

  .page {
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }

  .desktop-menu {
    display: block;
  }
}

.privacy-btn {
  margin-top: 30px;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  background: #ffd54f;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.privacy-btn:hover {
  background: #ffca28;
  transform: scale(1.05);
}

/* ================= BADGE DISPONIBILIDADE ================= */

@keyframes pulseAvailable {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes pulseUnavailable {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.irw-badge-available {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  background: rgba(0, 255, 100, 0.15);
  color: #00ff64;
  border: 1px solid rgba(0, 255, 100, 0.3);
  animation: pulseAvailable 2s ease-in-out infinite;
  white-space: nowrap;
}

.irw-badge-unavailable {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  background: rgba(255, 80, 80, 0.12);
  color: #ff6060;
  border: 1px solid rgba(255, 80, 80, 0.25);
  animation: pulseUnavailable 2s ease-in-out infinite;
  white-space: nowrap;
}

/* ================= DOWNLOAD MODAL ================= */

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 15, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.download-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.download-animation {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 20, 45, 0.98), rgba(10, 10, 28, 0.98));
  border: 1px solid rgba(122, 252, 255, 0.18);
  border-radius: 24px;
  padding: 44px 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 0 60px rgba(122, 252, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 300px;
  max-width: 400px;
  width: 90vw;
  transform: scale(0.88) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-overlay.visible .download-animation {
  transform: scale(1) translateY(0);
}

.download-spinner-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(122, 252, 255, 0.08);
  border-top-color: #7afcff;
  border-right-color: rgba(122, 252, 255, 0.4);
  animation: dlSpin 1s linear infinite;
}

.download-spinner::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 122, 182, 0.08);
  border-bottom-color: #ff7ab6;
  animation: dlSpin 0.7s linear infinite reverse;
}

.download-spinner-icon {
  font-size: 22px;
  animation: dlBounce 1.4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes dlSpin {
  to { transform: rotate(360deg); }
}

@keyframes dlBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.download-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #eafaff;
  letter-spacing: 0.3px;
  text-align: center;
}

.download-text {
  font-size: 13px;
  color: #8888aa;
  text-align: center;
  min-height: 20px;
  transition: color 0.3s;
}

.download-modal-desc {
  font-size: 12px;
  color: #555577;
  text-align: center;
  line-height: 1.5;
  max-width: 300px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

.download-modal-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.download-modal-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7afcff, #ff7ab6);
  border-radius: 4px;
  transition: width 1s linear;
  box-shadow: 0 0 8px rgba(122, 252, 255, 0.5);
}

.cancel-download-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8888aa;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.cancel-download-btn:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.35);
  color: #ff6060;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .download-animation {
    padding: 40px 28px 30px;
    min-width: unset;
  }
}