/* =========================================================
   DATACASH APP - OFFICIAL TELEGRAM LANDING UI DESIGN
   ========================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  background: radial-gradient(circle at 50% 35%, #0f1c34 0%, #090e1b 45%, #04060c 100%);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 24px 16px;
}

/* Ambient background soft glow */
.glow-sphere {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.18) 0%, rgba(20, 90, 200, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* Glass Container Card */
.card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 430px;
  background: rgba(13, 20, 36, 0.82);
  border: 1px solid rgba(42, 171, 238, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 42px 28px 34px;
  text-align: center;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(42, 171, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: cardAppear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(18px);
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge (DataCash • Official) */
.domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: #64c9ff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Telegram Glowing Logo & Light Rays Burst Animation */
.logo-stage {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Conic Light Rays */
.light-rays {
  position: absolute;
  width: 270px;
  height: 270px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: raysRotate 12s linear infinite, raysInitialBurst 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(42, 171, 238, 0.32) 0deg 15deg,
    transparent 15deg 30deg
  );
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 18%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 18%, transparent 70%);
  filter: blur(2px);
}

@keyframes raysInitialBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes raysRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pulsing Outer Aura Waves */
.pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.35);
  animation: pulseWaves 2.2s infinite ease-out;
  z-index: 2;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.75s;
}

@keyframes pulseWaves {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* Central Telegram Logo Disc */
.logo-container {
  position: relative;
  z-index: 3;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE 0%, #1f94cd 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 0 32px rgba(42, 171, 238, 0.75),
    0 0 65px rgba(42, 171, 238, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
  animation: logoGlowPulse 2.6s infinite ease-in-out, logoIntro 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoGlowPulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(42, 171, 238, 0.7),
      0 0 60px rgba(42, 171, 238, 0.4);
  }
  50% {
    box-shadow: 
      0 0 45px rgba(42, 171, 238, 0.95),
      0 0 85px rgba(42, 171, 238, 0.6);
  }
}

.telegram-icon {
  width: 58px;
  height: 58px;
  fill: #ffffff;
  transform: translate(-3px, 1px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Typography */
.title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.title span {
  color: #38bdf8;
  display: inline-block;
}

.subtitle {
  font-size: 14.5px;
  color: #9cb1c9;
  line-height: 1.55;
  margin-bottom: 26px;
}

/* Glowing Action Button */
.btn-wrapper {
  position: relative;
  margin-bottom: 22px;
}

.btn-glow-layer {
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #00d2ff, #0066ff, #2AABEE, #00d2ff);
  background-size: 300% 100%;
  border-radius: 18px;
  filter: blur(10px);
  opacity: 0.85;
  animation: glowBorderSweep 3s ease infinite;
  z-index: 1;
}

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

.join-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 17px 20px;
  border: none;
  outline: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2AABEE 0%, #1583c4 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 
    0 10px 25px rgba(42, 171, 238, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.join-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: btnShimmer 2.4s infinite;
}

@keyframes btnShimmer {
  0% { left: -60%; }
  100% { left: 140%; }
}

.join-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 14px 30px rgba(42, 171, 238, 0.65),
    0 0 35px rgba(0, 198, 255, 0.5);
}

.join-btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Timer & Progress Bar */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.timer-info {
  font-size: 13.5px;
  color: #7f97b1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.countdown-number {
  font-weight: 700;
  color: #38bdf8;
  min-width: 14px;
  text-align: center;
}

.progress-bar-bg {
  width: 100%;
  max-width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2AABEE, #00f2fe);
  border-radius: 999px;
  box-shadow: 0 0 10px #00f2fe;
  transition: width 0.1s linear;
}

.footer-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #556a84;
}

.footer-note svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .card {
    padding: 36px 20px 28px;
    border-radius: 24px;
  }
  .title {
    font-size: 21px;
  }
  .subtitle {
    font-size: 13.5px;
  }
  .join-btn {
    padding: 15px 18px;
    font-size: 16px;
  }
}
