:root {
  --bg: #011b2b;
  --card: #02263d;
  --primary: #fcfeffff;
  --hover: #0284c7;
  --text: #e6f1f8;
  --muted: #9fb6c7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(160deg, #011b2b, #00111c);
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 420px;
  padding: 28px;
}

header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeDown 0.6s ease forwards;
}

header img {
  width: 96px;
  height: 96px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 3px solid rgb(255, 255, 255);
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

header p {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Navegação de Links ===== */
nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

nav li {
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  animation: openItem 0.5s ease forwards;
}

nav li:nth-child(1) {
  animation-delay: 0.1s;
}
nav li:nth-child(2) {
  animation-delay: 0.2s;
}
nav li:nth-child(3) {
  animation-delay: 0.3s;
}
nav li:nth-child(4) {
  animation-delay: 0.4s;
}
nav li:nth-child(5) {
  animation-delay: 0.5s;
}

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  justify-content: flex-start;
  overflow: hidden;
}

nav a i {
  flex-shrink: 0;
}
nav a span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

nav a:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

nav a:hover i {
  color: #fff;
}

.share-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.share-btn:hover {
  background: var(--hover);
}

/* ===== Footer ===== */
footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

footer a:hover {
  opacity: 0.85;
}

/* ===== QR Float ===== */
.qr-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 200px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 999;
  animation: fadeInUp 0.5s ease forwards;
}

.qr-float img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.qr-float strong {
  margin-top: 6px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

.qr-float span {
  font-size: 12px;
  color: #e6f1f8;
  opacity: 0.85;
  text-align: center;
}

/* ===== Animações ===== */
@keyframes openItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  main {
    padding: 16px;
  }

  nav a {
    padding: 12px 14px;
    font-size: 10px;
  }

  nav a i {
    font-size: 20px;
  }

  .qr-float {
    display: none;
  }
}
