/* --- Cài đặt chung & Nền --- */
:root {
  --background-start: #141e30;
  --background-end: #243b55;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #adb5bd;
  --text-accent: #82aaff;
}

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

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: linear-gradient(135deg, var(--background-start), var(--background-end));
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

/* --- Hiệu ứng tải trang --- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-start);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--text-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* --- Thẻ Profile chính --- */
.profile-card {
  width: 100%;
  max-width: 680px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

/* --- Header --- */
.profile-header .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--text-accent);
  object-fit: cover;
  margin-bottom: 15px;
}

.profile-header .name {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.profile-header .name .fa-badge-check {
  color: #1da1f2;
}

.profile-header .bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 5px;
  margin-bottom: 25px;
}

.profile-header .tag {
  display: inline-block;
  background: rgba(130, 170, 255, 0.15);
  color: var(--text-accent);
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 25px;
}

/* --- Lưới Mạng Xã Hội --- */
.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.social-link {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, background-color 0.2s ease;
  width: 100%;
  flex-grow: 1;
}

.social-link:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
  .social-link {
    width: calc(50% - 8px);
    flex-grow: 0;
  }
}

.social-link .icon {
  font-size: 1.8rem;
  width: 50px;
  text-align: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.social-link .text-content {
  text-align: left;
}

.social-link .text-content .platform {
  font-weight: 700;
  font-size: 1.1rem;
}

.social-link .text-content .username {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Màu sắc cho từng nền tảng --- */
.facebook .icon {
  color: #1877F2;
}

.messenger .icon {
  color: #00B2FF;
}

.instagram .icon {
  color: #E4405F;
}

.tiktok .icon {
  color: #fff;
}

.discord .icon {
  color: #5865F2;
}

.github .icon {
  color: #e4e4e4;
}

.zalo .icon {
  color: #0068FF;
}

.phone .icon {
  color: #4CAF50;
}

.momo .icon {
  color: #A50064;
}

.techcombank .icon {
  color: #E22127;
}

.vpbank .icon {
  color: #00A651;
}

.paypal .icon {
  color: #00457C;
}

.youtube .icon {
  color: #FF0000;
}


/* --- Footer --- */
.footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a {
  color: var(--text-accent);
  text-decoration: none;
}