:root {
  --bg-color: #1f1f1f;
  --text-color: white;
  --button-shadow: rgba(0, 0, 0, 0.2);
}

body.light {
  --bg-color: #f0f0f0;
  --text-color: #222;
  --button-shadow: rgba(100, 100, 100, 0.2);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-color);
}

.container {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 30px var(--button-shadow);
  width: 90%;
  max-width: 400px;
  transition: background-color 0.3s;
}

.avatar-wrapper {
  display: inline-block;
  cursor: pointer;
  margin-bottom: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--button-shadow);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.nickname {
  font-size: 20px;
  margin-bottom: 30px;
}

.button {
  display: block;
  margin: 12px auto;
  padding: 12px;
  width: 70%;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 15px;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--button-shadow);
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  top: -50%;
  left: -50%;
  transform: rotate(45deg);
  transition: transform 0.6s ease-in-out;
}

.button:hover::after {
  transform: translateX(100%) rotate(45deg);
}

.button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px var(--button-shadow);
}

.youtube {
  background-color: #ff0000;
}

.telegram {
  background-color: #229ED9;
}

.github {
  background-color: #888;
}

.footer {
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}

.fanpay {
  background-color: #007BFF; /* синій */
  color: white;
}