/* ==========================================================
   RESET & VARIABLES
   ========================================================== */
:root {
  --bg-main: #0a0a0f;
  --bg-card: rgba(20, 21, 30, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-pink: #ff2d75;
  --telegram-blue: #229ED9;
  --telegram-gradient: linear-gradient(135deg, #2AABEE 0%, #229ED9 50%, #1783b8 100%);
  --telegram-glow: 0 8px 30px rgba(34, 158, 217, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #9fa0b8;
  --text-muted: #62637a;

  --success-green: #00e676;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================
   AMBIENT GLOWS
   ========================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: pulseAmbient 10s ease-in-out infinite alternate;
}

.glow-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #229ED9, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ff2d75, transparent 70%);
  bottom: 0;
  right: -50px;
}

@keyframes pulseAmbient {
  0% { transform: scale(1); opacity: 0.28; }
  100% { transform: scale(1.15); opacity: 0.42; }
}

/* ==========================================================
   CONTAINER & LAYOUT
   ========================================================== */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ==========================================================
   PROFILE HEADER
   ========================================================== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 2px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #ff2d75);
  animation: rotateRing 8s linear infinite;
  filter: drop-shadow(0 0 16px rgba(34, 158, 217, 0.45));
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--bg-main);
  background-color: #171822;
}

.status-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  background-color: var(--success-green);
  border: 3px solid var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.status-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--success-green);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2AABEE;
  color: #fff;
  border-radius: 50%;
  padding: 2px;
}

.profile-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Online Live Badge */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.28);
  color: #a3ffc6;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
}

.live-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--success-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-green);
}

/* Discreet Bio */
.profile-bio {
  width: 100%;
  font-size: 0.94rem;
  line-height: 1.48;
  color: #ececf5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.bio-sub {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==========================================================
   TELEGRAM VIP BUTTON
   ========================================================== */
.action-wrapper {
  width: 100%;
}

.action-btn {
  width: 100%;
  position: relative;
  outline: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  font-family: inherit;
  text-align: left;
}

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

.btn-telegram {
  background: var(--telegram-gradient);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--telegram-glow);
  color: #ffffff;
}

.btn-telegram:hover {
  box-shadow: 0 12px 36px rgba(34, 158, 217, 0.6);
  transform: translateY(-2px);
}

.pulse-btn {
  animation: subtlePulse 3s infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(34, 158, 217, 0.4);
  }
  50% {
    box-shadow: 0 10px 38px rgba(34, 158, 217, 0.7);
  }
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  animation: shimmer 3.5s infinite;
}

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

.btn-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.telegram-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  color: #ffffff;
}

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

.btn-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.btn-desc {
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 2px;
  font-weight: 500;
}

.btn-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.action-btn:hover .btn-chevron {
  transform: translateX(4px);
  opacity: 1;
}

/* ==========================================================
   DISCRETION & TRUST NOTICE
   ========================================================== */
.discreet-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 50px;
}

.discreet-notice svg {
  color: #2AABEE;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.page-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.copyright {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.disclaimer {
  font-size: 0.70rem;
  color: #434455;
}

/* ==========================================================
   REDIRECT / LOADING MODAL
   ========================================================== */
.redirect-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.redirect-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #14151e;
  border: 1px solid rgba(34, 158, 217, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(34, 158, 217, 0.25);
  padding: 30px 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
  width: 100%;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.redirect-modal.active .modal-card {
  transform: scale(1);
}

.telegram-modal-icon {
  color: #2AABEE;
  margin-bottom: 14px;
  animation: pulseIcon 1.5s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(34, 158, 217, 0.3)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 14px rgba(34, 158, 217, 0.7)); }
}

.modal-title {
  font-size: 1.10rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.modal-subtitle {
  font-size: 0.80rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--telegram-gradient);
  border-radius: 10px;
  animation: loadProgress 0.7s ease forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}
