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

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

body {
  font-family: 'Inter', sans-serif;
  background: #f5f6fa;
  color: #1a1d2e;
  min-height: 100vh;
}

/* ===== TRANG CHỦ ===== */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, #f5f6fa 40%);
}

.home-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 0 40px rgba(59,130,246,0.3);
  animation: fadeIn 0.5s ease-out;
}

.name-section {
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.name-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1d2e;
}

.name-section p {
  color: #6b7280;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  text-align: left;
}

.link-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.link-card:active {
  transform: scale(0.98);
}

.link-card.facebook { background: #1877f2; }
.link-card.zalo { background: #0088ff; }
.link-card.transfer { background: #1abe56; }
.link-card.website { background: #d4265d; }

.link-card .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.link-card .title {
  font-size: 1.125rem;
  font-weight: 600;
}

.link-card .desc {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* ===== TRANG CHUYỂN KHOẢN ===== */
.transfer-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f5f6fa 0%, #e8eeff 50%, #f5f6fa 100%);
}

.transfer-container {
  width: 100%;
  max-width: 420px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #1a1d2e;
}

.transfer-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(59,130,246,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  animation: slideUp 0.5s ease-out;
}

.transfer-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.transfer-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.transfer-header p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.transfer-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.qr-wrapper {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.qr-wrapper img {
  width: 224px;
  height: 224px;
  object-fit: contain;
  display: block;
}

.info-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8f9fc;
  border-radius: 0.75rem;
}

.info-row .label {
  font-size: 0.85rem;
  color: #6b7280;
}

.info-row .value {
  font-weight: 600;
  color: #1a1d2e;
}

.info-row .value-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #3b82f6;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  background: rgba(59,130,246,0.1);
}

.copy-btn.copied {
  color: #22c55e;
}

.transfer-footer {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}

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

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

.animate-1 { animation: fadeIn 0.4s ease-out 0.3s both; }
.animate-2 { animation: fadeIn 0.4s ease-out 0.4s both; }
.animate-3 { animation: fadeIn 0.4s ease-out 0.5s both; }
.animate-4 { animation: fadeIn 0.4s ease-out 0.6s both; }
.animate-5 { animation: fadeIn 0.4s ease-out 0.7s both; }
.animate-6 { animation: fadeIn 0.4s ease-out 0.8s both; }

/* ===== HIDDEN ===== */
.page { display: none; }
.page.active { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .home-page { padding: 2rem 1rem; }
  .name-section h1 { font-size: 1.5rem; }
  .qr-wrapper img { width: 180px; height: 180px; }
}
