* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  color: #f1f5f9;
  overflow-x: hidden;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}

.lang-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f1f5f9;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: #10b981;
  border-color: #10b981;
}

/* Views */
.view {
  display: none;
  width: 100%;
}

.view.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Card */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
}

/* Landing View */
.trophy {
  max-width: 100%;   /* Sigurohet që logo-ja të mos kalojë gjerësinë e kontenierit */
  height: auto;      /* Lartësia përshtatet automatikisht për të ruajtur raportin */
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}


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

.title {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.prize-range {
  font-size: 28px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 12px;
}

.prize-pool {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.investment {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-full {
  width: 100%;
}

/* Payment Form */
.subtitle {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.payment-amount {
  font-size: 24px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder {
  color: #64748b;
}

/* Scratch View */
.scratch-container {
  margin: 30px 0;
}

.number-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.number-label {
  font-size: 20px;
  font-weight: 600;
  color: #cbd5e1;
}

.number-wrapper {
  position: relative;
  width: 280px;
  height: 200px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.number-value {
  font-size: 96px;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  user-select: none;
}

#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 16px;
}

.scratch-instruction {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.scratch-progress {
  margin-top: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #fbbf24 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: #94a3b8;
}

/* Added styles for result display below scratch card */
.scratch-result {
  margin-top: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideIn 0.5s ease;
}

.scratch-result.hidden {
  display: none;
}

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

.scratch-result .result-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.scratch-result .result-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.scratch-result .result-title.win {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scratch-result .result-title.lose {
  color: #94a3b8;
}

.scratch-result .win-amount {
  font-size: 40px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 16px;
}

.scratch-result .result-message {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.scratch-result .btn {
  margin-top: 12px;
}

/* Result View */
.result-card {
  padding: 60px 40px;
}

.result-icon {
  font-size: 100px;
  margin-bottom: 20px;
}

.result-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.result-title.win {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-title.lose {
  color: #94a3b8;
}

.win-amount {
  font-size: 48px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 20px;
}

.result-message {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 16px;
  }

  .card {
    padding: 24px;
  }

  .title {
    font-size: 32px;
  }

  .prize-range {
    font-size: 20px;
  }

  .trophy {
    font-size: 60px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .number-wrapper {
    width: 220px;
    height: 160px;
  }

  .number-value {
    font-size: 72px;
  }

  .language-switcher {
    top: 12px;
    left: 12px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}
