/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #020800;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* ===========================
   Rainbow Background
=========================== */
#rainbow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

#rainbow-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(2, 8, 0, 0.45) 0%, rgba(2, 8, 0, 0.92) 100%);
  z-index: 1;
}

.rainbow {
  height: 140vh;
  width: 0;
  top: -20vh;
  position: absolute;
  transform: rotate(15deg) translateZ(0);
  transform-origin: top right;
  will-change: right;
}

.rainbow-h {
  box-shadow: 0 0 50vh 40vh rgba(34, 197, 94, 0.04);
  width: 100vw;
  height: 0;
  bottom: 0;
  left: 0;
  position: absolute;
}

.rainbow-v {
  box-shadow: 0 0 35vw 25vw rgba(16, 185, 129, 0.03);
  width: 0;
  height: 100vh;
  bottom: 0;
  left: 0;
  position: absolute;
}

@keyframes rainbow-slide {
  0%   { right: -40vw; }
  100% { right: 140vw; }
}

/* ===========================
   Layout
=========================== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  flex: 1;
}

/* ===========================
   Profile Section
=========================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  margin-bottom: 6px;
}

.avatar-ring {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  padding: 6px;
  background: #000;
  border: 2.5px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.2);
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.2); }
  50%       { box-shadow: 0 0 32px rgba(34, 197, 94, 0.85), 0 0 65px rgba(34, 197, 94, 0.35); }
}

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

.online-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #000;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: blink 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes blink {
  0%, 100% {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9), 0 0 4px rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 3px rgba(34, 197, 94, 0.3);
  }
}

/* Name */
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.verified-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.verified-img-card {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge-18-img-card {
  width: auto;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: -12px;
}

.crown-icon {
  font-size: 1.1rem;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transform: translateY(-2.5px);
}

.badge-18-img {
  width: auto;
  height: 25px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: -5px;
  flex-shrink: 0;
}

.icons-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Tagline */
.profile-tagline {
  font-size: 0.65rem;
  color: #ffffff;
  font-weight: 600;
  max-width: 320px;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.highlight-yellow {
  color: #fbbf24;
  font-weight: 600;
}

/* Badges */
.profile-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
}

/* Pill de localização */
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
  cursor: default;
  transition: background 0.2s, border-color 0.2s;
  max-width: 100%;
}

.loc-pill:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.65);
}

.loc-icon {
  color: #22c55e;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  animation: bounce 2s ease-in-out infinite;
}

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

.loc-pill-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Apenas a região do IP fica em amarelo/dourado #fbbf24 */
.loc-highlight {
  color: #fbbf24;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Prova social */
.proof-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.8); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px rgba(34, 197, 94, 0.4); }
}

/* ===========================
   Links Section
=========================== */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  /* espaço para o box-shadow/glow não ser cortado */
  padding: 10px 16px;
}

/* Card base */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  padding: 18px 24px;
  border-radius: 28px;
  text-decoration: none;
  color: #fff;
  position: relative;
  /* overflow: hidden removido daqui para o glow não ser cortado */
  /* o ripple é clipado via ::before abaixo */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  /* overflow hidden aqui dentro para conter o ripple */
  overflow: hidden;
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-2px) scale(1.01);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:active {
  transform: scale(0.98);
}

/* Telegram card — tom âmbar/amarelo escuro com luz pulsante ao redor */
.telegram-card {
  background: linear-gradient(135deg, #061209 0%, #0a1f10 50%, #061209 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: cardGlowPulse 2.4s ease-in-out infinite;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

@keyframes cardGlowPulse {
  0%, 100% {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.5),
      0 0 8px rgba(34, 197, 94, 0.15);
  }
  50% {
    border-color: rgba(34, 197, 94, 0.75);
    box-shadow: 
      0 4px 18px rgba(0, 0, 0, 0.5),
      0 0 18px rgba(34, 197, 94, 0.4);
  }
}

.telegram-card:hover {
  transform: none;
  background: linear-gradient(135deg, #0a1f10 0%, #122b18 50%, #0a1f10 100%);
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 
    0 4px 22px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(34, 197, 94, 0.35);
}

/* Card icon */
.link-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telegram-card .link-card-icon {
  background: linear-gradient(135deg, #229ED9, #1a85bb);
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

.tg-icon {
  width: 27px;
  height: 27px;
  color: #fff;
}

/* Card content */
.link-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.link-card-title > span,
.link-card-title > img {
  display: inline-flex;
  align-items: center;
}



.link-card-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

/* Card arrow */
.link-card-arrow {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.link-card-arrow svg {
  width: 100%;
  height: 100%;
}

.link-card:hover .link-card-arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(3px);
}

/* Disclaimer */
.link-disclaimer {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 4px;
  font-weight: 300;
  font-style: italic;
}

/* ===========================
   Footer
=========================== */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 20px 24px 30px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ===========================
   Toast Notification
=========================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 20px;
  transform: translateY(20px) scale(0.95);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(2, 10, 5, 0.97);
  border: 1px solid rgba(34, 197, 94, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 13px 16px;
  max-width: 260px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(34, 197, 94, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  /* estado inicial: invisível, controlado por JS */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast.hiding {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-main {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.35;
}

.toast-sub {
  font-size: 0.7rem;
  color: #22c55e;
  font-weight: 700;
}

/* ===========================
   Responsive — Mobile
=========================== */
@media (max-width: 480px) {
  .container {
    padding: 48px 16px 32px;
  }

  .avatar-ring {
    width: 92px;
    height: 92px;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  /* Pill pode quebrar linha em telas muito pequenas */
  .loc-pill-text {
    white-space: normal;
    text-align: center;
    font-size: 0.68rem;
  }

  .loc-pill {
    padding: 6px 12px;
    text-align: center;
  }

  .link-card {
    padding: 13px 14px;
    gap: 11px;
  }

  .link-card-title {
    font-size: 0.85rem;
  }

  /* Toast centralizado no mobile */
  .toast {
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    max-width: calc(100vw - 32px);
    width: max-content;
  }

  .toast.visible {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .toast.hiding {
    transform: translateX(-50%) translateY(10px) scale(0.97);
  }
}

@media (max-width: 360px) {
  .profile-name {
    font-size: 1.15rem;
  }

  .loc-pill-text {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }
}
