
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.container {
	background: white;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 100%;
}

h1 {
	color: #667eea;
	text-align: center;
	margin-bottom: 25px;
	font-size: 24px;
}

.input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
}

input {
	flex: 1;
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	font-size: 16px;
	transition: border-color 0.3s;
}

input:focus {
	outline: none;
	border-color: #667eea;
}

button {
	padding: 12px 25px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: transform 0.2s;
}

button:hover {
	transform: translateY(-2px);
}

button:active {
	transform: translateY(0);
}

.result {
	display: none;
	animation: fadeIn 0.5s;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.user-info {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 25px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 15px;
}

.avatar {
	width: 64px;
	height: 110px;
	border-radius: 10px;
	background: white;
}

.user-details h2 {
	color: #333;
	margin-bottom: 5px;
}

.user-details p {
	color: #666;
}

.achievement-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 15px;
	padding: 25px;
	color: white;
	margin-bottom: 20px;
}

.achievement-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.achievement-badge {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	background: white;
	padding: 5px;
	object-fit: none;
}

.achievement-title h3 {
	font-size: 20px;
	margin-bottom: 5px;
}

.achievement-level {
	font-size: 14px;
	opacity: 0.9;
}

.progress-container {
	margin-bottom: 15px;
}

.progress-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 14px;
}

.progress-bar {
	width: 100%;
	height: 25px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
	border-radius: 12px;
	transition: width 0.5s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 12px;
}

.achievement-desc {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.6;
}

.error {
	background: #fee;
	color: #c33;
	padding: 15px;
	border-radius: 10px;
	text-align: center;
	display: none;
}

.loading {
	text-align: center;
	color: #667eea;
	display: none;
	padding: 20px;
}

.spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #667eea;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}