:root {
  --primary: #6C5CE7;
  --primary-hover: #5a4bcf;
  --secondary: #00CEC9;
  --dark-bg: #121420;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-main: #f5f6fa;
  --text-muted: #a4b0be;
  --neon-glow: 0 0 15px rgba(108, 92, 231, 0.5);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* Background animated glow */
body::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 60%);
  animation: pulse 10s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.wrapper {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: var(--neon-glow);
}

.btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  background: #444;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

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

.alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  word-wrap: break-word;
}

.alert.success {
  background: rgba(46, 213, 115, 0.1);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.2);
}

.alert.error {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.2);
}

/* Step transitions */
.step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.step.active {
  display: block;
}

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

/* Dashboard specific styles */
.dashboard-header {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  position: fixed;
  top: 0;
  z-index: 100;
}

.dashboard-content {
  margin-top: 80px;
  width: 100%;
  padding: 20px;
  max-width: 800px;
}

.user-badge {
  background: rgba(108, 92, 231, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.action-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.action-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.game-item {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.1));
  border: var(--glass-border);
  border-radius: 16px;
  padding: 30px 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--neon-glow);
}

.icon-large {
  font-size: 40px;
  margin-bottom: 15px;
}
