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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0f172a;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 30px 15px;
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 25px;
  user-select: none;
}

.logo-wrapper img {
  width: 150px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: inline-block;
  background: #fff; 
}

.logo-text {
  margin-top: 12px;
  font-weight: 700;
  font-size: 20px;
  color: #a3e635;
  letter-spacing: 1px;
}

.container {
  background: #1e293b;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 460px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.step {
  display: none;
  transition: all 0.3s ease;
}

.step.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

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

h2 {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  margin-bottom: 10px;
  font-size: 16px;
  outline: none;
  background-color: #334155; 
  color: #e2e8f0; 
  transition: border 0.3s, box-shadow 0.3s;
}

input:focus {
  border: 2px solid #4ade80; 
  box-shadow: 0 0 5px #4ade80aa;
}

.error {
  color: #f87171;
  font-size: 14px;
  margin-bottom: 10px;
  display: none;
}

.device-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.device-option {
  flex: 1;
  padding: 12px;
  background: #334155;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.device-option i {
  font-size: 20px;
}

.device-option:hover {
  background: #475569;
}

.device-option.active {
  background: #4ade80;
  color: #0f172a;
  font-weight: bold;
}

.token-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.token {
  padding: 15px;
  background: #334155;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  user-select: none;
}

.token:hover {
  transform: scale(1.03);
}

.token.active {
  background: #4ade80;
  color: #0f172a;
  box-shadow: 0 0 10px #4ade80aa;
}

.token::before {
  content: '\1F4B0';
  margin-right: 8px;
  color: gold;
}

.btn {
  margin-top: 20px;
  padding: 14px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #22c55e, #4ade80);
  color: #0f172a;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 128, 0.2);
}

.progress-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.spinner {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 4px solid #4ade80;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#countText {
  font-size: 22px;
  font-weight: 700;
  color: #a3e635;
  margin-top: 20px;
  text-align: center;
  user-select: none;
}

#doneText {
  font-size: 20px;
  color: #22c55e;
  margin-top: 15px;
  text-align: center;
  display: none;
  user-select: none;
}

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

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    max-width: 100%;
    padding: 30px 15px;
  }

  h2 {
    font-size: 22px;
  }

  .logo-wrapper img {
    width: 120px;
  }

  .logo-text {
    font-size: 18px;
  }
}
