:root {
  --profile-card-bg: rgba(255,255,255,0.08);
  --profile-card-border: rgba(255,255,255,0.18);
  --profile-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

.profile-page {
  background: linear-gradient(180deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
  position: relative;
  overflow: hidden;
}

.profile-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.3; }
}

.profile-card {
  background: var(--profile-card-bg);
  border: 1px solid var(--profile-card-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--profile-shadow);
  backdrop-filter: blur(16px);
  color: #fff;
  min-height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(102, 126, 234, 0.4);
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-card--indigo { 
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
  border: none;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.profile-card--amber { 
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  border: none;
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.35);
}

.profile-card--mint  { 
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #0f766e 100%);
  border: none;
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.35);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102,126,234,0.45);
  font-size: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.profile-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(102,126,234,0.6);
}

.profile-avatar:hover::before {
  opacity: 1;
}

.profile-name {
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-email {
  opacity: 0.9;
  font-size: 0.9rem;
}

.profile-actions .btn {
  border-radius: 14px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
}

.profile-actions .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.profile-actions .btn:hover::before {
  width: 300px;
  height: 300px;
}

.profile-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.5);
}

.profile-actions .btn-primary {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.profile-actions .btn-outline-light {
  background: rgba(255,255,255,0.1);
}

.profile-stats .profile-stat-value {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
  display: inline-block;
}

.profile-stats > div:hover .profile-stat-value {
  transform: scale(1.15);
}

.profile-stats .profile-stat-label {
  opacity: 0.95;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.profile-divider {
  border-color: rgba(255,255,255,0.25);
  margin: 1.25rem 0;
  opacity: 0.6;
}

.profile-recent {
  margin: 0;
  padding: 0;
}

.profile-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-recent-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

.profile-recent-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.profile-recent-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.profile-recent-info .profile-recent-title {
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-recent-info .profile-recent-meta {
  font-size: 0.8rem;
  opacity: 0.9;
}

.profile-note { 
  opacity: 0.95;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 3px solid rgba(255,255,255,0.4);
}

.profile-card h6 {
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.profile-card h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

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

.col-12.col-lg-4:nth-child(1) .profile-card {
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.1s;
}

.col-12.col-lg-4:nth-child(2) .profile-card {
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.2s;
}

.col-12.col-lg-4:nth-child(3) .profile-card {
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.3s;
}

@media (max-width: 991px) {
  .profile-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .profile-card { 
    border-radius: 16px;
    padding: 1.25rem;
  }
  
  .profile-avatar { 
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
  
  .profile-name {
    font-size: 1rem;
  }
  
  .profile-stats .profile-stat-value {
    font-size: 1.3rem;
  }
  
  .profile-recent-item img {
    width: 44px;
    height: 44px;
  }
}

@keyframes glow {
  0%, 100% { 
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
  }
  50% { 
    box-shadow: 0 16px 56px rgba(102, 126, 234, 0.5);
  }
}

.profile-card--indigo:hover {
  animation: glow 2s ease-in-out infinite;
}

.profile-card--amber:hover {
  animation: glow 2s ease-in-out infinite;
  box-shadow: 0 16px 56px rgba(251, 191, 36, 0.5);
}

.profile-card--mint:hover {
  animation: glow 2s ease-in-out infinite;
  box-shadow: 0 16px 56px rgba(52, 211, 153, 0.5);
}