:root {
  --color-bg: #F8FAFC; /* Slate 50 - Sáng và sạch sẽ */
  --color-surface: #FFFFFF; /* Nổi bật lên khỏi nền */
  --color-accent: #4F46E5; /* Xanh Indigo thanh lịch */
  --color-glow: rgba(79, 70, 229, 0.15);
  --color-ink: #0F172A; /* Chữ màu than chì sang trọng */
  --color-muted: #64748B;
  
  --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  --border-radius-pill: 9999px;
  --border-radius-card: 16px;
  
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
}

/* Focus outline for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Minimal ambient lighting - tone down AI slop blobs */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--spacing-8) var(--spacing-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-6);
}

/* Profile Section */
.profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-surface);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.avatar-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #8B5CF6);
  opacity: 0.15;
  z-index: 1;
  filter: blur(8px);
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.05); opacity: 0.2; }
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Featured Products Carousel */
.featured-section {
  width: 100%;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-3);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel {
  display: flex;
  gap: var(--spacing-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--spacing-2);
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.product-card:hover, .product-card:active, .product-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}

.product-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #F1F5F9;
}

.product-info {
  padding: var(--spacing-3);
}

.product-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--spacing-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Links Section */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  padding: var(--spacing-4);
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.link-btn:hover, .link-btn:active, .link-btn:focus-visible {
  background: rgba(79, 70, 229, 0.04);
  border-color: var(--color-accent);
  transform: scale(1.02);
}

.link-btn.primary {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.link-btn.primary:hover, .link-btn.primary:active, .link-btn.primary:focus-visible {
  background: #4F46E5; /* Darker indigo */
  border-color: #4F46E5;
}

.link-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Skeleton Loading State */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 20px;
  width: 80%;
  margin: 0 auto;
}

.skeleton-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.skeleton-btn {
  height: 56px;
  width: 100%;
  border-radius: var(--border-radius-pill);
}

/* Utilities */
.hidden {
  display: none !important;
}
