@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Color Palette */
  --bg-dark: #0a0b10;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.15);

  --primary-glow: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --primary-glow-hover: linear-gradient(135deg, #8b5cf6 0%, #0891b2 100%);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --error: #f43f5e;
  --error-glow: rgba(244, 63, 94, 0.15);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Lights */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, #131525 0%, #0a0b10 100%);
}

.bg-glow-1,
.bg-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  top: -10%;
  left: -10%;
  animation: floatLight 20s infinite alternate;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: #06b6d4;
  bottom: -10%;
  right: -10%;
  animation: floatLight 25s infinite alternate-reverse;
}

@keyframes floatLight {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(100px, 50px) scale(1.2);
  }
}

/* Header / Brand */
header {
  padding: 2.5rem 1.5rem 1rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.brand-logo svg,
.brand-logo img {
  height: 150px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Container */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 480px;
}

.card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.05);
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  transition: var(--transition-smooth);
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 8px var(--text-muted);
}

.status-badge.success {
  background: var(--success-glow);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.status-badge.success .dot {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseDot 2s infinite;
}

.status-badge.error {
  background: var(--error-glow);
  border-color: rgba(244, 63, 94, 0.25);
  color: var(--error);
}

.status-badge.error .dot {
  background: var(--error);
  box-shadow: 0 0 10px var(--error);
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Primary Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.125rem 2rem;
  border-radius: 16px;
  background: var(--primary-glow);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px -5px rgba(124, 58, 237, 0.3);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
  transition: 0.75s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -5px rgba(124, 58, 237, 0.5);
  background: var(--primary-glow-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.disabled {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-primary.disabled::before {
  display: none;
}

/* Store Badge Buttons */
.store-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.store-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.btn-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}

.btn-store:active {
  transform: translateY(0);
}

/* Redirect Overlay */
.redirect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 16, 0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1.5rem;
}

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

.redirect-overlay p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.redirect-overlay span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.redirect-overlay .btn-close-overlay {
  margin-top: 2rem;
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.redirect-overlay .btn-close-overlay:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Footer */
footer {
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 400px) {
  .card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .title {
    font-size: 1.6rem;
  }
}