/* ===================================================
   Ultra-Fast TikTok Bio Landing Page CSS
   Theme: Minecraft Brazil Football Stadium Glow
   =================================================== */

:root {
  --primary-green: #00ff87;
  --primary-gold: #ffdf00;
  --accent-blue: #00a8ff;
  --dark-bg: #070d0a;
  --card-bg: rgba(13, 27, 20, 0.72);
  --card-border: rgba(0, 255, 135, 0.25);
  --text-main: #ffffff;
  --text-muted: #b4c7be;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px 40px;
}

/* Background layers */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.68) saturate(1.25);
  z-index: -3;
  transform: scale(1.02);
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(0, 255, 135, 0.15) 0%, rgba(5, 12, 8, 0.85) 75%);
  z-index: -2;
  pointer-events: none;
}

/* Ambient glowing orbs */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  animation: floatOrb 8s infinite alternate ease-in-out;
}

.p1 {
  width: 250px;
  height: 250px;
  background: #00ff87;
  top: 10%;
  left: -50px;
}

.p2 {
  width: 220px;
  height: 220px;
  background: #ffdf00;
  bottom: 15%;
  right: -50px;
  animation-duration: 11s;
}

.p3 {
  width: 180px;
  height: 180px;
  background: #00a8ff;
  top: 45%;
  left: 30%;
  opacity: 0.2;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.15); }
}

/* Page Container */
.page-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.profile-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 32px 22px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(0, 255, 135, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Avatar Section */
.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
}

.avatar-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-gold), var(--accent-blue));
  filter: blur(12px);
  opacity: 0.75;
  animation: glowPulse 3s infinite alternate ease-in-out;
}

@keyframes glowPulse {
  0% { transform: scale(0.96); opacity: 0.6; }
  100% { transform: scale(1.06); opacity: 0.95; }
}

.avatar-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #00ff87 0%, #ffdf00 50%, #00e5ff 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #000;
  transition: transform 0.4s ease;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.05);
}

.flag-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
  animation: flagFloat 2.5s infinite alternate ease-in-out;
}

@keyframes flagFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(6deg); }
}

/* Profile Title & Verified */
.profile-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #00ff87, #00b0ff);
  color: #000;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.6);
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  stroke: #000;
  stroke-width: 0.5;
}

/* Bio */
.profile-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 24px;
  max-width: 90%;
  font-weight: 500;
}

/* Social Icons Row (Beacons style) */
.socials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(0, 255, 135, 0.25);
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.social-icon:hover {
  background: rgba(0, 255, 135, 0.2);
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 255, 135, 0.35);
}

.social-icon:active {
  transform: scale(0.95);
}

/* Links Container */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Action Button */
.action-button {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(0, 255, 135, 0.3);
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.action-button:active {
  transform: scale(0.97);
}

.action-button:hover {
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.16) 0%, rgba(255, 223, 0, 0.1) 100%);
  border-color: var(--primary-green);
  box-shadow: 0 10px 25px rgba(0, 255, 135, 0.25);
}

/* Pulsing Primary Button */
.action-button.pulse-btn {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 50%, #ffd600 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #03150c;
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.45);
  animation: pulseGlow 2.2s infinite ease-in-out, gradientShift 4s ease infinite;
}

.action-button.pulse-btn .link-title {
  color: #03150c;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.action-button.pulse-btn .link-subtitle {
  color: #09331f;
  font-weight: 700;
}

.action-button.pulse-btn .btn-arrow svg {
  stroke: #03150c;
  stroke-width: 3;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4); }
  50% { transform: scale(1.025); box-shadow: 0 14px 40px rgba(0, 230, 118, 0.7), 0 0 25px rgba(255, 223, 0, 0.5); }
  100% { transform: scale(1); box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Light sweep shimmer across the button */
.action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: shimmer 3.5s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -120%; }
  35% { left: 160%; }
  100% { left: 160%; }
}

/* Button internals */
.btn-content {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  z-index: 2;
}

.link-icon {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.link-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.25s ease;
}

.btn-arrow svg {
  width: 20px;
  height: 20px;
}

.action-button:hover .btn-arrow {
  transform: translateX(4px);
}

.link-badge {
  position: absolute;
  top: -1px;
  right: 18px;
  background: linear-gradient(135deg, #ff1744, #ff5252);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 8px rgba(255, 23, 68, 0.5);
  z-index: 3;
}

/* Footer Badge */
.footer-badge {
  margin-top: 28px;
}

.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.safe-badge svg {
  color: var(--primary-green);
}

/* Direct Redirect Loading Banner */
.redirect-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-green);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  z-index: 100;
  animation: bannerSlideUp 0.3s ease-out;
}

@keyframes bannerSlideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 255, 135, 0.2);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 380px) {
  .profile-card {
    padding: 24px 16px 20px;
    border-radius: 22px;
  }
  .avatar-wrapper {
    width: 105px;
    height: 105px;
  }
  .profile-title {
    font-size: 1.35rem;
  }
  .action-button {
    padding: 14px 16px;
  }
}
